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

Custom URL schema in Xamarin.Forms for Android

$
0
0

Hello dear people here. I got an issue with one of my Xamarin.Forms apps. I want to register for a custom URL scheme. Its working fine under iOS but not so much under Android.

As far as i can see the only thing i need to do is to use the following attribute in my MainActivity:
[IntentFilter(new[] { Android.Content.Intent.ActionView }, DataScheme="mycustomurl", Categories = new[] { Android.Content.Intent.CategoryBrowsable, Android.Content.Intent.CategoryDefault })]

Afterwards i should receive the data whenever some URL with the scheme mycustomurl (ie: mycustomurl://do/whatever/i/want) is found. I am using the camera with an QR-Code to test my registration. Am i doing something wrong? The xamarin.forms documentation about app linking says that the DataScheme should be either http or https. But the Android docs do not state that you must choose between those 2.

Am i missing something?

Best regards
Michael


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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