SlideShare a Scribd company logo
1 of 17
Download to read offline
watchOS 2 - native apps
are coming
Mateusz Klimczak
Agenda
! watchOS 2.0 – what’s new?
! App components
! Let’s build a simple app!
watchOS 2.0 – what’s new

! Architecture changes
! More access to the hardware
! Storing data in Keychain
! Tetherless Wi-Fi
! New interface objects
! Animations
Architecture changes

! All interactions with the watch
app must be communicated
back to the iPhone
! Hence the watch has this
inherent reliance on the iPhone
in order to work
! Apps took a long time to load
Architecture changes

! No need to send data back
and forth between the
containing iOS app and the
watch app
! Communication has changed:
Shared App Groups are no
longer available, you need to
use Watch Connectivity
Framework instead
Communication
! With Watch Connectivity Framework you can pass files and data back and
forth between the watch and its paired iPhone
! If both apps are running in the foreground, then the communication is live,
otherwise it happens in the background so that the data or files is available
when the receiving app is launched
! WCSession object handles all the communication between the two devices
(accessed through defaultSession singleton object)
More access to the Hardware
! Accelerometer
! Microphone
! Heart rate monitor
! Taptic Engine
! Complications
! Digital crown
Animations
! In old approach you had to cycle through a pre-generated series of images
(it is still available)
! Now you can animate changes to the following properties
of WKInterfaceObject:
! alpha
! width and height
! vertical and horizontal alignment
! background color
! layout group insets
New interface objects
! Movie control
! Picker control
! Alerts and Action Sheets
App components
! Notifications
! Glances
! Complications
Notifications
! Apple Watch takes full advantage of the existing
interactive notification support on iOS
! If your app supports notification, Apple Watch displays
those notifications at appropriate times
! iOS decides whether to display that notification on the
iPhone or on the Apple Watch
! There are 2 types of notifications: Short-Look and 

Long-Look.
Short-Look notifications
! The Short-Look interface is a nonscrolling screen that cannot be customized
! The system uses a template to display the app name and icon along with
the title string
! If the user raises their wrist after a slight pause, the Short-Look notification will
transition to the Long-Look notification
Long-Look notifications
! The Long-Look interface is a scrollable screen
that displays the notification’s content and
any associated action buttons
! If you do not provide a custom notification
interface, Apple Watch displays a default
interface that includes your app icon, the
title string of the notification and the alert
message
Glances
! A glance is a supplemental way for the user to view
important information from your app
! It is separated from your app’s other interface controllers
! No all apps need a glance
! A glance provides immediately relevant information in a
timely manner
! Glances should be quick and easy to read, so user won’t
have to stop and examine it closely
! Glances do not support interactivity – tapping on a
glance automatically launches your WatchKit app
Complications
! Complications are small visual elements that
appear on the watch face and convey
important information to the user
! Complication are visible whenever the user
looks at Apple Watch to check the time
! Complications can be updated by:
! Explicitly when you WatchKit extensions is
running
! Ask ClockKit to wake your WatchKit extension at
periodic intervals
! Use push notifications to update your data
! Transfer time-sensitive data from your iOS app
Let’s code something!
The end
! Thanks for your attention!
! Any questions?

More Related Content

What's hot

7 new assaults on data privacy
7 new assaults on data privacy7 new assaults on data privacy
7 new assaults on data privacyEntefy
 
Securing Mobile & Online Identity in the Cyber World
Securing Mobile & Online Identity in the Cyber WorldSecuring Mobile & Online Identity in the Cyber World
Securing Mobile & Online Identity in the Cyber WorldEmil Tan
 
How to Improve Your Mobile App Security Knowledge
How to Improve Your Mobile App Security KnowledgeHow to Improve Your Mobile App Security Knowledge
How to Improve Your Mobile App Security KnowledgeJai Mehta
 
Your 1st Apple watch Application
Your 1st Apple watch ApplicationYour 1st Apple watch Application
Your 1st Apple watch ApplicationCiklum Ukraine
 
Twitter Basics & Extensions
Twitter Basics & ExtensionsTwitter Basics & Extensions
Twitter Basics & ExtensionsJason Rhode
 
User generated data on extreme events
User generated data on extreme eventsUser generated data on extreme events
User generated data on extreme eventsMayra Zurbaran
 

What's hot (10)

Wireless city ecosystem
Wireless city ecosystemWireless city ecosystem
Wireless city ecosystem
 
7 new assaults on data privacy
7 new assaults on data privacy7 new assaults on data privacy
7 new assaults on data privacy
 
Apple watch
Apple watchApple watch
Apple watch
 
Securing Mobile & Online Identity in the Cyber World
Securing Mobile & Online Identity in the Cyber WorldSecuring Mobile & Online Identity in the Cyber World
Securing Mobile & Online Identity in the Cyber World
 
How to Improve Your Mobile App Security Knowledge
How to Improve Your Mobile App Security KnowledgeHow to Improve Your Mobile App Security Knowledge
How to Improve Your Mobile App Security Knowledge
 
Silverback social apps for business
Silverback social apps for businessSilverback social apps for business
Silverback social apps for business
 
Android
AndroidAndroid
Android
 
Your 1st Apple watch Application
Your 1st Apple watch ApplicationYour 1st Apple watch Application
Your 1st Apple watch Application
 
Twitter Basics & Extensions
Twitter Basics & ExtensionsTwitter Basics & Extensions
Twitter Basics & Extensions
 
User generated data on extreme events
User generated data on extreme eventsUser generated data on extreme events
User generated data on extreme events
 

Viewers also liked

Apple - what's new in iOS 10, watchOS 3 & tvOS 10
Apple - what's new in iOS 10, watchOS 3 & tvOS 10Apple - what's new in iOS 10, watchOS 3 & tvOS 10
Apple - what's new in iOS 10, watchOS 3 & tvOS 10Accedo
 
Dependent things dependency management for apple sw - slideshare
Dependent things   dependency management for apple sw - slideshareDependent things   dependency management for apple sw - slideshare
Dependent things dependency management for apple sw - slideshareCavelle Benjamin
 
Learn watchOS Programming!
Learn watchOS Programming! Learn watchOS Programming!
Learn watchOS Programming! Snehal Patil
 
Apple Watch Technology & WatchOS 2
Apple Watch Technology & WatchOS 2Apple Watch Technology & WatchOS 2
Apple Watch Technology & WatchOS 2Saransh Viswari
 
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話Kohki Miki
 
Transfer data from iPhone to iWatch
Transfer data from iPhone to iWatchTransfer data from iPhone to iWatch
Transfer data from iPhone to iWatchPawan Ramteke
 
C language in our world 2016
C language in our world 2016C language in our world 2016
C language in our world 2016Juraj Michálek
 
D2 OPEN SEMINAR - WWDC 핫 이슈
D2 OPEN SEMINAR - WWDC 핫 이슈D2 OPEN SEMINAR - WWDC 핫 이슈
D2 OPEN SEMINAR - WWDC 핫 이슈NAVER D2
 
Development of Mobile Applications
Development of Mobile ApplicationsDevelopment of Mobile Applications
Development of Mobile ApplicationsDávid Kaya
 

Viewers also liked (10)

Apple - what's new in iOS 10, watchOS 3 & tvOS 10
Apple - what's new in iOS 10, watchOS 3 & tvOS 10Apple - what's new in iOS 10, watchOS 3 & tvOS 10
Apple - what's new in iOS 10, watchOS 3 & tvOS 10
 
Dependent things dependency management for apple sw - slideshare
Dependent things   dependency management for apple sw - slideshareDependent things   dependency management for apple sw - slideshare
Dependent things dependency management for apple sw - slideshare
 
Learn watchOS Programming!
Learn watchOS Programming! Learn watchOS Programming!
Learn watchOS Programming!
 
Apple Watch Technology & WatchOS 2
Apple Watch Technology & WatchOS 2Apple Watch Technology & WatchOS 2
Apple Watch Technology & WatchOS 2
 
watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話watchOS 2でゲーム作ってみた話
watchOS 2でゲーム作ってみた話
 
Transfer data from iPhone to iWatch
Transfer data from iPhone to iWatchTransfer data from iPhone to iWatch
Transfer data from iPhone to iWatch
 
C language in our world 2016
C language in our world 2016C language in our world 2016
C language in our world 2016
 
Apple watch course
Apple watch courseApple watch course
Apple watch course
 
D2 OPEN SEMINAR - WWDC 핫 이슈
D2 OPEN SEMINAR - WWDC 핫 이슈D2 OPEN SEMINAR - WWDC 핫 이슈
D2 OPEN SEMINAR - WWDC 핫 이슈
 
Development of Mobile Applications
Development of Mobile ApplicationsDevelopment of Mobile Applications
Development of Mobile Applications
 

Similar to [CocoaHeads Tricity] watchOS 2 - native apps are coming

Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016
Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016
Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016Codemotion
 
I WATCH DOCUMENTATION
I WATCH DOCUMENTATIONI WATCH DOCUMENTATION
I WATCH DOCUMENTATIONAnurag Reddy
 
IOT/Mobile/Cloud - Next Connected World
IOT/Mobile/Cloud  - Next Connected WorldIOT/Mobile/Cloud  - Next Connected World
IOT/Mobile/Cloud - Next Connected WorldRavi Dalmia
 
Apple Watch Kit trainning slide [team iOS - RikkeiSoft]
Apple Watch Kit trainning slide [team iOS - RikkeiSoft]Apple Watch Kit trainning slide [team iOS - RikkeiSoft]
Apple Watch Kit trainning slide [team iOS - RikkeiSoft]Hoang Ngo Anh
 
Apple Watch: Everything You Need To Know As A Marketer
Apple Watch: Everything You Need To Know As A MarketerApple Watch: Everything You Need To Know As A Marketer
Apple Watch: Everything You Need To Know As A MarketerInlight
 
Top 10 iBeacon Questions
Top 10 iBeacon QuestionsTop 10 iBeacon Questions
Top 10 iBeacon QuestionsLocly
 
Workflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyWorkflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyMike Taylor
 
All about Apple Watchkit
All about Apple WatchkitAll about Apple Watchkit
All about Apple WatchkitKetan Raval
 
Password security system for websites
Password security system for websitesPassword security system for websites
Password security system for websitesMike Taylor
 
I phone apps developments interview
I phone apps developments interviewI phone apps developments interview
I phone apps developments interviewPragati Singh
 
Real-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet AppReal-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet AppMike Taylor
 
Community App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural InteractionCommunity App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural InteractionMike Taylor
 
Community App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural InteractionCommunity App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural InteractionMike Taylor
 
iOS 8 Pre-Release Briefing
iOS 8 Pre-Release BriefingiOS 8 Pre-Release Briefing
iOS 8 Pre-Release BriefingThe App Business
 
What's new in iOS 9 ?
What's new in iOS 9 ?What's new in iOS 9 ?
What's new in iOS 9 ?Phonevalley
 

Similar to [CocoaHeads Tricity] watchOS 2 - native apps are coming (20)

Build apps for Apple Watch
Build apps for Apple WatchBuild apps for Apple Watch
Build apps for Apple Watch
 
Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016
Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016
Build Apps for Apple Watch - Francesco Novelli - Codemotion Milan 2016
 
I WATCH DOCUMENTATION
I WATCH DOCUMENTATIONI WATCH DOCUMENTATION
I WATCH DOCUMENTATION
 
IOT/Mobile/Cloud - Next Connected World
IOT/Mobile/Cloud  - Next Connected WorldIOT/Mobile/Cloud  - Next Connected World
IOT/Mobile/Cloud - Next Connected World
 
Apple Watch Kit trainning slide [team iOS - RikkeiSoft]
Apple Watch Kit trainning slide [team iOS - RikkeiSoft]Apple Watch Kit trainning slide [team iOS - RikkeiSoft]
Apple Watch Kit trainning slide [team iOS - RikkeiSoft]
 
WatchOS Architecture
WatchOS ArchitectureWatchOS Architecture
WatchOS Architecture
 
Apple Watch: Everything You Need To Know As A Marketer
Apple Watch: Everything You Need To Know As A MarketerApple Watch: Everything You Need To Know As A Marketer
Apple Watch: Everything You Need To Know As A Marketer
 
Top 10 iBeacon Questions
Top 10 iBeacon QuestionsTop 10 iBeacon Questions
Top 10 iBeacon Questions
 
Workflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyWorkflow automation i phone application for a construction company
Workflow automation i phone application for a construction company
 
IOT
IOTIOT
IOT
 
All about Apple Watchkit
All about Apple WatchkitAll about Apple Watchkit
All about Apple Watchkit
 
Password security system for websites
Password security system for websitesPassword security system for websites
Password security system for websites
 
I phone apps developments interview
I phone apps developments interviewI phone apps developments interview
I phone apps developments interview
 
Real-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet AppReal-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet App
 
Community App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural InteractionCommunity App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural Interaction
 
Community App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural InteractionCommunity App for Promoting Cross-Cultural Interaction
Community App for Promoting Cross-Cultural Interaction
 
I-watch Mindbowser
I-watch MindbowserI-watch Mindbowser
I-watch Mindbowser
 
Apple Watch Intro
Apple Watch IntroApple Watch Intro
Apple Watch Intro
 
iOS 8 Pre-Release Briefing
iOS 8 Pre-Release BriefingiOS 8 Pre-Release Briefing
iOS 8 Pre-Release Briefing
 
What's new in iOS 9 ?
What's new in iOS 9 ?What's new in iOS 9 ?
What's new in iOS 9 ?
 

Recently uploaded

What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutionsmonugehlot87
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 

Recently uploaded (20)

What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutions
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 

[CocoaHeads Tricity] watchOS 2 - native apps are coming

  • 1. watchOS 2 - native apps are coming Mateusz Klimczak
  • 2. Agenda ! watchOS 2.0 – what’s new? ! App components ! Let’s build a simple app!
  • 3. watchOS 2.0 – what’s new
 ! Architecture changes ! More access to the hardware ! Storing data in Keychain ! Tetherless Wi-Fi ! New interface objects ! Animations
  • 4. Architecture changes
 ! All interactions with the watch app must be communicated back to the iPhone ! Hence the watch has this inherent reliance on the iPhone in order to work ! Apps took a long time to load
  • 5. Architecture changes
 ! No need to send data back and forth between the containing iOS app and the watch app ! Communication has changed: Shared App Groups are no longer available, you need to use Watch Connectivity Framework instead
  • 6. Communication ! With Watch Connectivity Framework you can pass files and data back and forth between the watch and its paired iPhone ! If both apps are running in the foreground, then the communication is live, otherwise it happens in the background so that the data or files is available when the receiving app is launched ! WCSession object handles all the communication between the two devices (accessed through defaultSession singleton object)
  • 7. More access to the Hardware ! Accelerometer ! Microphone ! Heart rate monitor ! Taptic Engine ! Complications ! Digital crown
  • 8. Animations ! In old approach you had to cycle through a pre-generated series of images (it is still available) ! Now you can animate changes to the following properties of WKInterfaceObject: ! alpha ! width and height ! vertical and horizontal alignment ! background color ! layout group insets
  • 9. New interface objects ! Movie control ! Picker control ! Alerts and Action Sheets
  • 10. App components ! Notifications ! Glances ! Complications
  • 11. Notifications ! Apple Watch takes full advantage of the existing interactive notification support on iOS ! If your app supports notification, Apple Watch displays those notifications at appropriate times ! iOS decides whether to display that notification on the iPhone or on the Apple Watch ! There are 2 types of notifications: Short-Look and 
 Long-Look.
  • 12. Short-Look notifications ! The Short-Look interface is a nonscrolling screen that cannot be customized ! The system uses a template to display the app name and icon along with the title string ! If the user raises their wrist after a slight pause, the Short-Look notification will transition to the Long-Look notification
  • 13. Long-Look notifications ! The Long-Look interface is a scrollable screen that displays the notification’s content and any associated action buttons ! If you do not provide a custom notification interface, Apple Watch displays a default interface that includes your app icon, the title string of the notification and the alert message
  • 14. Glances ! A glance is a supplemental way for the user to view important information from your app ! It is separated from your app’s other interface controllers ! No all apps need a glance ! A glance provides immediately relevant information in a timely manner ! Glances should be quick and easy to read, so user won’t have to stop and examine it closely ! Glances do not support interactivity – tapping on a glance automatically launches your WatchKit app
  • 15. Complications ! Complications are small visual elements that appear on the watch face and convey important information to the user ! Complication are visible whenever the user looks at Apple Watch to check the time ! Complications can be updated by: ! Explicitly when you WatchKit extensions is running ! Ask ClockKit to wake your WatchKit extension at periodic intervals ! Use push notifications to update your data ! Transfer time-sensitive data from your iOS app
  • 17. The end ! Thanks for your attention! ! Any questions?