Created
June 20, 2016 14:51
-
-
Save cojennin/12340865d718e201c4804ea51a837ac3 to your computer and use it in GitHub Desktop.
Guardian Mobile Lab Notification Payload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"command": "notification.show", | |
"options": { | |
"title": "May jobs report: Good news & bad ", | |
"options": { | |
"body": "The US economy added only 38,000 jobs this month. \n\nTAP below to explore the good news and the bad news. ", | |
"icon": "https://www.gdnmobilelab.com/images/mobilelab-logo-thick.png", | |
"tag": "jobs-report", | |
"data": { | |
"onTap": [ | |
{ | |
"command": "notification.close" | |
}, | |
{ | |
"command": "browser.openURL", | |
"options": { | |
"url": "https://www.theguardian.com/" | |
} | |
} | |
] | |
} | |
}, | |
"actionCommands": [ | |
{ | |
"commands": [ | |
{ | |
"command": "notification.close" | |
}, | |
{ | |
"command": "browser.openURL", | |
"options": { | |
"url": "https://www.theguardian.com/" | |
} | |
} | |
], | |
"template": { | |
"title": "Give me ☺️ news" | |
} | |
}, | |
{ | |
"commands": [ | |
{ | |
"command": "notification.close" | |
}, | |
{ | |
"command": "browser.openURL", | |
"options": { | |
"url": "https://www.theguardian.com/" | |
} | |
} | |
], | |
"template": { | |
"title": "Give me 😞 news" | |
} | |
} | |
] | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment