I would like to set up a response, via Push Notification, in my app.
User A sends User B a message.
User B opens the app (through the push) to a new page.
User B sends User A a response (as a push).
Right now I can open to the page, but I'm not sure how to get the data I need.
Here's what I get from Parse from the first push:
userInfo: {
aps = {
alert = "demo says HELLO WORLD";
};
In this case, demo is the username of the user that sent the first push. I'd like to get that, so that the app for User B knows who to send the reply to.
Here's my Push Code:
PFPush *push = [[PFPush alloc] init];
[push setQuery:pushQuery];
[push setMessage:[NSString stringWithFormat:@"%@ says HELLO WORLD", [PFUser currentUser].username]];
[push sendPushInBackground];