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
Navigation floating buttons on android #87
Comments
Does this not fix itself if you call |
@gongalf I don't have a device to test if it works as you expected but have you tried using safeActualContentHeight or getSafeAreaInsets? https://docs.coronalabs.com/api/library/display/getSafeAreaInsets.html
|
Is this still an issue after release 2020.3619? Safe area APIs should be working as expected now. |
Using 2020.3620, I have tested on a Huawei P30 with EMUI 10.1.0 and the safe area is the entire screen (including the status bar and the lower navigation menu). In the capture you can see it with a red veil that fills the entire screen. I have tried with "immersiveSticky", "immersive", "lowProfile" and "default". Any ideas? |
Can you share which APIs you are using so we have more information on the ones that are not working? |
Do you mean the plugins?
|
No, not plugins. I'd want to know which safe area APIs you use so @Shchvova can look into what's wrong. |
I used display.safeScreenOriginX, display.safeScreenOriginY, display.safeActualContentWidth, display.safeActualContentHeight and I've just used display.getSafeAreaInsets() in Xiaomi Redmi Note 8 Pro with MIUI 12.0.1.0 (It doesn't work either). |
Any progress on this one? It still does not work on device. |
as an alternative, would it be possible to find if a device has permanent (hardware) buttons at the bottom? I think if we know if there are hardware buttons there is no need to shift objects from the bottom, but if there is I will just move it up. This is not a full solution but it would help a lot. |
3681 should have fixed safe area |
It's necessary some method to detect those Android devices with the floating navigation buttons, and some way to force their display (set them fixed) and know the size they take up to adjust the size of the app allowing these buttons to be seen correctly. I give you an example of spotify and our app (on the same device) so you can see the comparison:
We need the app to look like Spotify, with the navigation buttons fixed at the bottom and with the size of the app adjusted to them.
The text was updated successfully, but these errors were encountered: