Skip to content
Python script to test APNS push notifications
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
Makefile
README.md
apnsend.py
requirements.txt
setup.py

README.md

apnsend

Python script to test APNS push notifications. Defaults to sending via gateway.push.apple.com.

background

This is a tool to send test messages using a valid APNS certificate and device token. For more details on how to setup push notifications for your app and get a certificate, see my steps here: http://steinn.org/post/apns-setup

setup

$ git clone git@github.com:steinnes/apnsend.git
$ cd apnsend
$ make

usage

Send a normal push notification to an ad-hoc or a distribution build:

$ venv/bin/apnsend apns_com.example.app_combined.pem token "hello from apnsend"

Send a sandbox notification to a development build:

$ venv/bin/apnsend apns_com.example.app_combined.pem token "hello from apnsend" --sandbox
You can’t perform that action at this time.