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?

iOSでBLEすれ違い通信は作れるのか — 結論だけまとめ(iOS 26対応)

0
Posted at

iOSでBLEすれ違い通信は作れるのか — 結論だけまとめ(iOS 26対応)

個人開発ですれ違い通信アプリ(BLEで近くのユーザーを検知)を設計するために、iOSのバックグラウンドBLE制約を調べた結論です。(2026年8月時点。出典は文末)

結論

iPhone同士が両方ロック+画面消灯の状態では、すれ違い検知はできません。また、片方でもバックグラウンド時はUUIDの明示的な指定が必須です。ただし、Live Activityの場合は点灯すればフォアグラウンド時と同等に検知できます。

状況 検知
どちらもアプリ使用中 ○
どちらもアプリ未使用(バックグラウンド) & 画面点灯中 △
片方がLive Activity(バックグラウンド)画面点灯中 $ 片方がアプリ使用中 ○
両方ロック+両方画面消灯 ✕(回避策なし[2])

補足(なぜそうなるか)

  • バックグラウンドのiPhoneの発信(advertising)は、Apple独自の「overflow area」という特殊な形式に変わり、明示的にUUIDを指定しないとScan不可になる。[1]
  • iOS 26の朗報: Live Activity(ロック画面の常駐表示)を出している間は、画面点灯中のスキャンがフォアグラウンド並みに強化される[2]。「画面をチラ見した一瞬で拾い切る」が現実的になった
  • それでも画面消灯中の制限は変わらず、Appleは「サポートされる回避策はない」と明言している[2][3]

参考文献

  1. Core Bluetooth Background Processing for iOS Apps — Apple公式ドキュメント
  2. Background scanning for Bluetooth advertisements with LiveActivities on iOS 26 — Apple Developer Forums(Appleエンジニアの回答)
  3. iOS 26 Bluetooth background — Apple Developer Forums(Appleエンジニアの回答)
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?