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

华为推送问题 #262

Closed
LeeUsun opened this issue Jan 19, 2020 · 4 comments
Closed

华为推送问题 #262

LeeUsun opened this issue Jan 19, 2020 · 4 comments

Comments

@LeeUsun
Copy link

LeeUsun commented Jan 19, 2020

你好,华为推送收不到。
我在华为开发者联盟注册了app,也取得了appId的参数。我在push/build.gradle文件中,更换HMS_APP_ID为自己注册的参数,但是app互相发消息并没有收到推送通知。
于是我从HuaweiPushRevicer.java类的onToken()方法中获取了token,然后在华为控制台那里输入单个token测试推送消息,这样子操作的话是可以推送到我的手机上。

@LeeUsun
Copy link
Author

LeeUsun commented Jan 20, 2020

因为开发的app只在华为的手机上运行,所以暂时没做其他厂商的推送测试

@imndx
Copy link
Contributor

imndx commented Mar 10, 2020

  1. 目前华为推送才有透传方式,需要开启自启动、通知栏等权限才会显示。

可参考这个PR: 华为推送通知栏

@imndx
Copy link
Contributor

imndx commented Apr 5, 2020

no response.

@imndx imndx closed this as completed Apr 5, 2020
@Tgakes
Copy link

Tgakes commented Oct 18, 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

3 participants