Web Wishes, Intents, Extensions, .. Friedger Müffke, droidcon London 2014

15
Web Wishes, Intents and other app-to-app communication Friedger Müffke

description

Overview of app-to-app application in Android and other platforms.

Transcript of Web Wishes, Intents, Extensions, .. Friedger Müffke, droidcon London 2014

Page 1: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

Web Wishes, Intents and other app-to-app communication

Friedger Müffke

Page 2: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

Good Examples - AndroidShare

Book a table

Barcode scanner

Page 3: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

Bad Examples - AndroidGoogle Maps at first start loses information (VIEW)

OfficeSuite does not allow to confirm picked file (PICK_FILE)

Facebook launch new task on “install now” (VIEW)

Banking app to insert invoice data

Page 4: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

What is new in Android Intents

Document provider intents

FitnessIntents.ACTION_TRACK, AlarmClock.ACTION_SET_TIMER

No more implicit service intents

Page 5: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

Document ProviderCREATE_DOCUMENT

EDIT_DOCUMENT

returns openable content:// url

(similar to PICK_FILE)

Page 6: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

App-to-App Communication

iOS 8 - Extensions

Windows Phones - Charms/Contracts

Rhomobile - Intents API

FireFox OS - WebActivities

Web - WebWishes (was WebIntents)

Page 7: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A - iOS

Action (UI, non-UI)

Document Picker, File Provider

Photo Editing

Share

Page 8: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A - Windows PhoneCharms: Search, Share, Start, Devices, Settings

Contracts/Extension:

Account picture provider

(extension)

AutoPlay (extension)

Background tasks (extension)

Update task (extension)

Cached file updater contract

Camera settings (extension)

Contact picker (extension)

File activation (extension)

File Open Picker contract

File Save Picker contract

Play To contract

Print task settings (extension)

URI activation (extension)

Search contract

Settings contract

Share contract

SSL/certificates (extension)

Page 9: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A - Rhomobile

Rho.Intent

Broadcast intents across platforms

send and start/stop listen

Page 10: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A - FireFox OS

Register activity in manifest

Set message handler “activity” with

postResult, postError

MozActivity (Intent object) with

onSuccess, onError

Page 11: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A - FireFox Android

From Web, open Android app via fixed mapping for

dial, open, pick, send, view

WebIntents Agent (Google Summer of Code 2012)

Page 12: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A WebWebIntents are dead, …

Issue with User experience

… long live WebWishes

Registration in Manifest

CurrentWishDuplex Communciation

Embedded Wish Services

Page 13: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

A2A - Android app on Chrome

Page 14: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

App Store API

Query for apps that implement an intent

Google Play

AppBrain

OpenIntents

Data as in F-Droid or One Platform’s APPDF

Page 15: Web Wishes, Intents, Extensions, ..  Friedger Müffke, droidcon London 2014

Friedger Müffke

fmdroid

+FriedgerMüffke

friedger