voyagegroup / apns-proxy-server

Apple Push Notification Service Proxy for multiple application
BSD 2-Clause "Simplified" License
28 stars 8 forks source link

APNs Proxy Server

Proxy server for Apple Push Notification service.

Build Status

Features

Handling Error Responses

Read error response when sending queue become empty or each 500 items. If error response found, re-connect to APNs and retry after the invalid item.

Requirements

Setup

git clone git@github.com:voyagegroup/apns-proxy-server.git
cd apns-proxy-server

# Setup python environment using requirements_prod.txt (@see Makefile)
make setup_prod

# Puts your ssl certs for APNs
cp xxxxx.certs ./apns_certs/
cp xxxxx.key ./apns_certs/

# Make your settings by settings.template.py
cp settings.template.py settings.py
vim settings.py

# Make your logging.conf by logging.conf.template
cp logging.conf.template logging.conf
vim logging.conf

Launch

./apns_proxy_server.sh start

How to use

Please see client repository or examples folder.

Dev Commands

Command Description
make setup Setup python environment for development
make lint Check coding style using flake8
make test Run Tests
make run Run server

License

BSD