我对flutter和firebase还是个新手,我一直在关注Reed Barger的指南“用Flutter和Firebase构建社交网络”。我已经成功地完成了与Google的身份验证,但我在Firestore中创建用户时遇到了问题。为此,方法是
createUserInFirestore() async {
//1) check if user exists in user's collection in database (according to their id)
final GoogleSignInAccount user = googleSignIn.curr
我正在尝试一些Firebase示例,特别是如何在Java (标准JDK而不是Android)中对用户进行身份验证。
每次运行代码时,我都会从Firebase API(我猜想)收到以下警告:
Sun Jun 28 14:29:58 BST 2015 [WARN] CredentialStore: Using no-op credential store. Not persisting credentials! If you want to persist authentication, please use a custom implementation of CredentialStore.
我正在尝试为Flutter桌面嵌入集成Firebase身份验证。在桌面嵌入的情况下,是否有用于Firebase身份验证的Flutter插件。 我试过使用Flutter插件,firebase_auth插件。但这只适用于安卓和iOS平台,在桌面嵌入上运行时出现缺少实现错误,因为插件没有桌面嵌入的实现。 info flutter.tools [ERROR:c:\b\s\w\ir\k\src\flutter\lib\ui\ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found
根据本指南,在调用实际的登录方法之前设置firebase身份验证状态持久性:
firebase.auth().setPersistence(firebase.auth.Auth.Persistence.SESSION)
.then(function() {
// Existing and future Auth states are now persisted in the current
// session only. Closing the window would clear any existing state even
// if a user forg