I\'m trying to run this code:
GetRepsButton.Command = new Command(async () => { var url = @\"https://url\"; HttpC
Use Device.BeginInvokeOnMainThread
Device.BeginInvokeOnMainThread(() => { //your code });
https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.device.begininvokeonmainthread?view=xamarin-forms