trevortos
trevortos
You can setup a "application.resumeEvent" and "application.suspendEvent" listener, and for Android only, call "mapView.nativeView.onResume()" and "mapView.nativeView.onPause()" I put a bit of a delay on them, and it seems to help.
As far as I can tell, the function setMapType() doesnt exist in the nodejs code. Unless you can some how pass that to the native native sdk?
exports.onMapReady = (args) => { mapView = args.object; console.dir('map change'); mapView.gMap.setMapType(4); // 4 is hybrid }; mapView.gMap.setMapType is not a function. (In 'mapView.gMap.setMapType(4)', 'mapView.gMap.setMapType' is undefined) The map loads fine,...
Having the same issue here, non angular / vue app.
Also tried the current git app build, getting the same thing. 01-30 16:15:32.234 19167 19217 I TetheringManager: registerTetheringEventCallback:org.nativescript.mapbox 01-30 16:15:32.244 19167 19167 E TelemetryUtils: java.lang.SecurityException: getDataNetworkTypeForSubscriber 01-30 16:15:32.262 19167 19217...
That did seem to work. I might have also had the default app id, but I dont know if that was the cause.
So im having an new issue, same class / area of issues. I have to look at adb because nothing is erroring out. The mapReady function is never called. Samsung...
JNI ERROR (app bug): accessed stale WeakGlobal 0xc7222f23 (index 208806642 in a table of size 898) java_vm_ext.cc:545] JNI DETECTED ERROR IN APPLICATION: use of deleted weak global reference 0xc7222f23 java_vm_ext.cc:545]...