iPhone 的应用程序购买与 iPad 的不同
如何为不同的设备类型提供不同的应用内购买?
我认为这实施起来相当简单,但是允许吗?
想象一下应用程序中的一个按钮触发应用内购买,iPad 上为 1.99,iPhone 上为 0.99。
How to offer different in-app-purchases for different device types?
I assume this is rather simple to implement, but is it allowed?
Imagine a button in the app triggering an in-app-purchase for 1,99 on the iPad and 0,99 on the iPhone.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

由于我们似乎无法通过 iTunes Connect 为不同设备设置不同的产品价格(因此没有发送任何信息),我相信您必须创建不同的应用内购买项目 - 不同的产品 ID,特别是对于每个设备。
例如,
参考名称:产品 A
产品 ID:com.companyname.productAForIPhone
价格0.99
参考名称:产品A(从你的问题来看,你希望它是相同的名称,只是iPad的价格不同)
产品 ID:com.companyname.productAForiPad
价格 1.99
然后只需检测用户正在使用的设备并将正确的产品 ID 发送到应用商店即可。
Since there seems to be no way for us to set a different product price for different devices via iTunes Connect, (hence no info sent over) I believe that you would have to create a different in-app purchase item - different product ID, specifically for each device.
For example,
Reference Name: Product A
Product ID: com.companyname.productAForIPhone
Price 0.99
Reference Name: Product A (As it seems from your question that you want it to be of the same name, just different price for iPad)
Product ID: com.companyname.productAForIPad
Price 1.99
Then just detect the device that the user is using and just send the correct product ID to the app store.