magicalpanda / MagicalRecord

Super Awesome Easy Fetching for Core Data!
Other
10.8k stars 1.79k forks source link

Saving when app in background received: "Can't endBackgroundTask: no background task exists with identifier 14, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug." #1107

Open davidqq opened 8 years ago

davidqq commented 8 years ago

The belowcode works fine in foreground. However, when I put the app to background, every time MR_saveToPersistentStoreAndWait is called, the console shows "Can't endBackgroundTask: no background task exists with identifier 14, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug"

Any ways to avoid it? Thanks a lot.

//CLLocationManagerDelegate