Has anyone else had issues with Android 10 soft key navigation?
It seems that on Android 10 the tab bar I place at the bottom of the screen using display.contentHeight - display.screenOriginY is now over the top of the system navigation buttons. Pressing the navigation bar now generates system navigation making the app unusable…
How can I fix this other than hiding the system soft keys?
Indeed I had a user complaint about buttons on the bottom of the screen not working. It was on Android 10 on a Pixel 3 Google phone, which is not so common. Couldn’t figure out why or reproduce it in my devices, but I imagined it was something with the navigation buttons
This is the first we’ve heard of this. Please create a simple sample app that demonstrates the issue. It should be a complete project (main.lua, config.lua, build.settings, any assets needed to build, install and run) and put it in a .zip file and use the Report A Bug link at the top of the page and submit a bug report.
Any update on this? Same thing in my app with users running Android 10. Can’t tap the bottom part of the screen because that’s where the soft buttons would usually be (even though I have them hidden).
I didn’t update my main game yet, which has literally 100x more downloads from the one that’s giving the reports.
I can make a sample, but I just need someone with the devices to collaborate, as this is clearly happening in just specific Android 10 phones. At least Pixel Google phones. @naveen_pcs, @ansteysimon ?
I have been experiencing a very similar problem with two Samsung devices using Android 9.
After writing an app to get more information I found that the problem is most likely related to use of the StatusBar modes “LightTransparentStatusBar” and “DarkTransparentStatusBar” (see display.setStatusBar) as can be seen in the attached screen dump.
The answer to your question is a definitive “maybe”,
display.HiddenStatusBar is working as can be seen in the first (left most) screenshot but is does not hide the navigation bar.
The difference between the status bar settings can be noticed in “display.safeActualContentHeight”, the transparent options show a larger content height.
After upgrading my samsung to Android 10, I notice this with the navigation bar too. It is now translucent and there is no way to make it default (solid white, similar to other apps like gmail, gmaps). Here is a sample :
I also tested how the setStatusBar will affect it, but it does not affect it (see attached image).
Snippet of code :
local currentStatusBarIndex = 1 local statusBarOptions = { { display.HiddenStatusBar, 'display.HiddenStatusBar' }, { display.DefaultStatusBar, 'display.DefaultStatusBar' }, { display.TranslucentStatusBar, 'display.TranslucentStatusBar' }, { display.DarkStatusBar, 'display.DarkStatusBar' }, { display.LightTransparentStatusBar, 'display.LightTransparentStatusBar' }, { display.DarkTransparentStatusBar, 'display.DarkTransparentStatusBar' }, } local myText = display.newText( 'setStatusBar', display.contentCenterX, display.contentCenterY, native.systemFont, 26 ) myText:setFillColor( 1, 1, 1 ) local function updateBar1() if system.getInfo( "platformName" ) == "Android" then display.setStatusBar( statusBarOptions[currentStatusBarIndex][1] ) currentStatusBarIndex = currentStatusBarIndex + 1 if currentStatusBarIndex \> #statusBarOptions then currentStatusBarIndex = 1 end myText.text = statusBarOptions[currentStatusBarIndex][2] end native.setProperty( "androidSystemUiVisibility", "default" ) end local barTimer = timer.performWithDelay( 3000, updateBar1, 0 ) native.setProperty( "androidSystemUiVisibility", "default" )
.
Is there a way to make the android bottom navigation bar solid-white?