Play intigrity with phone auth verification failed

未关闭
#1,580 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, firebase, kotlin

调研方向

从报告中的 phone OTP 流程开始,检查 logcat 以查找 firebase-auth 22.3.1 下的 FirebaseAuthException,然后验证报告中列出的 Firebase App Settings、Google API key 和 App Check Play Integrity 配置。完成的标准是同一个 Android 应用可以完成手机验证,而不会出现缺少有效应用标识符的错误。

由索引模型根据 Issue 内容生成。

描述

Hi, I am getting this error when trying to verify phone number with OTP.

Here is what I did to solve this:

1Added both release and debug SHA 1 && SHA 256 key to Firebase App Settings
2Added SHA 1 && SHA 256 to Google API Key and made that unrestricted
3Registered Play Integrity in FIrebase
4 add SHA1 && SHA 256 in play integrity on app check firebase
com.google.firebase.auth.FirebaseAuthException: This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful. Please try again, or check the logcat for more details.
2024-01-23 07:45:49.693 7435-7435 System.err at com.google.android.gms.internal.firebase-auth-api.zzach.zza(com.google.firebase:firebase-auth@@22.3.1:39)
2024-01-23 07:45:49.693 7435-7435 System.err at com.google.android.gms.internal.firebase-auth-api.zzadb.zza(com.google.firebase:firebase-auth@@22.3.1:3)
2024-01-23 07:45:49.693 7435-7435 System.err at com.google.android.gms.internal.firebase-auth-api.zzade.run(com.google.firebase:firebase-auth@@22.3.1:4)
2024-01-23 07:45:49.693 7435-7435 System.err at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8410)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)

主要语言
Kotlin
星标
9.3k
派生
7.4k
平均合并
7 天 9 小时
30 天内合并 PR
6

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/quickstart-android 的其他 Issue

查看 firebase/quickstart-android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。