Android Question RemovePermission(com.google.android.gms.permission.AD_ID)

LGS

Member
Licensed User
Longtime User
Hi everyone

I am updating my app using RemovePermission(com.google.android.gms.permission.AD_ID) in the manifest.
However when I try to update in the PlayStore, it keeps asking me if my App uses an advertising ID

1740233513884.png


Manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="34"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)

AddManifestText(
<uses-permission
  android:name="android.permission.WRITE_EXTERNAL_STORAGE"
  android:maxSdkVersion="19" />
)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)

SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)

'CLEARTEXT
CreateResourceFromFile(Macro, Core.NetworkClearText)
'End of default text.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)

'2025
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
RemovePermission(com.google.android.gms.permission.AD_ID)

Can someone please tell me how I can fix this?
Thanks in advance
 

LGS

Member
Licensed User
Longtime User
Hi Erel
No, the permission com.google.android.gms.permission.AD_ID is not in the AndroidManifest.xml file
 
Upvote 0

LGS

Member
Licensed User
Longtime User
Ok, thanks for answering.

But I would like to be clear about the following:
Knowing that com.google.android.gms.permission.AD_ID is included by the following line in the manifest file:
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
1740403876469.png


And if I include RemovePermission(com.google.android.gms.permission.AD_ID) in the manifest file

I have the following questions:
1) When revoking that permission, does the Firebase notification service not get affected?
I found this thread, hence my question

2) Not including RemovePermission(com.google.android.gms.permission.AD_ID) in the manifest file and falsely declaring to Google Play that my app contains Ads?

I have these doubts

Thanks in advance
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
When revoking that permission, does the Firebase notification service not get affected?
It will work without it. It has something to do with analytics and probably ad tracking.

Not including RemovePermission(com.google.android.gms.permission.AD_ID) in the manifest file and falsely declaring to Google Play that my app contains Ads?
Not something that I'll recommend.
 
Upvote 0
Top