Вопрос

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

Это было полезно?

Решение 2

Yes you can. There are various ways, you can use device tokens or subscribed channel or even based on any other column in the installation object.

For a start, you can use the Push Composer option provided by Parse.

Checkout these for more information:

https://parse.com/docs/push_guide#top/iOS

https://parse.com/products/push

http://blog.parse.com/2011/07/18/targeted-push-notifications/

Другие советы

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();
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top