How to detect IBeacon in android without using any library

后端 未结 2 609
别那么骄傲
别那么骄傲 2021-02-01 10:37

i am new to Ibeacon and i want to know can we detect Ibeacon in android without using any SDKLibrary or library can any one give sample example.

i know some library like

2条回答
  •  抹茶落季
    2021-02-01 11:01

    There is a new small library: https://github.com/inthepocket/ibeacon-scanner-android

    Without a library it's very easy to scan for ibeacons, you just need to create the correct ScanFilter, based on the iBeacon, and then start a BLE scan. Creating the correct ScanFilter can be hard at first, best have a look at the code in the mentioned library.

    Dependant on Android version, location needs to be turned on, location permission needs to be granted and bluetooth, always, needs to be on.

提交回复
热议问题