Ionic Push Webhook: Multiple tokens in response?


#1

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:

  1. Is there a case where in the _push object android_tokens and ios_tokens simultaneously occur?
  2. In what case are in android_tokens or ios_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' 
}