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

added support for WKWebView #12

Merged
merged 1 commit into from
Jan 14, 2018
Merged

added support for WKWebView #12

merged 1 commit into from
Jan 14, 2018

Conversation

ericdesa
Copy link
Contributor

This PR solved the issue "#4 Crashes with Ionic 3 and WK WebView"

The problem was that WKWebView respond to [WKWebView evaluateJavaScript:completionHandler:] and not [UIWebView stringByEvaluatingJavaScriptFromString:]

So I added a function that select the right implementation.

The main drawback is that WKWebView JS Evaluation is async, so I had to use a callback instead of a simple return.

@mrchandoo mrchandoo self-assigned this Jan 14, 2018
@mrchandoo mrchandoo merged commit f1dd735 into mrchandoo:master Jan 14, 2018
@Bharat-34
Copy link

By adding function application is not crashing in ios 10 but getting blank white page

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

Successfully merging this pull request may close these issues.

3 participants