nativescript-mapbox icon indicating copy to clipboard operation
nativescript-mapbox copied to clipboard

App creashed on navigating back to page with mapbox on android

Open wendt88 opened this issue 6 years ago • 4 comments

create a new vue app with tns create test --vue and add nativescript-mapbox. Created a second component and add a Mapbox to the first. with this.$navigateTo navigate to the second component. Everything works fine until here. by navigating back (backbutton on android) the app crashes without useful error: ActivityManager: Process dev.framework2.maptest (pid 30711) has died

wendt88 avatar Sep 02 '19 14:09 wendt88

Seems related to #271 .

See also

Plugin version 4.4.0 may crash on Android when pausing and resuming the app. If this affects you, pin your version to "4.3.1" for now. So in package.json do "nativescript-mapbox": "4.3.1" (without the ~ / ^ version prefix).

PhilippS93 avatar Sep 05 '19 10:09 PhilippS93

I also would like to note that this plugin does not really work well with multiple map instances as you can gather from the source code, e.g.:

https://github.com/EddyVerbruggen/nativescript-mapbox/blob/716086bd1077757a8651cc48900edc9d84606520/src/mapbox.android.ts#L99

dmytro-gokun avatar Sep 13 '19 13:09 dmytro-gokun

Problem still present on version 4.4.0 and 4.4.1. Is it sheduled a fix for this ?

GrEg00z avatar Jan 20 '20 13:01 GrEg00z

It's a bug in NativeScript core and is not related to this plugin. https://github.com/NativeScript/NativeScript/issues/7954#issuecomment-573071912

Yermo avatar Jan 20 '20 19:01 Yermo