GithubHelp home page GithubHelp logo

dev-hwang / flutter_ble_identification Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 90.53 MB

GATT(Generic Attribute Profile) 기반 BLE 출입증 서비스를 구현하는 플러그인

License: MIT License

Kotlin 50.95% Ruby 1.51% Swift 22.94% Objective-C 0.55% Dart 24.06%

flutter_ble_identification's Introduction

flutter_ble_identification

GATT를 사용하여 블루투스 신분증 서비스를 구현하는 플러그인 입니다.

Getting Started

To use this plugin, add flutter_ble_identification as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter_ble_identification:
    git:
      url: https://github.com/Dev-hwang/flutter_ble_identification.git
      ref: master

🐤 Android

  1. AndroidManifest.xml 파일을 열고 권한 및 서비스를 설정해주세요.
<manifest>
    <!-- 권한 -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />

    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />

    <application>
        <!-- 서비스 -->
        <service 
            android:name="com.pravera.flutter_ble_identification.service.ForegroundService"
            android:foregroundServiceType="connectedDevice" 
            android:stopWithTask="true" />
    </application>
</manifest>

🐤 iOS

  1. Runner 폴더의 Info.plist 파일을 열고 권한 및 모드를 설정해주세요.
<key>NSBluetoothAlwaysUsageDescription</key>
<string>블루투스 출입 인증 장치와 통신하기 위해서 사용됩니다.</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>블루투스 출입 인증 장치와 통신하기 위해서 사용됩니다.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>블루투스 출입 인증 장치를 식별하기 위해서 사용됩니다.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>블루투스 출입 인증 장치를 식별하기 위해서 사용됩니다.</string>
<key>NSLocationUsageDescription</key>
<string>블루투스 출입 인증 장치를 식별하기 위해서 사용됩니다.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>블루투스 출입 인증 장치를 식별하기 위해서 사용됩니다.</string>

<key>UIBackgroundModes</key>
<array>
    <string>fetch</string>
    <string>processing</string>
</array>

flutter_ble_identification's People

Contributors

dev-hwang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.