-
Notifications
You must be signed in to change notification settings - Fork 222
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
getAllItems() return value inconsistent on different platforms #8
Comments
I just want to add to this that |
Thank you for letting us know. We're glad this is being helpful. Right now, we are pretty busy with other projects, but pull requests are always welcome! |
@randycoulman I assume the iOS API should align with android's API in this case? |
I'd probably go the other way and make them both like the iOS API. That way, we'd be adding information to the Android API rather than removing information from the iOS API. Either way, it's going to be a breaking change somewhere. |
Thanks for building this library! Experiencing the same issue. If we're fixing the return values, shouldn't the iOS return value be one array rather than a nested array, i.e., return:
rather than
Happy to work on a PR for that if it's helpful. I don't have as much experience with Android React-Native so probably wouldn't be as helpful with reworking that section. |
@YPCrumble Yes, I agree with you. I forgot about the nested array in my earlier response. So, my (non-authoritative) opinion is that we should return an array of objects, where the objects have the |
Hello guys, sorry for delaying the answer once again. I'll take a look in android in this week. About iOS, I'm afraid I wouldn't because I don't have macOS available. |
Moreover, the example in the README is a bit misleading. From looking at it, I expected |
Has this been resolved? |
opened a PR for this at #168 |
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. |
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. |
I find the issue still exist because |
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. |
The issue still exists in v6.0.0-alpha.6. |
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. |
Hi guys 👋 Thanks for the report. There were no reason regressing this issue. In fact, it may have happend when I merged the keystore branch within the master branch, because the keystore branch had many differences in android's files and this fix wasn't included there. So, we should only open a new PR for that using the master branch again. I may have do this later, however feel free doing that. |
I am still having this issue. Wasn't this fixed? |
const RNSIResponseNormal: SensitiveInfoEntry[] | [SensitiveInfoEntry[]] = APP_FLAGS.isIOS |
The issue still exists in v6.0.0-alpha.9. For now, I decided not to use getAllItems. |
Hey! its a simple hotFix,
This function return a simple Array of Secure Items: |
Thanks for this library! It's been super-helpful for us.
We noticed that the
getAllItems()
function resolves the promise with different data types on iOS vs Android.On iOS, we get back an array that contains another array. The inner array has objects with the keys
service
,key
, andvalue
:On Android, we get back an object that just has keys and values:
This inconsistency makes it difficult to use the results in a cross-platform way.
The text was updated successfully, but these errors were encountered: