Skip to content

whiskey/spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring

Sends remote push notifications to registered devices. Build for local debug and development. Currently only iOS push notifications supported.

Installation

  1. get Python (most Unix-like OS' come with python pre-installed)

  2. pyapns (Apple push notification handler)

    $ pip install pyapns

  3. twisted (required by pyapns)

    $ pip install twisted

  4. pyOpenSSL (required by pyapns)

    $ pip install pyOpenSSL

  5. [] (strongly recommended by pyOpenSSL)

    $ pip install service_identity

  6. if you need to convert your export of the push certificate and private key to a .pem file use

    $ openssl pkcs12 -in certs.p12 -out certs.pem -nodes

  7. copy the config.json.example file to config.json and adjust to your settings

  8. start twistd service; example:

    $ twistd -r default web --class=pyapns.server.APNSServer --port=7077

  9. run the script; example:

    $ ./spring.py -a 'hello spring!' -b 42 -s default -i 'sandbox:my_awesome_app'

About

Push trigger for iOS devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published