Disable immersive mode on Android
After adding the Unity plugin my Android app has switched to immersive mode. I guess this is the default setting by Unity.
Is there anyway I can override this setting ? I dont want my app to be in immersive mode.
Thanks
Add StatusBar to root component.
<StatusBar translucent={true} backgroundColor='rgba(0,0,0,0)' barStyle='dark-content'/>
This is not working. It shows status bar but the bottom navigation bar is still hidden and the app is covering fullscreen of the device. The content is going under the status bar.
I have also added this
if (Platform.OS === 'android') {
StatusBar.setHidden(false);
StatusBar.setBackgroundColor('#ffffff');
StatusBar.setBarStyle('dark-content');
}
I'm seeing this behavior as well. Is there any way to disable this on the unity side while building your Android artifacts before it even gets to react-native? Thanks.
I tried setting
Screen.fullScreen = false;
on the Unity side and it is working for me.
@im-aditya thanks for the input. I tried to do that, and while it works after a second there is some time before that when the app goes into full screen. Any idea on how to completely stop this from happening?
https://feedback.unity3d.com/suggestions/add-a-setting-to-disable-android-immersive-mode-before-splash-screen
Looks like 2018.3 is adding this feature...