【发布时间】:2011-08-03 22:57:57
【问题描述】:
我只是检查和我的:
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
返回了一个产品数组大小为 0 的 SKProducstResponse。这是为什么呢?如果找不到产品,它应该返回 0 对吗?我检查了产品 ID,它与我在 iTunes Connect 中的 ID 匹配。检查了捆绑标识符,它也匹配。是的,我在设备上测试了这个
更新:
我检查了
response.invalidProductIdentifier
它返回了我试图获取的产品 ID。我浏览了这个列表:
• your app is InApp Purchases enabled? **yes**
• do you have an InApp Purchase test account? **yes**
• the product we offer is marked as "Cleared for Sale"? **yes**
• Did you upload the application to iTunes Connect? **no** (don't think it's necessary since 2011, correct me if I am wrong)
• do you generate and install a provisioning profile for the new "App ID"? **yes**
• Does your project is signed with the new provisioning profile? **yes**
• Are you compiling the project for IOS 3.0 or higher? **yes**
• Are you using the full product ID when you make a SKProductRequest? ie for example: com.company.sampleapp.productid? **yes**
• Has it been several hours since you added the products to iTunes Connect? **yes**
• Does the contract payment application in the iTunes Connect is complete? **just submitted it**
为了让 IAP 运行,我真的应该让付费合同生效吗?
【问题讨论】:
-
您是否得到任何响应对象或它的空值?希望这个bit.ly/qifemx 可以帮助你。
-
我得到一个响应对象
-
你等得够久了吗?有时可能需要几个小时才能显示新产品。
-
是的,检查了我上面更新的帖子
标签: iphone objective-c ipad