microsoft / react-native-code-push

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

IOS crashes on app focus when using codePush.CheckFrequency.ON_APP_RESUME #2382

Closed jwillingham789 closed 1 year ago

jwillingham789 commented 1 year ago

Steps to Reproduce

Set checkFrequency: codePush.CheckFrequency.ON_APP_RESUME or installMode: codePush.InstallMode.IMMEDIATE and focus the app

Expected Behavior

Expect the app to focus/check for updates without crashing

Actual Behavior

The app crashes on focus. On fresh restart the app updates as expected, but it won't work with ON_APP_RESUME and its not logging any errors to Crashlytics or when i profile the build. Just crashes on focus.

Reproducible Demo

` let codePushOptions = { checkFrequency: codePush.CheckFrequency.ON_APP_RESUME };

class MyApp extends Component { }

MyApp = codePush(codePushOptions)(MyApp); `

Environment

microsoft-github-policy-service[bot] commented 1 year ago

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.

microsoft-github-policy-service[bot] commented 1 year ago

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.

microsoft-github-policy-service[bot] commented 1 year ago

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.

microsoft-github-policy-service[bot] commented 1 year ago

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.