Scan for Kontakt.io iBeacons in background Objective-C -


i'm trying find how scan ibeacons in background far understood can check when user enters region, tried enable background modes nslog 2 methods should work in background:

    - (void)locationmanager:(ktklocationmanager *)locationmanager didenterregion:(ktkregion *)region     {         nslog(@"enter region %@", region.uuid);     }      - (void)locationmanager:(ktklocationmanager *)locationmanager didexitregion:(ktkregion *)region     {         nslog(@"exit region %@", region.uuid);     } 

but devices doesn't seem scan while in background, missing?

it's simple achieve kontakt.io sdk :) check link http://docs.kontakt.io/ios-sdk/quickstart/#ios-8-compatibility. believe didn't add plist. when have added in app after allowing access location app, methods:

- (void)locationmanager:(ktklocationmanager *)locationmanager didenterregion:(ktkregion *)region; - (void)locationmanager:(ktklocationmanager *)locationmanager didexitregion:(ktkregion *)region 

will called , more cool if you'll receive didenterregion automatically called(few times) method:

- (void)locationmanager:(ktklocationmanager *)locationmanager didrangebeacons:(nsarray *)beacons; 

of course how extend background time etc. different topic ;)


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -