I just started teaching myself how to develop applications for Windows Phone 7 in anticipation for the Holiday 2010 release. Being a completely new to windows mobile app development, one question I had was whether or not applications can be made available in the WP7 Marketplace on a trial basis; and if so what do I need to consider when coding my application concerning the trial version of the application?
It turns out that WP7 apps can be made available on a trial basis. I haven’t yet registered as a developer in the marketplace, but I did find out that during the application submission process, you can indicate that you want to make your application available on a trial basis. The WP7 Marketplace apparently handles the whole trial try-before-you-buy scenario for you. That answers my first question.
As far as coding WP7 applications to include a trial mode/version there is some work to do, although it’s relatively simple work. Microsoft has provided us with a class just for this purpose:
Microsoft.Phone.License.LicenseInfo
The LicenseInfo class has one method in particular we’ll need to develop the trial mode for our app – the IsTrial() method. The method does exactly what it indicates - it returns a Boolean value indicating with the application is running in a trial status.
While developing using the LicenseInfo.IsTrial() method, it will always return True. The method will work correctly only after your application has been downloaded and ran through the WP7 Marketplace. During development you will need to simulate trial/non-trial status with your own Boolean variable or some other simulation.
Anyway, just a quick run-down on a couple of things I learned about developing trial applications for Windows Phone 7! Hopefully this post will help other developers with the same questions I had.
Enjoy!
Windows Phone 7
wp7