当前位置:网站首页>[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
边栏推荐
猜你喜欢
随机推荐
如何做好技术选型
481-82(105、24、82、34、153)
L2-007 Family property (use of vector, set, map)
ISELED---the new choice of ambient lighting scheme
2022最新 | 室外单目深度估计研究综述
本地事务与分布式事务
动态规划 --- 状态压缩DP 详细解释
Troubleshooting TiUP
tiup clean
GeoServer
一文读懂Elephant Swap,为何为ePLATO带来如此高的溢价?
How to do a good job in technology selection
90后人大硕士为学医竟重新高考,成功被首医大录取
Local Transactions vs Distributed Transactions
L2-007 家庭房产(vector、set、map的使用)
几种常见的存储器
CAD几个优化设置
Golang分布式应用之Redis怎么使用
Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面
tiup env









