Xamarin.forms: [Bug] [UWP] DisplayAlertAsync doesn't work in 4.5 pre 4

Created on 16 Feb 2020  路  19Comments  路  Source: xamarin/Xamarin.Forms

Description

DisplayAlertAsync only dims out the screen and does not display the dialog.

Steps to Reproduce

  1. Run the attached repro

Expected Behavior

Dialog Displayed

Actual Behavior

Screen is only dimmed out

Basic Information

  • Version with issue: 4.5 pre 4
  • Last known good version: 4.4
  • IDE:
  • Platform Target Frameworks:

    • UWP:

Screenshots

Reproduction Link

Attached
App3.zip

Workaround

Update UWP target version to 1903

4.5.0 alerts 2 regression high impact UWP bug

Most helpful comment

Any workaround ideas? Downgrading to XF 4.4 is not an option as I need to release the iOS app and the UIWebView deprecation is solved by 4.5.

Edit: Changing the UWP target version to 1903 worked.

All 19 comments

Oh no....

Normally I do not write such comments,

but how could it be, that the Bug is known 14 days for the pre-release and 4.5 is released with such a show stopper?!!!

We have just updated to 4.5 and now we can perform a rollback to 4.4. How many time is wasted all over the world because of such low quality updates!!!

I am not sure if Xamarin-Forms is the right platform for us. And this after 3 years of coding....

Regards,
Thomas.

Interestingly the alerts work fine in the control gallery on the 4.5 branch, but not in my repro app on the released 4.5

@PureWeen could this have anything to do with all the changes to nuget packaging you were working on?

This is still broken in 4.6.0-pre1 although it isn't listed on the known issues.

Seems to only happen when building the app in Release mode with Native Compilation enabled.

The original repro failed in debug, I haven't tried against anything later then the 4.5 release.

I'm having this fail in debug

Any workaround ideas? Downgrading to XF 4.4 is not an option as I need to release the iOS app and the UIWebView deprecation is solved by 4.5.

Edit: Changing the UWP target version to 1903 worked.

Same Problem here with 4.5.0.530

as somebody mentioned above, it could a problem with nuget packages, since i created a new project and it worked.
But on the real App, I have the same Issue

Hi Team,

Any progress in this issue ?

My workaround is to use Acr.UserDialogs nuget, works great on UWP, Android and iOS

Any workaround ideas? Downgrading to XF 4.4 is not an option as I need to release the iOS app and the UIWebView deprecation is solved by 4.5.

Edit: Changing the UWP target version to 1903 worked.

This worked for me.

I鈥檓 surprised that this kind of deal breakers still happen. We are used to it a few years ago, but fortunately these times they were rare.

Nevertheless, if they happen you should communicate on them (blog news). Only a few lines, perhaps with a workaround, can spare much time when debugging complex projects!!!

It鈥檚 not acceptable that we have to search for the information.

Doesn't work in 4.5.0.657 beside

Edit: Changing the UWP target version to 1903 worked.

I have the same issue with version 4.6.0.726 in debug mode

@Admiri92 what version of UWP are you targeting? Change it to 1903 and it should work.

@Admiri92 what version of UWP are you targeting? Change it to 1903 and it should work.

Oh yeah it worked, thanks :)

Hi @samhouts ,

The same issue occurs for framework Button control in Xamarin forms with latest package. Any estimated date for the fix. Kindly let us know.

Regards,
Devaraj S

It is still not working. Shouldn't this bug be prioritized. It is such a fundamental issue.

My workaround is to use Acr.UserDialogs nuget, works great on UWP, Android and iOS

I just tried using Acr.UserDialogs. On UWP, Toast(), Alert() and DatePromptAsync, TimePrompt() worked.

However:

  1. Loading() and Progress() does nothing.
  2. Login() crashes with same error as DisplayPromptAsync
  3. ActionSheet() crashes with same error as DisplayPromptAsync
  4. PromptAsync() hangs the app much like DisplayAlert()
    5) TimePrompt() hangs the app much like DisplayAlert()
Was this page helpful?
0 / 5 - 0 ratings