我有两个 iOS 应用程序。
当我尝试使用 window.open(url)
打开另一个应用程序时收到此错误.它在 iOS 10 上停止工作,但在早期版本(例如 9.x)上工作。
url = "mySecondApp://#params";
在第一个应用配置中:<access origin="mySecondApp://*" launch-external="yes" />
但我可以打开标准应用程序(例如 itms-apps:*
)
最佳答案
尝试更新应用程序的 Info.plist,方法是添加数组类型的 LSApplicationQueriesSchemes 键和字符串类型的项,其中包含“mySecondApp”值。 我发现我需要将自定义 URL 方案列入白名单,以便我的 Cordova 应用程序的链接(在 iOS 8 上工作)在 iOS 10 上工作。
关于javascript - Cardova IOS 10. "Failed to load webpage with error: The URL can’ t被显示”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39534865/