Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daviddulak/6976348 to your computer and use it in GitHub Desktop.
Save daviddulak/6976348 to your computer and use it in GitHub Desktop.
This is a simple way to let your PhoneGap app know if Google Maps App is installed on the device
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"comgooglemaps://"]]) {
NSString *jsString = @"window.googleMapsAppInstalled = true;";
[self.webView stringByEvaluatingJavaScriptFromString:jsString];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment