Skip to content
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

sendAndVerifyAttestation method returns an error #369

Closed
Miti063 opened this issue May 27, 2020 · 2 comments
Closed

sendAndVerifyAttestation method returns an error #369

Miti063 opened this issue May 27, 2020 · 2 comments
Assignees

Comments

@Miti063
Copy link

Miti063 commented May 27, 2020

Using the basic example from the repo, sendAndVerifyAttestation method returns an error.

Version Detail:

"react": "16.8.6", "react-native": "0.60.5", "react-native-google-safetynet": "^1.0.0"

Here is my code:

SafetyNet.isPlayServicesAvailable()
      .then(result => {
        if (result === true) {
          return SafetyNet.generateNonce(24)
        }
        throw new Error('play services not available.');
      })
      .then(nonce => {
        SafetyNet.sendAttestationRequest(nonce, 'APIKEY').then(isRooted => {
          console.log(isRooted)
        }).catch(err => console.log('err',err));
      }).catch(error => console.log(error));

Error logs:

{
   "framesToPop":1,
   "nativeStackAndroid":[
      {
         "methodName":"fromStatus",
         "lineNumber":4,
         "file":null
      },
      {
         "methodName":"zaf",
         "lineNumber":2,
         "file":null
      },
      {
         "methodName":"onComplete",
         "lineNumber":6,
         "file":null
      },
      {
         "methodName":"zaa",
         "lineNumber":172,
         "file":null
      },
      {
         "methodName":"setResult",
         "lineNumber":131,
         "file":null
      },
      {
         "methodName":"zza",
         "lineNumber":7,
         "file":null
      },
      {
         "methodName":"dispatchTransaction",
         "lineNumber":155,
         "file":null
      },
      {
         "methodName":"onTransact",
         "lineNumber":22,
         "file":null
      },
      {
         "methodName":"execTransactInternal",
         "lineNumber":1028,
         "file":"Binder.java"
      },
      {
         "methodName":"execTransact",
         "lineNumber":1001,
         "file":"Binder.java"
      }
   ],
   "userInfo":null,
   "code":"EUNSPECIFIED"
}
@rajivshah3 rajivshah3 self-assigned this May 27, 2020
@rajivshah3
Copy link
Owner

I haven’t tested this on RN 0.60+ so maybe it’s not linking properly as mentioned in #322

@rajivshah3
Copy link
Owner

Duplicate of #135

@rajivshah3 rajivshah3 marked this as a duplicate of #135 May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants