When setting restriction to an API key the Attestation API stops working:
OnFailureListener
gets fired with the CANCELLED
(16) status code
The restrictions are the android package name and the certificate signature(SHA-1)
Does the SafetyNet Attestation API support restricted API keys ?
Note: the same API key with the additional restriction works fine with Google Maps API
UPDATE: On devices running Google Play Services v13.0 and above, the SafetyNet Attestation API also supports app-restricted API keys. https://developer.android.com/training/safetynet/attestation