我有一个由来自firebase的数据驱动的日历。当用户进行编辑时,通过移动或调整任务大小,它将快速移动回其原始位置,然后数据库将更新客户端,新数据将显示在页面上。 下面是一个简单的图表来解释: A - User moves task in calendar UI
↓
B - UI flicks back to its previous position
↓
C - Data is sent to Cloud Firestore
↓
D - Updated data is returned to the client via a realtime listener
↓
E - UI is up
在我的颤振应用程序中,我正在使用Firebase Firestore。在debug模式下,一切都很好。但是,在release模式下,我会得到以下错误。我看到了一个类似的问题,但它不能解决我的问题。
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: [cloud_firestore/unavailable]
The service is currently unavailable. This is a most likely a transient condition and may be corrected b
我使用Flutter、Timer和Firebase/Firestore.批处理来执行类似示例代码的操作,以定期在Mac上保存数据。
当我运行我的应用程序几天,我会随机得到这个错误:
flutter: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.
flutter:
#0 MethodChannelWriteBatch.commit
package:cloud_firestore_platform_interface/…
我目前正在开发一个使用firestore和mobx的flutter应用程序。我使用mobx使UI保持最新,并对firestore进行->调用(这样数据流就是firestore store mobx store mobx -> UI)。我想设置侦听器来侦听firestore集合中的实时更改。理想情况下,我希望在mobx中设置此侦听器,但我不确定这是如何工作的-暴徒存储是否是监听firestore更改的正确位置?我担心的一件事是,在mobx存储中没有可以分离侦听器的dispose方法。我想知道这是不是一种可以接受的方式来更新我的存储中的变量(从而间接地更新UI ),或者我是否需要切换
我添加了firebase和,然后在调试控制台中显示了某种警告
警告:
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_analytics-9.3.3\android\src\main\java\io\flutter\plugins\firebase\analytics\FlutterFirebaseAnalyticsPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
我正在尝试更新文档,但不断收到此错误: ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method DocumentReference#updateData on channel plugins.flutter.io/cloud_firestore 这就是我想要做的: Firestore.instance.collection('myCollection').document(document
我正在制作一个实时聊天应用程序。下面的函数是在数据库中新建一个聊天室。getChatRoomId基本上为聊天室创建了一个唯一id,该id在数据库中分配给chat_room_id。该chat_room_id有一个集合,即chat_room_id本身和users数组。当我调用此函数时出现错误。我正在打印数据,就像您在下面的方法中看到的那样。方法调用是完美的(here i am),看起来我有一个chat_room_id,因为我expected.Also我有一个chatRoomMap。但是,当我尝试打印出信息时,它会打印出null。请查看下面的错误部分以查看打印结果。 createChatRoomA
我正面临错误,而试图添加Firebase颤振项目。当我运行应用程序时,会出现错误:
Launching lib\main.dart on sdk gphone x86 in debug mode...
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-
1.0.1\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or
overrides a deprecated API.
我的应用程序运行得很流畅。当我添加firebase:^7.2.1来支持Flutter Web时。针对Web的构建运行良好,但针对Android的构建总是失败。
我的依赖关系。
flutter_timer: ^0.0.6
http: any
intl: ^0.16.1
firebase: ^7.2.1 ```
---------------------------
These are Console message:
Launching lib/main.dart on SM G920L in debug mode...
Running Gradle task '
我面临着奇怪的问题,使应用程序在生产模式下崩溃,而且如果我尝试了相同的操作,就不会发生一次,所以当尝试将项目添加到火力基础上时,它就崩溃了,如果返回相同的情况,可能没有崩溃,但我已经兑现了这些问题。
第一期
/AndroidRuntime( 9758): java.lang.NullPointerException: Attempt to invoke virtual method 'void io.flutter.plugin.common.MethodChannel.invokeMethod(java.lang.String, java.lang.Object)' on a
因此,当我尝试将firebase添加到我的项目中时,我开始收到这些错误,并且找不到任何关于这个问题的答案。请帮帮忙,因为这个Build Failing with an exception when adding firebase_auth or cloud_firestore in the pubspec.yaml file (firebase_core is working):对我不起作用。 这些是我在pubspec.yaml中的依赖项 '''dependencies:
flutter:
sdk: flutter
firebase_cor
我最近刚开始在窗户上飞舞。我正在遵循的火基和颤振教程。在第四节课上,我发现了Firebase Auth的错误:
MissingPluginException(没有在通道插件上找到方法signInAnonymously的实现)
我认为问题是因为我在为窗户而建。我不知道如何在windows应用程序中添加防火墙。任何帮助都是非常感谢的。
以下是完整的日志:
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Waiting for Windows to report its v
我使用VisualStudio作为集成开发环境。在添加cloud_firestore:^0.13.7作为依赖项并运行pub get时,我收到以下错误: [firebase] flutter pub get
Running "flutter pub get" in firebase...
Because cloud_firestore >=0.13.4 depends on cloud_firestore_web ^0.1.1 which depends on firebase ^7.0.0, cloud_firestore