-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug: Browser plugin in iOS-popover presentation freezes app after dismiss #2711
Comments
thanks @jcesarmobile that was quick! as far as i see, you disabled the popover-style for everything but iPads? On iPhones i used this to achieve the iOS13 modal style. I manually copied your changed code without that restriction, and it works fine on iPhones. |
In which devices does the popover works? I thought it was iPad only, doesn’t show different Style on my iPhone X |
on iPhone it opens an animated modal card (iOS13 style) instead of a fullscreen window |
Ah, my device is on iOS 12. |
Can you test this code with your change in a real iPhone?
The Browser window should close itself after 5 seconds. The point of the tmpWindow is because some modal presentations were frozing the javascript execution, so the close was never called. |
i don't see any freezing on a real iPhone iOS13. |
@jcesarmobile do you want a new issue for this (enabling popover on iOS13-iPhone)? |
on iOS14 it crashes you open + dismiss + open again works fine when using fullscreen |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Capacitor Version: 2.0.0
Affected Platform(s)
Current Behavior
If opening an URL via the Browser plugin on iOS (13.4) with
presentationStyle: 'popover'
, the app freezes after dismiss of the Browser modal.The Safari remote inspector shows the opened webview and in can be inspected after dismissal. This indicates that something is not properly destroyed after dismiss.
presentationStyle: 'fullscreen'
does not have this issue.Expected Behavior
Remove the Webview / Browser-modal completely after dismiss of the popover
The text was updated successfully, but these errors were encountered: