xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] [UWP] DisplayAlertAsync doesn't work in 4.5 pre 4 #9606

Open bmacombe opened 4 years ago

bmacombe commented 4 years ago

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

Screenshots

Reproduction Link

Attached App3.zip

Workaround

Update UWP target version to 1903

justremotephone commented 4 years ago

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.

bmacombe commented 4 years ago

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

bmacombe commented 4 years ago

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

DuncWatts commented 4 years ago

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

xabre commented 4 years ago

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

bmacombe commented 4 years ago

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

DuncWatts commented 4 years ago

I'm having this fail in debug

xabre commented 4 years ago

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.

Lebapp commented 4 years ago

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

dillibabun commented 4 years ago

Hi Team,

Any progress in this issue ?

brandbogard commented 4 years ago

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

trevortirrell commented 4 years ago

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.

ZeProgFactory commented 4 years ago

I’m 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’s 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.

Admiri92 commented 4 years ago

I have the same issue with version 4.6.0.726 in debug mode

trevortirrell commented 4 years ago

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

Admiri92 commented 4 years ago

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

Oh yeah it worked, thanks :)

Devaraj-Sekar commented 4 years ago

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

john-larson commented 4 years ago

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

snowman745 commented 4 years ago

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()
webapps-rvcits commented 3 years ago

This concern is too much pending. Until now there is no valid resolution for this concern.

Lebapp commented 3 years ago

And thats how i left Xamarin... waiting for over a year for a solution on this

bmacombe commented 3 years ago

@Lebapp Try changing your UWP project to target 1903 or higher if you can. I'm not currently having any issues with DisplayAlert on UWP. I'm currently using 2004.