Closed emclab closed 9 months ago
Here is the code line in CodePushNativeModule.java line 63:
mClientUniqueId = Settings.Secure.getString(reactContext.getContentResolver(), Settings.Secure.ANDROID_ID);
Is it retrieving the ANDROIDID?
Hello @emclab and thanks for reaching out to us, the fact is that a fix for this problem has already been implemented, and it was released along with the 8.1.1 version of react-native-code-push, so I am closing this issue, but if you have any other questions feel free to reopen it.
My React Native 0.70 app uses react-native-code-push 7.1.0. And the way it was integrated into the React Native app happens at the index.js:
I was told by app reviewer that codePush is retrieving user's ANDROIDID (red flag) before his/her consent (as index.js is the first module loaded when app is launched). I was told that a popup window asking for users' consent before the code push is needed. There are 2 questions. 1. Does code push depends on user's ANDROIDID to work. 2. If it does, how to load the code push module later on after users' consent (After the app has checked if there is users' consent and will be a few components after index.js).
Here is the app call stack provided by the reviewer:
Environment
(The more info the faster we will be able to address it!)