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

Android下获取不到registrationID #904

Open
weiningzhong opened this issue Mar 1, 2023 · 3 comments
Open

Android下获取不到registrationID #904

weiningzhong opened this issue Mar 1, 2023 · 3 comments

Comments

@weiningzhong
Copy link

weiningzhong commented Mar 1, 2023

插件版本
"jcore-react-native": "^1.9.4",
"jpush-react-native": "^2.8.7",
"react-native": "0.64.4",

模拟设备
Android 8.0 , Android9.0 ,Android 10.0 都试过

代码

JPush.getRegistrationID(result => {
console.log('RegistrationID:', result);
});
//控制台打印
RegistrationID: {registerID: ''}

@ghost
Copy link

ghost commented Apr 21, 2023

首次进入APP的时候好像确实获取不到RegistrationID,可以在需要用的时候再去调用一下JPush.getRegistrationID

@orzhtml
Copy link

orzhtml commented Jul 31, 2023

循环获取都不行

首次进入APP的时候好像确实获取不到RegistrationID,可以在需要用的时候再去调用一下JPush.getRegistrationID

@ansike
Copy link

ansike commented Aug 2, 2023

在这个事件里取获取 addConnectEventListener

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

3 participants