Bug fix: can not tap the debug button of the monaca debugger on iOS
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.5" 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.6-beta-20170906-2336" 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/ios/GoogleMaps/CordovaGoogleMaps.m
src/ios/GoogleMaps/CordovaGoogleMaps.m
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
+ [GMSServices provideAPIKey:APIKey];
+ }];
+
//-------------------------------
// Plugin initialization
//-------------------------------
- [GMSServices provideAPIKey:APIKey];
self.pluginMaps = [[NSMutableDictionary alloc] init];
self.locationCommandQueue = [[NSMutableArray alloc] init];
NSArray *subViews = self.viewController.view.subviews;
+ //NSLog(@"--->subViews count=%lu", subViews.count);
UIView *view;
for (int i = 0; i < [subViews count]; i++) {
view = [subViews objectAtIndex:i];
- //NSLog(@"remove i=%d class=%@", i, view.class);
+ //NSLog(@"--->remove i=%d class=%@", i, view.class);
[view removeFromSuperview];
[self.pluginLayer addSubview: view];
}
[self.viewController.view addSubview:self.pluginLayer];
-
- }];
}
-
- (void) didRotate:(id)sender
{

Bug fix: can not tap the debug button of the monaca debugger on iOS