Has anyone been able to get TriggerIO to work with parse push notifications?

风格不统一 提交于 2019-12-11 01:01:09

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!