Skip to content

anvileight/A8_PyAPNs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A8-PyAPNs

A Python library for interacting with the Apple Push Notification service (APNs)

Sample usage

from apns import APNs, Payload

apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem')

# Send a notification
token_hex = '<here is device token>'
payload = Payload(alert="Hello World!", sound="default", badge=1)
apns.gateway_server.send_notification(token_hex, payload)

About

Python library for interacting with the Apple Push Notification service (APNs)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%