Hi I guess we have a way to measure the height of android navbar which is screen_dpi*0.3
so if we want to avoid drawing in that area we just need to calculate how much is its height and act accordingly.
local our_DPI = application:getScreenDensity()
local navbar_height = our_DPI * 0.3
This works fine on samsung s20, if you happen to test it on other devices, please add them here