安装的应用程序的列表,谷歌对战谷歌​​帐户 [英] List of Installed App From Google Play Against Google Account

查看:104
本文介绍了安装的应用程序的列表,谷歌对战谷歌​​帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我的问题: -

Following are my problems:-

  1. 是否有可能得到应用的用户已经安装了,对他们的谷歌帐户通过谷歌的播放列表中,以编程方式通过使用任何API的?请注意,我不问关于当前安装在设备应用程序列表中,但已经安装那些有在某个时候。

我需要一个解决方案上面,因为我在我的应用程序,这是一个思维情景:

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

  • 我想,如果用户卸载应用程序给我的应用程序为免费用户在头三个月,三个月后,然后再装上它,我想检测通过任何API(从谷歌播放)用户已安装该应用程序第二次(且不应得到任何免费使用)。 请注意,我不希望使用任何Web服务来存储帐户ID和放大器;在我身边的用户的设备ID。

推荐答案

有关选项2,您可以创建在SD卡上的文件。当用户卸载/安装这将继续留在那里。但是,用户可以随时删除自己的特殊文件。除非你做的东西在你身边,你永远不会知道,如果用户已经使用过的应用程序。

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.

要完全确定,其存储在线: 你需要有一个持有DEVICE_ID为您安装的应用程序的列表非常简单的数据库。 更进一步网页填补这个数据库。 在你的应用程序,你下载/打开这个网页,该网页将填补数据库。

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.

应用程序> Web客户端(或其他),这将打开 http://www.example.com/ registerDevice.php?DEVICE_ID = 。 PHP的网站充满分贝。

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

您的应用程序将需要检查的数据库,如果当前设备已经安装了这个应用程序序工作/无法正常工作。您可以通过相同的PHP做到这一点,并检查响应。例如,你可以返回'OK'或者'不正常'或别的东西。

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.

这篇关于安装的应用程序的列表,谷歌对战谷歌​​帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆