![](/img/trans.png)
[英]canOpenURL returning true for custom URL scheme even if app is not installed
[英]'canOpenURL' returning true even when I don't have google maps in my iOS device?
我的应用程序中装有GoogleMaps SDK,但设备上没有Google Maps iOS应用程序,但UIApplication.shared.canOpenURL(URL(string:"comgooglemaps://")!)
返回true
而不是false
。
我该如何解决这个问题?
任何帮助。
是。 它可以。
如果任何已安装的应用声称可以处理url方案'comgooglemaps'
应用程式的网址没有一对一的固定关系。 任何应用都可以声明任何协议
您不能真正避免这种恐惧。 如果您使用网址则不会。 您可以查看DocumentControllers或ActivityItems与用户互动分享
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.