Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How to Win on the Apple Watch

1,185 views

Published on

The Apple Watch is the next big thing with consumers. Learn everything from the basics of interaction design for the Apple Watch to how to develop fast and powerful apps that your users need to have. Everything you need to know to make the next killer app.

Published in: Technology
  • Be the first to comment

How to Win on the Apple Watch

  1. 1. How to Win on the Apple Watch @NatashaTheRobot
  2. 2. How to Win on the ⌚ • Notifications • Complications • Watch Connectivity
  3. 3. Notifications
  4. 4. // NotificationController override func didReceiveRemoteNotification( remoteNotification: [NSObject : AnyObject], withCompletion completionHandler: ((WKUserNotificationInterfaceType) -> Void)) { // This method is called when // a remote notification needs to be presented. // Implement it if you use a dynamic // notification interface. // Populate your dynamic notification interface // as quickly as possible. // // After populating your dynamic notification // interface call the completion block. completionHandler(.Custom) //completionHandler(.Default) }
  5. 5. // InterfaceController override func handleActionWithIdentifier( identifier: String?, forRemoteNotification remoteNotification: [NSObject : AnyObject]) { if let identifier = identifier where identifier == "showMinionsAction" { // configure display } }
  6. 6. Complications it’s complicated 🤔
  7. 7. Creating Complications with ClockKit WWDC15 Session 209
  8. 8. https://github.com/ tryswift/trySwiftApp
  9. 9. DO Repeat Yourself
  10. 10. // iOS app struct Session { let startTime: NSDate let endTime: NSDate let description: String let location: String let speaker: Speaker? } // Watch App struct Session { let startTime: NSDate let endTime: NSDate let location: String let speaker: Speaker? let index: Int }
  11. 11. DO Repeat Yourself but not too much…
  12. 12. Watch Connectivity
  13. 13. Background Data Transfer
  14. 14. • application context
  15. 15. • application context • user info transfer
  16. 16. • application context • user info transfer • file transfer
  17. 17. Interactive Messaging
  18. 18. • Immediate Information Transfer • Requires reachable state
  19. 19. WCSession
  20. 20. // check needed for iOS App Only if WCSession.isSupported() { // activate session for both! let session = WCSession.defaultSession() session.delegate = self session.activateSession() }
  21. 21. How to Win on the ⌚ • Notifications • Complications • Watch Connectivity
  22. 22. Which future will you build for?

×