Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check whether the user has google maps installed in IOS6?

I tried searching hard, but to no avail. In my app, that runs on an IOS6 device also, i have a MAP module that needs a Google map. Now in IOS6 there can be devices which have iOS6 maps and not Google Maps. So my Program has to check whether the device has google maps, application . If not, it will link the user to the appStore to download the GoogleMaps app. Please guide.. someone.. :( Thanks.

like image 521
ScarletWitch Avatar asked Dec 20 '22 09:12

ScarletWitch


1 Answers

"You can use the comgooglemaps URL scheme to launch the Google Maps app for iPhone and perform searches, direction requests, and display map views. When you launch Google Maps your bundle identifier is automatically sent as part of the request."

"Before you present one of these URLs to a user in your app you should first verify that the application is installed. Your app can check that the URL scheme is available with the following code:

[[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"comgooglemaps://"]];

"

https://developers.google.com/maps/documentation/ios/urlscheme

like image 78
blub Avatar answered Dec 28 '22 07:12

blub