-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Selecting a link/button in a WebView MAUI app for IOS fails and unexpectedly shuts down app. #21157
Comments
Please provide a reproduction sample or at the very least some relevant code that you're using here. What is the link that you're trying to open? Are you triggering any code when a link is clicked? Based on just this information its pretty hard to diagnose what might be going on here. |
@jfversluis Sure, I have only changed one file to introduce the WebView aspect of my application. This works perfectly well for Android as I am able to click on links within the site such as navigation links, buttons, footer links, etc. On IOS platform my application crashes.
|
Verified this issue with Visual Studio Enterprise 17.10 Preview 2.0, can repro on .NET 8.0 iOS platform with sample project. |
@Zhanglirong-Winnie Is it possible for you to showcase an example of this implemented? |
Tested the same app on IOS 17.2 Simulator. Success. Everything works as expected. |
Please try using the sample project |
@Zhanglirong-Winnie Tested the sample project https://github.com/edgarssults/maui-ios-crash on IOS 17.4 Simulator and same errors occurred. Links caused a crash. However 17.2 works perfectly fine. |
I've got the same issue just by using a simple entry-control. It will crash with iOS 17.4 but not with iOS 17.2. |
@ovoelke that is probably due to #21057 @Hassan14072002 can you confirm which Xcode version you are using? |
@jfversluis Yes I am using Xcode version 15.3. Developing using iOS 17.2 for now. Does this mean if I roll back to 15.2 It should work just fine with iOS 17.4? |
Not sure, since other bugs that have been opened pre-date Xcode 15.3. So this might just be something on our side. If you don't mind you could try it. Xcodes (notice the s at the end) makes it easy to run multiple Xcode versions side-by-side and downgrade relatively easily. |
I also encountered this issue using Xcode 15.3(IOS 17.4).
|
I am pretty sure this will be fixed by #21436 Please try the current nightly version or wait for the next service release. If it still happens there, please open a new issue, thanks! |
Description
My application is a simple WebView of a website. It works fine on Android but in the IOS application any link/button causes the application to close unexpectedly.
Similar issues are found here.
#17923
#11544
(Please note that I am a student, and MAUI tech stack is very new to me so I would appreciate any help and sorry if I am asking about something easily fixed.)
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
17.2 Simulator
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: