As I can read in guideline notifications are displayed automatically. But.. not for me. The question is why? My iOS app send notification after 4 seconds when user tap the button:
@IBAction func stopTimerPress(sender: AnyObject) {
print("Stop timer!")
notification.alertBody = "STOP!"
self.timer = NSTimer.scheduledTimerWithTimeInterval(4.0, target: self, selector: "fire", userInfo: nil, repeats: true)
}
and then I expect that (if the app in iOS is in background) my Apple Watch display static notification. But it did not happen. What can I do? I uncommented this:
override func didReceiveLocalNotification(localNotification: UILocalNotification, withCompletion completionHandler: ((WKUserNotificationInterfaceType) -> Void)) {
print(localNotification.alertBody)
completionHandler(.Default)
}
in NotificationController but this still didn't work. Can someone help me?