I am using firebas UI for authentication, In case of ioS the orientation is not an issue, In case of android if the screen orientation of phone is auto rotated, the firebase UI will also get rotated.
Setting a custom UI to the Firebase UI with style
<style name="FirebaseLoginTheme" parent="FirebaseUI">
<item name="android:screenOrientation">portrait</item>
<item name="android:windowContentOverlay">@null</item>
</style>does not worked. Is their any way to restrict it to potrait.