了解 Firebase 应用检查拒绝

发布于 2025-01-15 17:33:28 字数 698 浏览 3 评论 0原文

我的项目使用 Firebase 应用程序在 iOS 上使用 DeviceCheck 进行检查应用程序测试,云功能强制检查 auth context.app 是否未定义,就像:

if (appCheckEnabled == true && appCheckFunctions[functionName] == true) {
    if (context.app == undefined) {
        appCheckFailure["reason"] = "context is undefined"
        appCheckResult["valid"] = false 
    }
}

在我的设备和我团队的设备上一切正常,大多数用户也都很好。 问题是我有一些用户在 iOS 上被拒绝,我们试图理解为什么当我们询问应用程序是否通过应用程序商店下载并提供正确的链接时,我们还询问了设备的视频,一切看起来都很好(还要检查是否越狱)。所以我有一些关于应用程序检查的问题:

  • 由于应用程序检查处于测试阶段,是否有可能得到一些误报结果?
  • iOS 上云函数的 context.app 未定义的原因是什么?
  • 他们有可能因为配额而被拒绝吗?我找不到任何方法来检查 Apple 设备检查配额是否已达到?有人知道我在哪里可以找到有关它的统计数据吗?

感谢您提供任何有助于理解的答案。

My project use Firebase App check on iOS using DeviceCheck & App Test, cloud functions have enforcement checking wether auth context.app is undefined or not, simply like:

if (appCheckEnabled == true && appCheckFunctions[functionName] == true) {
    if (context.app == undefined) {
        appCheckFailure["reason"] = "context is undefined"
        appCheckResult["valid"] = false 
    }
}

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 :

  • As App check is in beta is it possible to get some false positive result ?
  • What can be the reason on iOS for the context.app of the cloud function to be undefined ?
  • 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 ?

Thank you for any answer that could help understand.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文