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 | Other
{count} votes

Your answer

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