question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lost data on iOS after releasing an update

See original GitHub issue

Current behavior

Our app uses async-storage to store JSON serialised data. It’s really not getting any more complicated than AsyncStorage.getItem and AsyncStorage.setItem. After we release an update we get complaints from users who lost their data. These complaints are consistently tied to when we release a new version of the app.

Expected behavior

AsyncStorage.getItem to “recognise” data from before the update.

Repro steps

We haven’t been able to reproduce it the issue ourselves entirely, but based on the support requests it’s something along the following:

  • Open app on iOS device
  • Release new version of app
  • Start update on device, but don’t finish it yet (so unplug internet for example)
  • Perform an action in the iOS device which triggers AsyncStorage.setItem.
  • Finish update
  • Reopen app
  • Data is gone

Environment

  • Async Storage version: ^1.7.1
  • React-Native version: 0.61.5
  • Platform tested: iOS
  • Logs/Error that are relevant: -

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
unfrgivncommented, Aug 7, 2020

Having similar issues that I’m unable to reproduce and seems to be a lot of users on iOS 13.5.1 with iPhone 11s (but that’s could be coincidental as it’s a popular combination).

Started in early June with switching to community version of AsyncStorage on RN 0.62.2 and now users are logged out without knowing it and not receiving push notes. I will post here if I can find anything useful.

3reactions
peternoordijkcommented, Jul 17, 2020

I’m still trying to get more information on this

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Recover Files Disappeared from iPhone after Update ...
Method 1: Restore Lost Data after iOS 16 Update using iTunes Backup. If you're having a "files disappeared from iPhone" issue after installing ......
Read more >
How to Recover Lost Data after iOS 16/15 Update - Tenorshare
1. First of all, you have to erase all your content. · 2. Enter your passcode to confirm your decision. · 3. You...
Read more >
How to recover lost data from iPhone after iOS update
Option 1: Recover Missing Data from iPhone after iOS Update ... Run the program. Select the "Recover from iOS Device" mode on the...
Read more >
Recover Lost Data from iPhone/iPad after iOS 11/12 Update
Lost important data during iOS upgrade? This post shares easy ways to recover lost data from iPhone/iPad after iOS 11/12 update.
Read more >
3 Available Ways to Recover Files After iOS Upgrade - MiniTool
Way 2: Recover Files from iCloud Backup after iOS Update ... To restore lost data from iCloud backup, you need to make sure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found