android - Flutter - 无法更新或删除应用内购买的托管产品?

标签 android android-studio flutter in-app-purchase google-play-console

目前,我正在使用 FlutterInAppPurchase 在 flutter 中实现应用内购买插件。

我的托管产品中有 3 个项目,我的 google play 控制台,

final List<String> _productLists = ['get_10_coins', 'get_100_coins', 'get_1000_coins']

现在,我更新了“get_10_coins”产品的详细信息,但是,当我使用 FlutterInappPurchase.instance.getProducts(_productLists); 时,它没有反射(reflect)在应用程序中;方法。

然后我删除了该产品并添加了一个新的托管产品,如“get_50_coins”。但是,它仍然向我显示“get_10_coins”产品的旧细节。

// fetching products using the following code
List<IAPItem> items = await FlutterInappPurchase.instance.getProducts(_productLists);

谁能告诉我可能是什么问题?我也已经卸载了应用程序。

谢谢。

最佳答案

我明白了。

因为我已经从 google play 控制台删除了托管产品“get_10_coins”。但是,我正在使用以下方式查询托管产品,

List<IAPItem> items = await FlutterInappPurchase.instance.getProducts(_productLists);

我没有将我的 _productLists = ['get_10_coins', 'get_100_coins', 'get_1000_coins'] 从更新为 _productLists = ['get_500_coins', 'get_100_coins', 'get_1000_coins']

因此,当 Play 控制台向我返回旧产品的相应详细信息时,Play 控制台会保留每个产品的所有详细信息,即使我们将其从 Play 控制台中删除也是如此。

关于android - Flutter - 无法更新或删除应用内购买的托管产品?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59068759/

相关文章:

java - 首次运行 Android 应用程序成功尝试后如何跳过 LoginActivity

安卓工作室 : Error in 'getDefaultdProguarFile()'

json - 从另一个 JSON 对象中提取内部 JSON 对象

asynchronous - Flutter 异步方法会降低应用程序性能

android - 何时广播 ACTION_DEVICE_STORAGE_LOW Intent ?

Android 传感器 - 获取接近传感器值时出现问题以及使用不同手机时出现问题

android - 如何在新的自定义 View 中支持 "tools:text"?

android - 文本大小不会因不同的屏幕布局而改变?

flutter - 如何在 SliverList 中显示滚动条?

android - 通过提供图像 uri 使用图库的直接裁剪功能