question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashes when installed on iOS/non Huawei Android device

See original GitHub issue

Hi! We integrated react-native-hms-push in our React Native app. It runs with no problems on Huawei phones, but the app crashes right when it starts if we run it on an iPhone or on other Android devices. There’s no error and no logs in metro. These are the versions of our dependencies (those that are relevant):

"@hmscore/react-native-hms-push": "^5.1.1-301",
"@react-native-agconnect/appmessaging": "1.2.0",
"@react-native-agconnect/core": "^1.2.0",
"@react-native-agconnect/crash": "1.2.0",
"react": "16.13.1",
"react-i18next": "^11.8.5",
"react-native": "0.63.4",

If I remove the react-native-hms-push dependency (and of course, the code that depends on it), the app starts. Anyone else running into this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20

github_iconTop GitHub Comments

1reaction
biancadragomircommented, May 28, 2021

Hi @ozcanozgur! Thanks for your response, but I do not want the library to be instantiated on Android devices that have google services capabilities. We only need the library on Huawei devices which no longer support Firebase Push notifications due to not having google services. So basically, if the phone doesn’t have HMS core and hms services, the library shouldn’t be used

0reactions
liho00commented, Sep 10, 2021

site kit also having this issue, pls reopen it image

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Crashing Apps on an iPhone or Android?
Sometimes app-crashing is not caused by your phone, but rather the app itself. An internal error, or bug, may have brought the app...
Read more >
App crashes, closes unexpectedly, or doesn't respond
Good day, Huawei Users! What shall we do when app crashes, closes unexpectedly, or doesn't respond? The issue may occur if the app...
Read more >
Why do my apps keep crashing on Android, How to fix it
To do this, go to Settings -> Apps and select the app that keeps crashing. Tap on the app's name and then tap...
Read more >
Read this if many apps are currently crashing on your phone
To do that, go in Settings - > Apps - > search for "Huawei Web View" - > click on it, then click...
Read more >
Huawei Health crashes - what to do? Tips & solutions
With almost every app, it is more than annoying if it always crashes. ... Install the latest iOS or Android version; Check Huawei...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found