Techdays 2013 - app 2 app communication
-
Upload
geert-van-der-cruijsen -
Category
Technology
-
view
179 -
download
1
description
Transcript of Techdays 2013 - app 2 app communication
App to App communicationon Windows Phone 8
Geert van der CruijsenSenior Consultant Avanade
Geert van der Cruijsen
Senior consultant @ Avanade
@Geertvdchttp://vdcruijsen.net
What is app to app communication?
App to App Communication
Custom URI Associations File Type Associations
Custom URI Associations
Launch apps from your appPost tweetCall skypeCompanion apps
Launch your app from core hubsBrowserMessagingEmail
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
DemoOpen a file from your app
Demo
Principles
User is always in control
The list of installed apps is private user data
Standard tasks should be simple and predictable
Launch URI: skype:call?06123456
1 handler
TEAM
No handlers
TEAM
CHOOSE AN APP TO OPEN RESUME.PDF
Multiple handlers
TEAM
Associate your app to a URIStart with protocol name for your app:
gmdb:movie?id=921283
After the colon, add logic for your app
Launch another app from your app
Demo
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)
Passing Files to other apps• Sending app creates copy and
sends it to other app
• No reply communication
Passing Files to other apps
Sending App
Receiving App
Passing Files to other apps
Sending App
Receiving App
Data Sharing Service
Create file Brokering token
Passing Files to other apps
Sending App
Receiving App
Execution Manager
Data Sharing Service
Launch file: Geert.colleagueTokenID=9999
Passing Files to other apps
Sending App
Receiving App
Execution Manager
Package Manager
Data Sharing Service
Retreive .colleaguehandlers
Passing Files to other apps
Sending App
Receiving App
Execution Manager
Package Manager
Data Sharing Service
Launch app TokenID=9999
Passing Files to other apps
Sending App
Receiving App
Execution Manager
Package Manager
Data Sharing Service
Redeem file token
Register file associationRegister for a file association in the app manifest file
Supply logos that Windows Phone OS will useSmall: 33x33pxMedium: 69x69pxLarge: 176x176px
DemoBinding to custom file types
Other ways to launch apps
Demo
Thank
you!Geert van der Cruijsen@[email protected]://vdcruijsen.net