Top Banner
Jahia on your Wrist Serge Huber, CTO & Co-Founder, [email protected]
28

JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

Aug 08, 2015

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

Jahia on your Wrist

Serge Huber, CTO & Co-Founder, [email protected]

Page 2: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

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

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

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

Latest posts demo

Page 6: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

Anatomy of a Watch app

Page 7: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

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

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

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

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

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

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

Adding a post actionDemo

Page 14: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

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

Handoff demo

Page 16: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

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

Tasks demo

Page 18: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

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

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

Push notifications demo

Page 21: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

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

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

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

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

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

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

Q & A

Page 28: JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by Serge Huber

Thank you !Serge Huber, [email protected]