-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Android crashes when app goes to background mode (e.g. with Google Sign In) #5449
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
Comments
Same problem exactly, is there any news/people succeeded to patch this onPause null problem on background? |
Same here on Android. It's enough to go to another app in task manager and back to our app with map on the screen and it will crash with same stack trace |
Same here on Android, using versions
|
same ish issue, but not using google sign in or expo rn 0.76.9 reproduce: app will stop responding |
Totally the same issue. Any methods of unmounting don't help so far |
Summary
Hey, I have an Expo app that both uses this library for maps and Google Sign In.
If the map is initialized in one tab, then a user goes to a second tab and presses Sign In With Google, the app crashes.
Reproducible sample code
Steps to reproduce
If the map is initialized in one tab, then a user goes to a second tab and presses Sign In With Google, the app crashes with the following error. I don't think the tab navigation is necessary. In my opinion, it's just a problem with the app going into some kind of a background mode because of the Google Sign as the error starts in
com.rnmaps.maps.MapView.onPause
Expected result
The app not crashing.
Actual result
App crashing with
React Native Maps Version
1.22.6
What platforms are you seeing the problem on?
Android
React Native Version
0.76.9
What version of Expo are you using?
SDK 52
Device(s)
google Pixel 8 Android 15 (SDK 35), google Pixel 8 Android 14 (SDK 34)
Additional information
I also have
react-native-map-clustering
installed but it happens even without using this library."@react-native-google-signin/google-signin": "^13.2.0",
"expo": "~52.0.42",
"react-native": "0.76.9",
"react-native-map-clustering": "^3.4.2",
"react-native-maps": "1.22.6",
The text was updated successfully, but these errors were encountered: