Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Push Notifications Resource

Send a mobile push notification to client apps on users’ devices. This resource is only accessible when the session is established with a client app that is developed in the same org or installed in the same package as the recipient’s client app.
Resource
1/connect/notifications/push
Available version
31.0
HTTP methods
POST
Request body for POST
Root XML tag
<pushNotification>
JSON example
1{   "appName" : "TestApp",
2    "namespace" : "abc",
3    "userIds" : ["005x00000013dPK", "005x00000013dPL"],
4    "payload" : "{'aps':{'alert':'test', 'badge':0, 'sound':'default'}}"
5}
Properties
Name Type Description Required or Optional Available Version
appName String The API name of the client app that the push notification is sent to. Required 31.0
namespace String The namespace of the client app that the push notification is sent to. Required if the namespace is set 31.0
payload String The push notification payload in JSON format. Required 31.0
userIds String[] The push notification recipient user ids. Required 31.0
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
appName String The API name of the client app that the push notification is sent to. Required 31.0
namespace String The namespace of the client app that the push notification is sent to. Required if the namespace is set 31.0
payload String The push notification payload in JSON format. Required 31.0
userIds String[] The push notification recipient user ids. Required 31.0