0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Flutter Blue PlusでiBeacon受信で詰まったこと

Posted at

iBeaconを使用した位置推定のために、データロギングアプリをFlutterで作っているところ、iBeaconだけがなぜか受信できなかったので記録

Tl;Dr

AndroidManifest.xml

AndroidManifest.xml
<uses-permission
  android:name="android.permission.BLUETOOTH_SCAN"
  android:usesPermissionFlags="neverForLocation" />

のようにneverForLocationがあるとiBeaconが受信できないので削除する。

AndroidManifest.xml
<uses-permission
  android:name="android.permission.BLUETOOTH_SCAN" />

AndroidのBluetoothの権限によると、neverForLocationがuses-permissionにあると一部のBLEデバイスがフィルターされるらしい。

Note: If you include neverForLocation in your android:usesPermissionFlags, some BLE beacons are filtered from the scan results.

結論

公式ドキュメントを見ましょう。
プラグインのドキュメントを見ても解決がわからず時間を費やしてしまった

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?