-
Notifications
You must be signed in to change notification settings - Fork 476
feat(iOS): Toggle backup feature #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We're already moved 🧙♀️ |
@krizzu -- since this is a global setting, you could expose a native method in a header and allow people to configure the storage mode globally from their AppDelegate.m ? -- I think this is okay since this doesn't apply to Android. Additionally, I think since this was a regression, the default should be "don't-store-in-backup" and instead people would have to opt-in to include AsyncStorage in Backup Thoughts? |
Feature flag "AsyncStorage_excludeFromBackup" in info.plist will enable/disable exclusion from iCloud storage. Excluded by default.
I don't know how the community will use this feature (and how often it is used) so I'm fine with the current approach (for now 😏) |
I think that setting a feature flag in How often? ¯_(ツ)_/¯ I I expect not at all, but let's just leave this as an option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me! I'd be happy to test a Beta Build if you want to publish one?
Going to do a release today - under a new org though, we need to deprecate old RNCommunity package |
…" to "@react-native-async-storage/async-storage ^1.9.0" Remove the now unneeded @react-native-community+async-storage+1.9.0.patch - As per react-native-async-storage/async-storage#455 files should not be stored in iCloud backup by default Results of yarn install
…" to "@react-native-async-storage/async-storage ^1.9.0" Remove the now unneeded @react-native-community+async-storage+1.9.0.patch - As per react-native-async-storage/async-storage#455 files should not be stored in iCloud backup by default Results of yarn install
…" to "@react-native-async-storage/async-storage ^1.9.0" Remove the now unneeded @react-native-community+async-storage+1.9.0.patch - As per react-native-async-storage/async-storage#455 files should not be stored in iCloud backup by default Results of yarn install
…" to "@react-native-async-storage/async-storage ^1.9.0" Remove the now unneeded @react-native-community+async-storage+1.9.0.patch - As per react-native-async-storage/async-storage#455 files should not be stored in iCloud backup by default Results of yarn install
…" to "@react-native-async-storage/async-storage ^1.9.0" Remove the now unneeded @react-native-community+async-storage+1.9.0.patch - As per react-native-async-storage/async-storage#455 files should not be stored in iCloud backup by default Results of yarn install
* Update the dependency "@react-native-community/async-storage": "1.9.0" to "@react-native-async-storage/async-storage ^1.9.0" Remove the now unneeded @react-native-community+async-storage+1.9.0.patch - As per react-native-async-storage/async-storage#455 files should not be stored in iCloud backup by default Results of yarn install * Results of bundle install - with the move to react-native-async-storage * Search/replace @react-native-community/async-storage with @react-native-async-storage/async-storage * Update settings.gradle for the move to @react-native-async-storage * Introduced KeyValueStore (with secure and unsecure implementation) in StorageService * Introduced new StorageService (FutureStorageService as a temporary name) * Replaced SecureKeyValueStore with new StorageService solution in MetricsService * Replaced SecureKeyValueStore with new StorageService solution in OutbreakProvider * Replaced RNSecureKeyStore with new StorageService solution in ExposureNotificationService * Replaced RNSecureKeyStore with new StorageService solution in PollNotificationService * Replaced AsyncStorage with new StorageService solution in existing StorageService * Replaced AsyncStorage with new StorageService solution in BackendService * Replaced AsyncStorage with new StorageService solution in ExposureNotificationService * Replaced AsyncStorage with new StorageService solution in PollNotificationService * Replaced AsyncStorage with new StorageService solution in OutbreakProvider * Replaced AsyncStorage with new StorageService solution in many simple spots * Added deleteAll function on new StorageService to plug it in the reset function of the debug menu * Renamed StorageService to CachedStorageService and StorageServiceProvider to CachedStorageServiceProvider * Renamed FutureStorageService to StorageService * Added unit tests to new StorageService Co-authored-by: Robert Shand <[email protected]>
Summary:
Addressing #342
I could not reproduce this myself. Saving data, forcing iCloud backup, removing and installing again does not retain the data. This is mostly for anyone who can successfully reproduce the issue mentioned in #342.
Test Plan: