I have read the Watch Programming Guide in detail but am unable to find an answer to this question (the simulator isn't sufficient and I don't have an Apple Watch yet) -
1) Say, I trigger the following notification from the main app, will it be handled by the static notification controller or the dynamic notification controller on the Apple Watch?
var localNotification: UILocalNotification = UILocalNotification()
localNotification.alertAction = "Test Notification"
localNotification.alertBody = "Temporary Test Msg!"
localNotification.fireDate = NSDate(timeIntervalSinceNow: 30) // 30 Secs
UIApplication.sharedApplication().scheduleLocalNotification(localNotification)
(I've added a functional Apple Watch target with all the required app icons.)
2) It's a simple text only notification and configured the Icons/Colours for the Static Notification Interface Controller in the story board. Will the watch pick these colors from storyboard?
3) Does PushNotificationPayload.apns play any role when this notification is triggered?
Aucun commentaire:
Enregistrer un commentaire