Whatsapp 应用程序如何删除应用程序对 iPad 的兼容性? [英] How did Whatsapp app removed app's compatibility for iPad?

查看:25
本文介绍了Whatsapp 应用程序如何删除应用程序对 iPad 的兼容性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到使用不同的应用程序,即使您从 xcode 中删除 iPad 兼容性(见下图)

I have noticed using different applications that, even when you remove the iPad compatibility from xcode (see picture below)

该应用仍会在 iTunes 应用页面中显示与 iPad 兼容(见下图):

the app will still show that is compatible with iPad in the iTunes app page (see picture below):

因此,我想知道,Whatsapp 是如何从其应用中删除 iPad 兼容性的?(见下图):

Therefore, I am wondering, how did Whatsapp removed the iPad compatibility from it's app? (see image below):

谢谢

推荐答案

因为 WhatsApp 在没有电话的情况下无法工作(该应用需要电话号码),所以他们确实使用了 telephony 作为 UIRequiredDeviceCapabilities 在他们的信息列表中的值.这会将应用程序限制为指定为电话的设备.目前仅适用于 iPhone,因此该应用程序无法在 iPad 和 iPod 上运行.

Because WhatsApp does not work without telephony (the app requires the phone number) they did use telephony as UIRequiredDeviceCapabilities value in their info-plist. This limits the app to devices that are designated as telephones. Which currently covers only iPhones, so the app won't work on iPads and iPods.

通常你不能这样做,Apple 不允许任意设置UIRequiredDeviceCapabilities.如果您的应用程序确实需要电话支持,您当然可以使用密钥.

Generally you can't do that, Apple does not allow to arbitrary set UIRequiredDeviceCapabilities. If your app really requires telephony support you can of course use the key.

这篇关于Whatsapp 应用程序如何删除应用程序对 iPad 的兼容性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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