-
Notifications
You must be signed in to change notification settings - Fork 221
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
How to replace UIWebview into Wkwebview #187
Comments
Bump |
Is there a solution for this? |
1 similar comment
Is there a solution for this? |
Is there a solution for this , getting themeable browser to use the wkwebview? |
he following build commands failed: This is the error that am getting when doing a build with themeablebrowser plugin installed for ios after updating to wkWebView |
https://forum.ionicframework.com/t/ionic-4-uiwebview-references/179170/3 Add 1 line to config.xml:
|
We already implemented that in our config.xml.The problem is when we have the themeable browser added to plugins , the build faills with "`unknown type name 'CDVUIWebViewDelegate' since the themeablebrowser has not been updated to use WkWebView. The question is, How can we update the themeable browser to use WkWebView instead of UIWebView, or which other implementation of showing a browser window with custom buttons i.e with listeners to dropdown custom menu? |
@chegewara @anthonnyc2 @alphagamer7 @rigorin we have fixed the problem... @Moseskhan will share the results... hope it helps... thanks to @Appswage ... from Upwork!!! ... https://www.upwork.com/freelancers/~01bc53d88b1c329db5 .... |
To get this working we edited files in plugins/cordova-plugin-themeable/src/ios Replace the files with the attached files. |
Thanks for sharing :) |
The updates was specific and surgical to force WKNavigationDelegate to fire when a page is loaded and for the current URL to be captured. Other delegates still require implementation if needed. Please also note that UIWebView delegation will no longer work so the specific fix found in the files attached above are directed at WKWebView users only. |
Thanks for sharing the solution it will surely help. |
@Moseskhan thanks for sharing the code. But I have an issue, it seems like the URL is not getting update correctly. I have some listeners when 'loadstart' and 'loadstop', so I track the URL and is returning some weird values. Where can I check/fix that? |
Thank you for sharing the source code. Not fully tested, but if you are interested please see my fork. |
@NohohonNohon thanks for sharing code but this plugin is not working with cordova ios 6.1.0 can u please help |
Can anyone help on this plugin please I am using cordova 6.1.0. Having issues with user agent |
@chaitanyagupta76 |
@chaitanyagupta76 -same issue, got any solution? |
No description provided.
The text was updated successfully, but these errors were encountered: