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

Setting of presentationStyle not working on iOS #213

Closed
panndoraBoo opened this issue Dec 9, 2019 · 3 comments
Closed

Setting of presentationStyle not working on iOS #213

panndoraBoo opened this issue Dec 9, 2019 · 3 comments

Comments

@panndoraBoo
Copy link
Contributor

panndoraBoo commented Dec 9, 2019

Hi there!
First, thank you so much for this plugin, it has been a lifesaver for me.
So I have found out the setting of the presentationstyle doesn't seem to work (at least in ios13) I think it is because it is set too late in the native ios code. If I set
webViewController.modalPresentationStyle = UIModalPresentationStyle.fullScreen
hardcoded in "SwiftFlutterPlugin.swift" at "open", it displays a fullscreen popup. I'm totally new to Swift so I am not really able to fix it in a correct way, but maybe it helps you to fix it :)

Original question:

I wanted to ask if there's an option to disable the closing of the in-app browser when the user swipes it down in ios. I want to disallow the user to close the in-app browser on its own and thought I handled it with removing the close button. But I found out by accidentally swiping the window down, it also closes/hides. It also doesn't fire the on close callback.

I've flutter_inappwebview: ^2.1.0+1 (but it also occurred on older versions) and am using the plugin on an iPad.

Please help. If the browser is closed by dragging, the whole app freezes and can't do anything anymore.

@panndoraBoo panndoraBoo changed the title Disable close InAppBrowser on swipe (iOs) !Setting of presentationStyle not working on iOS (13) Dec 10, 2019
@pichillilorenzo
Copy link
Owner

Ok! Thanks!

@pichillilorenzo pichillilorenzo changed the title !Setting of presentationStyle not working on iOS (13) Setting of presentationStyle not working on iOS Dec 18, 2019
@prajwalmr62
Copy link

@pichillilorenzo I'm also facing the same issue here. Can you please let me know in which release the fix is going to be?

@prajwalmr62
Copy link

This change is available from v 3.0.0

This was referenced Jul 6, 2020
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

No branches or pull requests

3 participants