podverse / podverse-rn

Podverse mobile app written in React Native for iOS, Android, and F-Droid
https://podverse.fm/about
GNU Affero General Public License v3.0
217 stars 36 forks source link

[BUG][4.16.3] Playback stops and does not resume when going offline, downloads removed (regression) #2204

Open jimjamz opened 6 days ago

jimjamz commented 6 days ago

Describe the bug The bug appears to be a regression of 1314. Supposedly fixed in 4.16.0, the symptoms originally stated are apparent (and arguably worse) in the latest version, 4.16.3.

To Reproduce and Expected behaviour

Background: Given I go online And I open the app And I subscribe to a podcast And I download several episodes

Scenario: Downloaded episode stops playing when going offline When I playback a non-downloaded episode And I download the episode being played (see screenshot 1) And I go offline EXPECTED: Then the episode should continue playback from the downloaded asset ACTUAL: But the episode playback stops (see screenshot 2) And I cannot resume the playback (see screenshots 3, 4, 5)

Scenario: Restarting the app when offline cannot find any subscribed podcasts Given I go offline And I close the app When I open the app EXPECTED: Then the list of subscribed podcasts should be displayed ACTUAL: But the subscribed podcasts are not displayed (see screenshot 6)

Scenario: Listing the downloaded episodes When I filter by downloaded episodes EXPECTED: Then I should see the list of episodes downloaded ACTUAL: But there are no downloaded episodes listed (see screenshot 7)

Scenario: Restarting the app when online to find downloaded assets deleted Given I go offline And I close the app And I go online When I open the app EXPECTED: Then the list of previously downloaded episodes should be available ACTUAL: But the downloaded assets are no longer downloaded (see screenshot 8) And I have to download the episodes again

Screenshots Screenshot 1 : Screenshot_20241006-100101_Podverse

Screenshot 2 : Screenshot_20241006-100733_Podverse

Screenshot 3 : Screenshot_20241006-101137_Podverse

Screenshot 4 : Screenshot_20241006-101213_Podverse

Screenshot 5 : Screenshot_20241006-101221_Podverse

Screenshot 6 : Screenshot_20241006-101246_Podverse

Screenshot 7 : Screenshot_20241006-102006_Podverse

Screenshot 8 : Screenshot_20241006-102730_Podverse

Smartphone (please complete the following information):

Additional context

lovegaoshi commented 5 days ago

if you have the tiem and effort to run the dev version of podverse and debug, please look for NoxFileUtil in adb and [downloader] logs in JS.

r u sure it was "fixed" 4u in 4.16? I dont see any meaningful changes since 4.16.0.

jimjamz commented 5 days ago

According to @mitchdowney , it was fixed in 1314. I could revert to 4.16.0 but I don't know how that would help solve the issue.

lovegaoshi commented 1 day ago

i want to make sure that 4.16.0 actually works 4u, instead of we told you so. could be i simply implemented it wrong. then we can spend time looking at 4.16.0 to .3.

lovegaoshi commented 1 day ago

actually this reminds me. I suspect the 4.16.0 fix might now incorrectly requires file read permission for all - even for the ones that did NOT specify a custom download/cache path. could you provide

  1. did you enable file read permissions for podverse
  2. did you specify a custom download path
jimjamz commented 1 day ago

In application permissions under System settings, the app has "read audio files from shared storage". There doesn't appear to explicitly be a "file read" permission, but I assume this is enabled as downloaded episodes can be played at will once downloaded (provided there is also a Wi-Fi connection). This would exhibit file read permissions. Any permission Podverse has asked for has always been allowed. No settings in the app itself have been changed from the default. No custom path has been specified as I wouldn't know how to.