jpush-react-native
jpush-react-native copied to clipboard
property 'notification' cannot be found in found in forward class object 'UNNottificationResponse'

?
按照readme里面配置ios这一步报错

应该是没有导入头文件在 appdelegate.h 加入如下代码
#import <RCTJPushModule.h>
#ifdef NSFoundationVersionNumber_iOS_9_x_Max
#import <UserNotifications/UserNotifications.h>
#endif
恩,是的 @huangminlinux 为什么在ios模拟器下面会报这个错误呢cannot read property 'init push' of undefined,安卓是没问题的
已经明白,还是没仔细看文档,initPush只有安卓才需要,谢谢