0

I'm implementing phone authentication in flutter with firebase. Currently SafetyNet is being deprecated and only PlayIntegrity API is working. The recaptcha prompt is still showing, even with SHA-256 and SHA-1 code added and PlayIntegrity enabled in the google cloud console. When the code is being sent after phone authentication, instead of the verificationID being a 6 digit number, I'm getting some encrypted code as a return response, is anyone else facing the same problem?

_codeSent(String verificationID, int? forceResendingToken) {
    print('verification id is $verificationID');
}

The response printed in the console is:

verification id is AK-jXHBdfx6rdD5Gq_W8b-7lEHqtS1C_rMaVPRLeqKiLwu4LMKPeOuE_scfdZ35andzdmQsetcnUq_Hif6b9MwjToPqLSaSxhlU_XzEQD4WHYhAoQ_9mxETZCy-rkDtyBu1FF_04GhPdnTryHFjVUmz2c6wwD_MbV8h22rWLI0CQ1sahK22t9xpL8_SFzp4DXz1vuafHvAA8fzEGsOC1rJ8D3VPReWF8AM8K1xRe0qeMZ0C-87e0Kj8

The same verification ID is given with real numbers and with testing numbers. The app is not in release form, only in debug form. I tried with both

await Firebase.initializeApp();
await FirebaseAppCheck.instance
  .activate(androidProvider: AndroidProvider.playIntegrity);

and

await Firebase.initializeApp();
await FirebaseAppCheck.instance
  .activate(androidProvider: AndroidProvider.debug);

Tried on both windows and Mac M1 pro computers. Same problem. Any help in the right direction would be appreciated.

Damanjit Hundal
  • 328
  • 4
  • 17

0 Answers0