Earlier in this chapter, we discussed the architectural choice to develop a client application for our Mood Tracker. However, web applications do have the choice to use the Web for delivery. In fact, we might want to link the Mood tracker application to our Quantified Self web application so that a user can see other relevant data in a web browser.
It’s important to remember that a web application is a separate application entity from a native client application and that the user has to authorize it separately. The Quantified Self application, when launched from the Mood tracker, will ask the user to sign in and authorize it.
Web applications can use standard browser-detection techniques to present a mobile view of the content. HealthVault Shell does configure its view for mobile applications, and the calling application can always force a mobile view by adding mobile=true to the URL parameters. It would be a good exercise for the reader to implement a mobile view of the quantified self application.