Open joeflateau opened 2 years ago
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.
Please see the Contributing Guide for how to create a Code Reproduction.
Thanks! Ionitron 💙
added a repro: https://github.com/joeflateau/cap-scenes-browser
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
@capacitor/ios@3.0.1
for the project I'm working on.In a Scenes-based application (ie: any app that uses CarPlay)
@capacitor/browser
'sBrowser.open({ url })
does not work because they underlyingCapacitorBridge.presentVC
does not work.Expected: call to Browser.open should open/animate-in a SFSafariViewController.
Actual: call to Browser.open appears to do nothing. I did some digging and what happens is the SFSafariViewController is presented on a UIWindow that is not in the view hierarchy.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
Repro: https://github.com/joeflateau/cap-scenes-browser