0

I'm trying to get androids new In-APP Billing to work with unlockable content. For example, the user can unlock special content for a limited time. The content comes from a web service, the problem I have is, how do I know when the user can view the content?

Because the user can buy it multiple times I use the items unmanaged. So I somehow have to store the users information in my service, so I can provide content when he is allowed to.

The problem is that I don't have any information about the user, no ID, only a orderid which is not remembered by google. So if he changes phone or wipes the database the access is lost.

What is the best possible way ensure the user has access to the content?

4

1 回答 1

0

我能想到的唯一方法是将其存储在远程服务器上,您可以在其中保存谁拥有什么的数据。

要为用户创建 ID,您可以创建某种类型的 UUID,请参见:

http://android-developers.blogspot.com/2011/03/identifying-app-installations.html

于 2011-03-31T12:37:42.167 回答