scottyab / safetynethelper

SafetyNet Helper wraps the Google Play Services SafetyNet.API and verifies Safety Net API response with the Android Device Verification API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem validating JWS Message

cagataymuhammet opened this issue · comments

I had this problem too.
To fix it I had to change the restriction. See the screenshot.
image

It is possible to auth as an Android app by changing headers like:

 headers.put("X-Android-Package", packageName);
 headers.put("X-Android-Cert", signature);

But the library does not allow to do this so you have no choice to use another key no restricted on Android app but I advise you to restrict API access.