Run app with custom gmail URI remove links

I am trying to create a custom URI scheme so that when the user clicks on it, my application will be launched and read any options needed from this link.

This works fine on iOS as the native email client maintains links there, but on Android I am having problems.

If I send an email with a link, for example MyCustomURI://test

, the link will be removed. This happens in the gmail web client as well as the gmail mobile app.

I want users to open the app from email without going to any intermediate server, so making an HTTP request is not an option.

Please let me know if there is a way to achieve this.

+3


source to share


1 answer


I would suggest using "http" as the schema so the link will not be removed. But the downside is that it will prompt you for your application or browser. You can also add host, path or pathPrefix if needed.



<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <data android:scheme="http" />
    <category android:name="android.intent.category.BROWSABLE" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

      

0


source







All Articles