Apple Push Notification Server with Enhanced Binary Interface for Erlang by JPush (http://jpush.cn). If you get any questions, you can send me an email to .
$ ./rebar compile && erl -pa ebin/ -pa deps/*/ebin/ -s apns
3> apns_mq_handler:test_package_from_mq(<<"你好10"/utf8>>).
- Put the certificate at rel/apns/certs/ in format _[1|2].pem. 1 - development, 2 - product
- make run
- Send test messages by ./test_data.sh localhost 2222. Make sure to change the CORRECT_DEVICE_TOKEN to your own device token.
For developing a quick prototype, some codes are copied from following projects. https://github.com/inaka/apns4erl.git https://code.google.com/p/erl-generic-otp-tcp-server-framework/ http://hg.rabbitmq.com/rabbitmq-server/