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?