ios - Need to get my location while my app is in the background -


i'm writing basic location based alarm/notification app beginning ios class. have locations objects (cllocation) can't figure out how check current location in background. not worried battery usage, need periodically current location can check if close alarm location notify user.

you may not worried battery usage apple , you'll need use provided apple frameworks.

look ekalarm , specifically:

@property ekstructuredlocation *structuredlocation 

you have in cllocationmanager:

- (void)startmonitoringforregion:(clregion *)region 

here part of description cllocationmanager:

in ios, regions register location manager persist between launches of application. if region crossing occurs while ios app not running, system automatically wakes (or relaunches it) in background can process event. when relaunched, of regions configured made available in monitoredregions property of location manager objects create.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -