当前位置:网站首页>[HMS core] [push kit] [FAQ] Huawei push service mobile phone does not receive push message / message delay / information screen notification problem collection
[HMS core] [push kit] [FAQ] Huawei push service mobile phone does not receive push message / message delay / information screen notification problem collection
2022-07-21 09:44:00 【Huawei Developer Forum】
Integrated push service , Encountered various small problems , Let's share with you today
【 Problem description 】
The message is not displayed in the notice column ?
【 Solution 】
1. Terminal and network conditions . Ensure that the terminal is in a stable network , And set the permission notification .
2. EMUI edition . Check the phone EMUI edition ,EMUI Version below 4.1 perhaps HMS Core(APK) Lower versions do not support displaying push messages . Check whether the mobile phone is EMUI 8.0 System , If it is early EMUI 8.0, Compiling and constructing App when “targetSdkVersion” It is necessary to ensure that less than 26, Or upgrade the system (“ Set up > System > Software update ”, Different mobile phone models may have slightly different navigation ).
3. If the above reasons have been eliminated , You can try the following :
- Please confirm in HmsMessaging Whether to display the call turnOffPush() Turn off the message receiving notification bar switch , If the , Please delete .
- If not called , Please determine whether the mobile phone is installed hms core application , without , Please download... In the application market .
- If it already exists hms core application , Empty its cache , Specific steps : Set up –> application –> Application management –> Search for hms core –> Storage –> Clear cache .
- Clear the push service cache , Specific steps : Set up –> application –> Application management –> Search for Push service –> Storage –> Clear cache .
- After restarting the phone , Recapture push token, Check whether you can receive the notification message .
【 Problem description 】
After the server pushes the message , Why can't the client receive ?
【 Solution 】
1. Message type . If the message type is transparent message , When the application process is killed, the message may not be delivered .
2. Terminal and network conditions . Ensure that the terminal is in a stable network , And set the permission notification .
3. EMUI edition . Check the phone EMUI edition ,EMUI Version below 4.1 perhaps HMS Core(APK) Lower versions do not support displaying push messages . Check whether the mobile phone is EMUI 8.0 System , If it is early EMUI 8.0, When compiling and building applications targetSdkVersion It is necessary to ensure that less than 26, Or upgrade the system (“ Set up > System > Software update ”, Different mobile phone models may have slightly different navigation ).
4. Whether the current is limited . Every day, you can send a single Token Send at most 3000 strip , The current will be limited after exceeding 24 Hours , exceed 10 Wan Tiao will directly ban the promotion of rights .
5. The cache problem . Clean up applications and HMS Core(APK) Data cache , Restart the mobile phone test .
6. Token Whether it is right . Try to AppGallery Connect Website push operation platform to push , If the push fails, it is Token Has lapsed 、 Or there is a problem with the mobile phone configuration , To be carried out Token Check and phone permission settings . If the push succeeds , It is caused by the parameter configuration error when calling the interface .
7. Whether the format of the message body encapsulated by the server is correct . Please refer to the server API Check the message body fields .
【 Problem description 】
Access push, Message push will be delayed , Approximate delay 3 minute
【 Solution 】
1. First , You need to ensure that the messages sent are service and communication messages
2. then , Please check the settings of your phone → Notification Center → Lock screen notice → Please select show all notifications , Otherwise, the lock screen information will not be displayed .
3. secondly , Set visibility Fields and importance Field
{ "validate_only": false, "message": { "android": { "notification": { "click_action": { "type": 3 }, "body": "xxx", "title": "xxxx", "visibility": "PUBLIC", "importance": "NORMAL" } }, "token": ["your token"] }
More relevant learning materials : https://developer.huawei.com/consumer/cn/forum/topic/0201774489550540196?fid=18?ha_source=zzh |
边栏推荐
猜你喜欢
微信小程序中使用vant weapp
此 Visual 未连接到 PresentationSource。
Understanding of Zhongtai
[font anti crawl] cat x-eye Yingshi, we're bullying you again, using OCR recognition technology
高并发的深入理解
SharePreference原理及跨进程数据共享的问题
C#《学习代码片段》- 递归获取文件夹下所有文件
MoonPdfLib预览PDF使用记录
百度工程师眼中的云原生可观测性追踪技术
【HMS Core】【FAQ】【Health Kit】运动健康服务常见错误码合集 403、401、1001、20023
随机推荐
Three paradigms of database design
vector、queue、stack用法详解
哪些自动化工具赋能电商运营效率翻倍?
MySQL显式锁
MySQL page lock
Qt连接mysql并操作数据库(最清晰)
js 数组reduce方法求和 求最大值 求最小值方法
MySQL explicit lock
【转】Jackson之多态反序列化(父类转不同子类)
C#递归获取文件夹下所有文件 并绑定到 TreeView控件中
Common lithium battery boost IC
MongoDB数据库的简单使用
Tdengine数据库运行出现的bug
How to distinguish virtual network card and physical network card?
KusionStack 开源|Kusion 模型库和工具链的探索实践
常用的锂电池升压IC
分布式系统中数据存储方案实践
js 验证只能输入数字和一个小数点
典型周期性电信号的测量
架构实战营模块七作业