I am making an Android/iOS mobile app in Unity. Currently, when I build it and install it (for example from APK to Android) it loads completely full screen covering up the top phone status bar which usually shows the time, network signal, wifi icons, etc.
For Android, I see an option in Project Settings > Player for "Hide Navigation Bar" - unchecking this I believe lets you see the bottom on-screen navigation buttons like home, back, etc. However, I see no option to show/hide the top status bar.
In iOS, I am told there is an option for "Status Bar Hidden" which I haven't tested yet but should hopefully do in iOS.
Is there some way to do this in Android?
For example, is there some way to "sense" from inside Unity how many pixels the height of the Android status bar is and then restrict the window to not cover it?
I see it possible to get the height of the status bar here but this is not Unity specific code and I'm not sure how to use it or limit the Unity window size according to this StackOverflow question.
I also just found this sample GitHub repo which looks like it was designed for this, but I don't understand what they mean about how to build it. I usually just build with the "Build" button from the Unity editor.
Thanks.