Flutter
The Aidlab Flutter SDK connects Flutter apps on Android and iOS to Aidlab 2, Aidlab and Aidmed One. It requires Android 12 (API 31) and iOS 15 or newer.
Installation
- Add dependency:bash
flutter pub add aidlab_sdk - Configure Bluetooth permissions and platform requirements (the SDK does not manage permissions or BT state).
- iOS: set the deployment target to iOS 15.0 or higher, then add to
ios/Runner/Info.plist:xmlIn Xcode, set Strip Style of the Runner target to Non-Global Symbols. The SDK looks up its native symbols at runtime, and release archives strip them otherwise.<key>NSBluetoothAlwaysUsageDescription</key> <string>Your custom message explaining why your app needs Bluetooth access.</string> - Android: in
AndroidManifest.xml:xml<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation"/> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/> <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/> - in
android/app/build.gradle.kts, set AndroidminSdk = 31or higher (minSdkVersion 31in Groovy-based projects)
- iOS: set the deployment target to iOS 15.0 or higher, then add to
- Run your app on a physical device:bash
flutter run