I am trying to push some data messages to my clients from my cloud functions. These are not really notifications rather they are client specific confidential data that I need to push to the appropriate client.
I do not want to show a notification prompt to my clients, as there is always a chance that some of them might disallow notifications. I need them to always allow by default.
Is there a way to suppress these browser's notification requests? Or is it always mandatory?
In other words, do I always need to call
messaging.requestPermission()
before calling messaging.getToken()
? Or can I call messaging.getToken()
independently?