Firstly the notification was working but after some time, it gives me error not registered and it also not giving me the new token if previous one is expired. Any solution, please help🙏
This error typically occurs when the FCM token is invalidated, compromised or not registered properly with the FCM server. Possible reasons: - The user cleared app or session data. - The token expired. Solutions: Ensure that the app is still registered with FCM. Check if the token is being refreshed correctly. Handle token refresh events and update the token. If the token is invalid, request a new one. Refer this for how to refresh the token: firebase.google.com/docs/cloud-messaging/manage-tokens#basic-best-practices
hello sir, I have done everything from firebase configuration to token generation. but i am unable to recieve notifications . i have also put debugger on listeners of onMessage and backgrond one as well . But still i am unable to recieve notification at my local host environment. i have also turn on all the notification from system settings. no error is shown but still not being able to get notifications. waiting for yourf reply
i got this error after make file "firebase-messaging-sw.js" : Uncaught (in promise) DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
A user commented saying, of all the videos he has watched regarding firebase messaging, this has been the most useful and i couldn't agree more. Good job!
Worked, Just a question would it target all the users on its own or do we have to add their token somewhere. Notifications are not being shown if i close the website
FCM supports push notifications from Safari version 16.1 and macOS 16.4 iOS & iPadOS. Refer this blog post to check how to enable it: firebase.blog/posts/2023/08/fcm-for-safari/
I am little worried after seeing your subscriber number
Firstly the notification was working but after some time, it gives me error not registered and it also not giving me the new token if previous one is expired.
Any solution, please help🙏
This error typically occurs when the FCM token is invalidated, compromised or not registered properly with the FCM server.
Possible reasons:
- The user cleared app or session data.
- The token expired.
Solutions:
Ensure that the app is still registered with FCM.
Check if the token is being refreshed correctly.
Handle token refresh events and update the token.
If the token is invalid, request a new one.
Refer this for how to refresh the token: firebase.google.com/docs/cloud-messaging/manage-tokens#basic-best-practices
@@WebDevMatrix thanks bro 🙏
Of all the videos I've watched so far regarding firebase messaging, this has been the most useful. Great job man
FirebaseError: Messaging: We are unable to register the default service worker
hello sir, I have done everything from firebase configuration to token generation. but i am unable to recieve notifications . i have also put debugger on listeners of onMessage and backgrond one as well . But still i am unable to recieve notification at my local host environment. i have also turn on all the notification from system settings. no error is shown but still not being able to get notifications. waiting for yourf reply
hiii , why we can not use modular API ? and if we can how to use it ?
i got this error after make file "firebase-messaging-sw.js" : Uncaught (in promise) DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
Fixed. i put the wrong vapidKey
how can i send the notification for evevry 30 minutes
A user commented saying, of all the videos he has watched regarding firebase messaging, this has been the most useful and i couldn't agree more. Good job!
Thanks for this gem.
Pls do firebase push notification nextjs
That's so prefect, unique and well explained, thankyou
I am receiving 2 notification for 1 request .Did any one received duplicate notification
Good job web dev Matrix
work perfect, thanks for this!
Your tutorial has helped me quite a lot! Thanks!
Worked, Just a question would it target all the users on its own or do we have to add their token somewhere.
Notifications are not being shown if i close the website
Very good on bro... 100
Great video - thank you!
Thank you soo much for this vid, is there any way you could guide me on sending notifications based of a user defined time
Thankyou sir for this video and its working on chrome but not working ios and mac os safari .please suggest any solution
FCM supports push notifications from Safari version 16.1 and macOS 16.4 iOS & iPadOS.
Refer this blog post to check how to enable it: firebase.blog/posts/2023/08/fcm-for-safari/
@@WebDevMatrix thankyou sir
Awesome! Thank you for this video.
thanks bro,
it is not working on android pwa app, please help
Thanks for the great video. Simple and straight to the point
Thanks buddy! Easy and it worked
Thanks man!
thank you for making video.
This is great video too helpfull
Thanks for your comment and support!
Thanks man god bless you 🙏❤
Thanks for the beautiful comment, it made my day ❤️
Very good video :)
thank you for this video, bro
nice thank you
Brilliant!
can i have source code sir..
You can refer to this quickstart repo files for the code: github.com/firebase/quickstart-js/tree/master/messaging