Closed pgedzba closed 3 years ago
Any update on this?
I didn't find the solution yet
Its strange that its working on some devices and throwing this error on other devices.
@pgedzba can you please check if it's working on Firefox on same machine? In my case it's working fine on Firefox but throwing error in Chrome.
I can not install any other browser on this machine
I've been having a similar problem specifically on Brave:
This one has been particularly annoying because I can't use any of my callable functions on Brave without getting this exact same error which is just plain weird.
I can say this is not reproducible on FireFox.
Closing here in favor of the js sdk bug, as it's not AngularFire specific.
Version info
Angular:9.1.9
Firebase:7.14.4
AngularFire:6.0.0
Other (e.g. Ionic/Cordova, Node, browser, operating system):Brave/Chrome
How to reproduce these conditions
After logging in I am calling this function:
It returns an error on line 57, which is described below. If I remove requestToken and change it to requestPermission then there is no error, but I am not receiving any messages.
I have VAPID key from firebase cloud messaging.
Below is full messaging.service.ts ` @Injectable() export class MessagingService {
} `
Debug output
Errors in the JavaScript console
messaging.service.ts:57 Unable to get permission to notify. DOMException: Registration failed - push service error
Expected behavior
Notifications should register
Actual behavior
I get an error