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

Android: App crashing on initial launch, afterwards it does not crash and gets code pushed without problems

Open afilp opened this issue 6 years ago • 6 comments

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

  1. Install Android app to device (having the code push code inside)
  2. Run it
  3. It crashes
  4. Re-run it
  5. All is OK, it does not crash and it also gets code pushed. From then on, it never crashes.

Expected Behavior

What you expected to happen? Not to crash on initial launch

Actual Behavior

What actually happens? App crashes (on 1st launch only)

Reproducible Demo

Environment

We use 'react-navigation' and https://github.com/zoontek/react-native-bootsplash

  • react-native-code-push version: "^6.2.0"
  • react-native version: "^0.61.5"
  • iOS/Android/Windows version: Android 10
  • Does this reproduce on a debug build or release build? Release
  • Does this reproduce on a simulator, or only on a physical device? Physical device

(The more info the faster we will be able to address it!)

afilp avatar May 27 '20 14:05 afilp

I am also using the "react-native-firebase". Maybe this is related to it (messaging?). I am investigating this now.

afilp avatar May 28 '20 08:05 afilp

i'm also having the same issue on IOS

ali-io avatar May 30 '20 00:05 ali-io

@afilp any luck?

ali-io avatar May 30 '20 00:05 ali-io

ok the result of three hours of searching and debugging it appears to be a firebase messaging issue. update it to the latest version and you should be good.

check: https://github.com/invertase/react-native-firebase/issues/3556

ali-io avatar May 30 '20 04:05 ali-io

@ali-io Indeed! I disabled firebase messaging and now it does not crash. Sorry to have bothered you, I thought it was code-push.

Thanks!

afilp avatar May 30 '20 19:05 afilp

Hi @afilp and @ali-io , Thanks for reporting!

I see that you already found the reason for the issue and it isn't related to CodePush. So, I'm going to close this issue for now. Please feel free to reopen it if you have any questions.

alexandergoncharov-zz avatar Jun 04 '20 10:06 alexandergoncharov-zz