Kibi
Kibi

Reputation: 2058

Google play incorrectly warns about com.google.android.gms.permission.AD_ID

I recently received this message when I tried to upload my app:

This release includes the com.google.android.gms.permission.AD_ID permission but your declaration on Play Console says your app doesn't use advertising ID.

I have no adds and don't explicitly have that permission, but I understand from here that something from firebase auth might use it - so I fill in that I use this permission - this then triggers another error that I said I'm using AD_ID but I didn't mention that I'm using Ads. If I then mention that I'm using Ads (I'm not), the Console tells me that I have to take special care that my ads (which I don't have) don't target children under 13, or else I need to say my app is for 13 and over.

If I change my app to say it's for 13 and Over I get a warning that if it looks like it's targeting kids I will be removed!!!

What on earth have I done wrong??? I don't even have ads or want ads, and now I'm being warned I cannot let any child under 13 download my app?

Is there someone who can advise me how to upload my totally innocuous app without triggering the wrath of Google Play??

Upvotes: 12

Views: 7540

Answers (2)

goemic
goemic

Reputation: 1339

In case a depenency (such as firebase) injects the com.google.android.gms.permission.AD_ID permission and you don't want to remove this dependency, you can simply add this line to your manifest.json:

<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>

Thereby, you can prevent that this permission will be added.

Upvotes: 3

Mrsasuu
Mrsasuu

Reputation: 86

Go to your merged manifest and check if there com.google.android.gms.permission.AD_ID is included. You can find the merged manifest here

<project>/<module>/build/intermediates/merged_manifests/<build_flavor_name>

Maybe one of your dependencies includes that permission and if its like that you are forced to:

  • Remove that dependency from your project

or

  • Include the permission in your main manifest and change your advertising ID declaration in Google Play Console.

Upvotes: 7

Related Questions