androidurlbrowser

Open Android app from Chrome browser


I have been trying to make an app which opens automatically when a specific url is entered in the browser. To do so I've been using and intent filter within my manifest like so:

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

This works fine but only in my default web browser. When I use chrome the app doesn't open. I have also tried using firefox and it only opens my app with some but not all URLs such as abc://test.

Is there a way to get my app to open irrespective of the browser or URL being used please?


Solution

  • You could use the intent scheme, as explained here. The "Android Browser" may or may not support this, and you might have to rely on iframes. What FireFox does is anyone's guess, but personally I don't believe FireFox is a serious contender on the Android platform.