In WP8, there is a LicenseInformation class to find out if the application is in a trial state or has already been purchased.
Now what I want to do is make my application run in trial mode for only 7 days (and end later).
MSDN docs are now somewhat misleading on this topic, so I have these questions after reading them.
Is LicenseInformation.ExpirationDate useless for my purpose? "This API always returns 9999 - 12 - 31 (ETERNITY_FILETIME_TIME)." The trial license itself never seems to end, is that right?
Can I use LicenseInformation.IsActive? " Can return false if the license is missing, expired, or canceled. ", " IsTrial returns true even after the trial period expires. IsActive, however, returns false after the trial period expires . " If so, how to set the expiration date?
Thanks!
Yes, expiration time is always the value of DateTime.Max.
No. This is not suitable for your needs.
There is nothing in the Trial API to enable expiration after a certain period. You must implement this functionality yourself.
7 , :
/ , , , .
/ -. , reset ., , . ( .)
, , , , , .