react-native-keychain icon indicating copy to clipboard operation
react-native-keychain copied to clipboard

`getInternetCredentials` throws `accessControl` for `rules:none`

Open voxspox opened this issue 4 years ago • 1 comments

I want to prevent AUTOMATIC_UPGRADE, thus I call:

getInternetCredentials('myserver', { rules: 'none' })

as suggested in the docs for getGenericPassword.

This results in an exception:

code: "E_UNKNOWN_ERROR"
jsEngine: "hermes"
message: "accessControl"
userInfo: null
nativeStackAndroid:
...
5: Object
  class: "com.oblador.keychain.KeychainModule"
  file: "KeychainModule.java"
  lineNumber: 292
  methodName: "getGenericPassword"
6: Object
  class: "com.oblador.keychain.KeychainModule"
  file: "KeychainModule.java"
  lineNumber: 394
  methodName: "getInternetCredentialsForServer"

voxspox avatar Jan 28 '21 16:01 voxspox

I have a similar issue: https://github.com/oblador/react-native-keychain/issues/488

Did you managed to fix it somehow?

dkoprowski avatar Jul 22 '21 07:07 dkoprowski