title: PERMISSION_DENIED: Missing or insufficient permissions
body: <p>I am running the following firebase code </p>
  
  <pre><code>    FirebaseApp app = await FirebaseApp.configure(
            name: 'weather app',
            options: const FirebaseOptions(
              googleAppID: '1:nnnnnnnnn:android:nnnnnnn',
              apiKey: 'XXXXXXXX',
              projectID: 'XXXXX-XXX-XXX08',
            ),
          );
          Firestore firestore = Firestore(app: app);
          FirebaseAuth.fromApp(app).signInAnonymously();
  </code></pre>
  
  <p>if I run this code for the first time in the emulator, it is throwing the following error</p>
  
  <pre><code> I/flutter (17766): getConfigState ERROR 2 PlatformException(Error performing get, PERMISSION_DENIED: Missing or insufficient permissions., null)
  W/Firestore(17766): (21.3.0) [Firestore]: Listen for Query(weather-api-info/owm) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}
  </code></pre>
  
  <p>But if I simply reload the app using hot reload or full reload then it doesn't complain. Again, the issue is occuring only when the app runs for the first time on the device (i can re-produce this by uninstalling the app and trying again)</p>
  
  <p><strong>Cloud firestore auth look like below(I am not planning to set up any sign-in or auth, but don't want to keep it open as well</strong></p>
  
  <pre><code>rules_version = '2';
  service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if request.auth != null;
      }
    }
  }
  </code></pre>