Reputation: 1595
I am going through some tutorials on how to enable trial version for windows phone 8.1 apps but I have a question which I am not able to find answer of anywhere,
How to set (current date of app installation) + 30 days as expiration date.
It is being referred to always as hard-coded dates like <ExpirationDate>2015-10-30T00:00:00.00Z</ExpirationDate>
. Or does the windows store automatically put it with every app installation.
Upvotes: 0
Views: 99
Reputation: 783
Short Answer
does the windows store automatically put it with every app installation.
Yes, but you need to provide LicenseDuration
.
More on Windows Phone App Trial Experience
To implement a trial experience in your Windows Phone app you can include the LicenseDuration
attribute, if the ProductType
is Durable
. This indicates the number of days for which the license will be valid after the item has been purchased. The expiration date of the new license created by a product purchase is the purchase date plus the license duration. LicenseDuration is ignored for consumable in-app products.
Whereas you can implement a trial experience in your Windows Phone app.
Upvotes: 1