jahiaone 2015 - jahia on your wrist (the apple watch integration example) by serge huber
TRANSCRIPT
![Page 2: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/2.jpg)
But first… Started coding Jahia in 1999 6 people meeting in my parents
house Mom baking brownies for our
meetings And now, a major player in the
UXP market …Thanks to you !
![Page 3: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/3.jpg)
Objectives Create a tool for Jahia communities,
moderators and administrators Highly focused utility with short
interactions Do most immediate actions directly
on Watch, never take the iPhone out!
React quickly, from anywhere, to spam or important events
![Page 4: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/4.jpg)
Attention ! This is a brand new technology So most of the bugs will be
due to Apple or network connectivity issues (Wifi/Bluetooth)
The camera might fall on me And the rest might be my fault
![Page 5: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/5.jpg)
Latest posts demo
![Page 6: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/6.jpg)
Anatomy of a Watch app
![Page 7: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/7.jpg)
How it works
Apple Watch
iPhone
Jahia Digital Factory
BLE REST/JSON Custom actions
JCR REST API
Custom modules
![Page 8: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/8.jpg)
1. Start iPhone App
2. Configure connection to Jahia Server
3. You can then use both iPhone and Watch applications
Initial startup
![Page 9: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/9.jpg)
Apple Watch app startup flow
Watch App Digital Factory
login
load latest posts
![Page 10: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/10.jpg)
Getting list of posts JCR query using REST
API Limited to last 20 posts Result is JSON object
containing an array of all the matching nodes
select * from [jnt:post] as p order by p.[jcr:created] desc
![Page 11: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/11.jpg)
Post detail and actions Details already loaded from list Actions on post are a problem : they can
differ from one user to another (due to permissions)
Actions are retrieved through a separate REST call on an custom DF action class (postActions)
![Page 12: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/12.jpg)
Getting post actionsDigital Factory
SERVER_URL/POSTPATH.postActions.do
Watch App
![Page 13: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/13.jpg)
Adding a post actionDemo
![Page 14: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/14.jpg)
Handoff integration Watch app uses Handoff when viewing a
post or task details Makes it easy to switch to a larger device
to view more details
![Page 15: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/15.jpg)
Handoff demo
![Page 16: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/16.jpg)
Workflow tasks integration
Get list of open tasks for a user View the task, handoff to phone to preview
changes
![Page 17: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/17.jpg)
Tasks demo
![Page 18: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/18.jpg)
Tasks : how it works Simple REST API access to retrieve all
tasks from a user In detail view, use “taskActions.do” DF
action to retrieve list of next possible workflow steps
Can work with custom workflows !
![Page 19: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/19.jpg)
Push notifications
Apple Watch
iPhoneJahia Digital
Factory
Apple Push notification
service
BLE REST/JSON
![Page 20: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/20.jpg)
Push notifications demo
![Page 21: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/21.jpg)
iPhone App Startup flowiPhone App Digital Factory
login
register device token
Apple Push Notification Service
register for remote notifications
load latest posts
![Page 22: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/22.jpg)
Installing 3 modules:
ios-push-notifications : implements support for registering iOS devices and pushing notifications to them
jahia-watcher-backend : implements DF actions used by the native mobile app
jahia-spam-filtering : use to add “mark as spam” filtering technology
Native watchOS app to install on iPhone/Watch
![Page 23: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/23.jpg)
Tips and tricks Don’t forget to deactivate Wrist detection during
development or your app will not launch ! Keep traffic to a minimum as the user might
turn his watch and turn off the screen Don’t require users to get the phone out for
simple actions, do them with the Watch directly !
![Page 24: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/24.jpg)
Watch impressions Decent battery life (1 full day, 7-midnight with
about 20% charge remaining) Screen will turn off very quickly, take that into
account ! Not a dumb reading terminal, you can and
should allow users to perform actions on it! (lots of early apps make this mistake!)
![Page 25: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/25.jpg)
watchOS 2 On Monday, June 8th, Apple announced the
new Watch SDK Untethered apps are now possible ! App could now perform more operations offline,
and sync when network is available Access to sensors can improve user
interactions or personalization
![Page 26: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/26.jpg)
Where/when can I get it ? Digital Factory modules :
iso-push-notifications : https://github.com/Jahia/ios-push-notifications
jahia-watcher-backend : https://github.com/Jahia/jahia-watcher-backend
jahia-spam-filtering : https://github.com/Jahia/jahia-spam-filtering
iOS native module application : beta TestFlight program to open soon, contact me for joining
![Page 27: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber](https://reader030.vdocuments.mx/reader030/viewer/2022032505/55c623b0bb61ebdd338b47c1/html5/thumbnails/27.jpg)
Q & A