nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

How can I store token in server? #82

Closed say8425 closed 9 years ago

say8425 commented 9 years ago

I made a certificate and got token. And push worked very well. But I don't know how can I send this token to the server. And houston, how can load this tokens? I google this but no one post it. Please explain this. Thanks.

draaglom commented 9 years ago

That bit's up to you!

You could create a new route ( eg "/tokens") which the app POSTs its device token to automatically.

say8425 commented 9 years ago

Sorry. I can't understand it. Could you explain more deeply?

lukasnagl commented 9 years ago

It may help your understanding to look at the Rack Push Notification code.

@draaglom suggested that your app sends its token automatically to a route such as the one I just linked (put '/devices/:token/?'). There, the tokens are stored as a Device representation.

mattt commented 9 years ago

Thanks for your responses, @draaglom & @j4zz.

@say8425 For general questions, you'll probably have better luck on Stack Overflow. Please try asking any further questions over there.