The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key while the key is in the plist file

后端 未结 6 2011
忘掉有多难
忘掉有多难 2021-01-03 19:51

First of all, I would like to state that I already looked at Stack Overflow post here and adding either the one mentioned by either iCoder & Deepak didn\'t solve the pro

6条回答
  •  抹茶落季
    2021-01-03 20:18

    I was able to successfully remove the Bluetooth permission alert when the app opens. In my case the problem was with the library "react-native-connectivity-status". I downgraded the library from version "1.5.2" to "1.5.1".

    Here are the steps:

    Change

    "react-native-connectivity-status": "^1.5.1",
    

    To

    "react-native-connectivity-status": "1.5.1",
    

    Then ran following commands:

    rm -rf node_modules/
    rm package-lock.json
    npm i
    cd ios/
    rm -rf Pods/
    pod install
    

提交回复
热议问题