当前位置:网站首页>[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
边栏推荐
猜你喜欢
随机推荐
工具| execsnoop 短时进程追踪工具
【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理
微服务该如何拆分?
Classes and Objects (Part 2)
2022最新 | 室外单目深度估计研究综述
Core Topics under Microservice Architecture (2): Design Principles and Core Topics of Microservice Architecture
GeoServer
C# List<T> 模板的案例
Database - SQL
tiup list
近段时间的学习碎片整理(24)
Packages - Notes
Golang分布式应用之Redis怎么使用
timed task corn
EST综述:eDNA的多种状态以及在水环境中持久性的认知
481-82 (105, 24, 82, 34, 153),
影像信息提取DEM
一文读懂Elephant Swap,为何为ePLATO带来如此高的溢价?
三维重建方法汇总
【HMS core】【FAQ】push kit、AR Engine、广告服务、扫描服务典型问题合集2