Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
afilp opened this issue May 27, 2020 · 6 comments
Assignees
Labels

Comments

@afilp
Copy link

afilp commented May 27, 2020

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
Copy link
Author

afilp commented May 28, 2020

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

@ali-io
Copy link

ali-io commented May 30, 2020

i'm also having the same issue on IOS

@ali-io
Copy link

ali-io commented May 30, 2020

@afilp any luck?

@ali-io
Copy link

ali-io commented May 30, 2020

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: invertase/react-native-firebase#3556

@afilp
Copy link
Author

afilp commented May 30, 2020

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

@alexandergoncharov-zz
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants