This question already has an answer here:
i am new to php. i am implementing Firebase push notification service in PHP .
The required json object is like
{ "data": {
"score": "5x1",
"time": "15:10"
},
"to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1..."
}
Now in firebase i have to send my data in this format but i am not sure how to make JSON object of this data and use this object in firebase .
And if I want to use Array of IDs then how this will work?
As per official firebase documentation they didn't define method to use array of ID's.
https://firebase.google.com/docs/cloud-messaging/downstream
</div>