GithubHelp home page GithubHelp logo

Comments (21)

briananderson1222 avatar briananderson1222 commented on August 17, 2024

Apparently going into Compatibility Settings and enabling Keychain Sharing 'fixes' the issue. Haven't been doing iOS specific development for a while now so hoping that bringing this up might shed some light..

EDIT: From talking to some iOS Dev friends apparently there haven't really even been much in the way of changes when it comes to the keychain for iOS10. It looks like the SAMKeychain plugin is being used under the hood so it's possible the error is stemming from something in that plugin

EDIT2: So it looks like this plugin is using a year old version of this plugin.. maybe that has something to do with the lack of iOS10 support.. Going to see what happens if I pull in more up to date files from that plugin

EDIT3: That's a no go on pulling in the latest from that plugin. Would love to get some eyes on this since the iOS10 release is coming up soon @ggozad

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Hey @briananderson1222!
I haven't had a chance to look into this. I would really appreciate it if you do continue... Would you be able to make a branch updating the plugin so that I can have a look as well?

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Also note soffes/SAMKeychain#149

from cordova-plugin-secure-storage.

briananderson1222 avatar briananderson1222 commented on August 17, 2024

@ggozad Is there a reason the SAMKeychain code is so out of date? Also, is there a reason that 'SAM' is renamed to 'SS' or was this what the library used a year ago when this code was last updated?

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

@briananderson1222 indeed SSKeychain apparently became SAMKeychain. There's no particular reason, SSKeychain was more or less a sane simple API around keychain which is why it was used.

from cordova-plugin-secure-storage.

briananderson1222 avatar briananderson1222 commented on August 17, 2024

@ggozad Okay thanks for the background information. I'll continue looking into this as time allows and open a PR if I can get it working. Let me know if there is any other background information that may be useful

from cordova-plugin-secure-storage.

briananderson1222 avatar briananderson1222 commented on August 17, 2024

soffes/SAMKeychain#52

https://openradar.appspot.com/27844971

from cordova-plugin-secure-storage.

briananderson1222 avatar briananderson1222 commented on August 17, 2024

I've made the upgrade to the latest version if you would like me to put up a PR for that.. unfortunately doesn't seem to fix the underlying Keychain issue on iOS10

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Doomsday has come and gone. All seems fine here, did you encounter any trouble?

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

@briananderson1222 closing this as everything seems fine on iOS 10. If you do encounter any problems let me know and will reopen.

from cordova-plugin-secure-storage.

fmhun avatar fmhun commented on August 17, 2024

Hi @ggozad, @briananderson1222

I still encountering a similar issue on iphone 7 simulator (iOS 10), with Xcode version 8.0 (8A218a) and lastest plugin version from git master branch.

The ss.set() method returns the following error :

message: "Failure in SecureStorage.set() - Refer to SecBase.h for description"

Are you experiencing the same issue ?

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Hey @fmhun /cc @briananderson1222
I am not sure what to take from this.
Tests all pass just fine on a real device, at least on my iphone 6 running ios 10.
Tests fail on emulator both on iphone 7 and 6.

We deployed the latest release successfully on our own app and have had no problems reported so far.
This indicates that the problem is with the emulators, but of course I would like to resolve it altogether.

Would appreciate verification of tests passing on different physical devices.

from cordova-plugin-secure-storage.

briananderson1222 avatar briananderson1222 commented on August 17, 2024

My experience has been the same as @ggozad. If you do want it to work on a simulator I have had luck with enabling the 'Keychain Accessbility' Capability as mentioned in this issue: https://openradar.appspot.com/27844971. I would monitor this issue as it appears to be an issue that stems from the the simulator itself.

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Will leave this open even if it does not affect apps in production. If something changes please report here to keep everybody in the loop.

from cordova-plugin-secure-storage.

azhang66 avatar azhang66 commented on August 17, 2024

Has a resolution been reached on this issue?

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Well everybody reported the problem only appears on the emulator and seems to be a known bug. Is this different for you?

from cordova-plugin-secure-storage.

azhang66 avatar azhang66 commented on August 17, 2024

Well, kinda. I think we should leave this open for discussion in case a solution is found.

from cordova-plugin-secure-storage.

wh33ler avatar wh33ler commented on August 17, 2024

I get this error also on a device. But not directly. After a fresh install and live building on the device at some point this issue appears and from then on it doesn't work anymore. Any news on this?

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

Hey @wh33ler , sorry for the late reply, christmas and all :)
We haven't experienced this on devices yet. Could you please run the test and report the errors you get on the console, on a real device?

from cordova-plugin-secure-storage.

jvjvjv avatar jvjvjv commented on August 17, 2024

I actually haven't been receiving errors with this under 10.2 and 10.2.1

from cordova-plugin-secure-storage.

ggozad avatar ggozad commented on August 17, 2024

@jvjvjv yep this is indeed the case, had forgotten to come back to this.

from cordova-plugin-secure-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.