Post

Replies

Boosts

Views

Activity

Safari iOS 16.5: PWA Notification.permission and navigator.permissions.query inconsistent response
I have a PWA app installed on home page, and prompted user for notification permission. User granted permission, and I can see in the app section under System Settings that permission are effectively granted. But when querying permissions, I am getting the following response for below queries: Incorrect: await navigator.permissions.query({name: 'notifications'}) >> { state: "prompt", .... } Correct: Notification.permission >> "granted" Any idea why the 2 are showing different values?
3
3
1.4k
Jun ’23