jpush-flutter-plugin icon indicating copy to clipboard operation
jpush-flutter-plugin copied to clipboard

sendLocalNotification收不到通知

Open junixapp opened this issue 3 years ago • 1 comments

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 日志已经打印,确认方法执行了,但是就是无法收到通知

junixapp avatar Dec 21 '20 10:12 junixapp

我也遇到了同样的问题。请问已经解决了吗?

chenjiangmin avatar Dec 13 '22 04:12 chenjiangmin