New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C2-C3 Runtime - Black Bottom Area - Android #2364
Comments
I see that bar with Construct 2 export too (With this project). I tested my game with Construct 2 export. Well. |
If you swipe up from the bottom does the navbar fill the exact space? I expect it's related to #2092 |
@shortercode If I click devices this button and re-back game. It is going fullscreen without that bar. But still didn't found why my game don't need anything. After 5 sec auto removing that bar. |
Also I found one solution. Mobile advert plugin removing that bar. I tried your GDPR Test template and I don't see any bottom bar. It is removed at when I see C3 Splash image. |
I remember seeing a bug about a week back which @AshleyScirra looked at, something about not monitoring resize events during start up. I guess this could be related. The mobile advert plugin does some minor rejigging of the webview layout if memory serves, so that it can place banner adverts over the webview. Been quite awhile since I wrote that code, so I could be wrong. I'll see if I can get this to replicate and do some testing. |
This might be related to #2376, which should be fixed in r128. Can you reproduce it there? |
@AshleyScirra I tried with r128. Still same problem. |
OK, guess it's something different... |
@AshleyScirra @shortercode there is a very simple solution to this. Splash screen with the correct sizes and the plugin has to be used.
Reference the splash screen in the config file. This fixed it. Here is how my config file looks.
|
@shortercode - is this fixed now with Cordova 9? |
@AshleyScirra Nope. I tried with CLI v9 + Android 8.0 still same. @bewa11 |
So only one device in the office has this bug, I think it's a legacy race condition. I've seen a few notes about similar issues in the official Android documentation. The app tries to enter fullscreen as soon as it starts, but it takes a little while before it actually works on some devices. So when the webview is created the status bar, etc. are still on screen ( making it slightly shorter ). It doesn't notice that the app has resized so stays this height. I've made a workaround that manually triggers fullscreen mode when the runtime is starting up instead ( we already do this for iOS anyway ) and it seems to work great in the C2 runtime. However, on the C3 runtime it triggers some rendering issue, where only the background colour is drawn. I'm trying to figure out if there is a way to avoid this, it's a bit weird that it only occurs in the C3 runtime but it might be related to timing again. CORRECTION: this device appears to just not be working correctly with the C3 runtime. I'm going to merge in the fix, and file a new issue for tracking the problem with the C3 runtime. |
Okay I've merged in the fix, should be resolved in the next release. |
Will try, thanks |
r156 is now out, please test again! |
Construct 3 r156 Samsung Galaxy J5 phone. Works fine. No more black bottom area. |
Thanks for confirming! |
Problem description
I see this bottom area in my Samsung Galaxy J5 phone.
Build with C3 Build service.
Hide StatusBar (Yes)
Phone Specs
Android 6.0.1
Attach a .c3p
You can use any project but If you want my project, it is here too.
BlackBar.zip
Steps to reproduce
Observed result
Black bottom area
Expected result
No black bottom area
The text was updated successfully, but these errors were encountered: