nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

Wrong enhanced notification message format used? #111

Closed patrickslin closed 3 years ago

patrickslin commented 8 years ago

I was looking through the Notification class and I noticed that the message packing is such:

def message
      data = [device_token_item,
              payload_item,
              identifier_item,
              expiration_item,
              priority_item].compact.join
      [2, data.bytes.count, data].pack('cNa*')
end

But according to the Apple Enhanced Notification Format, the notification message format should be:

alt text

Am I wrong, or is the implemented notification format incorrect? Thanks.