Reputation: 211
I'm adding a custom URL using the android:scheme
in my intent filter as follows
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="myscheme" android:host="myhost" />
</intent-filter>
I'm sending the phone an email with the following in the contents:
myscheme://myhost?data=whatever
but the above link shows up as plain text, i.e. not as a link.
Upvotes: 10
Views: 5037
Reputation: 1336
Link to your website and then redirects to "myscheme://myhost?data=whatever"
Upvotes: 3
Reputation: 33941
You need to send your email in HTML, with your link in an
<a>
tag:<a href='myscheme://myhost?data=whatever'>Launch
App
Automatic link parsing is almost certainly only done with links starting with
http://
orwww.
, and it varies from email client to email client anyway.
Ok, I tried that and it didn't work. The only solution I can offer is to actually use http://
with a link going to your site, to a specific app page, with the same GET parameters. You can register an intent-filter to intercept this with the app and handle it appropriately, and if the user doesn't have the app, the web page instructs them to install it.
Upvotes: 4