bluetooth - Detect nearby mobile devices from an iOS app -


is possible create ios app scan nearby mobile devices (eg. iphone, android, ipad etc), without needing run custom app on nearby mobile devices?

i have tried using corebluetooth so, running on iphone 6+:

[self.centralmanager scanforperipheralswithservices:nil options:nil]; 

but nearby device detects imac, not detect ipad air 2, or bluetooth earpiece.

am doing wrong?

core bluetooth works bluetooth low energy (a.k.a. bluetooth 4.0) devices, not classic bluetooth ones. in order discoverable, device has advertise 1 or more ble services. can implement cbperipheralmanager , there's sample code apple "scanner" , "peripheral" side. note way can discover or discovered other mobile devices, android smartphones.

i don't know if it's possible detect hotspot or handoff ble services. core bluetooth not allow access "raw" bluetooth low energy advertisement packets, apple filter out stuff.

if want detect ios devices (and no other ble devices / accessories), can use multipeer connectivity framework. find bit easier use , provides built-in "discovered devices" view. still have run custom app on both sides.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -