Open BelghitiAlaoui-Hicham opened 4 years ago
I'm having this issue after updating everything to androidX, any workaround?
Also experiencing this error following androidX inclusion - did either of you manage to find a solution? @koichi259 @BelghitiAlaoui-Hicham ? Thanks in advance - tearing my hair out!
@Zer0ne83, there is something in your code thqt make the map variables read only. An andvice, go to react native is much more complete and also they have a huge community. Personnaly, i switch to react native+expo
Thanks for the reply and suggestion, mate. Chasing down another error lead me to https://github.com/ionic-team/ionic-native-google-maps/issues/315#issuecomment-656455979 and the referenced commit seems to have cleared up all errors. Still no idea what was wrong but... yeah :/ Pretty done with Ionic + Angular so I might take your advice and take React Native + Expo out for a spin on the next project. Cheers buddy!
@koichi259
ionic cordova plugin rm cordova-plugin-googlemaps
ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps
ionic cordova platform build android
@koichi259
ionic cordova plugin rm cordova-plugin-googlemaps ionic cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps ionic cordova platform build android
Now app crashes when it go to background (open camera/barcodscanner for example)
java.lang.RuntimeException: Unable to stop activity {postsrvs.w/postsrvs.w.MainActivity}: java.lang.IllegalStateException
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4152)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4201)
at android.app.ActivityThread.-wrap24(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:173)
at android.app.ActivityThread.main(ActivityThread.java:6698)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
Caused by: java.lang.IllegalStateException
at com.google.android.libraries.maps.ij.zzae.zzb(Preconditions.java:29)
at com.google.android.libraries.maps.ke.zzae.zze(MapRendererPhoenix.java:253)
at com.google.android.libraries.maps.ka.zzba.zzC(GoogleMapImpl.java:310)
at com.google.android.libraries.maps.ka.zzcw.zzh(MapViewDelegateImpl.java:16)
at com.google.android.libraries.maps.MapView$zza.onStop(MapView.java:18)
at com.google.android.gms.dynamic.DeferredLifecycleHelper.onStop(Unknown Source:4)
at com.google.android.libraries.maps.MapView.onStop(MapView.java:39)
at plugin.google.maps.PluginMap.onStop(PluginMap.java:524)
at org.apache.cordova.PluginManager.onStop(PluginManager.java:286)
at org.apache.cordova.CordovaWebViewImpl.handleStop(CordovaWebViewImpl.java:491)
at org.apache.cordova.CordovaActivity.onStop(CordovaActivity.java:291)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1375)
at android.app.Activity.performStop(Activity.java:7215)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4149)
... 9 more```
This bug exists in last version of https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps
Please ask to Google. According of the log, it seems the problem of the Google Maps SDK for Android itself.
All source code is open. Please debug it before asking :)
Ionic app crashes once app goes into the background. How can we use pause and resume event for this? because bug is there and nobody know how much time google may need to resolve it.
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)cordova-androidx-build 1.0.4 "cordova-androidx-build" cordova-plugin-device 2.0.2 "Device" cordova-plugin-googlemaps 2.8.0-20200601-1013 "cordova-plugin-googlemaps" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" insert the output from the command here