react-native-code-push
react-native-code-push copied to clipboard
"ANDROID_ID " not compliant with Huawei App market Policies
I found that there is a way to get ANDROID_ID in the CodePushNativeModule method, CodePushNativeModule will be called when it is initialized. It is against the user's privacy policy to obtain ANDROID_ID without the user's consent when the app is opened.
(https://github.com/microsoft/react-native-code-push/blob/88ee6d14e96ca4890f86c1791bd8866d3a7f1478/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java#L63)
And mClientUniqueId is only used in the getConfiguration method, so I recommend getting ANDROID_ID when using it.
https://github.com/microsoft/react-native-code-push/blob/88ee6d14e96ca4890f86c1791bd8866d3a7f1478/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java#L359
Hi, we had the same problem. We circumvented it by modifying the code in the package, and passing an hard-coded string instead of the mClientUniqueId. We then fixed the package with react-native-fix-package. This does not fix the issue but will help you pass the validation process.
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.
This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.
This issue should still be open. I just got a message from Google stating the following:
" Issue found: Invalid Data safety form ... • SPLIT_BUNDLE [VERSION_CODE]: Policy Declaration - Data Safety Section: Device Or Other IDs Data Type - Device Or Other IDs (some common examples may include Advertising ID, Android ID, IMEI, BSSID, MAC address) "
We need someone to review it and update the README.