gpt4 book ai didi

testing - 为什么 IAP 产品数量为空?

转载 作者:行者123 更新时间:2023-11-28 21:37:14 25 4
gpt4 key购买 nike

我向应用添加了三个应用内购买,它们处于“准备提交”状态。

我可以在模拟器上提交申请之前测试它们吗?

我问是因为

response.products 

当我使用这个方法时是空的。

func productsRequest(_ request: SKProductsRequest, didReceive response: SKProductsResponse) {
if response.products.count != 0 {
for product in response.products {
print(product.localizedTitle)
}
}
}

最佳答案

您还需要在 App Store Connect 中签署“付费应用协议(protocol)”才能测试产品。

此外,模拟器对于使用 StoreKit 进行任何测试总是很粗略,我建议在物理设备上进行测试。

关于testing - 为什么 IAP 产品数量为空?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57038636/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com