【问题标题】:MeteorJs mobile-config settings for landscape only?MeteorJs mobile-config 设置仅适用于横向?
【发布时间】:2015-09-04 06:39:33
【问题描述】:

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

这仅适用于 android 而非 iOS 设备

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

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

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

【问题讨论】:

    标签: javascript android ios meteor mobile-application


    【解决方案1】:

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

    你可以签出但是here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-28
      • 2011-02-08
      • 2019-01-21
      • 1970-01-01
      相关资源
      最近更新 更多