- deps on nghttp2(as submodule) and:
libssl libcrypto
- build
make
- basic usage
./apns2-test -cert <cert.pem> -token <device-token>
- see more
apns2-test help
apns2-test -cert -token [-dev] [-topic|-message|-payload|-uri|-port|-pkey|-prefix] [-debug]
-dev development (default: production)
-topic default: UID subject in cert.pem (aka: bundle-id of the app)
-message specified as value of key "alert" in payload
example: -message "message test."
-payload '<payload>' (a json object according to APNs protocol)
example: -payload '{"aps":{"alert":"payload test.","sound":"default"}}'
-debug verbose output for debugging
rarely used options:
-uri default: api.[development.]push.apple.com
-port default: 2197
-prefix default: /3/device/
-pkey specify a private-key (,default alone with cert.pem)