I tested your example on an emulator with Android 9 and Android 11. For both of them, the app does not reading the current location, I have to open the Google map APP, after that your example will return to the right location.
I just ran that app. So, if is there a configuration I should please, let me know.