jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

_jpushReactNative.default.addReceiveNotificationListener is not a function

Open cctvmikeowen opened this issue 6 years ago • 2 comments

运行环境

  • jpush-react-native:2.6.1
  • react-native 版本:0.61.2 无法注册监听事件,如下报错了 屏幕快照 2019-11-22 上午11 17 50

const Receive=(message:any)=>{ console.log("接收到了推送事件") console.log(message); } JPushModule.addReceiveNotificationListener(Receive)

cctvmikeowen avatar Nov 22 '19 03:11 cctvmikeowen

运行JPushModule.init()没有任何问题,请问如何解决

cctvmikeowen avatar Nov 22 '19 03:11 cctvmikeowen

可以跑通demo吗

wicked-tc130 avatar Jan 03 '20 05:01 wicked-tc130