Sorix / CloudCore

Framework that enables syncing between iCloud (CloudKit) and Core Data
MIT License
153 stars 40 forks source link

Save tokens #39

Closed Scytalion closed 6 years ago

Scytalion commented 6 years ago

Hi Sorix, is it save to call CloudCore.tokens.saveToUserDefaults() in applicationDidEnterBackground ?

Because Apple does not guarantee to call applicationWillTerminate every time.

Sorix commented 6 years ago

Yes, of course. You can call it whenever you want, it just writes data to UserDefaults.