2

I have thousand users for both apple, android and I need to send the Push notification for all users at a time - based on the Email IDs. How to add all Emails at a time in the User ID field in image (I tired with comma separated and Semi colon separated, but it is taking as a single user.) kindly provide if there is any alternate option. Image - Push Notification from MFP console

2 Answers2

1

You can add all the email ids by putting space between two email ids in User ID column. enter image description here

Arun Punnath
  • 121
  • 5
0

From the MFP Operations console, you can only send notification to a single userid at a time. There are two options:

  1. Send notification one after the other - to different ids.

  2. Use the REST API to send to multiple users in one go. The details of the REST call is here.

With the REST call, you can pass on a list of userids in an array like so:

"target" : {
    "userIds" : [ "MyUserId1", "MyUserId2",... ]
  }...
}
Vivin K
  • 2,681
  • 1
  • 11
  • 14
  • Thanks for your response. I tried giving the email IDs in the User IDs array which are registered with the app. But I am getting No devices found error. Kindly help me. – raghavendra rao Jul 03 '18 at 12:36
  • Please tell me what exactly I have to pass in the userIds array. – raghavendra rao Jul 03 '18 at 12:53
  • If the emailids are not working, then you have not registered or subscribed with the email as the useridentity. You need to do this first , so that you can send notification against email. – Vivin K Jul 03 '18 at 17:57
  • This REST call : https://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/rest_runtime/r_restapi_push_device_subscriptions_get.html will tell you the useridentity against your subscriptions. – Vivin K Jul 03 '18 at 17:57