[TIMOB-26095] iOS 12: UIWebView deprecated in favor of WKWebView
GitHub Issue | n/a |
Type | Story |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-12-19T00:51:43.000+0000 |
Affected Version/s | Release 7.4.0 |
Fix Version/s | Release 8.0.0 |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2018-06-05T18:08:49.000+0000 |
Updated | 2019-03-25T03:30:06.000+0000 |
Description
The deprecation is here! Since WKWebView launched in iOS 8, it now officially replaces the UIWebView, bringing better performance and scalability. We need to move our Ti.WKWebView module into the core, removing the Ti.App.fireEvent functionality if not bridgeable and make sure to get as much backwards compatibility out of it as possible.
Attachments
File | Date | Size |
test.html | 2018-07-11T07:25:33.000+0000 | 966 |
When using the Ti.WKWebView module I noticed there's no support for requestHeaders. I hope this will be supported in the upgrade.
PR - https://github.com/appcelerator/titanium_mobile/pull/10169 Test cases - Find at https://gist.github.com/vijaysingh-axway/2b9931d0dea0fb491425c6d1592c3120
Please also implement the cookie changes - NSHTTPCookie is not compatible with the WKWebView. Instead, use the
WKHTTPCookie
API for iOS 11+ and the fallback mentioned [here](https://stackoverflow.com/questions/26573137/can-i-set-the-cookies-to-be-used-by-a-wkwebview) for iOS < 11.FR Passed. Waiting for merge to be enabled.
PR Merged.
Closing ticket, improvement verified in SDK Version 8.0.0.v20181219104517 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10169
Can't see any test where local images are being loaded? Opened a new ticket about this here: AC-6140 Also would be really good to see advanced examples of the WebView included in the KitchenSink 2 project.
Looks like it doesn't support Ti.UI.SIZE for height per: Aptana StudioAPSTUD-8523
[~cornflakesuperstar] I recommend you open this as a new issue. Good catch.