-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[webview_flutter] iOS Camera Access Causes App Crash #163549
Comments
Hi @Keddib, the url you have provided is not accessible. Please provide a publicly accessible url we can demo with. Also, do you have the camera permissions for iOS in your |
Actually I was running the demo app locally. I will update the link with this demo app. it's a simple react app that request access to camera.
also added this to Podfile
|
Reproducible using the code sample provided in the original post above. I tested a native webview app and the camera worked as expected. Considering the error seems related to pigeon, the issue might be how we are communicating with the native side. Tested on my iPhone XS running iOS 18.3.1 Labeling for further investigation flutter doctor -v
|
I have the same problem with the latest version of Flutter. IOS is crash when WebView works |
The old Flutter works well, and the new Flutter seems to have an error |
I have the same issue too. I guess it happens when a certain module version is forced to change as the sdk version goes up. I'll have to fix it and use it for now 😢 |
What package does this bug report belong to?
webview_flutter
What target platforms are you seeing this bug on?
iOS
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
Steps to reproduce
1- Create a Flutter app and install webview_flutter
2- Configure WebView to load a url of a simple App that access camera (I used Vite React App with one page accessing camera after abutton click)
3 - load the app and try to access the camera
4 - the app crashes when attempting to access the camera on IOS
!! Both on Real device and simulator
Expected results
The web application should be able to access the camera on both iOS and Android platforms after permissions are granted, allowing for camera functionality within the WebView.
Actual results
On Android: Camera access works correctly
On iOS: App crashes when attempting to access the camera
Code sample
Code sample
Screenshots or Videos
Screenshots / Video demonstration
[Upload media here]
Screen.Recording.2025-02-18.at.18.08.15.mov
Logs
Logs: I see logs only on xcode
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: