You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Porting a Xamarin app to MAUI. We had an RG popup that would get shown inside OnAppearing() of the main page of the app. After porting to MAUI, this gives a null ref exception, unless I put the mopup PushAsync() inside Device.BeginInvokeOnMainThread.
Update another way around this is to add a delay before the PushAsync. 1 second was sufficient on iOS, but on windows I've had to add a 3 second delay.
Title + code below explain the issue.
Porting a Xamarin app to MAUI. We had an RG popup that would get shown inside OnAppearing() of the main page of the app. After porting to MAUI, this gives a null ref exception, unless I put the mopup PushAsync() inside Device.BeginInvokeOnMainThread.
Here is a demo application on github that illustrates the bug. That link has the relevant code excerpt + a pic of the error message in the readme.
VS 2022 v17.9.0
Mopups 1.3.0
The text was updated successfully, but these errors were encountered: