i've created simple 1:1 chat using quickblox have problem push notification. users subscribed quickblox push service , when send push notification admin pannel work. when send pushnotification form user user there , error:
"status":"error","message":"unprocessable entity","detail":"{\"errors\":{\"base\":[\"no recipients. @ least 1 user should subscribed apns (apple push) (through sdk or rest api)\"]
var params = { notification_type: "push", environment: "production", user: { ids: recipientid }, message: "ew0kicagicjhchmiidogew0kicagicagicaiywxlcnqiidogillvdsbnb3qgew91ciblbwfpbhmuiiwnciagicagicagimjhzgdliia6idksdqogicagicagicjzb3vuzcigoiaiymluz2jvbmcuywlmziinciagicb9la0kicagicjhy21lmsigoiaiymfyiiwnciagicaiywntztiiidogndincn0=", push_type: "apns" }; console.log(json.stringify(params)) qb.messages.events.create(params, function(err, response){ if (err) { console.log('push err '+json.stringify(err)); } else { console.log('push ok '+json.stringify(response)); } }); i want send push notifications recipientid. 1 can me!?
Comments
Post a Comment