Reputation: 4204
On windows store app submission there is a place where it lets you specify a trial period (24 hours or 7 days...). In order to use this feature do i have to implement a code that kills the app after the specified time (The windows store option being just a declaration of the intention) or does the windows run-time handles the killing.
Upvotes: 1
Views: 2858
Reputation: 18803
The following is from the MSDN document How to create a trial version of your app:
Here are a few common expiration scenarios and your options for handling them:
Trial license expires while the app is running, you can:
Upvotes: 1
Reputation: 6021
When you upload an app to the store you specify how long you would like a free trial to last for (a few days, all the way up to never expire).
When the trial expires the application will stop running and the user will be prompted to buy the application to continue using it.
Microsoft have a great sample showing you how to integrate a trial feature in your app. I suggest reading that.
MSDN also documents the different types of licenses available to you:
Upvotes: 3
Reputation: 31724
You can check the expiration date with CurrentApp.LicenseInformation.ExpirationDate
. CurrentApp.LicenseInformation.IsActive
"may return false if the license is expired", which would indicate that you can run the app with an inactive license with say the purpose of displaying a custom UI asking the user to buy the app. That said - I haven't tested it to verify the correctness of the documentation.
Upvotes: -1