title: Unable to get AppCheck (Debug on Emulator) to work on a Flutter application
body: <p>I have a flutter application, adding AppCheck and using Android Emulator to test and debug.
  I am testing the access of Realtime database. From my Firebase Console, AppCheck shows that all my access are of this type: Unverified: invalid requests. I have followed this: <a href="https://firebase.google.com/docs/app-check/android/debug-provider" rel="noreferrer">https://firebase.google.com/docs/app-check/android/debug-provider</a>.</p>
  <p>my app/build.gradle</p>
  <pre><code>dependencies {
      ...
      //implementation 'com.google.firebase:firebase-appcheck-safetynet:16.0.0-beta02'
      implementation 'com.google.firebase:firebase-appcheck-debug:16.0.0-beta03'
      ...
  }
  </code></pre>
  <p>In my main.dart</p>
  <pre><code>void main() async {
    WidgetsFlutterBinding.ensureInitialized();
  
    await Firebase.initializeApp();
  
    // Initialize AppCheck
    await FirebaseAppCheck.instance.activate();
  ...
  </code></pre>
  <p>In MainActivity.kt, I have the following:</p>
  <pre><code>import io.flutter.embedding.android.FlutterActivity
  import android.os.Bundle
  import android.util.Log
  import com.google.firebase.FirebaseApp
  import com.google.firebase.appcheck.FirebaseAppCheck
  import com.google.firebase.appcheck.debug.DebugAppCheckProviderFactory
  //import com.google.firebase.appcheck.safetynet.SafetyNetAppCheckProviderFactory
  
  class MainActivity: FlutterActivity() {
      // For Debug Only. Do not do this for Production
      override fun onCreate(savedInstanceState: Bundle?) {
          FirebaseApp.initializeApp(this)
          Log.e(&quot;MainActivity&quot;, &quot;onCreate&quot;)
          val firebaseAppCheck = FirebaseAppCheck.getInstance()
          firebaseAppCheck.installAppCheckProviderFactory(DebugAppCheckProviderFactory.getInstance())
          super.onCreate(savedInstanceState)
      }
  }
  </code></pre>
  <p>From logcat, I can see the following log</p>
  <p><code>com.google.firebase.appcheck.debug.internal.DebugAppCheckProvider: Enter this debug secret into the allow list in the Firebase Console for your project: xxxxxxxxxxxxx</code></p>
  <p>Based on the token, I use managed debug token and set it to a debug token.</p>
  <p>Using the AppCheck</p>
  <p><a href="https://i.stack.imgur.com/kXQS6.png" rel="noreferrer">Realtime Database only shows unverified requests</a></p>
  <p>I am expecting to see verified requests showing up.</p>
  <p>I also use Android Studio profiler to monitor the Network, I can see a request</p>
  <p><code>POST https://firebaseappcheck.googleapis.com/v1beta/projects/&lt;app&gt;/apps/&lt;appid&gt;:exchangeSafetyNetToken?key=&lt;key&gt;</code></p>
  <p>In the payload is a JSON safetynet token.</p>
  <p>I get a response of 403.</p>
  <p>Note that I have not turn on enforcement on the realtime database.</p>
  <p>What am I missing with AppCheck? Am I supposed to see verified request using the emulator or only on real physical device (release mode)?</p>