Skip to content
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

Adopt admin PWA logic from Gutenberg #569

Open
2 tasks
westonruter opened this issue Jul 21, 2021 · 1 comment
Open
2 tasks

Adopt admin PWA logic from Gutenberg #569

westonruter opened this issue Jul 21, 2021 · 1 comment
Projects

Comments

@westonruter
Copy link
Collaborator

westonruter commented Jul 21, 2021

In Gutenberg 11.1, experimental support for admin PWA was introduced: WordPress/gutenberg#33102, WordPress/gutenberg#33310, WordPress/gutenberg#33216.

This allows for the WordPress admin to be installed to the homescreen separately for ease of access, separately from installing the frontend to the homescreen. The PWA plugin already is registering a service worker in the admin scope, but the admin is not installable as a separate PWA because there is no admin-specific web app manifest. This is what was proposed in #295 as mentioned in WordPress/gutenberg#33102 (comment).

Only one service worker can be registered for a given scope at a time. Since the purpose of the PWA plugin's service worker is to be extensible via a WP_Scripts-esque API, it is preferable to use instead of the service worker shim in Gutenberg which is required to trigger the add-to-homescreen prompt.

@westonruter
Copy link
Collaborator Author

Not a priority for 0.7 since the service worker is being removed from Gutenberg in WordPress/gutenberg#38810 which was causing a conflict.

@ankitrox ankitrox removed this from the 0.7 milestone Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Ongoing
  
To do
Development

No branches or pull requests

2 participants