You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/16 17:30:06 UTC

[GitHub] [cordova-ios] msmtamburro opened a new issue #900: CDVWebViewEngine needs a way to set the websiteDataStore of its configuration

msmtamburro opened a new issue #900:
URL: https://github.com/apache/cordova-ios/issues/900


   # Feature Request
   
   ## Motivation Behind Feature
   <!-- Why should this feature be implemented? What problem does it solve? -->
   
   A websiteDataStore can both be configured (e.g., set to non-persistent) and re-used (e.g., in other web browser components).  
   ## Feature Description
   <!-- 
   Describe your feature request in detail
   Please provide any code examples or screenshots of what this feature would look like
   Are there any drawbacks? Will this break anything for existing users? 
   -->
   
   The best way to handle this would be to optionally expose the configuration, as the "Cordova settings" model may not suffice.  For example, if you only added a Cordova setting for persistent vs. non-persistent, this would still not give us a handle to the websiteDataStore for re-use elsewhere.  More specifically, allowing Cordova to use an existing websiteDataStore that was created and used prior to Cordova reaching its `createConfigurationFromSettings` method is important in my case.  You could accomplish this by providing a protocol that allows us to return a websiteDataStore.
   
   ## Alternatives or Workarounds
   <!-- 
   Describe alternatives or workarounds you are currently using 
   Are there ways to do this with existing functionality?
   -->
   
   When using the CDVWKWebViewEngine (the old plugin), it was possible to override createConfigurationFromSettings to customize portions of the configuration that were not exposed through Cordova settings.  With the migration to CDVWebViewEngine, its private status prevents this type of customization without resorting to swizzling. 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org