TheLevelUp/apns_dispatch — pull request #2 by bcherry (2014-08-11 22:22:23+00:00)
Title: Strip nil values before to_json to save bytes in payload

This is a small change that gives a little more room for alert text in notifications with nil keys (especially silent notifications with no sound). Previously, the json would include `"sound":null,`. This change omits the key if it's nil, so you gain back those characters to apply to alert text.

Thanks for the gem, this works great!