This repository was archived by the owner on Jun 6, 2023. It is now read-only.
generous gopher
Concurrent notification sending and a few more API changes.
❯ ./concurrent -c cert.p12 -d {device-token} -n 1000
Time for 1000 notifications: 5.073446529s (5.073446ms ea.)
push
- Send multiple notifications concurrently with Queue. See the README and
example/concurrent/
(#54) - Export
NewClient
again, as it was in v0.4.x, modify theNewService
API.- This is more flexible and easier to use from tests.
- Removed the JSON marshalling version of
Push
and renamedPushBytes
toPush
.- Having
queue.Push
return errors both before/after queueing felt awkward. - Just use
json.Marshal
instead. This helps clarify that payloads can be serialized once and reused.
- Having
This release also contains updates to documentation and examples.