wonday / react-native-orientation-locker

A react-native module that can listen on orientation changing of device, get current orientation, lock to preferred orientation.
MIT License
761 stars 274 forks source link

Android上架传感器自启动问题不给通过 #305

Open Yi-debug opened 1 month ago

Yi-debug commented 1 month ago

"react-native-orientation-locker": "^1.7.0"

在Android上架的时候给驳回了,下面是驳回的问题代码 堆栈:at android.hardware.SensorManager.getSensorList() at android.hardware.SensorManager.getDefaultSensor(SensorManager.java:488) at android.view.OrientationEventListener.(OrientationEventListener.java:71) at org.wonday.orientation.OrientationModule$1.(OrientationModule.java:55) at org.wonday.orientation.OrientationModule.(OrientationModule.java:55) at org.wonday.orientation.OrientationPackage.createNativeModules(OrientationPackage.java:28) at com.facebook.react.ReactPackageHelper.getNativeModuleIterator(ReactPackageHelper.java:43) at com.facebook.react.NativeModuleRegistryBuilder.processPackage(NativeModuleRegistryBuilder.java:42) at com.facebook.react.ReactInstanceManager.processPackage(ReactInstanceManager.java:1458) at com.facebook.react.ReactInstanceManager.processPackages(ReactInstanceManager.java:1429) at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1331) at com.facebook.react.ReactInstanceManager.lambda$runCreateReactContextOnNewThread$2(ReactInstanceManager.java:1101) at com.facebook.react.ReactInstanceManager.$r8$lambda$AwGS8CysOZmWJw3kRVARHQvw9Ew(Unknown Source:0) at com.facebook.react.ReactInstanceManager$$ExternalSyntheticLambda5.run(Unknown Source:4) at java.lang.Thread.run(Thread.java:764)

行为主体:FaceBookReact

检测项: 违规收集个人信息

风险信息:APP向用户明示SDK的收集使用规则,未经用户同意,SDK存在收集((SDK: FaceBookReact) 读取特定类型传感器列表)的行为。

这个一启动后就会自动触发传感器,能不能解决下传感器的问题

我就yarn add react-native-orientation-locker 审核就不给通过,问题就是DK存在收集((SDK: FaceBookReact) 读取特定类型传感器列表)的行为。关键是我都没有引入react-native-orientation-locker他就给我驳回了

yarn remove react-native-orientation-locker审核就可以通过

arafat813 commented 1 month ago

有找到解决方法么

Yi-debug commented 1 month ago

有找到解决方法么 解决了,看他的commits里面的,把你的node_modules里面的代码改成他这里的,然后你在打个补丁就行了

这个链接

arafat813 commented 1 month ago

好的 感谢 我试一下