Flutter – in_app_purchase插件 – iOS – 在模拟器上运行正常,但在设备上不起作用

huangapple go评论67阅读模式
英文:

Flutter - in_app_purchase plugin - iOS - works in sim but not on device

问题

在构建iOS应用时,_inAppPurchase.queryProductDetails(productIds); 在模拟器(iPad、iPhone)中返回产品详情,并且一切正常。但是,如果我在物理iPhone上运行,productDetailResponse.productDetails.isEmpty 为true,并且我的产品ID在notFoundIDs中。如果我使用'synced StoreKit.storekit..'并在TestFlight中尝试,情况也一样。使用的in_app_purchase版本为^3.1.7。为什么会出现这种情况?

英文:

Building an iOS app, _inAppPurchase.queryProductDetails(productIds); returns product details in a simulator (ipad, iphone) and everything works. But if I run on a physical iPhone productDetailResponse.productDetails.isEmpty is true and my product ids are in notFoundIDs. Same if I 'flutter build ipa' and try in TestFlight. Using synced StoreKit.storekit.. in_app_purchase: ^3.1.7. Why this may be?

答案1

得分: 0

将以下内容翻译为中文:

"Getting all "Agreements, Tax and Banking" bits sorted and "Active" in App Store Connect has fixed it. Things started working the same on the device, simulator and TestFlight as soon as the forms got reviewed and approved."

英文:

Getting all "Agreements, Tax and Banking" bits sorted and "Active" in App Store Connect has fixed it. Things started working the same on the device, simulator and TestFlight as soon as the forms got reviewed and approved.

huangapple
  • 本文由 发表于 2023年6月2日 13:58:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76387478.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定