playIntegrityApiManualPayload method

  1. @override
Future<JWSPayloadModel> playIntegrityApiManualPayload({
  1. required int projectNumber,
  2. String keyType = "EC",
})
override

Request the Safety Net Attestation with a String nonce The response is the payload from the JSON Web Signature (JWS)

Implementation

@override
Future<JWSPayloadModel> playIntegrityApiManualPayload({
  required int projectNumber,
  String keyType = "EC",
}) async {
  final String payload = await methodChannel.invokeMethod(
      'requestPlayIntegrityApiManual',
      {"cloud_project_number": projectNumber, "ec_key_type": keyType});

  return JWSPayloadModel.fromJson(jsonDecode(payload));
}