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

I want to make window.open in a web page work on ios #797

Closed
nrikiji opened this issue Oct 9, 2020 · 7 comments
Closed

I want to make window.open in a web page work on ios #797

nrikiji opened this issue Oct 9, 2020 · 7 comments

Comments

@nrikiji
Copy link

nrikiji commented Oct 9, 2020

Plugin version 4.0.0 has changed to use WkWebview.

This caused the javascript code window.open in the webpage to not work.

Is there any way to work around this?

@jcesarmobile
Copy link
Member

it's not related to using WKWebView, window.open was removed on purpose, see #600

You can still get the old behavior by doing this, but it's not recommended.
https://github.com/apache/cordova-plugin-inappbrowser#windowopen

@nrikiji
Copy link
Author

nrikiji commented Oct 20, 2020

@jcesarmobile

Thank you.

This was talking about the window.open embedded in the webpage.

I believe that this needs to be addressed as shown on the page below. Is this behavior also intentional?

https://stackoverflow.com/questions/50559666/window-open-is-not-working-in-wkwebview ...

@jcesarmobile
Copy link
Member

in that case, can you provide a sample app?

@nrikiji
Copy link
Author

nrikiji commented Oct 20, 2020

This is the case with the html I tried

<button onclick="window.open('myapp://')">open myapp</button>

@nrikiji
Copy link
Author

nrikiji commented Oct 21, 2020

Supplementary. I don't think this Html will work either.

<a href="・・・" target="_blank">Linke</a>

@acran
Copy link

acran commented Dec 9, 2020

I opened issue #830 which may be a duplicate of this one, @nrikiji could you check if we're referring to the same issue?
If so @jcesarmobile you can find a sample app here: https://github.com/acran/cordova-inappbrowser-mailto-bug-sample

@jcesarmobile
Copy link
Member

closing in favor of #830 since looks the same and that one has a sample app

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