JPushModule.addReceiveNotificationListener触发多次BUG

jasmine
2018-01-12 07:20 343 0

我在根组件componentDidMount里面注册监听事件JPushModule.addReceiveNotificationListener,

并且在componentWillUnmount里面(确实触发了组件销毁函数)移除事件
JPushModule.removeReceiveNotificationListener("receiveNotification"). ,

当app反复退出打开之后,问题来了:后台向app推送了一条消息,但是app里面的JPushModule.addReceiveNotificationListener回调却触发了多次

1个回答

热门排序
  • 你所使用的是什么插件吗?请具体说明你所使用的插件,和具体版本号

    以及在iOS还是Android上出现的问题