Solved

React Native SDK 7.15 requires the `com.google.android.gms.permission.AD_ID` permission

  • 18 January 2024
  • 2 replies
  • 94 views

Userlevel 1
Badge +4

Hi,

I upgraded the SDK from version 7.6.0 to version 7.15.0, and got this message when publishing on the Google Play Store:

 

 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. You must update your advertising ID declaration.

 

Our app does not include advertisings and does not use this permission, but using the SDK adds it to our manifest.

Is this expected? Is there any way to avoid this?

I confirmed this is caused by the SDK upgrade, as reverting back to SDK 7.6.0 solves it and allows publishing on the Play Store.

Thanks!

icon

Best answer by toni-rico 19 January 2024, 12:35

View original

2 replies

Userlevel 1
Badge +4

Update: this seems to come from `purchases-android` that inadvertently added the `AD_ID` permission.

Seems to be fixed by version 7.3.5, the RN SDK needs an update now: https://github.com/RevenueCat/purchases-android/releases/tag/7.3.5

Userlevel 2
Badge +3

Hi @renchap, thanks for letting us know about this issue. As you said yourself, this was due to an update of the google ad library in the Android SDK which added the permission, really sorry for the inconvenience. We’ve reverted the change and released an update to the RN sdk in https://github.com/RevenueCat/react-native-purchases/releases/tag/7.16.0. Please update to 7.16.0 and the problem should go away.

Let us know if you experience any other issues and thanks again for letting us know!

Reply