update: prevent executing `Environment.isAvailable()` method if the platform is not Android
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170709-1518" 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-20170711-1630" 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
@@ -387,6 +387,8 @@ module.exports = {
document.addEventListener("deviceready", function() {
document.removeEventListener("deviceready", arguments.callee);
+ // Check the Google Maps Android API v2 if the device platform is Android.
+ if (/Android/i.test(window.navigator.userAgent)) {
//------------------------------------------------------------------------
// If Google Maps Android API v2 is not available,
// display the warning alert.
@@ -394,4 +396,5 @@ document.addEventListener("deviceready", function() {
cordova.exec(null, function(message) {
alert(message);
}, 'Environment', 'isAvailable', ['']);
+ }
});

update: prevent executing `Environment.isAvailable()` method if the platform is not Android

https://github.com/tcoxon/cordova-plugin-googlemaps/commit/0a476e95b0eeb044977bde239258ff972df5a446