-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Comments
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:
|
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! |
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: 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. |
I tested this in IOS 17.6.1 without Xcode for me everything work stable |
Could you provide us with a sample project so we can investigate it further? Looking forward to your reply! |
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. |
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. |
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
The text was updated successfully, but these errors were encountered: