Closed ogreser closed 8 years ago
Are you sure this is safe? The docs are explicit about the "aps"
dictionary being required (note the word "must"):
For each notification, compose a JSON dictionary object (as defined by RFC 4627). This dictionary must contain another dictionary identified by the
aps
key.
Of course, the docs may be wrong, but it seems safer to me to conform to them even if leaving the key out currently works?
The 'aps' is not required and we can save 8 bytes ("aps":{})