kdonovan/apn_sender — pull request #14 by sethco (2011-10-20 19:44:03+00:00)
Title: passing an alert dictionary instead of a string

Hi Kali,

This is the patch to support sending an alert dictionary instead of a string. It is working fine for me; I am able to send notifications which load their text from localized resources in the app, set custom text on the action button, etc. I didn't try to validate the schema at all; apn_sender in general doesn't do strong validation on the input and for my application it isn't needed since the data is mostly static except for some substitution strings; I have application unit tests that validate that my code is constructing the expected dictionary.

Thanks,
.seth