First of all, I'm not really sure if this is the right place to report this issue but can't find any info or any kind of documentation anywhere.
Couple days(maybe weeks) ago Android Vitals started to alerting us about "Bad behaviour" in the Google Play Dashboard. The alert says "Stuck partial wake lock" and we got it on all of our applications but on really low percentages. Currently, the highest ratio is 0.93%. I'm not sure what was that about since we don't have any wake locks in our apps so I started digging.
So far found a couple of interesting things:
Each wake lock has TAG and looks like Android Vitals are tracking them by that TAG. The TAG that appeared most is AudioMix;
Most of the devices experiencing the stuck wake lock are Huawei:
Probably important detail - all of the apps are WebView based. We have some native functionalities(IAP, AdMob, Firebase), but let's say 90% of the application is web content.
I used adb tool to check what wake looks are running and how long are they running. So I did a couple scenario:
- Using my application: After starting the app AudioMix wake lock starts. If I kill the app, AudioMix wake lock stops immediately, which is proper behaviour. But when I put application on background AudioMix wake lock stuck for like 1-2 min. I assume this is the problem;
- Random native game from Play Store: The same steps above but AudioMix stops immediately on the background.
- Random website in mobile Chrome: Now, this is really interesting. On background AudioMix stucks again around 1-2 min.
Kinda lost here but it seems like this is a problem with the Chromium. Is there something that I can 'magically' hardcore. I have read the post on this site but it seems like this is not the case here. Any suggestions?