(JS) use cordova.fireDocumentEvent() for the plugin_backbutton event
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170713-1540" 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-beta2-20170713-1545" 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
@@ -301,9 +301,7 @@ var saltHash = Math.floor(Math.random() * Date.now());
resetTimer();
// For other plugins, fire the `plugin_buckbutton` event instead of the `backbutton` evnet.
- var event = document.createEvent('plugin_buckbutton');
- event.initEvent(eventName, false, false);
- document.dispatchEvent(event);
+ cordova.fireDocumentEvent('plugin_backbutton', {});
}, false);
}());

(JS) use cordova.fireDocumentEvent() for the plugin_backbutton event