Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of Installed App From Google Play Against Google Account

Following are my problems:-

  1. Is it possible to get the list of applications that a user has installed, against their google account through Google Play, programmatically through the use of any api?. Please note that I am not asking about the list of apps currently installed in the device, but ones that have at some point been installed.

I need a solution to the above as I am thinking of a scenario in my app, which is:

  • I want to give my app to the user for free during the first three months, after three months if user uninstalls the app and then installs it again I want to detect through any api (from Google Play) that the user has installed the app a second time (and should not get any free usage). Please note that I don't want to use any web service to store the account id & device id of the user at my side.
like image 293
Shashank_Itmaster Avatar asked Jul 30 '12 09:07

Shashank_Itmaster


1 Answers

For option 2, you can create a file on the SD card. This will remain there when the user uninstalls/installs. But the user can always delete your special file. Unless you do something at your side, you are never sure if the user already used your app before.


To be completely sure, store it online: You will need to have a very simple database which holds a list of device_id that installed your app. Further more a webpage which fills this database. In your app you download/open this webpage which the webpage will fill the DB.

App > WebClient (or other) which opens http://www.example.com/registerDevice.php?device_id=. The php site fills the db.

You app will need to check the database if the current device already has installed this app inorder to work/not work. You can do this via the same php and check the response. You could for example return 'ok' or 'not ok' or something else.

like image 60
RvdK Avatar answered Oct 21 '22 17:10

RvdK