Skip to content
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

Losing Data on IOs #72

Closed
obsidianart opened this issue Apr 20, 2018 · 10 comments
Closed

Losing Data on IOs #72

obsidianart opened this issue Apr 20, 2018 · 10 comments

Comments

@obsidianart
Copy link

obsidianart commented Apr 20, 2018

Hi,
I don't know if that's a common issue or not but I had a few users reporting a total loss of their data on IOs after updating the OS or updating apps.
It might be something in my code but maybe you get similar problems in the past and it is a known issue.
(I have over 10k users on Android and no issue reported so it seems IOs only)

@artegen
Copy link

artegen commented May 23, 2018

Edit: Sorry, the issue is with our implementation and storage versioning. If the set items are not versioned, with app updates there will be inconsistencies in retrieved values. That's why I've got different storage states on different devices which I used randomly.


Hi, have this issue too.
Appears only on iphone X (didn't try for iOS 11 on other devices).
The data is lost when app is closed. When app is in background, turning back retrieves data from the storage correctly.

@obsidianart
Copy link
Author

For me it's not connected to updates of the app :(

@mCodex
Copy link
Owner

mCodex commented May 23, 2018

As far as I can see it might be related to iOS 11 maybe. Unfortunately, I don't have an app to test it right now. :/

@lchapoy
Copy link

lchapoy commented Jul 30, 2018

I am Facing the same issue.
I have a react-native application with sentry:

  • There are multiple issues for "unauthorized request", doing some research I found that the auth token is undefined and all the users having this problem are using either iPhone X or iPhone 8. 11.4 OS.
  • The token is retrieved directly for the rn-sensitive-info get item method.

Do you guys figure out how to solve this issue?

Another important point, I have an iPhone X as well, I was doing some testing to try to reproduce the issue but I was unable to do it, the only difference is that I have 12 or higher OS. So the issue might be related to 11.X OS.

@arindam89
Copy link

We are facing the same issue, we are using it in Redux for iOS and Android and in iOS 11.4.1 and onwards, the sensitive info is not present after link 15 hours or so and the application logs out the user.

It works fine for iOS lower versions and Android. Please let us know how to debug and how to proceed.

Thanks in Advance.

@mattvick
Copy link

mattvick commented Aug 31, 2018

We're also seeing this issue in iOS with several users complaining about being forced to onboard again. We beleive this happens because their login credentials are lost from the keychain. Switching to AsyncStorage fixes the issue, but AsyncStorage is not secure so this is not a solution for us.

I've personally experienced loss of keychain data using a physical iPhone 6 plus (iOS 11.4.1) and in the Simulator using iPhone X (iOS 11.4).

I've debugged this by logging the keychain both in JavaScript and Xcode. Keychain data is lost when refreshing (⌘+r) React Native in the Simulator. I've not yet discovered why.

Has anyone else gotten further with debugging this?

@michaelcsilva
Copy link

I may be seeing this too on iOS, often shortly after app startup. Killing and restarting the app seems to resolve the issue. It's very inconsistent, but I see it in my own testing about 1 time per week, running the app on iOS in production mode (i.e. not attached to a debugger).

The bug indicates help is needed. What can I enable in terms of logging, alerts, etc. to help debug?

@kellycampbell
Copy link

Seeing this as well. Further searching turned up this issue thread: evgenyneu/keychain-swift#78

I will try to implement the solution suggested in this comment: evgenyneu/keychain-swift#78 (comment)

kellycampbell pushed a commit to kellycampbell/react-native-sensitive-info that referenced this issue Feb 19, 2020
Addresses issue mCodex#72 where SecItemCOpyMatching doesn't return data and
doesn't give an error when the protected files are not yet
available. This will now give an error instead of empty results,
allowing the caller to retry after some delay.
@stale
Copy link

stale bot commented Jun 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 10, 2020
@stale
Copy link

stale bot commented Jul 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 🚧 stale label Jul 10, 2020
@stale stale bot closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants