apush

A Simple Apple Push Notification Service Provider.
Download

apush Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Barum Rho
  • Publisher web site:
  • https://github.com/barumrho/

apush Tags


apush Description

apush is a simple Apple push notification service provider written in Python.```pythonfrom apush import Service, Notification, ERROR_INVALID_TOKENtoken = 'hex-encoded token'.decode('hex')service = Service('/path/to/certificate.pem')notification = Notification(token, alert='A new notification', badge=1)service.send(notification)# For several notificationsfor n in notifications: service.queue(n)service.flush()# Check errorsfor (status, identifier, token) in service.errors: if status == ERROR_INVALID_TOKEN: remove(token)# Check feedback service for invalid tokensfor (timestamp, token) in service.feedbacks: remove(token)```Product's homepage


apush Related Software