MiuMiu
MiuMiu

Reputation: 1925

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]

Upvotes: 4

Views: 330

Answers (1)

blub
blub

Reputation: 1014

maybe use beginBackgroundTaskWithExpirationHandler: to ask for more time?

Upvotes: 4

Related Questions