I am trying to submit my React Native EXPO app to Google Play Store for approval, but I am getting this error:
SDK Segment Analytics Android (com.segment.analytics.android:analytics), 4.9.4 collects personal or sensitive data that includes but may not be limited to Advertising ID, Android ID identifiers. Persistent device identifiers may not be linked to other personal and sensitive user data or resettable device identifiers as described in the user data policy.
You can't publish this release due to this policy issue. To be allowed to publish, you may consider moving to another SDK; removing this SDK; or if available from your SDK provider, upgrading to a policy-compliant version of this SDK that does not include the violating code.
According to the information provided by your SDK provider, you may consider upgrading to 4.10.1. Please consult the SDK provider for further information.
ACTION REQUIRED: Upload a new compliant version AND deactivate the noncompliant version.
I am new to React Native. Please Help.
Just happened to me too, possibly it will be solved if we try to generate the bundle using the EAS command.
Then change this command:
expo build:android
by this command:
eas build -p android
Then the bundle will be cleaner because it will bring only what it needs. Another alternative might be to update the version of one of the possible packages involved such as "expo-firebase-analytics" or "expo-ads-admob". In my case I currently have:
"expo-ads-admob":"~12.0.0", "firebase": "8.2.3", "expo-firebase-analytics":"~6.0.0".
I have not updated it yet
pd: remember that in future versions of expo I understand that the command will stop working:
expo build:android
The issue is with expo-analytics-segment.
https://github.com/expo/expo/blob/0d1f072871c9a9f76ca622d3fe5cb48a4bd832d2/packages/expo-analytics-segment/android/build.gradle#L87
api 'com.segment.analytics.android:analytics:4.9.4'
But this is only removed if you use EAS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With