Sending notifications with player IDs in onesignal has a limit of 2,000 entries(player IDs) per REST API call, so we have to send multiple notifications each time.
Is it possible to connect these notifications and get one unique ID for all of them?
Related
I know that there is a subscription system
But I don't find a limit on the number of tokens sent to firebase
There is a version of 1000 tokens at a time on the Internet
Just if, for example, I have 100,000 users, will firebase allow me to send 300 000 - 400 000 tokens along with the message
According to the documentation on sending messages to multiple devices:
The REST API and the Admin FCM APIs allow you to multicast a message to a list of device registration tokens. You can specify up to 500 device registration tokens per invocation.
I'm part of a large telegram group (say 1000 members).
I don't want to receive notifications for each message. So I've turned off notifications for this group.
But I want to receive notifications for messages posted by admin (or a specific person) only.
Is there an easy way to do this in Android app?
I'm using Advanced REST API to send data message for push notification.
In firebase console i can select user segment
as "Version","language",Country" etc..But how to select user segment for
Data message sent from REST API?
Or is their any other way to use select User segment for data message?
Also i want to send the notification for the user who has not opened app for few days.Is it possible with firebase data message?
When using the FCM rest API to send message, you can't target Analytics user segments. You can only send to devices identified by their unique token, or to topics where the client app is subscribed. The only way to send a message to a user segment is through the Firebase console.
In a scenario where I'm creating a group chat app where the user can be participating in multiple small group chats and I'm using Firebase Cloud Messaging, should I:
Create and send to Device Groups, or
should I broadcast to a topic where each group chat becomes a topic the users can subscribe to?
In scenario #1, I imagine I should create a device group for each user and add all of the user's devices to that device group, then send a FCM message to all device groups that are part of the group chat on each new trigger.
Scenario #2 is much easier in that I can have the client device subscribe to a chat room as a topic when they join a group chat - however it wouldn't support a multiple device scenario unless I figure out a way to keep in sync the group chats that the user subscribes to from different devices.
If we want to send message to different device we need to specify their registration_ids in https://fcm.googleapis.com/fcm/send. Is there some API where we can register users unique user_id and send messages using that user_id?
My use case is, I am using Parse for notification and if there are 5 people in a chat, we send notification to those 5 people if there is some activity in the chat. We are already storing the user_id in our database. Now if there is some API where I can specify the registration_ids and user_id. And then later just use user_id instead of storing registration_ids in our database.
If you plan on using FCM for the push notification, short answer is No.
What is required in FCM for you to send to a single or multiple device(s) is/are the registration token(s) and by using the corresponding parameters to, registration_ids in the payload to send it to them.
Other details is pretty much covered by #FrankvanPuffelen's comment.