1 / 37

App-to-App Communication

App-to-App Communication. Sean McKenna Program Manager, Windows Phone seanmck@microsoft.com 2-212. What is App-to-App Communication?. In the beginning…. Extending apps with the phone. Your App. What about the other way…?. Extending the phone with apps. And finally….

glynn
Download Presentation

App-to-App Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. App-to-App Communication Sean McKenna Program Manager, Windows Phone seanmck@microsoft.com 2-212

  2. What is App-to-App Communication?

  3. In the beginning…

  4. Extending apps with the phone Your App

  5. What about the other way…?

  6. Extending the phone with apps

  7. And finally…

  8. Custom URI Associations • Launch other apps to complete tasks • Play an album on Spotify • Play a video in YouTube • Post an update to Facebook • Launch device settings • Link your app into core experiences • Browser • Messaging • Email Launcher.LaunchUriAsync(newUri("myapp:foo=1&bar=2"));

  9. Useful Built-in URI Associations

  10. File Type Associations • Launch files in the right app • Microsoft Office • Adobe Reader • Hike & Bike • Handle custom files in your app • Browser • Email • Office Hub varpdfFile = awaitStorageFile.GetFileFromApplicationUriAsync(newUri("ms-appdata:///Local/mydoc.pdf")); Launcher.LaunchFileAsync(pdfFile);

  11. Useful built-in file types Microsoft Word documents Microsoft PowerPoint presentations Microsoft Excel spreadsheets

  12. Demo: Opening an Office Document

  13. A Look Under the Hood Data Sharing Service Create file brokering token Redeem token for file Target App Source App Execution Manager Launch by file: Foo.bar TokenID = 1234 Launch target with token Get handlers for ‘.bar’ Package Manager

  14. User Experience

  15. Guiding Principles • User is always in control • Apps cannot take over an extension • The list of installed apps is private user data • Apps cannot query installed apps, URI associations, or file extensions • Standard tasks should be simple and predictable • Standard types are handled by built-in experiences

  16. One Handler Launch URI: skype:call?5551234

  17. No handlers

  18. 2+ Handlers

  19. What’s happening in the wild?

  20. Demo: Building a mashup with URI Associations

  21. Using URI Associations to Extend Your App Spotify spotify:album:<albumID> spotify:track:<trackID> YouTube vnd.youtube:<videoID>

  22. Using URI Associations to Extend Your App Facebook fb:profile[?id=<profileId>] fb:events[?id=<eventId>] fb:groups[?id=<groupId>] fb:pages[?id=<pageId>] fb:post?text=<textToPost> Foursquare foursquare://venues/<venueID> foursquare://checkins/<checkinID> foursquare://tips/<tipID> foursquare://users/<userID>

  23. Using URI Associations to Extend Your App Here Drive (+others) ms-drive-to:?destination.latitude=<latitude> &destination.longitude=<longitude> &destination.name=<name> Here Maps (+others) ms-walk-to:?destination.latitude=<latitude> &destination.longitude=<longitude> &destination.name=<name>

  24. Target apps Your app can be launched based on a URI sent from another device Handler code is exactly the same Proximity capability is not required Source apps You can launch apps on other devices using the Proximity APIs App Launching via Proximity

  25. Demo: Launching via proximity

  26. Coming Soon: Facebook Single Sign-On

  27. Facebook Single Sign-On • Register your app with Facebook Dev Portal • Invoke auth with FB AppIDand requested permissions • Handle reactivation when user returns from Facebook app

  28. Facebook Single Sign-On Facebook App Your App

  29. Recap • Use URI schemes and file associations to extend your app • Support your own schemes and file types for exposure • Help us evangelize and catalog these extensions

  30. THANK YOU! • Sean McKenna • seanmck@microsoft.com

  31. Q&A • Sean McKenna seanmck@microsoft.com

  32. Required Slide *delete this box when your slide is finalized Your MS Tag will be inserted here during the final scrub. Evaluate this session • Scan this QR codeto evaluate this session and be automatically entered in a drawing to win a prize!

  33. Coming Soon: Facebook Single Sign-On

  34. Facebook Single Sign-On • Register your app with Facebook Dev Portal • Invoke auth with FB AppIDand requested permissions • Handle reactivation when user returns from Facebook app

  35. Facebook Single Sign-On Facebook App Your App

More Related