# Databank DtbLink Module

D135 холбоотой Андройд төхөөрөмж нь API 24 Android 7.0 minimum шаардлагатай байгаа. D35 өөрөө Bluetooth®4.2 хувилбарт ажилладаг

https://developer.pass.mn/

## Platform Support

| Android |  iOS  |
| :-----: | :---: |
|✔️|✔️|

```dart
  import 'package:dtb_link/dtb_link.dart';
```

### Add permissions for Bluetooth

---

We need to add the permission to use Bluetooth and access location:

#### **Android**

In the **android/app/src/main/AndroidManifest.xml** let’s add:

set MinSdk to 24 or higher
```
        minSdk = 24
```

```xml
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
```

#### **IOS**

In the **ios/Runner/Info.plist** let’s add:

```dart
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Need BLE permission</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Need BLE permission</string>
```

For location permissions on iOS see more at: [https://developer.apple.com/documentation/corelocation/requesting_authorization_for_location_services](https://developer.apple.com/documentation/corelocation/requesting_authorization_for_location_services)