Changes

Jump to: navigation, search

A watchOS 2 WatchKit Notification Tutorial

12 bytes removed, 20:57, 1 February 2016
m
Text replacement - "<google>BUY_WATCHOS2</google>" to "<htmlet>watchos2</htmlet>"
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>
When the notification is triggered, the user is to be given the option of repeating the notification using the same delay. This will involve the addition of a notification action to the notification using the “REMINDER_CATEGORY” identifier referenced each time the notification is set. The code to configure the action will be placed within the Application Delegate class within the didFinishLaunchingWithOptions method.
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>
Begin by locating and selecting the AppDelegate.swift file and modifying the didFinishLaunchingWithOptions method to create the notification action as follows:
<googlehtmlet>BUY_WATCHOS2watchos2</googlehtmlet>

Navigation menu