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

api.ServiceWorkerRegistration.getNotifications - Ony return some new notification #24536

Closed
dzungle054 opened this issue Sep 26, 2024 · 1 comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@dzungle054
Copy link

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

When use ServiceWorkerRegistration: getNotifications() method, it only return some new notifications, old notification of yesterday can not get and when click on it, nothing happen. This error happen with PWA on chrome in android device.

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

My expect is there can get all notifications.

Did you test this? If so, how?

I test in web PWA on chrome for android

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications

MDN metadata

MDN page report details
  • Query: api.ServiceWorkerRegistration.getNotifications
  • Report started: 2024-09-26T03:03:24.210Z
@queengooborg
Copy link
Collaborator

This is probably something that's beyond BCD's scope to document, but my best guess based upon the MDN article is that your service worker had been re-registered, based upon: "Notifications created by one service worker on the same origin will not be available to other active service workers on that same origin."

@queengooborg queengooborg added the data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Sep 26, 2024
@queengooborg queengooborg closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api 🐇 Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

2 participants