Anyone aware how to check whether Apple Maps is installed or not? I could not find anything in the docs.
With iOS10 users can delete the Apple Maps application. While for Google Maps we can use UIApplication.shared.canOpenURL()
to check if it's installed. I am not aware of such a thing exists to check for Apple Maps.
Of course one can check if opening a MKMapItem
with mapItem.openInMaps()
fails - but that does not help for checking in advance.
canOpenURL
.[UIApplication canOpenUrl]
.http://maps.apple.com
API does not work? developer.apple.com/library/content/featuredarticles/…canOpenUrl(http://maps.apple.com)
also returnstrue
if the Maps app is not installed.