I'm implementing angularfire but it's also a generic question.
I use RealTime Database and FCM modules. But, I don't need to show browser or background notifications, I'm just only communicating server with client sending push messages (for refreshing purposes only).
This current code is requesting user permissions on the browser. It's possible to avoid this?
this.afMessaging.requestToken
.subscribe(
token => {
console.log('Permission granted! Save to the server!', token);
this.updateFirebaseToken(token);
this.updateAPIToken(token);
},
err => { console.log('Unable to get permission to notify.', err); }
);