I'm trying to get In App Purchase with my existing iPad App working. I'm stuck retrieving the Product Information from App Store:
我正在尝试使用现有的iPad App进行In App Purchase。我无法从App Store检索产品信息:
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
The SKProductsResponse only contains invalid Product IDs. I tried every potential solution I found here or on the net:
SKProductsResponse仅包含无效的产品ID。我尝试了我在这里或网上找到的所有可能的解决方案:
- my App ID has In App enabled
- I generated a new provisioning profile and installed it on my device
- I restarted the device
- my App ID is the same as in my Info.plist (it's in the Store since weeks)
- I added In App Purchases for the App with "cleared for sale" checked
- I added Screenshots to my In App Purchases
- I tried different naming schemes for the Product ID
- I made triple checked that I pass the correct Product ID to the SKProductsRequest
- I'm passing a NSSet to the SKProductsRequest instead of a MutableSet
- I updated my App with the upcoming version containing in App purchase and submitted it for Review
- I approved one of my In App Purchases, just to see if that helps
- I waited more than 24 hours
我的应用程序ID已启用In App
我生成了一个新的配置文件并将其安装在我的设备上
我重新启动了设备
我的应用程序ID与我的Info.plist中的相同(自几周以来它在商店中)
我在应用程序中添加了In App Purchases,并已选中“已售出”
我添加了截图到我的In App Purchases
我为产品ID尝试了不同的命名方案
我做了三重检查,我将正确的产品ID传递给SKProductsRequest
我正在将NSSet传递给SKProductsRequest而不是MutableSet
我使用即将发布的应用程序版本更新了我的应用程序,并将其提交给了Review
我批准了我的一个In App Purchase,只是为了看看是否有帮助
我等了24个多小时
All of these actions brought me nothing but invalid Product IDs.
所有这些操作都给我带来了无效的产品ID。
I hope someone can point me into the right direction, because I'm running out of ideas.
我希望有人可以指出我正确的方向,因为我的想法已经不多了。
1 个解决方案
#1
3
Are you logged in as an In-App Purchase test user? (You can create one via iTunes Connect under manage users). Products that have not been approved for sale will not appear if you're using a regular account, even if it's a development build, and even if the app itself has cleared for sale. You may need to sign out of your regular account on the iPhone first (Home Screen -> Settings -> App Store -> Log out).
您是否以应用程序内购买测试用户身份登录? (您可以通过管理用户下的iTunes Connect创建一个)。如果您使用的是普通帐户,即使它是开发版本,即使应用程序本身已经清除销售,也不会显示尚未批准销售的产品。您可能需要首先在iPhone上退出常规帐户(主屏幕 - >设置 - > App Store - >退出)。
You say you're getting invalid product ids rather than none though - what kind of ids are you getting back? Are they gibberish or is it returning someone else's ids? Examples would help.
你说你得到了无效的产品id而不是没有 - 你回来了什么样的ID?他们是胡言乱语还是归还别人的ids?例子会有所帮助。
#1
3
Are you logged in as an In-App Purchase test user? (You can create one via iTunes Connect under manage users). Products that have not been approved for sale will not appear if you're using a regular account, even if it's a development build, and even if the app itself has cleared for sale. You may need to sign out of your regular account on the iPhone first (Home Screen -> Settings -> App Store -> Log out).
您是否以应用程序内购买测试用户身份登录? (您可以通过管理用户下的iTunes Connect创建一个)。如果您使用的是普通帐户,即使它是开发版本,即使应用程序本身已经清除销售,也不会显示尚未批准销售的产品。您可能需要首先在iPhone上退出常规帐户(主屏幕 - >设置 - > App Store - >退出)。
You say you're getting invalid product ids rather than none though - what kind of ids are you getting back? Are they gibberish or is it returning someone else's ids? Examples would help.
你说你得到了无效的产品id而不是没有 - 你回来了什么样的ID?他们是胡言乱语还是归还别人的ids?例子会有所帮助。