(Android/iOS) Fix: execute `map.animateCamera()` while the map view is detached causes dead lock
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.4.4-beta-20180913-1704" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.4.4-beta-20180917-1003" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="Promise" src="www/Promise.js">
<runs/>

MODIFY
www/js_CordovaGoogleMaps-for-android_ios.js
www/js_CordovaGoogleMaps-for-android_ios.js
@@ -706,9 +706,9 @@ CordovaGoogleMaps.prototype.getMap = function(div, mapOptions) {
map.on('__isAttached_changed', function(oldValue, newValue) {
if (newValue) {
- map.exec(null, null, map.id, 'attachToWebView', []);
+ cordova_exec(null, null, map.id, 'attachToWebView', []);
} else {
- map.exec(null, null, map.id, 'detachFromWebView', []);
+ cordova_exec(null, null, map.id, 'detachFromWebView', []);
}
});

(Android/iOS) Fix: execute `map.animateCamera()` while the map view is detached causes dead lock