you can use the StoreContext.GetUserCollectionAsync()
method to get Microsoft Store info for the add-ons of the current app for which the user has purchased.
Ref:
StoreContext.GetUserCollectionAsync(IIterable<String>) Method
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a paid desktop app on the Microsoft Store. I will be changing the monetization from paid to freemium.
So the users will be able to download the app for free and will be offered a subscription to unlock some features.
Now the problem is that i don't want to show a subscription to old users that paid the app in the past.
How can I detect these users? Is there a first install date of the user that I can use from the Windows Store APIs?
you can use the StoreContext.GetUserCollectionAsync()
method to get Microsoft Store info for the add-ons of the current app for which the user has purchased.
Ref:
StoreContext.GetUserCollectionAsync(IIterable<String>) Method
Hello @FilBozPar ,
Welcome to Microsoft Q&A!
Now the problem is that i don't want to show a subscription to old users that paid the app in the past. How can I detect these users? Is there a first install date of the user that I can use from the Windows Store APIs?
You could take a look at Get subscriptions for a user, which contains the full request example and response body. The value expirationTime and lastModified may help.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.