关于android下无法使用iap继续购买消费型道具的问题

本文介绍了Google Play中应用内购的管理方式。一旦用户成功购买应用内商品,该商品即被视为“拥有”。处于“拥有”状态的商品无法再次购买,开发者必须发送消耗请求将商品状态重置为“未拥有”,才能重新购买。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官方给出解释:

消费类每次购买后, 同一个key对应的属性会编程owned, 你必须消耗掉这次购买, 才可以继续进行购买


原文:

In Version 3, all in-app products are managed. This means that the user's ownership of all in-app item purchases is maintained by Google Play, and your application can query the user's purchase information when needed. When the user successfully purchases an in-app product, that purchase is recorded in Google Play. Once an in-app product is purchased, it is considered to be "owned". In-app products in the "owned" state cannot be purchased from Google Play. You must send a consumption request for the "owned" in-app product before Google Play makes it available for purchase again. Consuming the in-app product reverts it to the "unowned" state, and discards the previous purchase data.


http://developer.android.com/google/play/billing/api.html#consume

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值