问题
I'm not able to get any push notifications out to my android emulator. I go to the Parse admin console and send out a push, but it shows as no subscribers and nothing ever happens on my emulator.
I was hoping someone could share a bit of code showing how they were able to push out?
I've set up my client and rest api keys, and am able to send a picture to Parse via the demos I've followed. But when trying to push back to the client it doesn't work...
Thanks,
回答1:
Yes. Hojoki is an example:
http://itunes.apple.com/us/app/hojoki/id525010205?mt=8
回答2:
If you use messagePushed.addListener, you'll be automatically subscribed to the default channel:
forge.event.messagePushed.addListener(function (msg) {
alert(JSON.stringify(msg));
});
Have you entered your applicationId and clientKey as described here?
Note: it's your client key, not REST key, that you need to enter in that configuration.
来源:https://stackoverflow.com/questions/10484957/has-anyone-been-able-to-get-triggerio-to-work-with-parse-push-notifications