Google地图网址方案不适用于iOS 9 [英] Google Maps URL scheme not working on iOS 9
本文介绍了Google地图网址方案不适用于iOS 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下URL方案适用于以前的版本,但不适用于iOS 9:
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
在iOS 9上做了什么改变,阻止应用程序使用URL方案打开其他应用程序?
Did something change on iOS 9 that prevent apps from opening other apps using URL schemes?
推荐答案
在iOS 9中,Apple对URL方案的处理进行了更改。
现在您需要在plist中添加LSApplicationQueriesSchemes键,然后添加您想调用的URLScheme。
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.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
</array>
这篇关于Google地图网址方案不适用于iOS 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文