Hi,
I am already using GCM Push Notifications in my app without any issues so far. As FCM is the latest, I need to switch to FCM. Before migrating to the new FCM from GCM, I need to find solutions for the following issues.
Using GCM, I am able to send send push notifications either to a particular device only or to all devices.
Now with the new FCM, I don't see a registration process for device and it is only a subscription to some topic. As per Erel's Tutorial regarding FCM in this thread https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/
I don't see a Registration process and getting the Token ID, it is just a subscription to the topic using Public Sub SubscribeToTopics in the Service FirebaseMessaging. There seems to no registration and a way to get the unique registration ID from FCM.
May be all devices can be subscribed to a topic named 'General' or whatever meaningful name. So with this kind of setup in FCM, how is it possible to send a push notification only to a particular device. In real life example, suppose, a push notification to a particular device user ONLY saying that "The product that you ordered has been shipped". How is this requirement taken care in FCM ?
Possibility to send notification to all users, at the same time the possibility to send notification only to a targeted device. If this is to happen, then there should be some unique identification for each device is required. right? and we should store this in our database too.
Can a single device subscribe to more than one topic ?
Any ideas will be appreciated
Thanks & Regards
Anser
I am already using GCM Push Notifications in my app without any issues so far. As FCM is the latest, I need to switch to FCM. Before migrating to the new FCM from GCM, I need to find solutions for the following issues.
Using GCM, I am able to send send push notifications either to a particular device only or to all devices.
In GCM, this is possible because, in GCM, there is a registration process and each device requests for a registration with GCM and once successfully registered, Google provides a unique registration token ID for each device. We then store this GCM Registration ID in our database. Using these GCM registration Token ID's we were able to send Push Notifications to a particular device only OR Push notifications to all devices as per our will. We had proper control over it.
Now with the new FCM, I don't see a registration process for device and it is only a subscription to some topic. As per Erel's Tutorial regarding FCM in this thread https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/
I don't see a Registration process and getting the Token ID, it is just a subscription to the topic using Public Sub SubscribeToTopics in the Service FirebaseMessaging. There seems to no registration and a way to get the unique registration ID from FCM.
May be all devices can be subscribed to a topic named 'General' or whatever meaningful name. So with this kind of setup in FCM, how is it possible to send a push notification only to a particular device. In real life example, suppose, a push notification to a particular device user ONLY saying that "The product that you ordered has been shipped". How is this requirement taken care in FCM ?
Possibility to send notification to all users, at the same time the possibility to send notification only to a targeted device. If this is to happen, then there should be some unique identification for each device is required. right? and we should store this in our database too.
Can a single device subscribe to more than one topic ?
Any ideas will be appreciated
Thanks & Regards
Anser
Last edited: