如何检查我的应用内计费产品是由用户已经购买的应用程序? [英] How to check my In-app billing product is already purchased in app by user?

查看:190
本文介绍了如何检查我的应用内计费产品是由用户已经购买的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检查时,应用程序启动,那么在应用内产品已经由用户或购买没有。

i need to check when app start then the In-App product is already purchase by user or not.

如何检查用户已经购买指定的应用程序的产品?

how to check user is already purchase specify app product ?

它也工作时,应用程序卸载并重新安装应用程序,该功能通过Android的API提供或不?

its also working when app uninstall and re-install app , this functionality provide by android api or not ?

任何人都可以建议我哪一步遵循此所以用户不会再购买的产品,我们为您在应用程序端的购买,然后我们给于应用程序的一些功能给用户。

can anyone suggest me which step follow for this so user not again purchased product and we check in app side its purchased then we give some features to users in app..

感谢

推荐答案

首先,你需要一个数据库,以持续的订单。其次重要的是,当用户安装了您的应用程序。你必须发出一个RESTORE_TRANSACTIONS哪些用户已购买和插入结果到本地数据库中。你可以阅读更多的在这个环节。 <一href="http://developer.android.com/guide/market/billing/billing_overview.html">http://developer.android.com/guide/market/billing/billing_overview.html

First of all, you need a database to persist the orders. Second of all, when the user install the your app. You have to issue a RESTORE_TRANSACTIONS what the user has bought and insert the result into the local database. you can read more in this link. http://developer.android.com/guide/market/billing/billing_overview.html

搜索关键字RESTORE_TRANSACTIONS

search for the keyword RESTORE_TRANSACTIONS

这篇关于如何检查我的应用内计费产品是由用户已经购买的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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