Closed st3fan closed 9 years ago
Are Email Push Notifications something from Apple? Can you point to the docs?
AFAIK The only documentation is the source code that Apple published for OS X Server.
http://www.opensource.apple.com/source/dovecot/dovecot-293/dovecot.push-notify/daemon/push_notify.m
Thanks Stefan. Would you mind adding a test to notification_test.go?
Added a quick test to make sure the right JSON is generated.
LGTM
@st3fan When you send an {"aps": {"account-id": "1234"}}
do you use any other fields?
@nathany Nope
This patch adds support for Email Push Notifications by introducing an
AccountId
field in theAPNS
structure.This is used in my https://github.com/st3fan/dovecot-xaps-daemon project. (The master branch is in Python but I have recently rewritten this tool in Go and the version in the
go
branch depends on the https://github.com/timehop/apns project)