Notifications are essential part for iOS. In iOS 9, notifications are allowed to do "reply".
iOS Notification
//Registering the text input notification
let replyAction = UIMutableUserNotificationAction()
reply.title = "reply"
//config rest of actions..
reply.behavior = .TextInput
//Receive the text input
protocol UIApplicationDelegate {
func application(application: UIApplication,
handleActionWithIdentifier identifier: String?,
forRemoteNotification notification: [ NSObject : AnyObject ],
withResponseInfo responseInfo: [ NSObject : AnyObject ],
completionHandler completionHandler: () -> Void)
{
//Handle responseInfoDict with text input in notification
if identifier == "comment-reply",
let response = responseInfo[UIUserNotificationActionResponseTypedTextKey],
responseText = response as? String {
viewController.appendText(responseText)
}
completionHandler()
}
For more in Apple Watch, Related Session: WatchKit In-Depth, Path 1 & WatchKit In-Depth, Path 2
Register different notification actions for different ios version (iOS 8 does not have text input)
APNS Feedback Push provider pulls data periodically to validate the tokens
Large Push token from 32 bit to 64 bit
New Provider API
the connection between APNS and Providers are in HTTP/2 protocol
Instant Feedback no need to pulling from Feedback to provider APNS will tell provider if the device token is invalid and the timestamp of that start invalided.
Simple Certificate handling
Push payload from 2KB to 4KB applying all iOS version and OSX
Related Session: Creating Complication with ClockKit, Networking with NSURLSession, Introducting Watch Connectivity