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

接通华为后杀掉进程收不到华为的推送通知 #452

Closed
Tgakes opened this issue Oct 18, 2020 · 13 comments
Closed

接通华为后杀掉进程收不到华为的推送通知 #452

Tgakes opened this issue Oct 18, 2020 · 13 comments

Comments

@Tgakes
Copy link

Tgakes commented Oct 18, 2020

项目推送接入个人版华为推送后服务端appSecret和appId也已经配置并且测试推送是通的,安卓这边配置也已经接入,可是安卓客户端就是无法收到华为的推送,通知栏始终没办法出现推送的消息,这个需要怎么排查定位?求救急@官方

@imndx
Copy link
Contributor

imndx commented Oct 18, 2020

  1. 确认是否正确修改push/build.gradle下面的相关key
  2. 确认是否正常调用了ChatManager#setDeviceToken
  3. 确认是否正确修改push server推送相关配置
  4. 查看push server日志,确认im server是否有调用推送服务

@Tgakes
Copy link
Author

Tgakes commented Oct 18, 2020

你好,安卓客户端我用华为平台上面的推送功能是可以正常推送过来的,但是服务端推送的就是不可以,这是不是华为平台上我们需要去配置什么服务端推送才能正常送达到客户端?

@imndx
Copy link
Contributor

imndx commented Oct 18, 2020

确认华为开发者平台和push server 是用同一个token进行推送的吗?

@Tgakes
Copy link
Author

Tgakes commented Oct 21, 2020

我对比了下token是没问题的,同样token我用华为平台推送就可以,那这样请问这个该怎么排查呢?

@Tgakes
Copy link
Author

Tgakes commented Oct 21, 2020

不过我这边小米是可以收到推送的

@imndx
Copy link
Contributor

imndx commented Oct 21, 2020

我对比了下token是没问题的,同样token我用华为平台推送就可以,那这样请问这个该怎么排查呢?

可以联系华为排查一下,看日志推送成功的,可能是那么的问题。

@Tgakes
Copy link
Author

Tgakes commented Oct 21, 2020

你好,请问透传推送和通知栏推送是在哪设置的?服务端还是客户端?若是再客户端是再哪个文件里面设置的?

@imndx
Copy link
Contributor

imndx commented Oct 21, 2020

你好,请问透传推送和通知栏推送是在哪设置的?服务端还是客户端?若是再客户端是再哪个文件里面设置的?

服务端。

可以参考这个PR

@Tgakes
Copy link
Author

Tgakes commented Oct 21, 2020

你好,那服务端具体是在哪个位置哪个文件上修改?

@Tgakes
Copy link
Author

Tgakes commented Oct 22, 2020

你好,若是方便麻烦您能尽快恢复一下,谢谢了!

@imndx
Copy link
Contributor

imndx commented Oct 22, 2020

你好,请问透传推送和通知栏推送是在哪设置的?服务端还是客户端?若是再客户端是再哪个文件里面设置的?

服务端。

可以参考这个PR

你好,请参考上面提到PR,然后去修改。

@Tgakes
Copy link
Author

Tgakes commented Oct 22, 2020

你好,不是说在服务器修改吗?那这个PR上面似乎是在客户端修改的,麻烦你给确认一下。

@imndx
Copy link
Contributor

imndx commented Oct 22, 2020

确定的,你那就是push server。

@imndx imndx closed this as completed Nov 7, 2020
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