-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement App-Bound Domains to enable Service Workers in WKWebView on iOS14+ #4122
Comments
Patching the But, enabling app bound domains is totally possible in Capacitor 3.0. If you add the domains to the It should be noted, however, that shipping a |
Thanks for the info @ikeith ! If I want to subclass Also for the |
@jgoux The subclass would not be part of a plugin but belong to the containing native app. So it would live alongside |
we are adding |
@ikeith you mentioned that Edit: This is where it was introduced I asked for clarification 7861b80#r756466909 |
@jgoux would it be possible for you to share your experience with live |
FYI, Ian no longer works at Ionic so he probably won't answer 😄. To answer your question, here's why we do not advise using a live
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Feature Request
Description
Since iOS14, it's possible to make service workers works in WKWebView by providing a list of trusted domains (up to 10).
These domains then gain support for service workers, which is invaluable for us as we plan to use
server.url
in production to distribute our PWA on iOS.Here are links describing the possibilities and features :
Platform(s)
Preferred Solution
I think being able to pass the domain list with capacitor's config file would be enough. Then capacitor could patch the
Info.plist
file with the domains, and build the WKWebView using the snippet provided in the first post I shared above :Alternatives
As of today I don't think there is any alternative to support service workers in WKWebView
Additional Context
The text was updated successfully, but these errors were encountered: