Log In

Audiences

Defines the segment of users that will receive a notification.

All

The notification will be sent to everyone.

{
  "type": "All"
}

Segment

Identifies users using a segment.

{
  "type": "Segment",
  "ids" : ["fe9NBA8DRdCIDmmEhy3T2w"]
}

Query

Identifies users using a query expression.

{
	"type": "Query",
	"query": "{ \"$all\": [ { \"lang\": { \"$eq\": \"es\" } } ] }"
}

User IDs

Identifies users logged into MOCA SDK.

{
  "type": "UserIds",
  "ids" : ["2349587","1234","1923847","12341324", …]
}

Instance IDs

Identifies devices using MOCA SDK.

{
  "type": "InstanceIds",
  "ids" : ["4BRqEg2XTb6mYvlbuTc6gQ","NozCTNW2Sjm5OjIKNc4lng", …]
}

Device Tokens

Identifies devices by their push platform id (GCM/APNS).

{
  "type": "DeviceTokens",
  "ids" : ["C9E40F442CAB00C9A1D48", …]
}