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

ios获取不到RegistrationID,android退出后收不到通知 #918

Open 2741147837 opened 1 year ago

2741147837 commented 1 year ago

你的运行环境

"react-native": "0.70.8",

"jcore-react-native": "^2.1.1", "jpush-react-native": "^2.9.8",

期望效果

1.android退出应用后也能收到通知 2.ios获取RegistrationID

实际效果

1.android退出应用后不能接收推送,只能在角标那里显示有消息 2.android能正常获取RegistrationID但是ios获取的是空

重现步骤

根据官方文档集成我选择自动的方式 yarn 下载完包后 cd ios && pod install 使用这种方式自动集成 请问大佬们我哪个地方错了

Debug logs

包括 Android 或 iOS 的日志:

SkylineJia commented 1 year ago

我发现iOS端如果没传channel,是不会触发初始化获取RegistrationID,不知道你的是不是这个原因

   JPush.init({
      appKey: JPUSH_KEY,
      production: !__DEV__,
      // channel: ''
    });

Android可能需要集成厂商通道