How to get the trial period of the app from Windows.Services.Store.StoreContext ?

Gil 1 226 Reputation points
2021-07-22T12:57:39.243+00:00

Hello,
In when I publish UWP app, I have option to select if I want 30 days trial, 60 days trial, etc.
This is configurable via the store.

Now in the app iteslf I need to get the trial period and display it to the user.
How it can be done? I could not found any property in the API that give me this information.
I only found the days left property but I want to get the maximum days left.

Thanks

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
988 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.