Skip to content

I cannot get iCloud backup to work #859

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

Closed
1 of 5 tasks
Fischaela opened this issue Nov 3, 2022 · 10 comments
Closed
1 of 5 tasks

I cannot get iCloud backup to work #859

Fischaela opened this issue Nov 3, 2022 · 10 comments
Labels
bug Something isn't working Stale

Comments

@Fischaela
Copy link

What happened?

What did you expect to happen?

I was expecting my apps redux store which uses @react-native-async-storage/async-storage to be backed up. So when users uninstall the app, the data will be saved in iCloud as a backup. And when a user reinstalls the app, the backup will be applied and the redux stores data is available in the app.

Version

1.17.10

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

System:
    OS: macOS 12.0.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 252.14 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /Users/michaelalehr/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.0.0 => 18.0.0 
    react-native: 0.69.4 => 0.69.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce

What did you do?

I updated info.plist like described in the docs:

<key>RCTAsyncStorageExcludeFromBackup</key>
<false/>

Then I used @react-native-async-storage/async-storage it as the storage of my persistent redux store:

const persistConfig = {
  key: 'root',
  version: 1,
  storage: AsyncStorage,
  blacklist: blacklistPaths,
}

I also added iCloud to the Capabilities in Xcode:

Screenshot_2022-11-03_at_11_42_36

What did happen?

Testing it in a simulator and on a real device via TestFlight, I cannot see any data saved to the iCloud.

Screenshot_2022-11-03_at_11_47_39-2

When uninstalling and reinstalling the app, the data is not backed up.

Do you have any idea what I am doing wrong?
Cheers, Michaela

@Fischaela Fischaela added the bug Something isn't working label Nov 3, 2022
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.

@github-actions github-actions bot added the Stale label Jan 3, 2023
@Fischaela
Copy link
Author

Any updates here? Can anyone help?

@github-actions github-actions bot removed the Stale label Jan 5, 2023
@graemegeorge
Copy link

@Fischaela having the same issue here did you get anywhere with it?

@Fischaela
Copy link
Author

@graemegeorge No, unfortunately not. I have no idea what to do. Did you find a solution?

@github-actions
Copy link

github-actions bot commented Apr 1, 2023

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.

@github-actions github-actions bot added the Stale label Apr 1, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2023
@rachellauyui
Copy link

@Fischaela Hey, I have the same issue. Wonder if you have managed to get it working? Thanks!

@Fischaela
Copy link
Author

@rachellauyui @graemegeorge I did not manage to make it work. You?

@floki-92
Copy link

same issue here

@Uroosaajaz
Copy link

I am facing same issue any update about this?

@s00se
Copy link

s00se commented Feb 26, 2025

Are there any update on this?

Seems people have very different outcomes with different platforms persisting data across uninstalls, but this does not work at all for me on iOS or Android following the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

6 participants