Removal of "Hide status bar" in r470 beta

Not favoritedFavorited Favorited 0 favourites
  • 6 posts
From the Asset Store
Make your game more fun and interactive with the Dog Hide and Seek Buttons Sprite Sheet.
  • Hi, just noticed this in the notes for r470 beta:

    One notable other change is that when exporting to Android or iOS, the Hide status bar option has been removed. That's not because support for this has been removed - it's just it is now controlled by the Viewport fit project property. If you want to hide the status bar, make sure that option is set to Cover, and it will work the same as checking Hide status bar - and also be more consistent with web exports.

    What happens if I want to hide the status bar but don't want the viewport to cover non-visible areas of the screen?

    I don't really want to have to detect specific devices and rebuild my layouts to accommodate those that don't have unobstructed rectangular screens.

    If this changes makes it into production, I understand it might be possible to manually edit the Xcode project to hide the status bar - but at present I can't test this as it looks like iOS export to an Xcode project is broken - the project's name is just App.xcodeproj rather than <gameName>.xcodeproj and when I try to build, I see loads of errors starting with:

    Cannot find declaration for 'NSObject', superclass of 'FIleUtility'

    Which means nothing to me!

    Thanks!

  • What happens if I want to hide the status bar but don't want the viewport to cover non-visible areas of the screen?

    Checking 'Hide status bar' exported exactly the same thing as setting the project 'Viewport fit' to 'Cover'. There is no functional difference and so the 'Hide status bar' setting was redundant, hence its removal. There should not be any need to handle anything differently in your project because of this change.

    the project's name is just App.xcodeproj rather than <gameName>.xcodeproj

    That's an intentional change in Cordova iOS 8.0.0.

    I'm not sure if that other error you mentioned is related to that - it looks like something has a typo (presumably FIleUtility should be FileUtility), but it's not clear that's relevant. It might be an issue with a third-party addon. If you're not using any third-party addons and you get a build error, please file an issue.

  • Checking 'Hide status bar' exported exactly the same thing as setting the project 'Viewport fit' to 'Cover'.

    I've just tried this and found that viewport fit and hide status bar options are independent and do exactly what they say.

    Specifically (viewport fit / hide status bar):

    auto/true

    This works for me - no status bar and the layout isn't under the rounded corners or dynamic island on an iPhone 15.

    auto/false

    No good - status bar appears on an iPad 10 (but for some reason not on an iPhone 15)

    cover/true

    No good - layout is underneath an iPhone 15's rounded corners and dynamic island

    cover/false

    Doubly no good - layout is underneath an iPhone 15's rounded corners and dynamic island & status bar is visible on iPad 10

    Maybe there's something weird with my project - I'll try with a minimal one - and will also try to replicate the build error with the beta...

  • Testing with a minimal project with r470 beta seems to show that neither viewport fit = "auto" or "cover" hide the status bar on an 10th gen iPad:

    auto:

    iPad 10 shows the status bar

    iPhone 15 doesn't show the status bar and sticks to the safe area

    cover:

    iPad 10 shows the status bar

    iPhone 15 doesn't show the status bar and displays underneath the dynamic island and rounded corners

    Fortunately the project does build OK - so next step is to troubleshoot why my project doesn't...

  • Testing in r470 beta

    Re: this error (case error in my original post was my typo):

    Cannot find declaration for 'NSObject', superclass of 'FileUtility'

    ChatGPT told me to add:

    #import <Foundation/Foundation.h>

    To the start of FileUtility.h in /Plugins/cordova-plugin-purchase

    Which presumably is the MobileIAP plugin

    And this fixed the issue.

    Note that neither Viewport fit = "auto" or "cover" hides the status bar on an iPad 10th gen.

    The only difference is that with “auto”, the status bar is on its own space at the top of the screen whereas with “cover” it overlaps the game’s screen

    No status bar is shown on an iPhone 15 using either “auto” or “cover” – and their behaviour is exactly as expected (“auto” uses the safe area whilst “cover” displays under the dynamic island and rounded corners).

    Let me know if you need issues raising for either!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I did test this after making the change and it looked like it was working correctly for me. If you think anything isn't working correctly, please file an issue following all the guidelines. I need all that information to be able to look in to it.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)