I am having a problem intercepting urls with android on codename one. I got it working fine for ios using the build hints ios.urlScheme and ios.plistInject. The build hint I used for android is:
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>
However android is not registering the text "mibrand://..." as a link and therefore it is just plain text, not clickable on any android devices. What am I doing wrong?
Here is my php code
<?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>
Then I set the link to share to mylink/share.php?ref=store&id=56
It doesn't work on ios either