【发布时间】:2016-04-15 14:45:21
【问题描述】:
我希望我的应用程序能够在外部应用程序中打开时拦截 url。我设法使用带有url方案“http”的android.xintent_filter构建提示让它在android上运行。但是它不适用于ios。我完全按照此处的说明添加了此构建提示:http://www.codenameone.com/blog/intercepting-urls-on-ios-android.html ...
<key>CFBundleURLTypes</key> <array> <dict>
<key>CFBundleURLName</key>
<string>www.mibrand.co.za</string>
</dict> <dict> <key>CFBundleURLSchemes</key>
<array> <string>http</string> </array>
</dict> </array>
我什至尝试将 url 方案更改为“myapp”,因为我在某处读到 ios 不允许应用程序拦截 http url 方案,但它仍然不起作用。我做错了什么?
还有一点。我读到的关于 ios 和 http url 方案的内容是正确的。因为当我尝试将我的 android.xintent 构建提示中的 url 方案更改为“myapp”时,android 手机不会将文本作为链接,因此无法打开它们,所以我不得不使用 http url 方案。但是,如果这对 ios 不起作用,那么我就有点问题了。我该如何解决这个问题?
【问题讨论】:
标签: android ios url codenameone