Home > Mobile >  how can i force chrome browser to always accept the request of a notification permission?
how can i force chrome browser to always accept the request of a notification permission?

Time:01-23

I am having some difficulties with having chrome letting me request notification permission multiple times.

As you know, to make sure the user will receive the notifications my website will be prompting on screen, the browser must allow the notifications.

What i do is this :

Notification.requestPermission()

most of the times it works, and i see a dialog box proposing the user either to allow, or to block notifications.

But, if i dismiss this dialog box more than three times, then Chrome temporarily block the request permission for a week ! (https://chromestatus.com/feature/6443143280984064)

Does anyone know anyway to buy pass this ?

thank you

CodePudding user response:

Simple answer, you cant. It would be a security risk.

  •  Tags:  
  • Related