Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
I am required to wake up my application when bluetooth pairing happensin ios. I see that the ios app can listen to external accessory, can any gentle soul please throw light to docs or sample codes or work arounds please ? wake up means while the app is in closed state, not in background running.

my initial research pointed towards below links.

http://stackoverflow.com/questions/21446721/wake-up-ios-app-when-a-bluetooth-device-is-near-by
http://stackoverflow.com/questions/19932090/how-to-wake-up-ios-app-with-bluetooth-signal-ble

the last person's answer in both the posts indicate towards that it is possible. my doubt is for exactly what event i can wake up my application from closed state (i mean the user closed the app from background apps list ) ?


My further investigation revealed that in my app-info.plist, requiredbackgroundmodes is set to "App communicates using bluetooth"

Still the app does not receive any entry point when it is in stopped state upon bluetooth data arrival ! this is kinda baffling me.

should this go to didFinishLaunchingAppWithOptions ? should that be the entry point or something else ?

thanks

--ch
 
Last edited:
I think it is entry point of your investigation and to go further you need to study Bluetooth programming i mean to understand how its send and receive data to another Bluetooth device.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.