Hello Community,
I'm struggling with Firebase Cloud Messaging while sending notifications to multiple devices from web portal. Here I'm sharing you What I'm trying to achieve.
1. Mobile application (SendNotify) where I'm saving device information into the database via CreateDeviceInfo server action (which is available in core module - GetDeviceInfo)
2. This is the web application (SendNotificationToUser) where I'm showing the list of devices in which above application is installed. From here I'm sending the notification which ever device I want to send.
This is the SendNotification button click.
There are multiple devices saved in DB, but I can be able to send the notification only this device (Nokia 7 plus) whether it is selected or not. Notification always triggers on Nokia 7.
I hope you understand my problem. Looking for some solution. Any help will be appreciated.
Hey @PrinceKumar,
After analysing your post, I have a few questions:
Best regards.
Thanks @Ricardo Silva for the response. As I gone through some document/content I got to know that FCM token should be trigger into the server.
But is there any way how I can register the device token in firebase console and how to retrieve token from console?
I'm referring this please check the below image for reference. This is RichNotification (Sample app for firebase cloud messaging)
I believe you can follow a similar approach to what is done with the Sample App, with the main difference being the `RegisterUserToken` Server Action, which, if it makes sense, should probably send the retrieved information to your backend.