Loading - Erroring "Is your activity running"
Mysame opened this issue · 4 comments
Toasts, confirm, alert all seem to work, but Loading gives the above error.
Still on version 1.4.0, haven't updated to net8, but as far as I can see there's no functional differences between versions.
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseUserDialogs(true, () =>
{
})
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
return builder.Build();
}
Testing locally on an Android device, the above code firing the events happens in a button Click event
Very little info, please add repro project
@Mysame without repro project cannot help you. Sample, which is in this repo works on a real device as well as on emulator.
Closing as you didn't provide repro project. When you provide repro project, I will reopen it
In Android version <= 10 is needed to call UserDialogs.Instance.HideHud() when the app go to background because is the only method to clean the activity attached th the hud dialog and force to recreate it.