curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: 1e0bad9d9830c038ea19f12d83fca4e984012bba" \
-d '{
"notification_channel":"apns",
"push_token":{
"environment":"development",
"client_identification_sequence":"1054929587f29c856fa0137f634cc0a5ec77901f4baaf2f3c1785d05ae114455",
"bundle_identifier":"com.quickblox.myawesomeapp"
},
"device":{
"platform":"ios",
"udid":"2343af3433aa3a4fsv"
}
}' \
https://api.quickblox.com/subscriptions.json
[
{
"subscription": {
"id": 59715257,
"device": {
"udid": "2343af3433aa3a4fsv",
"client_identification_sequence": "1054929587f29c856fa0137f634cc0a5ec77901f4baaf2f3c1785d05ae114455",
"platform": {
"name": "ios"
},
"bundle_identifier": "com.quickblox.myawesomeapp"
},
"notification_channel": {
"name": "apns"
}
}
}
]
Create device based subscriptions.
curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: 1e0bad9d9830c038ea19f12d83fca4e984012bba" \
-d '{
"notification_channel":"apns",
"push_token":{
"environment":"development",
"client_identification_sequence":"1054929587f29c856fa0137f634cc0a5ec77901f4baaf2f3c1785d05ae114455",
"bundle_identifier":"com.quickblox.myawesomeapp"
},
"device":{
"platform":"ios",
"udid":"2343af3433aa3a4fsv"
}
}' \
https://api.quickblox.com/subscriptions.json
[
{
"subscription": {
"id": 59715257,
"device": {
"udid": "2343af3433aa3a4fsv",
"client_identification_sequence": "1054929587f29c856fa0137f634cc0a5ec77901f4baaf2f3c1785d05ae114455",
"platform": {
"name": "ios"
},
"bundle_identifier": "com.quickblox.myawesomeapp"
},
"notification_channel": {
"name": "apns"
}
}
}
]
apns
, apns_voip
, gcm
, and email
. Show properties
development
and production
. Show properties
ios
and android
. 201
curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: 1e0bad9d9830c038ea19f12d83fca4e984012bba" \
-d '{
"notification_channel":"apns",
"push_token":{
"environment":"development",
"client_identification_sequence":"1054929587f29c856fa0137f634cc0a5ec77901f4baaf2f3c1785d05ae114455",
"bundle_identifier":"com.quickblox.myawesomeapp"
},
"device":{
"platform":"ios",
"udid":"2343af3433aa3a4fsv"
}
}' \
https://api.quickblox.com/subscriptions.json
[
{
"subscription": {
"id": 59715257,
"device": {
"udid": "2343af3433aa3a4fsv",
"client_identification_sequence": "1054929587f29c856fa0137f634cc0a5ec77901f4baaf2f3c1785d05ae114455",
"platform": {
"name": "ios"
},
"bundle_identifier": "com.quickblox.myawesomeapp"
},
"notification_channel": {
"name": "apns"
}
}
}
]
Was this page helpful?