jpush / jpush-react-native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
1.35k stars 336 forks source link

jpush-react-native 中clearNotificationById方法传参中的NotificationId 在哪里获取 #844

Open 225904 opened 3 years ago

225904 commented 3 years ago

你的运行环境

实际效果

告诉我们实际是什么效果。

重现步骤

  1. ...
  2. ...
  3. ...
  4. ...

Debug logs

包括 Android 或 iOS 的日志:

jswangtao commented 2 years ago

我也有这个需求,我想实现删除旧的指定的从后台发过来的通知,不让他出现在通知管理里面

inkCrazy commented 4 weeks ago
 this.notificationListener = result => {
      console.log('notificationListener:' + JSON.stringify(result));
      console.log('notificationListener:', result);
    };
    JPush.addNotificationListener(this.notificationListener);

里面有啊