react-native-code-push
react-native-code-push copied to clipboard
codepush not send status with release
I am facing the problem, when the app is in debug mode, syncStatusChangedCallback & downloadProgressCallback works fine, but when I build the app out, the app still gets codepush update but I get no response from codepush.
Environment
- react-native-code-push version: v7.0.5
- react-native version: 0.64.2
- iOS/Android/Windows version:
- Does this reproduce on a debug build or release build?
- Does this reproduce on a simulator, or only on a physical device?
(The more info the faster we will be able to address it!)
let codePushOptions = {checkFrequency: CodePush.CheckFrequency.MANUAL};
Ïconst App = __DEV__ ? _App : CodePush(codePushOptions)(_App);
export default Sentry.wrap(App);
codePush.sync(
{
deploymentKey: CODE_PUSH_DEV_KEY_FINAL,
installMode: codePush.InstallMode.ON_NEXT_SUSPEND,
},
(status) => codePushStatusDidChange(status, timeoutSync),
codePushDownloadDidProgress,
);
i tried to use ON_APP_RESUME & ON_APP_START, => i have status SYNC_IN_PROGRESS
it doesn't work in most cases