mercredi 2 décembre 2015

Prevent the browser from firing intents

On my website there is a section that can deep link to content within my app. In my app I have the following intent-filter in the manifest so that the user will have the option of deep linking to my app when they are on the website.

<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:host="www.mydomain.com" android:pathPattern="/app/.*" android:scheme="http"/>
</intent-filter>

In the event that I suddenly need to block this deep linking from taking place, how can I do so without changing the app? I know I could just remove the intent-filter from the app, but that then requires pushing an update to Google Play Store and then the user needs to install this update.

I know I could also just change the URL of my web pages but that would mess up my SEO. Is there some HTML or PHP code I could put on my site to block the firing of intents?




Aucun commentaire:

Enregistrer un commentaire