How to check if Google has Google Maps installed in iOS6?

I tried searching, but to no avail. In my application, which also runs on an iOS6 device, I have a MAP module that needs a Google map. Now in iOS6 there may be devices that have iOS6 cards, not Google Maps. Therefore, my program should check if the device has a Google map application. If not, it will connect the user to the AppStore to download the GoogleMaps application. Please direct .. someone .. :( Thank you.

+4
source share
1 answer

"You can use the comgooglemaps URL scheme to launch the Google Maps application for iPhone and do searches, directions, and map views. When Google Maps starts, your package ID is automatically sent as part of the request."

β€œBefore you present one of these URLs to a user in your application, you must first ensure that the application is installed. The application can check if the URL scheme with the following code is available:

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

"

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

+11
source

All Articles