DisplayServer.virtual_keyboard_get_height() not registering on android

Godot Version

4.3

Question

I’m making an app and having an issue where DisplayServer.virtual_keyboard_get_height() is registering 0. I can’t find any similar issues so I’m a little stuck. If it’s relevant this project was upgraded from 3.x. I can use DisplayServer to close the virtual keyboard, so it’s communicating in some way.

But even using _process() to constantly output DisplayServer.virtual_keyboard_get_height() to a text label it stays stuck at 0.

I’ve only tested on a Samsung Galaxy running Android 10. (Can’t get virtual phones in Android Studio to open the .apk, but that’s another story)