简体   繁体   English

Cordova / Phonegap在iOS上的config.xml中忽略全屏首选项

[英]Cordova/Phonegap ignores fullscreen preference in config.xml on iOS

I have defined 我已经定义了

<preference name="Fullscreen" value="true"/>

But deploying through Xcode it ignores this. 但是通过Xcode进行部署却忽略了这一点。 Even if I set hide status bar on the build settings. 即使我在构建设置上设置了隐藏状态栏。 All my other config.xml settings seem to work, but not this. 我的所有其他config.xml设置似乎都有效,但不是这样。

Fullscreen does not work on iOS 7 and above. Fullscreen在iOS 7及更高版本上无效。 Instead you can use Cordova HiddenStatusbarOverlay Plugin to hide the statusbar. 相反,您可以使用Cordova HiddenStatusbarOverlay插件来隐藏状态栏。

Another way to hide it is to use a gap:config-file element to overwrite the UIViewControllerBasedStatusBarAppearance property: 隐藏它的另一种方法是使用gap:config-file元素来覆盖UIViewControllerBasedStatusBarAppearance属性:

<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true">
    <false/>
</gap:config-file>

use following preference tag. 使用以下首选项标记。 that works fine for me. 这对我来说很好。

<preference name="StatusBarOverlaysWebView" value="true" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Phonegap iOS的示例config.xml - Sample config.xml for phonegap ios Apache cordova / phonegap如何从config.xml启用功能 - Apache cordova / phonegap how to enable capabilities from config.xml Cordova / Phonegap / iOS:错误:找不到插件&#39;Plugin01&#39;,或者不是CDVPlugin。 在config.xml中检查您的插件映射 - Cordova/Phonegap / iOS: ERROR: Plugin 'Plugin01' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml PhoneGap:如何在Config.xml中为iOS设置Build和Version属性? - PhoneGap: How to set Build and Version Property in Config.xml for iOS? 在config.xml中为IOS命名初始屏幕文件(Phonegap) - Naming splash screen files for IOS in config.xml (Phonegap) Phonegap Config.xml 更改在 iOS 应用程序中不生效 - Phonegap Config.xml changes do not take affect in iOS app PhoneGap config.xml iOS应用程序图标问题 - PhoneGap config.xml iOS app icon issues Cordova 3.2 ios添加插件“哪个config.xml? 它在哪里?” - Cordova 3.2 ios add plugin “Which config.xml? Where is it?” 通过 Cordova config.xml 向 iOS .plist 文件添加条目 - Add entry to iOS .plist file via Cordova config.xml 无法使用PhoneGap Build覆盖首选项(生成的config.xml中的顺序错误) - Can't override preference using PhoneGap Build (order in generated config.xml is wrong)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM