发送推送通知与解析到单个设备 [英] send push notification with parse to single device
本文介绍了发送推送通知与解析到单个设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以发送推送消息在我的Android应用程序只有一个特定的设备(可能与设备ID?),而不是每一个设备?
一个简单的是的,这可能与解析或者不,你不能使用解析为就足够了!
如果ANS是肯定的话,我需要知道如何.....
Can I send a push-message within my android app to only one certain device (probably with the device id ?) instead of to every device?
a simple "yes, that's possible with parse" or "no, you can't use parse for that" will be enough!
if ans is yes then I need to know how.....
推荐答案
您可以节省设备ID ParseInstallation
,然后针对此安装:
You can save a device id in ParseInstallation
and then target this installation:
接收器:
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("device_id", "1234567890");
installation.saveInBackground();
发件人:
ParseQuery query = ParseInstallation.getQuery();
query.whereEqualTo("device_id", "1234567890");
ParsePush push = new ParsePush();
push.setQuery(query);
push.sendPushInBackground();
这篇关于发送推送通知与解析到单个设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文