Nathan Youngman
Nathan Youngman
API changes: - Conn no longer exposes Close, Connect, Read, Write (or it's not showing up in the docs) - ~~NotificationResult is now SessionError~~
I would like to separate out some different pieces: - The JSON/binary encoding of the notification. I'd like to prepare them in advance and store the binary glob to send...
It makes sense to have one buffer per connection/session like how @bdotdub has done it. - When replaying (on disconnect), there is a fresh buffer storing messages sent while being...
The first issue I see is that you should use `NewClientWithFiles` instead of `NewClient`. It's always good to check errors that functions return.
It would be helpful if the `max_file_size` being configured in the form helper was available to client side code for doing this check.
It seems like `before_add` isn't called in IE9, which is probably a good thing (don't have to worry about checking for IE10+)
We display a "file too big" validation error in different ways depending on mobile/desktop and I imagine everyone will have a slightly different way. Just putting `max_file_size` into the data...
No there is not. If there was, some time could be saved encoding the message, but it would still need to be sent one-by-one to Apple, which is the bulk...
I'm not sure if I understand the problem you're running into. Is it disconnecting after invalid device tokens and causing problems? http://redth.codes/the-problem-with-apples-push-notification-ser/ This library attempts to handle those issues internally,...
Yah, perhaps that buffer should be larger.