-
Notifications
You must be signed in to change notification settings - Fork 984
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
breaking (UserAgent): Drop CDVUserAgentUtil and Implement for WKWebView #801
Conversation
Codecov Report
@@ Coverage Diff @@
## master #801 +/- ##
======================================
Coverage 74.2% 74.2%
======================================
Files 13 13
Lines 1849 1849
======================================
Hits 1372 1372
Misses 477 477 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can override the whole user agent if using wkWebView.customUserAgent = userAgent;
4cef3c9
to
1e62b8f
Compare
@jcesarmobile I re-added back the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a comment about something I think should not be removed.
Other than that, the changes look good to me.
4eb3e07
to
703fbdc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Went ahead and checked which plugins might be affected by this change. Although |
cordova-plugin-file-transfer is deprecated too about |
@jcesarmobile, thanks for the feedback! |
Hopefully we can still use these plugins and upgrade specifically file transfer plugin. Sure would love to see anyone with authority release a new version of Ionic WKwebview plugin. |
I'm in that situation. #783 and this one are making things complicated. I've spent a lot of time in the past replacing Now I'm trying to remove |
Motivation and Context
CDVUserAgentUtil
which handled managing the User Agent string forUIWebView
.WKWebView
.Description
CDVUserAgentUtil
.Testing
npm t
cordova platform add
cordova build
config.xml
Test Cases
AppendUserAgent
AppendUserAgent
w/OverrideUserAgent
OverrideUserAgent
Checklist