Skip to content

Unable to open a new window inside web_view #149

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

Open
egbuna opened this issue Aug 6, 2018 · 0 comments
Open

Unable to open a new window inside web_view #149

egbuna opened this issue Aug 6, 2018 · 0 comments

Comments

@egbuna
Copy link

egbuna commented Aug 6, 2018

I am currently implementing a payment gateway(paypal) for an app using the web view plugin. problem we are currently facing is that when the web_view first loads with the initial url passed, it displays little info and a button. when this button is clicked it should open a new window. why i try to do this with the flutter app we get this
W/Web Console( 671): ppxo_button_pre_template_click at https://www.newWindowLink.com/api/checkout.js:260

for the native app we are able to open a new window when the button is clicked and everything works as expected..
and we were able to achieve this using
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);

i was able to go through the plugin code and found the above setting was not included.

@egbuna egbuna changed the title Unable to open a new window inside web_view plugin Unable to open a new window inside web_view Aug 6, 2018
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

1 participant