MeteorJs 移动配置设置仅用于横向?

MeteorJs mobile-config settings for landscape only?

我正在为平板电脑(android 和 iOS)开发一个应用程序,我正在寻找移动配置中禁用横向的某种设置。我知道如何在 iOS 上通过更改 XCode 上的一些设置来做到这一点,但是他们的任何设置都可以为 android 和 iOS 做到这一点。

这仅适用于 android 不适用于 iOS 设备

App.setPreference('Orientation', 'landscape');

也可以只为 ipad 部署一个流星应用程序,我的意思是现在你如果用下面的命令部署它,它就可以为任何 ios 设备。我可以具体一点吗,这样它只适用于 ipads

meteor deploy your-desired-app-hostname.meteor.com
meteor build ~/build-output-directory \
    --server=your-desired-app-hostname.meteor.com

搜索该主题后,我得出结论,这是一个未解决的错误,并且在苹果 ipad 上阻止纵向模式的唯一方法是通过 XCode 手动编辑设置。

您可以签出但是 here