Not sure if this is the best solution, but i had this problem long time ago and as much as i can remember i made a floting group screen size. With small height size that can extend. When keyboard pops up it squeeze the group upwards and the input is right above the mobile keyboard.
Also, you can make ( when floating is visible> set focus on input) so user doesnt have to press