简体   繁体   English

iPhone和iPad的应用购买情况不同

[英]Different in app purchase for iPhone than iPad

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. 想象一下应用程序中的一个按钮触发iPad上的1,99和iPhone上的0.99的应用程序内购买。

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. 由于我们似乎无法通过iTunes Connect为不同的设备设置不同的产品价格,(因此没有发送任何信息)我相信您将必须创建不同的应用内购买商品-不同的产品ID,特别是对于每个设备。

For example, 例如,

Reference Name: Product A 参考名称:产品A
Product ID: com.companyname.productAForIPhone 产品ID:com.companyname.productAForIPhone
Price 0.99 价格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) 参考名称:产品A(从您的问题中可以看出,您希望它具有相同的名称,但iPad价格不同)
Product ID: com.companyname.productAForIPad 产品ID:com.companyname.productAForIPad
Price 1.99 价格1.99

Then just detect the device that the user is using and just send the correct product ID to the app store. 然后,只需检测用户正在使用的设备,然后将正确的产品ID发送到应用商店即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM