listening to bluetooth

Discussion in 'iOS Programming' started by chhoda, Jun 16, 2015.

  1. chhoda, Jun 16, 2015
    Last edited: Jun 17, 2015

    chhoda macrumors 6502

    Joined:
    Oct 25, 2008
    #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
     
  2. cudest macrumors newbie

    cudest

    Joined:
    Apr 22, 2015
    Location:
    canada
    #2
    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.
     

Share This Page