title: iOS Firebase/Firestore Permission Denied
body: <p>I know this question has been frequently asked, however the solutions proposed did not solve it for me.</p>
  
  <p>I tried to set-up a basic iOS Firestore app which writes some documents inside a collection.
  I followed the standard procedure, added the GoogleService-Info.plist to my project and I'm calling `FirebaseApp.configure() on launch.</p>
  
  <p>My Firestore rules look like this:</p>
  
  <pre><code>service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if request.auth != null;
      }
    }
  }
  </code></pre>
  
  <p>Now once I try to save something inside a collection Firebase returns me a Permission denied error.</p>
  
  <p>If however my rules are like so:</p>
  
  <pre><code>service cloud.firestore {
    match /databases/{database}/documents {
      match /{document=**} {
        allow read, write: if true;
      }
    }
  }
  </code></pre>
  
  <p>The write is accepted. Obviously the request seems to not contain any auth information, but I can't find any additional documentation about this. Did I miss something? </p>
  
  <p>Thanks for any help!</p>