Since some people claims there are some iOS9 users for their apps, change the code.
MODIFY
src/ios/GoogleMaps/PluginLocationService.m
src/ios/GoogleMaps/PluginLocationService.m
// Executes getMyLocation() first time
[self.locationManager stopUpdatingLocation];
- [NSTimer scheduledTimerWithTimeInterval:6000 repeats:NO block:^(NSTimer *timer) {
+
+ // Why do I have to still support iOS9?
+ [NSTimer scheduledTimerWithTimeInterval:6000
+ target:self
+ selector:@selector(locationFailed)
+ userInfo:nil
+ repeats:NO];
+ [self.locationManager startUpdatingLocation];
+ }
+ [self.locationCommandQueue addObject:command];
+
+ //CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
+ //[pluginResult setKeepCallbackAsBool:YES];
+ //[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
+ }
+ });
+}
+
+-(void)locationFailed
+{
if (self.lastLocation != nil) {
return;
}
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
[self.locationCommandQueue removeAllObjects];
- }];
- [self.locationManager startUpdatingLocation];
- }
- [self.locationCommandQueue addObject:command];
-
- //CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
- //[pluginResult setKeepCallbackAsBool:YES];
- //[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
- }
- });
}
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {

Since some people claims there are some iOS9 users for their apps, change the code.