APNsPusher is a Python version of APNs caller.
- Python 3.6 ( I do not sure how about Python 2.7 )
- cryptography
- pyjwt
- hyper
Put your .p8 file to this folder, then
pip install -r requirement.txt
replace apns.py
apns_key_idapns_key_nameteam_idbundle_id
then run Python
from apns import APNsPusher
APNsPusher().push("Test Title", "Test Body", "device token", IS_PRODUCTION)