繁体   English   中英

Firebase 通知处理 如何处理 flutter 中的 Firebase 通知

[英]Firebase Notifications Handling How to handle Firebase notifications in flutter

我正在尝试从我的 firebase 向 flutter 发送推送通知,到目前为止,它只需添加清单代码并导入 package。 问题是我无法处理 onLaunch、onMessage 和 onResume 属性,除非我在 main.dart 的正文部分中包含消息小部件并且我已经在正文中有我的主页小部件并且我的应用程序从它们开始我可以处理吗?

 RateMyApp rateMyApp = RateMyApp(
preferencesPrefix: 'rateMyApp_',
minDays: 1,
minLaunches: 1,

);

@override


 void initState() {
super.initState();
if(rateMyApp.shouldOpenDialog){
  rateMyApp.showRateDialog(context,title: 'hii', message: 'please like');
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM