This is my first mobile app. I am targeting any the latest versions of Android and iOS. I am developing with Cordova CLI (using ionic).
I'm getting following error when compiling with cordova google-maps-sdk plugin
/Users/basit/projects/app-mobile/platforms/ios/app/Plugins/plugin.google.maps/GroundOverlay.m:100:47: error: property 'request' not found on object of type 'UIView *'
NSString *currentPath = [self.webView.request.URL absoluteString];
GoogleMaps.h:11:
In file included from /Users/basit/projects/app-mobile/platforms/ios/app/Plugins/plugin.google.maps/GoogleMapsViewController.h:12:
/Users/basit/projects/app-mobile/platforms/ios/app/Plugins/plugin.google.maps/PluginUtil.h:66:58: note: passing argument to parameter 'theWebView' here
+ (NSString *)getAbsolutePathFromCDVFilePath:(UIWebView*)theWebView cdvFilePath:(NSString *)cdvFilePath;
^
1 warning and 1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/GroundOverlay.o app/Plugins/plugin.google.maps/GroundOverlay.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
As the warning says, "This plugin is not compatible with Cordova-iOS 4.."
I downgraded from 4.* to 3.9.0 and now it compiles just fine!
ionic platform remove ios
ionic platform add [email protected]