Get app purchase date for Windows Phone 8.1 and Windows 8.1 applications

71 Views Asked by At

Is there a way, either in C# or C++ APIs for Windows Phone 8.1 and Windows 8.1 Metro applications, to get the user's app purchase date or, in case the app has been downloaded for free, the date of the first download? I'm specifically talking about the application's purchase date, not IAPs.

Thank you in advance.

1

There are 1 best solutions below

0
Mikael Koskinen On

There's few options:

1) Check out Windows.ApplicationModel.Package -class. It's available for 8.1 Store apps and provides information like InstalledDate. Word of warning, some of the properties only work in desktop apps.

2) You should be able to get the app's receipt. Receipt contains PurchaseDate for the product.

3) Manual way: When the app launches for the first time, create a roaming setting / app data where you store the launch date.