如何为应用内购买创建产品 ID
我正在尝试测试我的 iPhone 应用程序的应用内购买,并且了解如何设置测试用户,但我不确定如何创建可以使用的产品 ID。我不想在未经测试的情况下将我的应用程序提交到应用程序商店,但似乎您必须提交才能管理应用程序内购买?我做错了什么?
I am trying to test in app purchases for my iPhone App and I see how to setup test users, but I am not sure how to create a product id that I can use. I do not want to submit my app to the app store without testing, but it seems like you have to submit in order to manage in app purchase? What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的bindle id 是否包含通配符?您必须在 iTunesConnect 中创建一个新应用程序,但捆绑 ID 不能包含 *.它必须是“com.yourcompanyname.yourappid”。原因是应用内购买的产品 ID 必须与特定的应用程序捆绑包 ID 相关联,而不是与通用应用程序捆绑包 ID 相关联。
Does your bindle id contain a wildcard? You must create a new app in iTunesConnect but the bundle id cannot contain an *. it must be "com.yourcompanyname.yourappid". The reason is that the product id for in app purchase must be tied to a specific app bundle id and not a generic one.
继续使用您选择的产品 ID 创建您的应用内购买,只需不要上传屏幕截图(奇怪的是仅用于审核过程),一切都会正常。
您将需要创建一个新应用程序并提交构建,但您可以立即拒绝它 - 应用程序内购买需要知道您的应用程序的捆绑 ID,否则将无法创建所需的关系。
Go ahead and create your in-app purchase with your product Id of choice, just don't upload a screen grab (used strangely only for the review process) and it will all work.
You will need to create a new application and submit a build, but you can reject it straight away - in app purchasing needs to know the bundle id of your app otherwise it would not be able to create the required relationship.