chrisabruce / AceMonsterToys-iOS

iOS version of Door Unlocker for Ace Monster Toys
3 stars 0 forks source link

Suggestion: Push Notification Support #9

Open robbiet480 opened 12 years ago

robbiet480 commented 12 years ago

Can we add push notification support for event notification, possibly door phone is ringing as well? I would be more then willing to build a backend for it in Node.js, I have a lot of recent experience with APNS

robbiet480 commented 12 years ago

I talked to @davr about this, I'm setting up a server that will let anyone with a project like this subscribe to webhook callbacks on new events, implementing a push server won't be that hard. I think we should allow someone to subscribe to the following events:

The first two notifications are already working and available, the others will need to be implemented somehow (I am willing to do this).

For spam reasons, both of these notification types need an on/off switch which shouldn't be hard to control on the server side, just POST /notification_on and POST /notification_off. Let me know what you think

chrisabruce commented 12 years ago

Cool, think we could set this up on github and use heroku for now? I would love to have a central "REST API Server" that could cache some of the responses from our main website. So for example, we could set up Node or Sinatra to service external all requests (mobile presently). Furthermore, sensors and devices could push data to this same server.

Thoughts?