Skip to content
APNs push via Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
apns.py
requirements.txt

README.md

APNsPusher: Push notification via .p8 by Python

APNsPusher is a Python version of APNs caller.

Requirements

  • Python 3.6 ( I do not sure how about Python 2.7 )
  • cryptography
  • pyjwt
  • hyper

Installation

Put your .p8 file to this folder, then

pip install -r requirement.txt

Uage

replace apns.py

  1. apns_key_id
  2. apns_key_name
  3. team_id
  4. bundle_id

then run Python

from apns import APNsPusher
APNsPusher().push("Test Title", "Test Body", "device token", IS_PRODUCTION)

繁體中文相關內容介紹

You can’t perform that action at this time.