matteoh
matteoh

Reputation: 3630

Error "com.google.android.gms.permission.AD_ID" in Google Play console, even though I removed that permission

In my Flutter project, I have 2 flavors: free and full, and I use Codemagic for my CI/CD.

Only the free version comes with a Google ad banner. So I added the com.google.android.gms.permission.AD_ID permission in the manifest, then run my build on Codemagic, for the full version only.

Then I went to my Google Play console, and I got the error : This version includes the com.google.android.gms.permission.AD_ID permission, but your statement in the Play Console indicates that your app does not use the advertising ID., which is true (again, for the full version only).

So I add 2 new AndroidManifest.xml files in my project, one in free, one in full, and removed the permission from the main AndroidManifest.xml file.

Here is the content of the manifest in the android/app/src/free directory:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mistikee.mistikee.mistikee">
    <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
</manifest>

And here is the content of the manifest in the android/app/src/full directory:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mistikee.mistikee.mistikee">
</manifest>

Then I launched a new build on Codemagic, everything went fine, until I went to the Google Play console, and I still got the same error. I really don't understand why. It looks like there is a cache issue somewhere.

How can I fix that, without going to the console telling that I use the advertising ID (because, again, I don't use it in the full version)?

Thanks.

Upvotes: 2

Views: 2639

Answers (1)

Mikhail Tokarev
Mikhail Tokarev

Reputation: 3306

even Google Play shows this message you can go to App Content -> Advertising Id -> Does your app use advertising ID? -> NO -> Save

and the warning will disappear.

Upvotes: 1

Related Questions