0

我对自定义 URL 架构有疑问。我想我已经正确配置了它,但是如果它关闭它不会打开应用程序,如果应用程序处于“后台”(即我可以看到它双击主页按钮)当我点击应用程序时打开应用程序关联。

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.test</string>
<key>CFBundleURLSchemes</key>
<array>
<string>test</string>
<string>test1</string>
</array>
</dict>
</array>

链接是

<a href="test://this_is_a_test">TEST</a>

其他应用程序工作正常,但不是我的。

谢谢, 马特奥

4

1 回答 1

0

return NO;在你的- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation方法的任何地方?

除了返回之外,我想不出任何会导致它无法打开的东西NO

于 2011-10-16T14:28:19.757 回答