Fix: The function addMaker killed the app
(WebViewLocalServer refuse connection for some reason)
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.10" 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.3.11-beta-20180806-1918" 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
src/android/plugin/google/maps/AsyncLoadImage.java
src/android/plugin/google/maps/AsyncLoadImage.java
@@ -183,6 +183,13 @@ public class AsyncLoadImage extends AsyncTask<Void, Void, AsyncLoadImage.AsyncLo
return result;
}
+ if ((currentPageUrl.startsWith("http://localhost") ||
+ currentPageUrl.startsWith("http://127.0.0.1")) &&
+ !iconUrl.contains("://")) {
+ // Avoid WebViewLocalServer (because can not make a connection for some reason)
+ iconUrl = "file:///android_asset/www/".concat(iconUrl);
+ }
+
//Log.d(TAG, "--> iconUrl = " + iconUrl);
//--------------------------------
// Load image from local path

Fix: The function addMaker killed the app #2365

(WebViewLocalServer refuse connection for some reason)