Initial support for allowing plugins to modify the Webview Configuration #2028
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solves #1097
Allows a plugin to modify the WKWebViewConfiguration as follows:
Drawbacks at the moment is nothing stops two conflicting modifications from conflicting, no simple way of warning the user that a plugin is overwriting another plugin, not sure if plugins are loaded consistently so it's hard to say if things will fail in consistent ways.
Not sure where to document this, seems it should be documented in the same place as
load
but I can't find where load is documented… Maybe It should be here? https://capacitor.ionicframework.com/docs/plugins/ios But that's a guide not really documentation…If someone from the capacitor team could let me know where to document it along with if they're interested in merging this / know of a better way to go about this please let me know then I'll finish it up and remove the draft status.