In the Clouds with Windows Phone 7

555 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

In the Clouds with Windows Phone 7

  1. 1. IN THE CLOUDS WITHWINDOWS PHONE 7 Danijel Malik Artifis Danijel Malik s.p.
  2. 2. AGENDA• Connect a phone with a Cloud // no need to call mom• Store data in Windows Azure Tables• Sync data with a Cloud or SQL Server• Build responsive phone client // you better call your mom• Push notifications• Windows Azure Toolkit for Window Phone 7
  3. 3. WELCOME TO UNLIMITED WORLDPHONE CLOUD• Connected • Common endpoint• Pervasive • Scalable• Marketplace • „Pay as you go“ They make a great team!
  4. 4. WHAT’S IN COMMON? • Common development tools • Emulator for development • Complementary application models • Phone: somtimes on, connected • Cloud: always available, running
  5. 5. PHONE-INITIATED COMMUNICATION• HTTP-based, request/response• Framework choices (WCF, OData, WebRequest, …)• Wire format choices (SOAP, JSON, POX, …)
  6. 6. Simple Client/Server applicationDEMO
  7. 7. STORING AND SHARING DATA• SQL Azure • Familiar relational database • Highly available, managed for you • T-SQL• Windows Azure Tables • Non-relational structured storage • Scale-out, billions of rows • OData• Windows Azure Blobs • Big files • REST
  8. 8. “HOUSTON CAN YOU HEAR ME?” KHHHKK…“…I think we lost the signal”• Phone is occasionally connected• Synchronize data, cache locally• Sync Framework 4.0 – CTP • Sync with SQL Server or SQL Azure • Silverlight, Windows Phone 7, HTML 5, … • Sync logic on the server, think clients
  9. 9. Using Windows Azure Tables &Sync Framework 4.0 CTPDEMO
  10. 10. WHEN AN APP LOOKS MORE LIKE A COMIC• Put long running operations in a background thread• Prevent doubling• Don’t wait for data• Reactive Extensions • LINQ based queries • Subscriptions • Async & Events
  11. 11. Reactive ExtensionsDEMO
  12. 12. CLOUD-INITIATED COMMUNICATION• Push notifications • Single connection between phone and Microsoft Push Notification service • Bandwidth- and battery-friendly • Delivery not guaranteed• Three kinds of push notifications: • Raw – message to application • Toast – message to user • Tile – image, title, count
  13. 13. PUSH NOTIFICATIONS1. Phone opens a channel2. Phone sends URL to cloud 13. Cloud pushes notifications 4 to MPNS 34. Microsoft Push Notification service notifies phone 2
  14. 14. IS THERE ANY FASTER WAY?• Windows Azure Toolkit for Windows Phone 7 • Proof of concept • ASP.NET MVC 2 (as a Web role) • Windows Phone 7 application • “Getting started” guide• Hire me 
  15. 15. DEMO
  16. 16. RESOURCES• http://msdn.microsoft.com/en- us/library/gg507824.aspx• http://msdn.microsoft.com/en- us/library/cc668772.aspx• http://msdn.microsoft.com/en- us/library/ff637517(v=vs.92).aspx• http://blog.smarx.com/• http://www.afanaat.nl/index.php/2011/01/21/using- the-sync-framework-on-windows-phone-7/• http://blogs.msdn.com/b/johnalioto/archive/2010/0 9/22/10066508.aspx
  17. 17. QUESTIONS?
  18. 18. DANIJEL MALIKhttp://arkcore.wordpress.com danijel@artifis.si @DanijelMalik

×