O'Reilly logo

Pro Windows 8 Development with HTML5 and JavaScript by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 32

Images

Selling Upgrades

In this chapter, I show you how to use the Windows Store to sell upgrades to your users from within your app. I demonstrate how to create entries in the simulator file that describe the upgrades, how to get information about which upgrades have been purchased, and how to start the Windows Store process to purchase upgrades.

Defining the Products in the Scenario File

The technique for creating in-app upgrades starts with definitions in a scenario file. For this chapter, I have created a new file in the store folder called upgrades.xml, the contents of which you can see in Listing 1.

Listing 1. The Contents of the upgrades.xml ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required