Can I launch my cross platform app via not http(s) URL?

183 Views Asked by At

In my Xamarin.Forms application in AndroidManfiest.Xml I have created my custom own scheme and sending parameters through it and everything is fine but the problem is I open the application via html file has <a href="myapp://my_parameters">Open my App</a> but I can't open that URL(myapp://my_parameters) via Android messages app, FB messanger app nor etc.

So is there a way to do that? open my app via a custom URL from anywhere?

Or must I use real website to deploy my URL on it and send my custom scheme URL from there?

P.S: I've noticed big companies like Facebook, Uber and etc send the message with an http URL.

1

There are 1 best solutions below

3
Lucas Zhang On

You can refer the following code

Android.Net.Uri uri = Android.Net.Uri.Parse("myapp://my_parameters");
Intent intent = new Intent(Intent.ActionView, uri);
StartActivity(intent);