I'm using geofencing
,when user enter to the region I check the region id from local data base,if it is valid then display it.Then update local data base too.Problem is when application in active all works fine.When application in background state(passcode lock screen) didn't insert data to the data base.
Also i try this one
How run sqlite in background on the iPhone?
NSOperationQueue
but didn't work.
Any one have idea