工作,我使用Ti.Platform.canOpenURL()
打开另一个应用程序,它的iOS 10.Titanium.Platform.canOpenURL不上IOS 10
之前工作得很好,但它并没有在iOS上10及更高版本。
如何解决这个问题?
工作,我使用Ti.Platform.canOpenURL()
打开另一个应用程序,它的iOS 10.Titanium.Platform.canOpenURL不上IOS 10
之前工作得很好,但它并没有在iOS上10及更高版本。
如何解决这个问题?
您使用Ti.Platform.canOpenURL('<my-url>')
来检查URL。要打开该网址,您需要改为使用Ti.Platform.openURL('<my-url>')
。
因此,您需要将以下key
添加到tiapp.xml
文件:
<ios>
<plist>
<dict>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>[Your Project Name]</string>
<string>[Your Second Project Name (if any)]</string>
</array>
</dict>
</plist>
</ios>
希望这有助于。
干杯。
谢谢,但我需要使用Ti.Platform.canOpenURL来检查下一个应用程序是否先安装。 – jack
请确保您的plist内部已正确配置了url方案:http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html –