Update: (Android) `getMyLocation()` does not return if application has been launched when location is disabled, then enable the location after soon.
MODIFY
README.md
README.md
- **v2.4.4**
- Fix: (Browser) All methods were tested, and fixed lots of bugs.
- Fix: (Android/iOS) Executes `map.animateCamera()` while map has been detached automatically causes dead lock.
+ - Update: (iOS) Fixed issue where plugin could appear behind other plugins
+ - Update: (Android) `getMyLocation()` does not return if application has been launched when location is disabled, then enable the location after soon.
- **v2.4.3**
- Fix: (Browser) HTMLInfoWindow displays unnecessary scroll bars.

MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.4.4-beta-20180917-1010" 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-1600" 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
src/android/plugin/google/maps/PluginLocationService.java
src/android/plugin/google/maps/PluginLocationService.java
@@ -507,12 +507,16 @@ public class PluginLocationService extends CordovaPlugin {
return;
}
+ // It seems setting the values to both setFastestInterval() and setInterval() is important.
+ // https://akira-watson.com/android/fusedlocationproviderapi.html
LocationRequest locationRequest= LocationRequest.create()
- .setNumUpdates(2)
- .setSmallestDisplacement(0)
+ //.setNumUpdates(2)
+ .setFastestInterval(5000)
+ .setInterval(10000)
+ //.setSmallestDisplacement(0)
.setPriority(priority)
.setExpirationDuration(12000)
- .setMaxWaitTime(6000);
+ .setMaxWaitTime(5000);
LocationServices.getFusedLocationProviderClient(cordova.getActivity()).requestLocationUpdates(locationRequest, new LocationCallback() {
@Override

Update: (Android) `getMyLocation()` does not return if application has been launched when location is disabled, then enable the location after soon.