title: Understanding Firebase App Check rejection
body: <p>My project use Firebase App check on iOS using DeviceCheck &amp; App Test, cloud functions have enforcement checking wether auth <code>context.app</code> is undefined or not, simply like:</p>
  <pre><code>if (appCheckEnabled == true &amp;&amp; appCheckFunctions[functionName] == true) {
      if (context.app == undefined) {
          appCheckFailure[&quot;reason&quot;] = &quot;context is undefined&quot;
          appCheckResult[&quot;valid&quot;] = false 
      }
  }
  </code></pre>
  <p>Everything work fine on my devices and my team's device and most of users are fine too.
  Problem is that i have some users that are rejected on iOS, we try to understand why as we asked us if the app is downloaded via the app store and correct link, we also ask a video of the device and thing is everything looks fine (also check for jailbreak). So i have a few question about app check :</p>
  <ul>
  <li>As App check is in beta is it possible to get some false positive result ?</li>
  <li>What can be the reason on iOS for the context.app of the cloud function to be undefined ?</li>
  <li>Is it possible they get rejected because of the quotas ? I could not find any ways to check if the Apple Device Check quotas have been reached ? Anyone know where i could find stats about it ?</li>
  </ul>
  <p>Thank you for any answer that could help understand.</p>