Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
/ APN_py Public archive

Apple Push Notification for Herald iOS client. Also with API list update

License

Notifications You must be signed in to change notification settings

HeraldStudio/APN_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APN_py

Apple Push Notification for Herald iOS client

同时负责iOS客户端APIList.plist更新

Build

sudo su
apt-get install python-dev redis-server
pip install Flask
pip install redis
easy_install apns

Config

# redis config
host = 'localhost'
port = 6379
db = 0
password = 'heraldstudio'

# PE URL
PE_URL = "http://115.28.27.150/api/pc?uuid=dbd7bb9dca167f98d0741f7067a1b7c715fe1b8c" # 跑操预告接口URL

# APN config
expiry = 3600 # APN超时时间
priority = 10 # APN优先级,默认
api_version = 3.4 # APIList版本号

Run

chmod +x start.sh stop.sh
./start.sh

Stop

./stop.sh

About

Apple Push Notification for Herald iOS client. Also with API list update

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published