Placed your client application for the service. I want to provide the service only to those who bought it at the play store. How to identify the user who bought my application?
- Saw something similar in some applications. Suppose if you downloaded its pro version for some time it works without ads, and then it knocks out a message when entering “The app store application initialization error, the application will work with ads” - ParanoidPanda
- Yes, something like this and trying to do. Now I stopped at the option with the implementation of a paid subscription via google play services. There is an opportunity to check the status of the purchase through the API from Google. I had to connect the google play services library to the program. - Evgy
1 answer
So what's the problem? Insert the purchase verification code when the application is turned on, it will be necessary to check the purchase status by its ID in the google play console and continue to provide the service depending on the final result. Here is a link to a good library, which I use for shopping. If you're not talking about in-game purchases, then in the case of buying an application, when a person enters it and it will be clear that he bought it, because the application is paid, then you insert authentication to your service in this application and that's it, from here you get Old, who bought what. If you are worried that someone might have installed a pirated version, then it is much more difficult, you will need to make a separate service (for yourself) that will separately check the purchase status, i.e. do not just trust the function from Google, which returns the purchase status to True, and after that you still have to check whether the account from this user is replenished for such a purchase, there is no ready-made solution, you have to do it yourself
- Apparently, thanks anyway ... - Evgy