Closed say8425 closed 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.
Sorry. I can't understand it. Could you explain more deeply?
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.
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.
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.