react-native-geolocation
react-native-geolocation copied to clipboard
App crash in release mode when using react native geolocation
Environment
Platforms
Versions
- Android:
- iOS:
- react-native-geolocation:
- react-native:
- react:
Description
Reproducible Demo
My app keeps stopping at start after installing @react-native-community/geolocation
today. I don't see any error in emulator neither in console. I'm using react native 0.62.2.
+1 Using "@react-native-community/geolocation": "^2.0.2" and "react-native": "0.59.10" It crashed on my phone (using Android version 9 PKQ1.180904.001, the phone is a Redmi Note 7) and my girlfriend's phone (using Android version 9 (only stuff I could see in the phone settings), the phone is OPPO A5 2020)
My app launch. When it asks for geoloc info, I get Android's pop-up "Allow [app] to access this phone's position". When I click on "Allow", it crashes. I'm asking for a bug report, but the phone doesn't show it to me
I've decided to move to another project. This has been an issue for me for months. https://www.npmjs.com/package/react-native-location
I spent about 10 mins implementing the new package. Altogether an hour looking at docs, remove old package, add new properly, dev release checked out, gradlew assembleRelease, and 3-4 different tests in that release APK.. all good, no errors or crashing.
Any resolution?