【问题标题】:<App> would like to find and connect to devices on your local network<App> 想要查找并连接到本地网络上的设备
【发布时间】:2022-07-22 15:38:06
【问题描述】:

我在我的 React Native 应用程序的 prod 版本(从应用商店或从 testflight 下载的应用程序)上收到警报“想要查找并连接到本地网络上的设备”。

根据我在网上找到的信息,这可能是由于我们正在使用的库之一请求此权限。

我如何知道哪个库要求它,或者我如何才能完全禁止此弹出窗口显示在 prod 上?

这些是我当前的依赖项:

"@ovalmoney/react-native-fitness": "^0.5.3",
"@react-native-async-storage/async-storage": "^1.15.7",
"@react-native-community/masked-view": "^0.1.11",
"@react-native-community/slider": "^4.1.3",
"@react-native-firebase/app": "^12.7.3",
"@react-native-firebase/dynamic-links": "^12.7.3",
"@react-native-firebase/messaging": "^12.7.3",
"@react-navigation/native": "^5.9.8",
"@react-navigation/stack": "^5.14.9",
"@sentry/react-native": "2.4.3",
"apollo-boost": "^0.4.9",
"graphql": "^15.5.1",
"graphql-tag": "^2.12.5",
"js-interpreter": "^2.3.1",
"lodash": "^4.17.21",
"mixpanel-react-native": "^1.3.2",
"mobx": "^5.14.0",
"mobx-react": "^5.0.0",
"moment": "^2.29.1",
"react": "17.0.2",
"react-native": "0.66.0",
"react-native-animatable": "^1.3.3",
"react-native-dash": "^0.0.11",
"react-native-device-info": "^8.3.1",
"react-native-gesture-handler": "1.9.0",
"react-native-hyperlink": "^0.0.19",
"react-native-intercom": "^22.0.1",
"react-native-linear-gradient": "^2.5.6",
"react-native-reanimated": "^1.13.3",
"react-native-safe-area-context": "^3.3.0",
"react-native-screens": "^3.6.0",
"react-native-sensors": "^7.3.3",
"react-native-svg": "^12.1.1",
"react-native-svg-charts": "^5.4.0",
"react-native-url-polyfill": "^1.3.0",
"react-native-vector-icons": "^8.1.0",
"react-native-video": "^5.1.1",
"rn-prompt": "^1.0.4"

【问题讨论】:

    标签: react-native


    【解决方案1】:

    根据官方FAQ about Local Network Privacy - FAQ-15: My app presents the local network privacy alert unexpectedly. Is there a way to track down the cause?,你应该:

    ...开始从您的应用中删除所有第三方库,直到您确定是哪个触发了它,然后向库的供应商提出此问题。

    就我而言,我无法始终如一地重现警报,所以这种方法对我不起作用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-11-09
      • 1970-01-01
      • 2013-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多