dop2000's Forum Posts

  • Eren Wow, you are a lifesaver! Even without any function calls, this plugin works correctly on screens with a notch, offsetting the viewport. (The main reason why I wanted to show the status bar)

    Edit: I just realized that this plugin is already included when you tick "Hide status bar" during export, but you need to remove construct-mobile-notchfix to get the same effect.

    .

    Do you know how to show the status bar on top, but hide the navigation buttons on the bottom? I tried all these functions:

    AndroidFullScreen.setSystemUiVisibility(AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN | AndroidFullScreen.SYSTEM_UI_FLAG_LOW_PROFILE, successFunction, errorFunction);
    
    AndroidFullScreen.showUnderSystemUI(successFunction, errorFunction);
    
    AndroidFullScreen.leanMode(successFunction, errorFunction);
    
    AndroidFullScreen.immersiveMode(successFunction, errorFunction);
    
    // this shows both the status bar and navigation buttons
    AndroidFullScreen.showSystemUI(successFunction, errorFunction);
    
  • 619_RM I think I found the solution, could you test this file please?

    dropbox.com/s/h5ddv9tplclzodl/ptron-app-debug_notchfix.apk

    The viewport should start below the notch.

    (Make sure to run the correct app, as it has the same icon and name as the real game)

  • jobel Glad to hear it! :)

    When you beat 30 levels, you'll unlock Strike minigame (arkanoid clone), kids love it!

  • matrixreal What about it? I think it's automatically added when you tick "Hide status bar" option on export.

  • Thanks guys! Didn't expect so many positive responses!

  • LaurenceBedford I didn't make Doptrix with Construct. It was a native Android app developed in Java, there are ways to check if an app with a specified ID is installed on the device.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try changing "Cap" setting in Draw Line action.

  • Are you sure that was a clean install? Maybe you had an app installed on the phone with the same ID and installed a new version over it.

  • Some people prefer to see the status bar while playing games, to monitor the battery level etc.

    Is it possible to toggle fullscreen in a mobile app, the same way you can do it in a browser? Maybe with some addon?

  • No problem! But it's not my capx, I found it in some old post here :)

    Here is another useful link:

    dropbox.com/s/r1em8npglbdsoeg/Tilemap_Bitwise.png

  • I don't know about IOS, but it seems like "Viewport fit" setting has no effect on Android, and Platform.SafeAreaInset* expressions don't work either. Looks like a bug to me.. Wonder why no one has noticed this before.

  • oosyrag 619_RM Thanks!

    Well, this sucks. I can't move the stuff down in the header, there is simply not enough space, some level layouts are too big.

    There is another solution - to use "cordova-plugin-android-notch" plugin, it seems to detect the notch correctly. But this means I'll not be able to use C3 build service..

  • Ok, I'm really lost now. Looks like "viewport fit: cover" can be a simple fix, but only for screens taller than 16:9. On my phone with 1080x1920 screen the viewport still overlaps the notch...

    oosyrag 619_RM Could you guys please test my game with "viewport fit: cover" setting and post a photo of level 1? Here is the debug apk:

    dropbox.com/s/xasa0i0fwtc1n63/Planet-O-Tron.NotchTest.apk

  • Notch Area and bottom area is black, coz you set the resolution 720 x 1280 and my phone resolution is 1080x1920.

    Yeah, but the fullscreen mode is "Scale outer", so on any 16:9 display it should stretch to the entire screen.

    Edit: your screen is actually 1080 x 2246

  • oosyrag Thanks! SafeAreaInsetTop and SafeAreaInsetBottom are still 0.

    I wonder if Fullscreen mode setting matters.. Could you test it with "Scale inner"?