Reputation: 887
I can send same message to multiple devices. But i want to send different messages to multiple devices at the same time. how to do this using GCM?
e.g.
send(reqId[i],message[i])
Upvotes: 1
Views: 166
Reputation: 394156
You can't.
The only parameter in the GCM server API that contain multiple values is registration_ids
, which means you can either send the same message to multiple registration IDs in a single request, or send one request for each message when the messages are not the same.
Upvotes: 2