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

periodicSync needs "periodic-background-sync" permission #33692

Open
EmptyDreams opened this issue May 21, 2024 · 0 comments
Open

periodicSync needs "periodic-background-sync" permission #33692

EmptyDreams opened this issue May 21, 2024 · 0 comments
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@EmptyDreams
Copy link

EmptyDreams commented May 21, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/PeriodicSyncManager/register

What specific section or headline is this issue about?

Exceptions

What information was incorrect, unhelpful, or incomplete?

In chromium browsers, this feature also requires the "periodic-background-sync" permission, which throws an error if not obtained: "Permission denied. "

This permission is not available through code, and will only be granted if the user installs the website (with PWA enabled) on their computer.

I haven't tested it in other browsers, at least in edge and Chrome.

What did you expect to see?

I would like to add a description of the error to the error list.

Do you have any supporting links, references, or citations?

https://developer.chrome.com/docs/capabilities/periodic-background-sync#try_it

Google has mentioned here that the feature is available only after installing the app.

You can determine if you have permissions using this code: navigator.permissions.query({ name: 'periodic-background-sync' }).

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@EmptyDreams EmptyDreams added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 21, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label May 21, 2024
@Josh-Cena Josh-Cena changed the title The description of "periodicSync" is flawed. periodicSync needs "periodic-background-sync" permission Jun 17, 2024
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

2 participants