Hi everyone!
I'm making an application that implements a payment gateway. When a payment is completed the payment provider returns a result url. This url can be set to be a custom url scheme such as: myapp://. For android and ios dealing with these links can be set in the androidmanifest and plist respectively.
Like so:
<activity android:icon="@drawable/Icon" android:label="RedirectActivity" android:name="walletapp.RedirectActivity"> <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:scheme="myapp" /> <del></del></intent-filter> </activity>
After which the activity specified in the manifest(RedirectActivity) will be started when a link with the custom scheme is clicked(directed to?).
So how would I go about implementing this in a xamarin.forms application(pcl)?