Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Open my app from a url and read value from that url

$
0
0

Hi,

I want to open my app when tapping on a url and read the value appended to the url. For example, I need to get string "123" in my code by opening my app with url "myapp://open?code=123".

I add some code to manifest inside application tag :

<activity android:name="com.companyname.appname.MainActivity" android:label="appname">
        <intent-filter>
            <data android:scheme="https" android:host="appname" />
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
        </intent-filter>
    </activity>

I am testing this feature by tapping a demo url from my phone. But always open google chrome when tapping the demo url.
Thanks in advance :)


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>