Based on Apple documentation WKWebView supports webSQL.

Hello,

One of the components of our application uses UIWebView and it's support of webSQL.
Now, We are upgrading the app according to Apple's guidelines and switching from UIWebView to WKWebView. 

Based on Apple documentation WKWebView supports webSQL.

https://developer.apple.com/documentation/webkit?language=objc
WKWebsiteDataStore
A WKWebsiteDataStore object represents various types of data used by a chosen website. Data types include cookies, disk and memory caches, and persistent data such as WebSQL, IndexedDB databases, and local storage."

But we were unsuccessful migrating to WKWebView and getting webSQL to work.

My Native code is really simple:
 

WKWebViewConfiguration *conf = [[WkWebViewConfiguration alloc] init]  
self.webView = [[WkWebView alloc] initWithFrame:self.view.bounds configuration:conf];     
[self.webView loadRequest[NSUrlRequest requestWithURL:[NSURL URLWithString:@"......"]]];  
 
And our javascript  
 

 var db = window.openDatabase('local_db', '1.0', 'local database', 200 * 1024 * 1024);

We always get the following error message "Error: SecurityError: DOM Exception 18"...


Can you please help us on how to use webSQL under WKWebView in our application, 
webSQL support was removed on iOS 13, so that documentation was probably written before iOS 13 was out and they never updated it when it was removed.
Based on Apple documentation WKWebView supports webSQL.
 
 
Q