Open joashrajin opened 2 years ago
+1 at #5338118-zen
Noting that we have added some changes to 7.20 to prompt users to update their battery optimization setting to unrestricted since that seems to fix the issue for the majority of users. We are also working with Google to address this issue since there appears to be a problem with Android 12.
Some relevant issues from the Google issue tracker:
A variation of this issue (that can be reproduced in our app) occurs in Google's sample uamp app: https://github.com/android/uamp/issues/485
This issue reported on the Google issue tracker sounds pretty similar, and Google has a fix they plan to release by the end of August 2022. π€
+1 at #5408739-zen
+1 at #5402329-zen
I've gone back to using a flip case with my Galaxy S22 Ultra, and when the case is closed, Pocket Cast stops playback after a short time. My other apps don't shut down when the case is closed, and I haven't found an Android or Pocket Cast setting that seems applicable.
Logs mention the ForegroundServiceStartNotAllowedException
crash occurring. The user confirmed that setting the Battery Usage to 'Unrestricted' fixed the problem.
There is a cast sdk fix for this kind of issue. I'm a bit skeptical that this will fix all the issues we're seeing, but it might (other people report avoiding that issue by catching the exception, but that doesn't help us much because we still need the service to enter the foreground). Unfortunately, the fix apparently won't be released until the end of Q4 2022.
5728303-zd-woothemes
What I'm saying is that it's a bit inconsistent that Pocket Cast can correctly move items to listen history, mark as archived etc, but can't delete. For that I'd suggest having a periodically running check that would go over downloaded, not started, but already archived items and delete these when Pocket Cast is in foreground [...]
The user here is facing the issue where Pocket Casts is using 'Optimized' battery usage and failing to auto-archive/delete episodes when they are casted. The issue seems to be related to the Chromecast bug but since they are a power user, using 'Unrestricted' battery usage causes the battery to die a bit quicker:
I'm getting about 8-10h of Pocket Cast on an optimised battery (heavy user, silence trimming, speed multiplier, hundreds of podcasts syncing, downloading over WiFi or 5G) vs. 4-6h when I give it unlimited battery
FYI
Latest Cast SDK (21.2.0) includes this release note:
Fixed ForegroundServiceStartNotAllowedException with the MediaNotificationService.
The SDK version is updated in v7.28 in this PR. Hopefully, we'll stop seeing this issue while casting. π€
Thanks for sharing that @ashiagr ! Checking the crash reports it looks like the exception is still getting thrown in 7.28-rc-2. It' still early though, so maybe once that version is fully released we'll see that this crash is much less frequent. π€
That PR is still in review π. It should get merged in the final 7.28 release.
π€¦ I looked at the wrong PR! Sorry about that.
We have many reports from Android 12 users claiming that the app crashes or the audio quality deteriorates with playback while the screen is off.
Here are the logs from 1 customer:
Device info:
4871871-zen
4885182-zen
Both reported that setting the battery optimization to unrestricted for Pocket Casts resolved it. There have been users, however, who have reported that updating the battery optimization setting has not fixed the issue.