【发布时间】:2016-08-28 07:28:49
【问题描述】:
我在使用代号为 1 的 android 拦截 url 时遇到问题。我使用构建提示 ios.urlScheme 和 ios.plistInject 让它在 ios 上运行良好。我用于 android 的构建提示是:
android.xintent_filter=<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="mibrand" /> </intent-filter>
但是 android 没有将文本“mibrand://...”注册为链接,因此它只是纯文本,在任何 android 设备上都不可点击。我做错了什么?
这是我的 php 代码
<?php
$store = $_GET['ref'];
$id = $_GET['id'];
$link1 = "mibrand://";
$link1 .= $store;
$link1 .= "/";
$link1 .= $id;
$link2 = "http://www.mibrandapp.com";
?>
<a href="<?php echo $link2 ?>"></a>
<a href="<?php echo $link1 ?>"></a>
然后我将要分享的链接设置为 mylink/share.php?ref=store&id=56
在ios上也不能用
【问题讨论】:
标签: android android-intent codenameone