iOS 9: -canOpenURL: failed for U

2015-09-17  本文已影响100人  oneDemo

AppAvailability Bug

appAvailability.checkreturns alway error callback.

iOS 9 Error in Xcode

-canOpenURL: failed for URL: "://" - error: "This app is not allowed to query for scheme "

Explanation

Apple changed thecanOpenURLmethod on iOS 9. Apps which are checking for URL Schemes have to declare these Schemes as it is submitted to Apple. The articleQuick Take on iOS 9 URL Scheme Changesexpains the changes in detail.

Solution: Add URL Schemes to the Whitelist

Simply open your app's .plist (usuallyplatforms/ios//-Info.plist)with an editor and add the following code with your needed Schemes.

eg:

上一篇 下一篇

猜你喜欢

热点阅读