25
App to App communication on Windows Phone 8 Geert van der Cruijsen Senior Consultant Avanade

Techdays 2013 - app 2 app communication

Embed Size (px)

DESCRIPTION

Techdays 2013 presentation on App to App communication on Windows Phone 8 (and a little bit of Windows 8). This is a presentation for developers.

Citation preview

Page 1: Techdays 2013 - app 2 app communication

App to App communicationon Windows Phone 8

Geert van der CruijsenSenior Consultant Avanade

Page 2: Techdays 2013 - app 2 app communication

Geert van der Cruijsen

Senior consultant @ Avanade

@Geertvdchttp://vdcruijsen.net

Page 3: Techdays 2013 - app 2 app communication

What is app to app communication?

Page 4: Techdays 2013 - app 2 app communication

App to App Communication

Custom URI Associations File Type Associations

Page 5: Techdays 2013 - app 2 app communication

Custom URI Associations

Launch apps from your appPost tweetCall skypeCompanion apps

Launch your app from core hubsBrowserMessagingEmail

Page 6: Techdays 2013 - app 2 app communication

File Type Associations

Launch your app from from a file handler

Custom file types

Launch an app from within your app to open a file located in your application

OfficePdf

Page 7: Techdays 2013 - app 2 app communication

DemoOpen a file from your app

Demo

Page 8: Techdays 2013 - app 2 app communication

Principles

User is always in control

The list of installed apps is private user data

Standard tasks should be simple and predictable

Page 9: Techdays 2013 - app 2 app communication

Launch URI: skype:call?06123456

1 handler

TEAM

Page 10: Techdays 2013 - app 2 app communication

No handlers

TEAM

Page 11: Techdays 2013 - app 2 app communication

CHOOSE AN APP TO OPEN RESUME.PDF

Multiple handlers

TEAM

Page 12: Techdays 2013 - app 2 app communication

Associate your app to a URIStart with protocol name for your app:

gmdb:movie?id=921283

After the colon, add logic for your app

Page 13: Techdays 2013 - app 2 app communication

Launch another app from your app

Demo

Page 14: Techdays 2013 - app 2 app communication

Using System protocolsYou can not overwrite protocols used by system apps or OS.http:, MailTo:, Map:, Javascript:, File:,ms-settings-wifi, ms-settings-location, zune:reviewapp,(100+ others)

Page 15: Techdays 2013 - app 2 app communication

Passing Files to other apps• Sending app creates copy and

sends it to other app

• No reply communication

Page 16: Techdays 2013 - app 2 app communication

Passing Files to other apps

Sending App

Receiving App

Page 17: Techdays 2013 - app 2 app communication

Passing Files to other apps

Sending App

Receiving App

Data Sharing Service

Create file Brokering token

Page 18: Techdays 2013 - app 2 app communication

Passing Files to other apps

Sending App

Receiving App

Execution Manager

Data Sharing Service

Launch file: Geert.colleagueTokenID=9999

Page 19: Techdays 2013 - app 2 app communication

Passing Files to other apps

Sending App

Receiving App

Execution Manager

Package Manager

Data Sharing Service

Retreive .colleaguehandlers

Page 20: Techdays 2013 - app 2 app communication

Passing Files to other apps

Sending App

Receiving App

Execution Manager

Package Manager

Data Sharing Service

Launch app TokenID=9999

Page 21: Techdays 2013 - app 2 app communication

Passing Files to other apps

Sending App

Receiving App

Execution Manager

Package Manager

Data Sharing Service

Redeem file token

Page 22: Techdays 2013 - app 2 app communication

Register file associationRegister for a file association in the app manifest file

Supply logos that Windows Phone OS will useSmall: 33x33pxMedium: 69x69pxLarge: 176x176px

Page 23: Techdays 2013 - app 2 app communication

DemoBinding to custom file types

Page 24: Techdays 2013 - app 2 app communication

Other ways to launch apps

Demo

Page 25: Techdays 2013 - app 2 app communication

Thank

you!Geert van der Cruijsen@[email protected]://vdcruijsen.net