The following URL scheme was working on previous version but doesn't work anymore on iOS 9:
comgooglemaps://?q=Google+Japan,+Minato,+Tokyo,+Japan¢er=35.660888,139.73073&zoom=15&views=transit
Did something change on iOS 9 that prevent apps from opening other apps using URL schemes?
In iOS 9, Apple has made a change to the handling of URL schemes. Now you need to add "LSApplicationQueriesSchemes" key in plist and then add URLScheme you want to call.
In iOS 9.0, further restrictions were placed on the
canOpenURL
method -- for this method to work, you will need to add aLSApplicationQueriesSchemes
array to your app'sinfo.plist
file, and then add items for eachURL scheme
you will want to query. These schemes ascomgooglemaps
,comgooglemaps-x-callback
, and your own app's custom URL scheme.I have added following items in my info.plist.
Try with this sample code OpenInGoogleMaps-iOS.