I don't use ads in my flutter app then why this message is showing in my play console?

Viewed 4271

I am using Firebase and google analytics though.

The advertising ID declaration form is now available for you to complete.

We'll use this declaration to provide safeguards in Play Console. You will not be able to create releases targeting Android 13 until you complete the declaration.

Apps using advertising ID that target API level 33 (Android 13) or later must declare the normal permission com.google.android.gms.permission.AD_ID in their AndroidManifest.xml. This will prevent your advertising identifier from zeroing out. If you do not declare the permission in your manifest file, or if you use an SDK that omits the permission from their library manifest, this may impact your advertising and analytics use cases.

4 Answers

You need to check if your final, merged manifest AndroidManifest.xml includes the permission com.google.android.gms.permission.AD_IDor not.

If it does, you need to answer Yes and answer the questions that are prompted, if it does not you should answer No.

You may not be including this permission explicitly in your AndroidManifest.xml but it could still be present in your final merged manifest after the build is done, contributed by one of the dependencies you have on your project.

To verify this, you can use the Merged Manifest Viewer on Android Studio and look for com.google.android.gms.permission.AD_ID, or check this files on the build folder:

└── APP MODULE
├── intermediates
│   ├── merged_manifest
│      └── flavourBuild
│          └── out
│              └── AndroidManifest.xml
└── outputs
    └── logs
        └── manifest-merger-prod-release-report.txt

Search for com.google.android.gms.permission.AD_ID inside manifest-merger-FLAVOUR-BUILD-report.txt and you will get if it was included and by what library.

Example

Example - Added by the inclusion of Firebase Config Library a dev of Firebase

Search for com.google.android.gms.permission.AD_ID inside AndroidManifest.xml and you will get to find if it was included or not.

You can remove the permission by including the a removal rule on you AndroidManifest like explained here but that can cause problems on the functionality of the dependencies that need it.

It seems that Google play has pushed this policy to all developers, and it will be a must for every application in the future.

If you are not using ads, you can choose NO.

Update

If you haven't encountered the popup selection and got this warning while uploading an app to the store, follow these steps in case you are not using AdID:

Go to App Content -> Advertising Id -> Does your app use advertising ID? -> NO -> Save

Please check here, there is a further explanation.

and If you have not implemented then you can choose NO, like didikee said above.

I got the same warning while reviewing my last update. I just went to complete the advertising ID declaration (selecting NO - since I don't use any ads in my app) and the warning just disappeared.

NOTE: I am also using Firebase and its analytics in the app.

Related