I am trying to set the quota available for IndexedDB in a WKWebView on iOS. I am prepared to use a private API if I need to. I have tried implementing the following delegate:
@interface MyUIDelegate : NSObject - (void)_webView:(WKWebView *)webView decideDatabaseQuotaForSecurityOrigin:(WKSecurityOrigin *)securityOrigin currentQuota:(unsigned long long)currentQuota currentOriginUsage:(unsigned long long)currentOriginUsage currentDatabaseUsage:(unsigned long long)currentUsage expectedUsage:(unsigned long long)expectedUsage decisionHandler:(void (^)(unsigned long long newQuota))decisionHandler; @end
But it never seems to get called. How can I do this? I am interested in both reducing the quota and increasing it from the default.