I've just gone through this (very good) tutorial: https://parse.com/tutorials/ios-push-notifications
and only one question is left. Can I send a push-message within my app to only one certain device (probably with the device token?) instead of to every device? I don't necessarily need to know how now, a simple "yes, that's possible with parse" or "no, you can't use parse for that" will be enough!
Cheers
You can save a device id in ParseInstallation and then target this installation:
Receiver:
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
installation.put("device_id", "1234567890");
installation.saveInBackground();
Sender:
ParseQuery query = ParseInstallation.getQuery();
query.whereEqualTo("device_id", "1234567890");
ParsePush push = new ParsePush();
push.setQuery(query);
push.sendPushInBackground();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With