the REST API documentation for Bluemix Push Notification services states that the possible push notification targets are deviceIds, platforms, tagNames and userIds.
I don't understand how you register a userId for a device ? I don't see any REST service that seem to take a userId in its inputs...
Thanks for your help,
Sebastien
There is a deviceId that you can set from the REST API when using the POST devices call to register a device.
In the
DeviceRegResponseModel
isuserId (string, optional): The user identifier for the the device registration
So essentially to set a userId you'll just want to add that to the json you send when registering a device through the REST API. So just modifying the example the REST API gives for the body:
And then you can use the POST messages call with
"userId": "John"
in yourtarget
body to send that message to all devices registered with the userId "John".Hope this helps.