Downloaded but un-started courses cannot be viewed offline.
tomacadi opened this issue · 9 comments
Issue Title
Downloaded but un-started courses cannot be viewed offline.
Issue Description
Preconditions
Example:
Device: iPhone 11, iOS version 14.6
1. Disconnected from wifi
2. In airplane mode
2. Logged in
3. Previously downloaded a few courses but did not start them
Steps to Reproduce
1. Logge in
2. Download a few courses but do not start them
3. Courses will appear in Offline section from hamburger menu
4. Close the app
5. turn off wifi, turn on airplane mode
6. Try to view one of the downloaded courses
Actual and Expected Result
Expected:
The Course would start playing since it's download and available offline.
Actual:
Message shows up: "This course is not available offline. Please connect to the internet and try again"
Additional Information
Discovered this issue while on a long flight. As you can imagine, there was no internet to connect to so I could not view any of the downloaded courses.
Although I am quite certain that I had already opened some of the offline courses - none of them worked for me. While trying to reproduce the issue, I did notice that some courses started to work, specifically if I started them just before turning off wifi and turning on airplane mode.
@tomacadi Can you take a look at this screen recording? Did I get the steps right or am I doing something different?
RPReplay_Final1622986245.MP4
Some notes:
It looks like the course that you are testing on had already been downloaded and probably played before.
In my case:
I downloaded the entire course - all sections for the first time (I only streamed them before).
I only tried to press play on the course after being in airplane mode with no wifi to connect to.
It looks like this is happening because new courses don't have a session, we fail to populate the local cache, and when we return to the screen in offline mode the missing session looks like a failure.