Skip to content

Instantly share code, notes, and snippets.

@suraphanL
Created September 11, 2016 16:56
Show Gist options
  • Save suraphanL/2bf8978a6b888696bb993ef97ae2599c to your computer and use it in GitHub Desktop.
Save suraphanL/2bf8978a6b888696bb993ef97ae2599c to your computer and use it in GitHub Desktop.
//Local Notification
let content = UNMutableNotificationContent()
content.title = "Introduction to Notifications"
content.subtitle = "Session 707"
content.body = "Woah! These new notifications look amazing! Don’t you agree?"
content.badge = 1
//Remote Notification
{
"aps" : {
"alert" : {
"title" : "Introduction to Notifications",
"subtitle" : "Session 707",
"body" : "Woah! These new notifications look amazing! Don’t you agree?"
},
"badge" : 1 },
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment