mac-cain13 / notificato

Takes care of Apple push notifications (APNS) in your PHP projects.
MIT License
224 stars 44 forks source link

Remove JSON_FORCE_OBJECT flag from json_encode() #51

Closed AntonYu closed 8 years ago

AntonYu commented 8 years ago

Fixes the problem with "loc-args" field - it should be a JSON array, not an object:

{"aps":{"alert":{"loc-key":"UnderAttack","loc-args":["Name"]}}}

insted of

{"aps":{"alert":{"loc-key":"UnderAttack","loc-args":{"0":"Name"}}}}
mac-cain13 commented 8 years ago

Good point! Thanks for taking the time to create a PR!