阻止 iPhone 应用程序在 iPad 上运行 [英] Prevent iPhone app to run on iPad

查看:37
本文介绍了阻止 iPhone 应用程序在 iPad 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要发送两个二进制文件;一个用于 iPhone/iTouch,另一个用于 iPad.这是同一个应用程序.

I'm shipping two binaries; one for iPhone/iTouch and the other for iPad. It's the same application.

Apple 会确保用户永远不会在 iPad 上收到 iPhone 版本的应用程序吗?如果是,那么我没有什么可担心的,但如果不是,那么我确实有问题.

Will Apple ensure that the user will never receive an iPhone version of the app on the iPad? If YES, then I don't have anything to worry about, but if not then I do have a problem.

我问的原因是 iPhone 应用程序根本无法在 iPad 上正常工作,因为服务器知道它是 iPad 并将向它提供 iPad 高清内容,而 iPhone 无法处理.如果在 iPad 上运行 iPhone 应用程序以便接收正确的资源,我宁愿不破解我的应用程序以向服务器发送虚假设备类型.

The reason I ask is the iPhone application will simply not work correctly on the iPad because the server knows it's an iPad and will deliver the iPad HD content to it and the iPhone cannot handle that. I would rather not hack my application to send the server a fake device type if running the iPhone app on the iPad in order to receive the correct resources.

建议?

推荐答案

我一直在寻找这个,因为我无法阻止 iPhone 应用程序在 iPad 上加载.搜索了一下以了解为什么会发生这种情况,按照@hotpaw2 说明进行操作,并在官方 Apple Store 规则中找到了这一点:

I've been looking for this for a while because I couldn't prevent the iPhone app to load on the iPad. Searched a bit to understand why this was happening, followed @hotpaw2 instructions and found this on the official apple store rules:

2.4.1 为确保人们充分利用您的应用,iPhone 应用应尽可能在 iPad 上运行.我们鼓励您考虑构建通用应用程序,以便客户可以在他们的所有设备.详细了解通用应用.

2.4.1 To ensure people get the most out of your app, iPhone apps should run on iPad whenever possible. We encourage you to consider building universal apps so customers can use them on all of their devices. Learn more about Universal apps.

https://developer.apple.com/app-store/review/guidelines/

这篇关于阻止 iPhone 应用程序在 iPad 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆