- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我开发了一个 React Native 应用程序,我使用 Expo Google-Sign-In 进行 Firebase 身份验证。当我尝试对 Android 上的独立 APK 进行身份验证时收到错误“DEVELOPER_ERROR”。
最初,我使用的是“Expo Google”,但那是
现在已弃用,我的登录按钮在我的独立 APK 上没有执行任何操作。使用Expo Google 方法,我发现必须设置androidStandaloneAppClientId。即使在那之后,登录在身份验证后也卡在了谷歌主页上。我尝试了使用自定义重定向 URI 的解决方案,如
重定向网址:${AppAuth.OAuthRedirect}:/oauth2redirect/google
但这导致了另一个错误:redirect_uri 不匹配。
我改为使用 Expo Google-Sign-In 库,每次尝试进行身份验证时都会给我一个 DEVELOPER_ERROR。
在那之后,我尝试过:
{
"expo": {
"name": "AssistiveNote",
"privacy": "public",
"description": "A note app for people who have trouble reading text.",
"slug": "assistivenote",
"sdkVersion": "33.0.0",
"version": "2.0.0",
"orientation": "portrait",
"icon": "./screens/images/icon.png",
"ios": {
"bundleIdentifier": "com.danyalbabar.assistivenote"
},
"android": {
"versionCode": 2,
"package": "com.danyalbabar.assistivenote",
"googleServicesFile": "./google-services.json",
"permissions": [ " " ],
"config": {
"googleSignIn": {
"certificateHash": "XXXX"
}
}
}
}
}
{
"project_info": {
"project_number": "XXXX",
"firebase_url": "https://era-gvision.firebaseio.com",
"project_id": "era-gvision",
"storage_bucket": "era-gvision.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "XXXX",
"android_client_info": {
"package_name": "com.danyalbabar.assistivenote"
}
},
"oauth_client": [
{
"client_id": "XXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXX",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
最佳答案
这是配置不匹配。确保您的 android/app/google-services.json 是正确的。
您可能需要将 SHA 证书指纹添加到 Firebase 配置中。按照以下帖子中的说明查找您的 SHA1 指纹:SHA-1 fingerprint of keystore certificate .然后,转到 https://console.firebase.google.com/ ,选择你的应用,在项目设置(左上 Angular 的齿轮图标)->你的应用->SHA证书指纹下添加SHA1值
如果您将配置对象中的 webClientId 传递给 GoogleSignin.configure(),请确保它是正确的。您可以从 Google Developer Console 获取您的 webClientId .它们列在“OAuth 2.0 客户端 ID”下。
如果您在 Debug模式下运行您的应用程序而不使用 webClientId 或者您确定它是正确的,则问题可能是签名(SHA-1 或 SHA-256)不匹配。您需要将以下内容添加到 android/app/build.gradle:
signingConfigs {
debug {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
release {
...
}
关于javascript - Expo Google 登录 DEVELOPER_ERROR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57505545/
下面是我用于 Google 登录的代码。我在应用程序文件夹中添加了 google-services.json 文件。我正在使用 classpath 'com.google.gms:google-ser
我开发了一个 React Native 应用程序,我使用 Expo Google-Sign-In 进行 Firebase 身份验证。当我尝试对 Android 上的独立 APK 进行身份验证时收到错误
获得Google Pay merchantId的批准后,尝试打开付款表时出现以下错误。 { statusCode: "DEVELOPER_ERROR", errorCode: 2, statusM
我正在尝试将 Google 登录添加到我的 Android 应用程序中。我已按照以下链接中的说明进行操作: https://developers.google.com/identity/sign-in
我正在我的应用中实现应用内结算。我刚刚实现了 REQUEST_PURCHASE、CONFIRM_NOTIFICATION 和 CHECK_BILLING,它们运行良好。 现在我正在尝试实现 REQUE
我搜索并尝试了 Google Developers 网站、Stack Overflow 和其他有用的博客文章中提供的几乎所有内容。但对我来说没有任何效果。 我的应用已成功登录 Google 帐户,但当
我按照本手册将 Google People API 连接到 Android 应用程序:http://blog.iamsuleiman.com/people-api-android-tutorial-1
我正在通过以下线程将 gmail 登录集成到我的 android 应用程序中: https://developers.google.com/identity/sign-in/android/sign-
我尝试在连接 Firebase 的 Android 应用中实现 Google 登录。当我运行该应用程序并按下 Google 登录按钮时 - 没有任何反应。我在 onActivityResult 中收到
我正在使用 gplus 登录,并在我在 onActivityResult 时收到此错误.... @Override public void onActivityResult(int requestCo
所以我已经搞砸了几天了,我不明白为什么它不起作用。我真的希望有人能帮助我。 我正在尝试使用 Firebase 对使用 Google 登录的用户进行身份验证。所以按照他们的指南here我已设置 Goog
我们正在开发用于订餐的应用程序。在这种情况下,我们实现了 Braintree 支付。一切都很好。下一步是实现 Google Pay(请注意,不是 Android Pay)。我使用了这个文档:布伦特里文
我实现了应用内计费(订阅)并且一切正常 - 我能够订阅,我确认订阅,并且计费流程成功结束并处于正常状态。 但是,在我的应用程序启动时,我正在检查(从 Google Play 缓存)我是否已经购买 -
我认为这是 android、android studio 或 google 中的错误。我可以通过签名的 apk 登录到 google。但是,如果我在 Play 商店上传相同的 apk,它会显示我 St
我已使用此链接在 Firebase 上启用 Google 登录 https://rnfirebase.io/auth/social-auth我的应用程序编译得很好,但是当我按下登录按钮并选择一个 Go
我是一名优秀的程序员,十分优秀!