React-native-keychain: Error Domain=NSOSStatusErrorDomain Code=-25300 "no matching items found" UserInfo={NSDescription=no matching items found}

Created on 6 Mar 2017  路  5Comments  路  Source: oblador/react-native-keychain

My code:

    try {
      Keychain.requestSharedWebCredentials()
    } catch (e) {
      console.log(e);
    }

Xcode:

screen shot 2017-03-06 at 16 18 35

screen shot 2017-03-06 at 16 19 13

My apple association file hosted under my www.myCorrectDomain.com/apple-app-association-file:

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "FDM2J9GHFZ.com.myCorrectDomain.app.ios",
                "paths": [ 
                    "*"
                ]
            }
        ]
    },
    "webcredentials": {
        "apps": [ "FDM2J9GHFZ.com.myCorrectDomain.app.ios"]
    }
}

Keep in mind that the _myCorrectDomain_ is virtual, in reality I'm using another domain, I'm just using this for the current example, but in my set up it's all under the right domain.

The error I receive is:
Error Domain=NSOSStatusErrorDomain Code=-25300 "no matching items found" UserInfo={NSDescription=no matching items found}

Most helpful comment

I don't even remember why I opened that issue, but it's fixed now, thanks :) you're the boss.

All 5 comments

Hey, sorry for the late answer, but this is very likely a configuration error in your AAAF, try this tool from Apple or check Stack Overflow: https://search.developer.apple.com/appsearch-validation-tool

I don't even remember why I opened that issue, but it's fixed now, thanks :) you're the boss.

Hey @SudoPlz would you mind sharing how you ended up fixing this issue? I am having the same problem and no lock for me so far.

Thanks much!

@westerly I don't even remember but the Code=-25300 "no matching items found" error simply means it didn't find any shared credentials.

To make sure you properly catch this error though don't use a try catch block, instead do Keychain.requestSharedWebCredentials().catch(.......)

@westerly I don't even remember but the Code=-25300 "no matching items found" error simply means it didn't find any shared credentials.

To make sure you properly catch this error though don't use a try catch block, instead do Keychain.requestSharedWebCredentials().catch(.......)

Thanks much!

Was this page helpful?
0 / 5 - 0 ratings