App crashes when installed on iOS/non Huawei Android device
See original GitHub issueHi! 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:
- Created 2 years ago
- Comments:20
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
site kit also having this issue, pls reopen it