Mais conteúdo relacionado
Semelhante a 最新 Windows azure モバイル・サービス 活用法 (7)
Mais de Masaki Yamamoto (17)
最新 Windows azure モバイル・サービス 活用法
- 27. サーバーはこれだけ
iOS
push.apns.send(item.deviceToken, {
alert: "Toast: " + item.text,
payload: {
inAppMessage: "Hey, a new item arrived: '" + item.text + "'"
}
});
push.gcm.send(item.channel, item.text, {
success: function(response) {
console.log('Push notification sent: ', response);
}, error: function(error) {
console.log('Error sending push notification: ', error);
}
});
Android
13年11月9日土曜日