Reputation: 3627
When you create an application using Cordova 6, then build it for iOS, you will see that if you open the project properties on XCode, the option "Requires full screen" is enabled:
This is very troublesome because it prevents the app from "multitasking" on iOS (you cannot split the screen with your app open), as mentioned in [CB-9161] Support iPad multitasking in iOS 9:
Just want to mention, the fix (2) also needs to update the project's info plist file to indicate the app does not require the full screen as shown below
<key>UIRequiresFullScreen</key> <false/>
In previous versions of Cordova, you were able to control this option using the FullScreen
preference. However this no longer has an effect on iOS. The recommended alternative way is to use the cordova-plugin-statusbar plugin. But this does not provide any option to turn off full screen and the other options offered by the plugin do not allow multitasking either.
Question: how do you turn off the "Requires full screen" option from your Cordova 6 project (meaning: without having to manually update the XCode project after building for iOS)?
Upvotes: 1
Views: 3829
Reputation: 5037
I would use the Cordova Custom Config plugin
With that plugin, you can pretty much change anything on the plist
or manifest
file via the config.xml
So in your case, after installing the plugin, just add:
<config-file parent="UIRequiresFullScreen" platform="ios" target="*-Info.plist">
<false/>
</config-file>
in your config.xml
Upvotes: 2