发送推送解析到某些设备?

Phi*_*lip 2 android push device ios parse-platform

我刚刚完成了这个(非常好的)教程:https://parse.com/tutorials/ios-push-notifications ,只留下一个问题.我可以在我的应用程序中向一个特定设备发送推送消息(可能带有device token?)而不是每个设备?我不一定需要知道现在如何,一个简单的"是的,那可能是解析"或"不,你不能使用解析"就足够了!

干杯

mak*_*tar 9

您可以保存设备ID ParseInstallation,然后定位此安装:

接收器:

ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("device_id", "1234567890");
installation.saveInBackground();
Run Code Online (Sandbox Code Playgroud)

发件人:

ParseQuery query = ParseInstallation.getQuery(); 
query.whereEqualTo("device_id", "1234567890");    
ParsePush push = new ParsePush();
push.setQuery(query);
push.sendPushInBackground();
Run Code Online (Sandbox Code Playgroud)