Closed vanlooverenkoen closed 4 years ago
I forgot to add the background capability & added
OUTDATED
<key>NSBluetoothAlwaysUsageDescription</key>
<string>The app uses bluetooth to find, connect and transfer data between different devices</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>The app uses bluetooth to find, connect and transfer data between different devices</string>
<key>UIBackgroundModes</key>
<array>
<string>bluetooth-central</string>
</array>
correct answer (2 comments down) -> https://github.com/BeMacized/xiaomi_scale/issues/3#issuecomment-662662144
After doing some research today (resolved in a pr #6 ). I found ot that the UIBackgroudModes are not needed. The 2 descriptions are.
This is what you should add to your info.plist (customize your text for your needs)
<key>NSBluetoothAlwaysUsageDescription</key>
<string>The app uses bluetooth to find, connect and transfer data between different devices</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>The app uses bluetooth to find, connect and transfer data between different devices</string>
I copied the example dart code to my project and the app crashes on startup.