Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2741147837 opened this issue Jun 5, 2023 · 1 comment
Open

Comments

@2741147837
Copy link

你的运行环境

"react-native": "0.70.8",

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

  • 插件版本:
  • react-native 版本:
    "react-native": "0.70.8",
    "react": "18.1.0",

期望效果

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

实际效果

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

重现步骤

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

Debug logs

包括 Android 或 iOS 的日志:

@SkylineJia
Copy link

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

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

Android可能需要集成厂商通道

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants