app icon indicating copy to clipboard operation
app copied to clipboard

Bottom menu can't be clicked (greyed out by overlay of phone native bottom menu?)

Open MTrost opened this issue 8 months ago • 5 comments

Please provide the following details:

  1. Mobile App OS (Android/iOS) and version: Android

  2. Device model: Xiaomi Poco F6

  3. HumHub version: 1.17.1

  4. “Push Notifications” module version: 2.1.4 (shouldn't be relevant though)

  5. Configuration done (see documentation)? Yes (shouldn't be relevant though)

  6. Full steps / Screenshots to reproduce the issue:
    Not really reproduction, but that's the screenshot of the issue: Image It looks like the native phone bottom bar is overlaid over the bottom menu.

  7. App logs:
    Navigate to: Administration -> Modules -> “Push Notifications” -> Configure -> “Mobile App Debug” (at the bottom) -> “Open native console” -> top right menu -> Copy all logs
    not relevant

Additional context:
Another user has the same phone and no issue. Tried: Removing application and re-install didn't solve it.

MTrost avatar Apr 25 '25 07:04 MTrost

@MTrost The issue is with the Clean Theme module with your Android version which adds a translucent block at the bottom of the screen on top of the app. But I have to reproduce it and check if it's not also an issue with other themes for the bottom of the pages. I'll check that in a week or 2.

marc-farre avatar Apr 25 '25 09:04 marc-farre

@marc-farre Thanks for the quick reply!

If it's an Android version problem, could the user upgrade Android version and it would fix it?

MTrost avatar Apr 28 '25 07:04 MTrost

Hey @MTrost, thanks for your support regarding the issue. I’ve opened a PR with a fix and will notify you when the new version is ready for download.

PrimozRatej avatar Apr 28 '25 09:04 PrimozRatej

It just happened with me. I just update my device to Android 15 and UI 7

FernandoHCFaria avatar May 01 '25 15:05 FernandoHCFaria

Found the problem. With the update of Flutter from 3.24.0 to 3.27.0, there was also an upgrade from targetSdkVersion 34 to targetSdkVersion 35. The new target SDK has a bug. The PR is merged, but it will take some time before it is updated in the package that we use.

The targetSdkVersion 34 had fixed padding for the navigation bar. In Android, you have three settings for Navigation mode:

  1. Gesture navigation Image

  2. 2-button navigation Same as Gesture navigation

  3. 3-button navigationNow, Image

with targetSdkVersion 35, the navigation bars have no padding and are displayed as overlays. This would not be a problem if the Chromium team had anticipated this and applied a fix for when the WebView is edge-to-edge. By default, Android's env(safe-area-inset-bottom) returns 0px.

Image Image

PS: On iOS, everything works fine.

Image

Solutions:

  1. Downgrade to targetSdkVersion 34 and wait for inAppWebView to support the new fix.
  2. Send the device's bottom safe-area padding from the mobile app to the web side, and apply it dynamically. This would require some JavaScript on the web side.

PrimozRatej avatar May 20 '25 08:05 PrimozRatej

@PrimozRatej Thanks for your investigations. Bad luck this bug has been introduced, but it's good you manage to find it! Is it a problem/difficult to downgrade to targetSdkVersion 34?

marc-farre avatar May 20 '25 18:05 marc-farre

I can downgrade it, not a big problem.

PrimozRatej avatar May 21 '25 09:05 PrimozRatej

OK, so let's go for this solution, and keep this issue open until a new version is released with the fix.

marc-farre avatar May 21 '25 09:05 marc-farre

On version v1.2.3 the problem still existed. On version v1.2.4, the bottom bar isn't translucent anymore, but the buttons of the clean theme are still behind of it, at least on Android 15.

pegelf avatar Jun 08 '25 22:06 pegelf

@pegelf Thanks for your input! We’ve discovered that in some cases (depending on the theme), the issue still persists. We’re currently working on a solution that will address this problem across all use cases. I’ll keep you updated here as soon as we have a fix in place.

PrimozRatej avatar Jun 09 '25 04:06 PrimozRatej

On version v1.2.4, the bottom bar isn't translucent anymore, but the buttons of the clean theme are still behind of it, at least on Android 15.

Can confirm, now this happens on my phone too (before it only happened on one user's phone).

I also tested gesture navigation, the menu is half hidden (clean theme)

Image

MTrost avatar Jun 11 '25 05:06 MTrost

@MTrost @FernandoHCFaria @pegelf can you test with:

  • Mobile App v1.2.6: https://github.com/humhub/app/releases/tag/v1.2.6
  • Clean Theme v1.2.6: https://marketplace.humhub.com/module/clean-theme/changelog

Thanks!

marc-farre avatar Jun 18 '25 06:06 marc-farre

@MTrost @FernandoHCFaria @pegelf can you test with:

  • Mobile App v1.2.6: https://github.com/humhub/app/releases/tag/v1.2.6
  • Clean Theme v1.2.6: https://marketplace.humhub.com/module/clean-theme/changelog

Thanks!

@marc-farre It worked like a charm with v1.2.6. Thank you for the fix!

FernandoHCFaria avatar Jun 18 '25 06:06 FernandoHCFaria

@FernandoHCFaria Thanks for your tests!

marc-farre avatar Jun 18 '25 07:06 marc-farre

Yes, I can confirm that it works for me too on my Xperia 1 VI with Android 15 :).

pegelf avatar Jun 18 '25 07:06 pegelf

@pegelf Thanks!

marc-farre avatar Jun 18 '25 07:06 marc-farre

Okay, after some testing I found out, that it's still possible for the bottom bar to be hidden behind the Android navigation, because of the keyboard.

Steps to reproduce:

  • open the "members" page
  • type something into the search
  • press enter on the keyboard

When the keyboard minimizes, the bottom menu is behind the Android navigation again, at least on my phone. I'm using Floris Board as keyboard app.

When I minimize the keyboard by pressing the search button of the input box, instead of using the enter key of the keyboard, the bottom menu keeps it's bottom padding and is still usable. So this behavior only applies to search boxes that can be triggered by using the enter key. The global HumHub search and multi line input fields aren't affected.

Maybe it's possible to use a workaround for keydown-events with event.key === "Enter"?

pegelf avatar Jun 18 '25 08:06 pegelf

I confirm this little issue. Samsung S23, Android 15, keyboard Microsoft SwiftKey

FernandoHCFaria avatar Jun 18 '25 09:06 FernandoHCFaria

@pegelf @FernandoHCFaria Thanks for sharing. I reopen this issue and we'll see what we can do.

marc-farre avatar Jun 18 '25 09:06 marc-farre

@pegelf @FernandoHCFaria Can you try https://github.com/humhub/app/releases/tag/v1.2.7 if it solves this keyboard issue? Thanks!

marc-farre avatar Jun 20 '25 08:06 marc-farre

@marc-farre for me the issue was fixed

FernandoHCFaria avatar Jun 20 '25 12:06 FernandoHCFaria

@FernandoHCFaria It's about your last comment "I confirm this little issue.", for https://github.com/humhub/app/issues/293#issuecomment-2983260221

marc-farre avatar Jun 20 '25 13:06 marc-farre

@FernandoHCFaria It's about your last comment "I confirm this little issue.", for #293 (comment)

Yes, I just tested in members/search and now I have no problem using the keyboard/enter key

FernandoHCFaria avatar Jun 20 '25 13:06 FernandoHCFaria

@FernandoHCFaria thanks for your tests!

marc-farre avatar Jun 20 '25 14:06 marc-farre