I’m getting this error when uploading my app to the Play Console: Your advertising ID declaration in Play Console says that your app uses advertising ID. A manifest file in one of your active artifacts doesn’t include the com.google.android.gms.permission.AD_ID permission.
I have it in my config file, but am I doing it wrong?
Here’s how my App.appendToConfig looks:
App.appendToConfig(`
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:usesCleartextTraffic="true" />
</edit-config>
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity" xmlns:android="http://schemas.android.com/apk/res/android">
<activity android:exported="true"></activity>
</edit-config>
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="com.google.android.gm.ads.APPLICATION_ID"
android:value="ca-app-pub-myappID"/>
</edit-config>
</platform>
`);