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

获取不到设备号,求助,主动获取无法拿到,添加监听addnetworkDidLoginListener,没有走该方法 #16

Open
VernierCaliper opened this issue Aug 13, 2019 · 0 comments

Comments

@VernierCaliper
Copy link

print("初始化jpush");
await FlutterJPush.startup();
print("初始化jpush成功");
FlutterJPush.getRegistrationID().then((String registrationId) {
  print("主动获取设备号:$registrationId");
});
FlutterJPush.addnetworkDidLoginListener((String registrationId) {
  /// 用于推送
  print("收到设备号:$registrationId");
});

打印:
I/flutter (29062): 初始化jpush
I/flutter (29062): NavObserverDidPush-Current:/ Previous:null
D/libc-netbsd(29062): [getaddrinfo]: hostname=uat-api.xdp.xi-life.cn; servname=(null); app_pid=29062; app_uid=10270; ai_flags=1024; ai_family=0; ai_socktype=1 from prox result 0
I/flutter (29062): 初始化jpush成功
I/flutter (29062): 主动获取设备号:
D/libc-netbsd(29062): [getaddrinfo]: hostname=uat-cdn.xdp.xi-life.cn; servname=(null); app_pid=29062; app_uid=10270; ai_flags=1024; ai_family=0; ai_socktype=1 from prox result 0

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

1 participant