Skip to content

Instantly share code, notes, and snippets.

@toastdriven
Created October 31, 2013 21:20
Show Gist options
  • Save toastdriven/7257390 to your computer and use it in GitHub Desktop.
Save toastdriven/7257390 to your computer and use it in GitHub Desktop.
apns_msg = json.dumps({"aps":{"alert":"",'sound':'default',"badge":14}})
published = sns_connection.publish(
message_structure='json',
message=json.dumps({'default':'This is the default message',"APNS_SANDBOX":apns_msg})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment