How to identify the user who bought the application?

I would like the user to be able to upload content to http in my application, but without having to log in.

how to check if a request came to a server with a purchased android application?

PS. Sorry for the scary English.

+4
source share
3 answers

It can be easily processed using the Android LVL library . In short, it works as follows:

  • After the custom request library can receive the LVL library The response to the Android Market service from the Android market is the server on which this application is licensed.
  • The application itself can store a response in the local file system hash of the licensing server

Thus, your application can use these hashes to determine if the application was purchased or not yet.

+4
source

If you use one APK for free and paid, you should use it in the application billing API. Also use it to authenticate the server.

else, if this is only one APK on the market, then each installation will be purchased, I think.

0
source

I would create some kind of key for the premium version (one key for the entire version of the premium class). For instance:

You can download (premium):

http://www.myurl.com/download.php?parameter1=xxx&key=myPremiumVersionKey

You are not allowed to download, because the key / wrong key is not specified (free version):

http://www.myurl.com/download.php?parameter1=xxx

-1
source

Source: https://habr.com/ru/post/1381256/


All Articles