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
I have a Xamarin app where I show dialogs in a few places. By coincidence we discovered that showing a dialog right after the app has been installed doesn't work. I'm pretty sure that has worked before....
Steps to Reproduce
In an app create a simple dialog and a button to open it using code like this.
var dlg = new ConfirmDialog
{
Title = AppResources.ConfirmCancelLoginHeading,
Message = AppResources.ConfirmCancelLoginText,
OkButton = AppResources.ConfirmCancelLoginContinueButton,
CancelButton = AppResources.ConfirmCancelLoginCancelButton
};
return await Dialog.Instance.ShowAsync(dlg);
In this case it is a simple XAML dialog looking like this:
using AiForms.Dialogs.Abstractions;
namespace Angler.Views.CustomControls
{
public partial class ConfirmDialog : DialogView
{
public string Title { get; set; }
public string Message { get; set; }
public string OkButton { get; set; }
public string CancelButton { get; set; }
public ConfirmDialog()
{
InitializeComponent();
}
void OkButtonClicked(object sender, System.EventArgs e)
{
DialogNotifier.Complete();
}
void CancelButtonClicked(object sender, System.EventArgs e)
{
DialogNotifier.Cancel();
}
}
}
The ShowAsync() method just never returns...
Now close the app and start it again - and the dialog shows as expected!
Close and remove the app. Install it again - and the dialog doesn't show...
Expected Behavior
That the dialog was shown also right after the app is installed.
Actual Behavior
Code doesn't seem to ever return from the "ShowAsync()" method
Platforms
[X ] Android
iOS
Basic Information
AiForms.Dialogs 1.0.16
Xamarin.Forms 5.0.0.2545
Android Support Library Version:
Affected Devices:
Emulators and phones
However, it seems to work Ok on a simulator running API 33. Fails on API 31 and 29 (and others "old").
The project has Android target set to Android 12.1 (API 32)...
Screenshots
Reproduction Link
Workaround
Only for the confirmation dialogs - I simply don't ask when Android and app has just been installed. But doesn't work for other dialogs.
The text was updated successfully, but these errors were encountered:
Description
I have a Xamarin app where I show dialogs in a few places. By coincidence we discovered that showing a dialog right after the app has been installed doesn't work. I'm pretty sure that has worked before....
Steps to Reproduce
In this case it is a simple XAML dialog looking like this:
with this "code behind":
ShowAsync()
method just never returns...Expected Behavior
That the dialog was shown also right after the app is installed.
Actual Behavior
Code doesn't seem to ever return from the "ShowAsync()" method
Platforms
Basic Information
Emulators and phones
However, it seems to work Ok on a simulator running API 33. Fails on API 31 and 29 (and others "old").
The project has Android target set to Android 12.1 (API 32)...
Screenshots
Reproduction Link
Workaround
Only for the confirmation dialogs - I simply don't ask when Android and app has just been installed. But doesn't work for other dialogs.
The text was updated successfully, but these errors were encountered: