Skip to main content

flutter_cloud_preferences 0.2.0 copy "flutter_cloud_preferences: ^0.2.0" to clipboard
flutter_cloud_preferences: ^0.2.0 copied to clipboard

Key-value preferences that survive reinstalls and new devices, backed up to iCloud key-value storage on iOS and macOS and Android Auto Backup on Android.

0.2.0 #

  • CloudPreferences.configure() sets the store's options once, before the first getInstance().
  • Local-only keys: configure(localOnlyKeys: {...}) keeps values such as auth tokens and device IDs on the device. They are never mirrored to iCloud, never included in Auto Backup or device backups, and never restored.
  • getInstance(liveSync:) is deprecated and will be removed in 1.0; use configure(liveSync: true).
  • iOS and macOS: a key the app removes before the background restore arrives is no longer brought back by it.
  • iOS and macOS: values written before iCloud's first download are written to iCloud again once it arrives, instead of being lost there.
  • iOS and macOS: a restore that has not arrived when the app is closed now continues on the next launch.

0.1.0 #

  • First release.
  • CloudPreferences: key-value preferences with cached synchronous reads for String, bool, int, double, List<String> and Uint8List.
  • iOS and macOS: values stored in UserDefaults and mirrored to iCloud key-value storage; restored on a fresh install and reported on onRestored; opt-in live sync with changes.
  • Android: values stored in a SharedPreferences file that Android Auto Backup restores on reinstall and new devices.
  • iCloud key-value storage limits (64-byte keys, 1024 keys, 1 MB) enforced on every platform.
1
likes
160
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Key-value preferences that survive reinstalls and new devices, backed up to iCloud key-value storage on iOS and macOS and Android Auto Backup on Android.

Repository (GitHub)
View/report issues

Topics

#preferences #icloud #backup #storage #sync

License

MIT (license)

Dependencies

flutter, meta

More

Packages that depend on flutter_cloud_preferences

Packages that implement flutter_cloud_preferences