Does Samsung not respect orientation in android manifest?

We've been working on a React Native app and testing it on a variety of devices. The app is really only designed for portrait mode at this time, and we'd like to prevent it from going into landscape mode.

I've perused the various SO questions/answers and most, like this answer, recommend setting the orientation in AndroidManifest.xml. This works as expected in most test devices, but not when the app is running on Samsung Galaxy S8. Seemingly no matter what we do, the Samsung device still alters the screen orientation at will.

Is it impossible to lock the rotation of a React Native app on Samsung devices, or is there something special about Samsung's flavor of Android that we're missing?

链接地址: http://www.djcxy.com/p/41852.html

上一篇: 为JAX提供不同版本的JAXB

下一篇: 三星不尊重Android清单中的方向吗?