react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

"ANDROID_ID " not compliant with Huawei App market Policies

Open zhuminjunivan opened this issue 2 years ago • 1 comments

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. image (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. image https://github.com/microsoft/react-native-code-push/blob/88ee6d14e96ca4890f86c1791bd8866d3a7f1478/android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java#L359

zhuminjunivan avatar Aug 31 '22 03:08 zhuminjunivan

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.

antoinedelp avatar Sep 28 '22 10:09 antoinedelp

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.

ghost avatar Nov 27 '22 13:11 ghost

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.

ghost avatar Dec 12 '22 18:12 ghost

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.

KURTGODEL avatar Feb 27 '23 14:02 KURTGODEL