My first lighting talk at the Swift London Meetup on July about the new User Notifications framework that Apple presented in the WWDC 2016 as part of the new iOS 10 SDK.
http://www.meetup.com/swiftlondon/events/232249328/
7. Location Trigger
let content = NotificationContent()
content.title = "You are going out from the UK"
content.subtitle = "At this point..."
content.body = "Are you sure you want to leave the European Union?"
content.categoryIdentifier = “poll"
let trigger = UNLocationNotificationTrigger(region:region, repeats:false)
let request = UNNotificationRequest(identifier:
LocalNotificationType.localLocation.rawValue, content: notificationContent, trigger:
trigger)
UNUserNotificationCenter.current().add(request) { (error) in }
14. And Much More…
Unified across platforms
Icon badge support tvOS
watchOS Local Notifications
UI Notification Extensions
Same code path for Local and Remote
15. Where to Go from Here
Introduction to Notifications:
https://developer.apple.com/videos/play/wwdc2016/707/
Advanced Notifications:
https://developer.apple.com/videos/play/wwdc2016/708/
UserNotifications API Reference Documentation:
https://developer.apple.com/reference/usernotifications