Я разрабатываю приложение для получения всплывающих уведомлений при каждом обновлении базы данных, но я хочу, чтобы сервер отправлял уведомления только одному конкретному пользователю, а не всем.
Любой способ сделать это?
function update(item, user, request) {
request.execute({
success: function () {
// Write to the response and then send the notification in the background
request.respond();
push.mpns.sendToast(item.channel,
{
text1:"Sent from cloud!"
},
{
success: function(pushResponse) {
console.log("Sent push:", pushResponse);
}
});
}
});
}