PUSH to User_IDs (No device tokens for supplied user_ids)


#1

I can receive PUSH notifications on Android when I send them referencing the user tokens but not when referencing the user_ids. Both for the same user; fully registered according to ionic.io.

failed for user_ids:

:~> curl -u private_key: --data '{"user_ids":["userid@address.com"],"notification":{"alert":"curl userid message"}}' -H "Content-Type: application/json" -H "X-Ionic-Application-Id: correct_app_id" "https://push.ionic.io/api/v1/push"
{"result":"error","message":"No device tokens for supplied user_ids."}

passes for tokens:

:~> curl -u private_key: --data '{"tokens":["token_from_same_user"],"notification":{"alert":"curl token message"}}' -H "Content-Type: application/json" -H "X-Ionic-Application-Id: correct_app_id" "https://push.ionic.io/api/v1/push"
 {"result":"queued","message_id":"8407a50eda4011e586efde65eb9030ed"}

Any thoughts?