我还没有 google play 帐户,我正在尝试使用 Firebase 电话身份验证,并收到此错误(缺少客户端标识符)和(应用程序未授权)。 “注意:工作正常之前”。 所以,我做了一些搜索,我了解到我需要一个 google play 帐户,对吗?
implementation("com.google.firebase:firebase-appcheck-playintegrity")
implementation("com.google.firebase:firebase-appcheck-debug")
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
firebase_core: ^2.24.2
firebase_database: ^10.3.8
firebase_auth: ^4.15.3
firebase_app_check: ^0.2.1+6
await FirebaseAppCheck.instance.activate(
androidProvider: AndroidProvider.debug,
webProvider: ReCaptchaV3Provider('recaptcha-v3-site-key'),
);
拥有 google play 帐户与此错误无关,
确保 Firebase 项目中的 API 密钥和 SHA 证书指纹正确。