Bug fix: can not move out using the android back button during map.animateCamera()
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170804-1546" 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.0.0-beta3-20170804-1618" 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="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
www/googlemaps-cdv-plugin.js
www/googlemaps-cdv-plugin.js
@@ -354,7 +354,7 @@ document.head.appendChild(navDecorBlocker);
function onBackButton() {
// Request stop all tasks.
_stopRequested = true;
- if (_executingCnt > 0) {
+ if (_isWaitMethod && _executingCnt > 0) {
// Wait until all tasks currently running are stopped.
setTimeout(arguments.callee, 100);
return;
@@ -414,7 +414,7 @@ function execCmd(success, error, pluginName, methodName, args, execOptions) {
if (methodName === "resizeMap") {
_isResizeMapExecuting = false;
}
- if (success) {
+ if (!_stopRequested && success) {
var results = [];
for (var i = 0; i < arguments.length; i++) {
results.push(arguments[i]);
@@ -442,7 +442,7 @@ function execCmd(success, error, pluginName, methodName, args, execOptions) {
if (methodName === "resizeMap") {
_isResizeMapExecuting = false;
}
- if (error) {
+ if (!_stopRequested && error) {
var results = [];
for (var i = 0; i < arguments.length; i++) {
results.push(arguments[i]);

Bug fix: can not move out using the android back button during map.animateCamera()