-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registration failed - push service error #2475
Comments
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 |
Closing here in favor of the js sdk bug, as it's not AngularFire specific. |
This was referenced Nov 25, 2020
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
![image](https://user-images.githubusercontent.com/26221715/82792864-52bf0e80-9e70-11ea-997c-c6a421f0fa4d.png)
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
The text was updated successfully, but these errors were encountered: