I'm using several Firebase products in an Android app:
compile 'com.google.firebase:firebase-core:11.0.1'
compile 'com.google.firebase:firebase-database:11.0.1'
compile 'com.google.firebase:firebase-storage:11.0.1'
compile 'com.google.firebase:firebase-auth:11.0.1'
compile 'com.google.firebase:firebase-messaging:11.0.1'
One or more of these products seems to be using the WAKE_LOCK
permission. Possibly Analytics or FCM.
I can understand where it's needed. The problem however is that in the Google Play Console, in the Android Vitals section, Google warns me that the Stuck partial wake locks percentage is 2.30% which is larger than the Bad behavior threshold which is 0.70%. Similarly, the Background stuck partial wake locks is 1.40% which is again larger than the Bad behavior threshold which is 0.10%.
In other words, Google considers this number of wake locks a 'bad behavior'.
I don't use wake locks, so it seems that the issue is coming from the Firebase SDK.
Anyone knows what's causing that? Can we fix that?