我正在尝试添加一个简单的文本到Firebase数据库中。我已经成功地使用gmail登录,并且工作正常,但是当我尝试添加任何内容时,它会给我这个错误:
E/MethodChannel#plugins.flutter.io/firebase_database( 6299): Failed to handle method call
E/MethodChannel#plugins.flutter.io/firebase_database( 6299): com.google.firebase.database.DatabaseException: Failed to get FirebaseData
当我试图用小狗登录gmail时,它会闪现出一个带有url的快速Webalert,类似于accounts.gmail.com之类的东西。太快了,我看不出来也不抄。然后上面说登录失败了。
然后我收到一封Gmail的电子邮件,上面写着:
Google Account: sign-in attempt blocked
Hi Adam,
We recently blocked a sign-in attempt to your Google Account [a...@gmail.com].
Sign in attempt details
Date & Time: Wednesday,
当我使用我的应用程序单击“与google一起登录”按钮时,它的意思是在弹出窗口中显示google日志,但是我得到了以下错误:
W/DynamiteModule(15856): Local module descriptor class for com.google.android.gms.auth.api.fallback not found.
E/flutter (15856): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(sign_in_failed, com.goo
我试图在Flutter中登录google,问题是在填写登录凭据后,它不会移动到下一页,而是返回登录页面。此外,它不会在Cloud Firestore中保存任何数据。但它会将该电子邮件登录用户添加到Firebase的用户身份验证字段中。我试着用不同的代码来解决这个问题,但是什么也没有发生。以下是我到目前为止所做的工作。 **Flutter Doctor:**
C:\Users\Nouma>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stab
应用程序刚刚开始,我先登录。它在android和ios上都能工作,但几天后我又开始开发这个应用程序,登录只在android上工作。
在iOS上,当我使用谷歌登录时,它打开了一个到accounts.google.com的页面,我想,然后它应该要求提供电子邮件和密码,但它没有。它只说
Safari cannot open the page because it could not establish a secure connection to the server.
flutter doctor的输出
Doctor summary (to see all details, run flutter