|
||||||
Hi Freelearning,
Thank you for your response.
I work with Teejay and will be assisting you today as Teejay is currently on leave. I've created a new unity project and imported the unit plugin 6.12 in the newly created project. After that, I exported the project for android to check the manifest file in android studio. Upon checking, I wasn't able to see any Wake_locks permission on the manifest. Can you check if we tested it the same as your testing?
Regards,
|
||||||
Hi Freelearning,
Thank you for clarifying this.
Upon checking it again using the steps you made, I was able to see the permission you mentioned. As per further checking, the team mentioned that, it turns out that the GMA SDK is not adding this but Play Services is: https://medium.com/glucosio-project/how-libraries-can-silently-add-permissions-to-your-android-app-620911d7de6c and the permission is being added by the androidx.work library, and androidx.work is a dependency of the Google Mobile Ads SDK.
Hi Freelearning,
Thank you for your response.
Let me bring this to the rest of the team to provide you proper context on this. Rest assured that one of our team will reach out to you.
Hi FreeLearning,
My name is Nick, and I will be helping you today with the Wakelock permission issue. As Princess pointed out, the permission is added indirectly by the androidx.work library. Admob requires this library as a dependency and can not remove it.
Wakelock is routinely used by applications to prevent the phone from sleeping during long running processes with minimal user input. For instance while watching a video or during a phone call. If there is a specific problem this permission is causing, we will be happy to help.
Thanks, Nick.
Hi FreeLearning,
I understand the concern of having excess permissions. In this case the permission is required by a third party dependency outside of the Admob domain.
You may want to take your question to the android development team which is responsible for managing the androidx.work. Looking online I found this resource which might help.
Thanks,
Nick