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

codepush not send status with release

Open bonnmh opened this issue 1 year ago • 3 comments

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!)

bonnmh avatar Aug 25 '22 08:08 bonnmh

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,
            );

bonnmh avatar Aug 25 '22 10:08 bonnmh

i tried to use ON_APP_RESUME & ON_APP_START, => i have status SYNC_IN_PROGRESS

bonnmh avatar Aug 25 '22 10:08 bonnmh

it doesn't work in most cases

bonnmh avatar Sep 25 '22 16:09 bonnmh