Good day,
I am using the below function to send push notification to specific users some time it send the message to all registred devices, can you please check if something need to be changed in the below code.
function sendPushToChat(m){
var filter={"deviceID":{"$in":["355afb8268bbdfqr","EFG098-0F88-4AE5-A69A-761FA8620A7E"]},"type":{"$in":["I","A"]}};
var custData={"mydeviceID":Apperyio.storage.mydeviceID.get(),"hisdeviceID":Apperyio.storage.hisdeviceID.get(),"requestType":"chat"};
Code: Select all
testPushService.execute({
body: {
"payload":{
"message":m,
"badge":1,
"title":"شات",
"customData": custData
},
"status":"sent",
"filter": filter,
},
success: function(){
$('.sathaInfoPopup').popup('close');
},
error: function(){
toast('خطأ في ارسال الرسالة..!! ');
}
});
}