The way of accessing notification permission status is basically from
Notification.permission and if it is neither
blocked, it returns
Then, let's say you trigger notification permission request via
Notification.requestPermission(). It returns a promise and
Notification.permission value is still default, nothing changed.
I have Permission API Sample codes, and from
navigator object, still you could not decide whether notification permission is prompted or not.
So, how could we detect whether notification permission dialog is triggered or not, before waiting any user interaction with prompt dialog (deny, allow or close)?