Skip to content

Instantly share code, notes, and snippets.

Building things

Fauzan Erich Emmerling femmerling

Building things
View GitHub Profile
gjedeer /
Created June 24, 2015 22:01
How to send a push notification directly to device using Python, Boto and SNS
import boto
import boto.exception
import boto.sns
import pprint
import re
def send_push(device_id, body):
region = [r for r in boto.sns.regions() if'eu-west-1'][0]
sns = boto.sns.SNSConnection(