Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert not shown in OnAppearing method #19369

Closed
Legends opened this issue Dec 12, 2023 · 1 comment
Closed

Alert not shown in OnAppearing method #19369

Legends opened this issue Dec 12, 2023 · 1 comment
Labels
platform/windows 🪟 t/bug Something isn't working

Comments

@Legends
Copy link

Legends commented Dec 12, 2023

Description

I have overriden the OnAppearing method in MainPage.xaml.cs:

protected override async void OnAppearing()
{
	try
	{
		await this.DisplayAlert("Title", "Message", "OK");
		...
		..
		.
		}
	catch (Exception ex)
	{
		throw;
	}
}

Two things:
1.) The alert is not shown
2.) Perhaps 1.) is ok, because probably called too early in the page lifecycle? But shouldn't there be a way to inform the user, that it is too early to call the DisplayAlert method at this stage?

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

8.0.3

Affected platforms

Windows

Affected platform versions

Android 11, Win 10.0.19045 Build 19045

Did you find any workaround?

No response

Relevant log output

No response

@Legends Legends added the t/bug Something isn't working label Dec 12, 2023
@PureWeen
Copy link
Member

Duplicate of #12970

@PureWeen PureWeen marked this as a duplicate of #12970 Dec 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants