Hi
I want to set up a webhook for saving the push tokens with PHP and MongoDB. I have these questions about the content of the posted JSON data:
- Is there a case where in the
_push
objectandroid_tokens
andios_tokens
simultaneously occur? - In what case are in
android_tokens
orios_tokens
multiple tokens?
This is an example POST body from the docs:
{
received: '2015-03-18T17:21:42.571286',
user_id: 1337,
name: 'Test User',
app_id: 'YOUR_APP_ID',
_push: {
android_tokens: [
'LIST', 'OF', 'ANDROID', 'TOKENS'
]
},
message: 'I come from planet Ion'
}