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

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

问题描述

我正在运送两个二进制文件;一个用于iPhone / iTouch,另一个用于iPad。它是相同的应用程序。



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



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



建议?

解决方案

我一直在寻找这个,因为我无法阻止iPhone应用加载到iPad上。搜索了一下,了解为什么会发生这种情况,遵循@ hotpaw2 insctructions并在官方苹果商店规则中发现:





更新:




2.4.1为确保人们充分利用您的应用,iPhone应用应尽可能在iPad上运行。我们建议您考虑使用
构建通用应用,以便客户可以在所有
设备上使用它们。了解有关通用应用的更多信息。


https://developer.apple.com/appstore/resources/approval/guidelines.html


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

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.

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.

Suggestions?

解决方案

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 insctructions and found this on the official apple store rules:

UPDATE:

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/appstore/resources/approval/guidelines.html

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

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