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

Open Webpage In Browser On Application Launch

$
0
0

I have a webpage that I need to launch in the default browser when my Xamarin.Forms application (android and iOS) is launched. I tried to implement this in both OnStart and OnAppearing. The problem is that when I include my code in either of those places, the loading time of the application can increase by as much as 30 seconds. Here is the code I'm trying to execute:

Device.OpenUri(new Uri("Put in a URL here."));

I have tried running this operation asynchronously also, but that didn't help. If I leave that code out of OnStart and OnAppearing and instead put it in a button, the application launches instantaneously, and the website opens immediately after a user hits the button. Any Suggestions?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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