Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
Building things

Fauzan Erich Emmerling femmerling

🛠️
Building things
View GitHub Profile
@gjedeer
gjedeer / boto_sns.py
Created Jun 24, 2015
How to send a push notification directly to device using Python, Boto and SNS
View boto_sns.py
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 r.name==u'eu-west-1'][0]
sns = boto.sns.SNSConnection(