CG Seb
CG Seb
CC#
Created by CG Seb on 4/29/2024 in #help
MAUI Popup at first start
Hi everyone, I created a MAUI app for windows (later mac), I would like to show a GCU popup at the first launch of the app. I tried to use the OnAppearing() of my Home page, but since it's not an async method, it doesn't wait for my popup. The popup only show if I go to another page and then go back to the home page 😦
C#
protected override void OnAppearing()
{
bool GCUAccepted = Preferences.Get(Constants.GCU_ACCEPTED_KEY, false);
if (!GCUAccepted)
{
GCUPopupPage page = new();
popupNavigation.PushAsync(page);
}

viewModel.LoadRecentsCommand.Execute("");
viewModel.LoadFavoritesCommand.Execute("");
base.OnAppearing();
}
C#
protected override void OnAppearing()
{
bool GCUAccepted = Preferences.Get(Constants.GCU_ACCEPTED_KEY, false);
if (!GCUAccepted)
{
GCUPopupPage page = new();
popupNavigation.PushAsync(page);
}

viewModel.LoadRecentsCommand.Execute("");
viewModel.LoadFavoritesCommand.Execute("");
base.OnAppearing();
}
Do you guys have any Idea on how to do this please?
2 replies
CC#
Created by CG Seb on 4/18/2024 in #help
C# MAUI .NET8 self-signed certificate
No description
3 replies