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

DisplayPromptAsync not working in iOS 17.4 #24368

Open
pedrohdezj opened this issue Aug 21, 2024 · 7 comments
Open

DisplayPromptAsync not working in iOS 17.4 #24368

pedrohdezj opened this issue Aug 21, 2024 · 7 comments
Labels
area-controls-dialogalert DisplayAlert, dialog platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@pedrohdezj
Copy link

Description

The DisplayPrompt crash app when a call in codebehind a ContentView, only iOS 17.4, compile with Xcode 15.4, Xcode 15.2 not problem

Code example crash

var code = await Shell.Current.CurrentPage.DisplayPromptAsync("titulo", "message");

Relation with bug DisplayPromptAsync not working in iOS 17.4 #21131

Steps to Reproduce

Create a button inside a ContentView
Inside ContentView in codebehind call a

var code = await Shell.Current.CurrentPage.DisplayPromptAsync("titulo", "message");

App crash

Link to public reproduction project repository

No response

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

17.4

Did you find any workaround?

No response

Relevant log output

No response

@pedrohdezj pedrohdezj added the t/bug Something isn't working label Aug 21, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@jfversluis
Copy link
Member

You specified .NET 8.0.3 as your current version, is that correct? There have been service releases. If you use that, does that work? You will need those for Xcode 15.4 compatibility. If you can create a reproduction project we can rule these things out. Thanks!

@jfversluis jfversluis added platform/iOS 🍎 area-controls-dialogalert DisplayAlert, dialog s/needs-repro Attach a solution or code which reproduces the issue labels Aug 22, 2024
@MisterAcoustic
Copy link

MisterAcoustic commented Aug 23, 2024

I am not the original poster, but I see this issue as well.

IOS 17.5.1, VS 17.10.6, MAUI workload 8.0.71, ios workload 17.5.8018. Note that I have Xcode 15.2, which the OP thought worked, but doesn't work for me.

My code is equivalent to:
string result = await Application.Current.MainPage.DisplayPromptAsync("blah", "blah");

The result of the call is nothing at all - it fails silently in Release mode. In debug mode, it doesn't reach the next line of code. I added a try/catch block, and no exception occurs.

I don't have a repro project for you, but I would expect that if you drop that line into a sample project, that is all that you would need to see the issue.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Aug 23, 2024
@danilt2000
Copy link

I tested this in IOS 17.6.1 without Xcode for me everything work stable

@ninachen03
Copy link

Could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

@ninachen03 ninachen03 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Oct 10, 2024
@jfversluis jfversluis added s/needs-repro Attach a solution or code which reproduces the issue and removed s/needs-attention Issue has more information and needs another look labels Oct 14, 2024
Copy link
Contributor

Hi @pedrohdezj. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Oct 21, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-dialogalert DisplayAlert, dialog platform/iOS 🍎 s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants