I was trying to run the example of push message from the incognito mode of Chrome. But it was always giving the below error message
messaging/permission-blocked"
message:"Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked)."
stack:"FirebaseError: Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked).↵ at d (https://www.gstatic.com/firebasejs/3.6.2/firebase-messaging.js:30:200)"
apparently this is because the notifications are blocked in the incognito mode.
references:
https://documentation.onesignal.com/docs/web-push-setup
messaging/permission-blocked"
message:"Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked)."
stack:"FirebaseError: Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked).↵ at d (https://www.gstatic.com/firebasejs/3.6.2/firebase-messaging.js:30:200)"
apparently this is because the notifications are blocked in the incognito mode.
references:
https://documentation.onesignal.com/docs/web-push-setup
No comments:
Post a Comment