jpush-flutter-plugin
jpush-flutter-plugin copied to clipboard
sendLocalNotification收不到通知
onReceiveMessage: (Map<String, dynamic> message) async {
Log.i("flutter onReceiveMessage: $message");
var fireDate = DateTime.fromMillisecondsSinceEpoch(
DateTime.now().millisecondsSinceEpoch + 3000);
LocalNotification notification = LocalNotification(
id: 123,
buildId: 1,
title: message["title"],
content: message["desc"],
fireTime: fireDate);
await jpush.sendLocalNotification(notification);
}
系统:Android10 华为Mate20 日志已经打印,确认方法执行了,但是就是无法收到通知
我也遇到了同样的问题。请问已经解决了吗?