-1

I am trying to use firebase new feature which is App check. I am following the instructions from their documentation app check.

For this line

FirebaseAppCheck firebaseAppCheck = FirebaseAppCheck.getInstance();

The method getInstance isn't defined for the type FirebaseAppCheck.

Does anyone know what should I do?

Matt
  • 12,848
  • 2
  • 31
  • 53
ryan chandra
  • 321
  • 3
  • 11

1 Answers1

2

Try:

FirebaseAppCheck firebaseAppCheck = FirebaseAppCheck.instance;
NelsonThiago
  • 802
  • 7
  • 12
  • 1
    this works. but i have another problem which is "The method 'installAppCheckProviderFactory' isn't defined for the type 'FirebaseAppCheck'.". do you know hov to solve this? – ryan chandra Jul 23 '21 at 12:16