Skip to content
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

fix(ios): don't use the tmpWindow on popover presentation #2714

Merged
merged 1 commit into from
Apr 7, 2020

Conversation

jcesarmobile
Copy link
Member

the tmpWindow doesn't work fine when using popover presentation, and since popover presentation doesn't freeze the javascript, changed the code to not use the tmpWindow when the presentation is popover

closes #2711

@jcesarmobile jcesarmobile merged commit 327ffc5 into ionic-team:master Apr 7, 2020
@jcesarmobile jcesarmobile deleted the popover-fix branch April 7, 2020 13:54
@@ -23,7 +23,7 @@ public class CAPBrowserPlugin : CAPPlugin, SFSafariViewControllerDelegate {
self.vc = SFSafariViewController.init(url: url!)
self.vc!.delegate = self
let presentationStyle = call.getString("presentationStyle")
if presentationStyle != nil && presentationStyle == "popover" {
if presentationStyle != nil && presentationStyle == "popover" && UIDevice.current.userInterfaceIdiom == .pad {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean that popover presentation on iPhone is gone? is there a reason for this? i liked the iOS13 modal-style of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Browser plugin in iOS-popover presentation freezes app after dismiss
3 participants