Open srishti-maurya opened 2 months ago
This works as expected.
Unless otherwise specified (see below), it is the fundamental principle of isolation between applications:
Application A's data cannot be accessed by Application B, and vice versa.
On Android, you could save SharedPreferences with MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE access controls. However, this was deprecated since API level 17^1 in favor of FileProvider^2.
On iOS, you can share data between application by sharing KeyChain items with a family of applications^3.
Here's a breakdown of the issue:
Step 1: Storing credentials from App A:
I successfully stored credentials (e.g., username and password) using
react-native-keychain
within my React Native application (let's call it App A).Step 2: Attempting to retrieve credentials from App B:
After storing the credentials in App A, I am are trying to retrieve them from another application, let's call it App B. However, I'm encountering difficulties in retrieving the credentials using
react-native-keychain
.Reference code -
Note: I am able to retrieve credentials from App A after storing from App A but not able to retrieve credentials from App B. Though this flow works fine for iOS.
Setup issue -
According to the docs for linking manually https://www.npmjs.com/package/react-native-keychain#option-manually-1, I am facing issue for the below step.
MainApplication.java
I tried adding similarly in my App but getting error as
Attached screenshot of the error for reference
Any suggestions or fixes from the community regarding this issue with
react-native-keychain
, any insights or guidance would be greatly appreciated. Thank you!