Skip to content

Instantly share code, notes, and snippets.

View jgowdy's full-sized avatar
🏠
Working from home

Jay Gowdy jgowdy

🏠
Working from home
View GitHub Profile
@jgowdy
jgowdy / wtf-sns-apns.js
Created June 1, 2018 16:29 — forked from brianleroux/wtf-sns-apns.js
Send a silent push notification to APNS with AWS SNS.
sns.publish({
TargetArn: device.arn,
MessageStructure: 'json',
Message: JSON.stringify({
default: 'you will never see this muah!',
APNS_SANDBOX: JSON.stringify({
aps: {
'alert': '',
'content-available': 1
},