Created
September 11, 2016 16:56
-
-
Save suraphanL/2bf8978a6b888696bb993ef97ae2599c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//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