我正在通过和设置推送通知,我能够在应用程序的前台状态和后台设置它。在应用程序的终止状态下,我确实收到了通知,但当我按下它时,就不会发生任何动作,即使应用程序的前景和背景状态运行良好,并将用户导航到通知屏幕,在终止状态下,应用程序只是打开,它不导航到通知屏幕,只打开应用程序的主屏幕。由于设备没有连接,所以我无法在控制台日志中看到错误,但是当我从模拟器启动应用程序时,这就是我在start上得到的结果:
I/flutter ( 3829): Got a message whilst in the terminated state!
I/flutter ( 3829): Message data: n
我正在向我的安卓应用程序添加Cloud Messaging函数,但我无法截取前台的message.data。 这个例子是 FirebaseMessaging.onMessage.listen((RemoteMessage message) {
print('Got a message whilst in the foreground!');
print('Message data: ${message.data}');
if (message.notification != null) {
print('Message also
我正在使用Flutter sdk版本2.12.0。我正在创建一个聊天应用程序,可以用来与其他用户聊天。聊天历史记录将存储在fireBase中。我正在尝试检索我聊天的数据,并使用Stream Builder窗口小部件将其显示在屏幕上。当我继续聊天时,数据应该会自动添加。 我收到以下错误: Closure call with mismatched arguments: function '[]'
Receiver: Closure: () => Map<String, dynamic> from Function 'data':.
Tried c
我试图在我的应用程序中接收通知,使用Firebase消息将它们显示在应用程序中,但是我一直收到错误:
/FLTFireMsgReceiver( 6823): broadcast received for message
E/flutter ( 6823): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: setState() called after dispose(): _TipsState#aa4df(lifecycle state: defunct, not mounted)
E/flutter ( 68