How to know when a user installed my app? Passing from paid to freemium

FilBozPar 0 Reputation points
2024-11-25T22:23:20.8566667+00:00

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?

Universal Windows Platform (UWP)
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
352 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 21,071 Reputation points MVP
    2024-11-26T01:37:52.9933333+00:00

    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


  2. Junjie Zhu - MSFT 19,751 Reputation points Microsoft Vendor
    2024-11-27T02:53:52.2166667+00:00

    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.


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.