在flutter应用程序上使用IOS验证应用内购买产品 [英] Validate In-app purchase product with IOS on flutter application

查看:47
本文介绍了在flutter应用程序上使用IOS验证应用内购买产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Flutter创建的应用程序.在本教程中,我想通过库

您知道为什么我的产品未通过验证吗?并且您是否确认我的原因是我的产品列表始终为空?

解决方案

我找到了解决方案.该列表为空,因为appstoreconnect出现问题,但问题不在于产品本身.

实际上,我需要填写税收,协议和计费部分.所以我只需要添加一个计费帐户.这不是很直观.

I have an application created with Flutter. In this one, I want to use in-app purchase by using the library in_app_purchase

But I have some problems on iOS. I try to get the list of the products with:

const Set<String> _kIds = {'product1', 'product2'};
final ProductDetailsResponse response = await 
InAppPurchaseConnection.instance.queryProductDetails(_kIds);
if (!response.notFoundIDs.isEmpty) {
    // Handle the error.
}
List<ProductDetails> products = response.productDetails;

But when I do this, the list of products is always empty. But I created my product (a auto renewal subsciption) on appstoresonnect.

I think it's because in appstoreconnect website, my product is not validated. After every submission, I have the message: "Developper action needed" but I don't know which action I need to do. The only thing "strange" is that I have a red dot in front of every languages but each fields (name and description) are filled. I already try to change it or add or delete some languages but it's always returned with the "developper action needed" message.

This is some pictures (sorry in french) of the message and the details:

Do you have an idea why my product is not validated ? And do you confirm me that it's because of this that my list of products is always empty ?

解决方案

I find the solution. The list was empty because there was a problem on appstoreconnect but the problem wasn't on the product itself.

In fact, I needed to fill the tax, agreements and billing section. So I just needed to add a billing account. It was not very intuitive.

这篇关于在flutter应用程序上使用IOS验证应用内购买产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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