Skip to content

A Flutter BLE plugin, based on RxAndroidBle and RxBluetoothKit.

License

Notifications You must be signed in to change notification settings

MKuckert/flutter-rx-ble

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sponsor pub package

Flutter Rx BLE

A Flutter BLE plugin, based on the wonderful RxAndroidBle and RxBluetoothKit libraries.

Batteries included.

  • Acquire every permission and setting required for Bluetooth access, using a single method - RxBle.requestAccess().
  • No need to manually discover BLE services.
  • Automatically queues up GATT requests to avoid race conditions.

Installation

iOS

  1. Open iOS module in XCode
  2. Edit Info.plist
  3. Right click > Enable show Raw Keys/Values
  4. Add these entries
    • NSLocationWhenInUseUsageDescription = Please enable location to continue.
    • NSBluetoothPeripheralUsageDescription = Please enable bluetooth to continue.
    • NSBluetoothAlwaysUsageDescription = Please enable bluetooth to continue.

Or, you may add these entries maually using your editor of choice:

<dict>
    ...

    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Please enable location to continue.</string>
    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>Please enable bluetooth to continue.</string>
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>Please enable bluetooth to continue.</string>
</dict>

About

A Flutter BLE plugin, based on RxAndroidBle and RxBluetoothKit.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 44.4%
  • Kotlin 33.6%
  • Swift 20.3%
  • Ruby 1.2%
  • Objective-C 0.5%