N
Nuxt7mo ago
dreamland

@vite-pwa/nuxt clients.matchAll not working in ServiceWorker with subdomain scope

I have a ServiceWorker that checks if a client is visible. It works fine on other platforms, but with an installed PWA on iOS the clients.matchAll method returns an empty list. It works fine when the scope is a second-level domain, but when the scope is a subdomain the clients.matchAll method returns an empty list. It works Has anybody experienced this? https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll
MDN Web Docs
Clients: matchAll() method - Web APIs | MDN
The matchAll() method of the Clients interface returns a Promise for a list of service worker Client objects. Include the options parameter to return all service worker clients whose origin is the same as the associated service worker's origin. If options are not included, the method returns only the service worker clients controlled by ...
2 Replies
dreamland
dreamlandOP7mo ago
@Joaquín tagging you, because I've seen that you are experienced with PWA It seems to be a problem with a subdomain as scope for the ServiceWorker. example.com works, but subdomain.example.com does not work, returns empty list.
Want results from more Discord servers?
Add your server