当前位置:网站首页>[Developers must see] [push kit] Collection of typical problems of push service 2
[Developers must see] [push kit] Collection of typical problems of push service 2
2022-07-30 15:53:00 【Huawei Developer Forum】
1. Problem description:
Huawei Push, what are the rules for setting the intent url sent in the background of custom click messages?
Solution:
For the generation of intent parameters and the receipt of data, please refer to the following link https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/andorid-basic-clickaction-0000001087554076#section17768170161516
Note: The intent parameter must be generated by the method in the above link.
2. Problem description:
How to deal with the problem of jumping to the specified page after clicking on the notification bar, and returning to the home page should be at the bottom of the stack?
Solution:
Click the notification bar to jump to the specified page, and the page will be added to the back stack.If you need to jump to other pages, such as returning to the home page, you need to implement it according to your own needs, such as rewriting the return logic to jump to the home page
3. Problem description:
Hongmeng system received the push but did not display the corner logo
Solution:
1, When the cloud side delivers the message body, add_sum and set_sum shall be set as one, and set_sum shall prevail at the same time. You can only set add_sum and then try.
2. Calling the corner label setting method on the end side can set the corner label display to the specific value of the setting, and you can try whether it is successful.Description of Huawei corner label parameters:
3. If the message body is configured correctly and the terminal code is configured correctly, you can check whether the desktop notification icon of the corresponding application is enabled in the notification management.

4. If it is still not displayed, please perform log analysis;
After Adb is connected to the phone, execute the following commands respectively:
a) adb shell setprop log.tag.hwpush VERBOSE
b) adb logcat -v threadtime 1> D:\hwpush.log
4. Problem description:
Huawei Push can receive messages, but does not display the corner logo
Solution:
1. First, make sure to set the "class" of the desktop corner label through Huawei Push, which is the full path of the application entry Activity class, for example "com.huawei.codelabpush.MainActivity".Also, please note that if you also set "add_num" and "set_num", subject to set_num.If the desktop corner label still fails to pass "add_num” is set successfully, you can grab the log according to step 2
2. Please provide the log during the period when the mobile app receives the message, and the method to capture the log on the terminal device (save as a TXT or ZIP file for upload):
1) After Adb is connected to the phone, execute the following commands: adb shell setprop log.tag.hwpush VERBOSEadb logcat -v threadtime 1> D:\hwpush.log
2) Reproduce the problem scenario.
3) Press "Ctrl+C" to complete for further analysis
5. Problem description:
It is found through Umeng's privacy inspection that com.huawei.hms:push:6.1.0.300 version collects personal information
In the isAutoInitEnabled method of AutoInitHelper, the getApplicationInfo method is called.And getApplicationInfoAsUser method will be called in getApplicationInfo

As a result, Umeng determined that it violated user privacy and did not actually implement the method of generating AAID.
Solution:
SDK uses the getApplicationInfo method to obtain AndroidManifest information, and only reads meta-data to check whether automatic initialization is configured. It has nothing to do with configuration, and does not collect personal data. It is a false positive. It is recommended to do it on Umeng platform.Appeal
For more technical articles, please visit https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh
边栏推荐
- 70 lines of code, a desktop automatic translation artifact
- Sleuth+Zipkin (visualization) service link tracking
- Overview of TiUP commands
- 难道Redis真的变慢了吗?
- 五只小猪的案例(五只小猪 比较体重的大小)
- 代码随想录笔记_哈希_1l两数之和
- HUAWEI CLOUD Releases Open Source Software Governance Service - Software Component Analysis
- nodejs环境变量设置
- 定时任务 corn
- tiup list
猜你喜欢

yarn的安装及使用教程

在树莓派上驱动CSI摄像头

【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理

Extremely Knowing v2 Analysis

Flask introductory learning tutorial

Alluxio for Presto fu can across the cloud self-service ability

【云原生】阿里云ARMS业务实时监控

武汉星起航:海外仓基础建设成为跨境电商企业的一大出海利器

How do luxury giants such as GUCCI and LV deploy the metaverse, should other brands keep up?

php如何截取字符串的前几位
随机推荐
GeoServer + openlayers
vite 多页面应用刷新页面时,不会在当前路由中,会返回到根路由
微服务架构下的核心话题 (二):微服务架构的设计原则和核心话题
JHM:芳环羟化双加氧酶数据库DARHD建立及相关引物评价
tiup help
TiUP 简介
Packages - Notes
【HMS core】【FAQ】Account、IAP、Location Kit and HarmonyOS典型问题合集1
Overview of TiUP commands
tiup clean
How do luxury giants such as GUCCI and LV deploy the metaverse, should other brands keep up?
TiUP 故障排查
视频加密的误解
【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理
flask获取post请求参数
深度学习遇到报错Bug解决方法(不定时更新)
HTTP缓存小结
Is Redis really slow?
ECCV2022 | FPN错位对齐,实现高效半监督目标检测 (PseCo)
SEATA分布式事务