microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.98k stars 1.47k forks source link

App crashes after installing the new update on Android #2641

Closed abanoubamin closed 9 months ago

abanoubamin commented 10 months ago

Steps to Reproduce

  1. Build and deploy a new code-push using this script export version=$npm_package_version && appcenter codepush release-react -a App/app-android -t $version --description 'enhance' -d Production -m -x
  2. The app detects that there's a new build
  3. Codepush installs the new update, then crashes

Expected Behavior

The latest code-push update for Android should not cause the app to crash after installation.

Actual Behavior

What actually happens?

The app crashes after installing a new code-push update on Android, which is unusual because previously, the app had restarted without crashing Android.

Environment

Code snippets

const codePushOptions = { checkFrequency: codePush.CheckFrequency.MANUAL };
export default codePush(codePushOptions)(App);

code

abanoubamin commented 9 months ago

My issue was related to Sentry and solved after upgrading @sentry/react-native to the latest version 5.15.2 https://github.com/getsentry/sentry-react-native/issues/3131