Skip to content

najeira/pyapns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

pyapns

A library for Apple Push Notification Services.

Getting Started

Sending notification

# gets a connection
apns = APNs(use_sandbox=True, cert_file="your.cert", key_file="your.key")
server = apns.gateway_server

# sends a notification
notification = Notification(alert="This is APNs message!")
server.put(notification, device_token1)
server.put(notification, device_token2)

# wait
server.join()

Handling feedbacks

# gets a connection
apns = APNs(use_sandbox=True, cert_file="your.cert", key_file="your.key")
server = apns.feedback_server

# gets feedbacks
for feedback_token, feedback_datetime in server.items():
  print feedback_token, feedback_datetime

License

MIT license.

About

A library for Apple Push Notification Services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages