Search code examples
ioscore-databackgrounddata-migration

How to handle core data migration when app goes in background mode?


Should I just let the migration continue, and then let iOS kill the app if migration takes longer than the alloted time (5 seconds) [this will generate a crash log]

Or should I abort the app? [this will also generate a crash log]


Solution

  • maybe use beginBackgroundTaskWithExpirationHandler: to ask for more time?