当前位置:网站首页>[must see for developers] [push kit] collection of typical problems of push service 1
[must see for developers] [push kit] collection of typical problems of push service 1
2022-07-22 17:43:00 【Huawei Developer Forum】
1、 A message was pushed on the developer platform Don't trigger onPushMsg Only opened app
answer :
1. Because it is triggered by broadcast , Therefore, when the application process does not exist, it may not be possible to pull up the application through broadcasting due to system reasons Click events in the notice bar . You need to set the application on your phone “ Allow self starting ” Only when the process does not exist can it be handled normally PushReceiver Broadcast of .
2. In addition, please pay special attention to , from 2020 year 9 month 16 It is not recommended to use HMS Core 2.x edition SDK, HUAWEI will be in 2021 year 9 month 30 Off the shelves in the day HMS Core 2.x Version of SDK, At that time, if your application is still integrated 2.x Version of SDK It will not be available in Huawei application market site , It is recommended that you upgrade to the latest SDK edition .
2、 Why does the notification ring not take effect ?
answer :
1、 Ringing tone is the attribute of notification channel , Therefore, the ringing tone is only valid when the channel is created , After the channel is created , Even if you set a custom ringtone, it will not play , And use the ringtone set when creating the channel .
It means , Only those created by Huawei can be set through push NORMAL Channel ring tones , And you need the first item after application installation NORMAL Level messages carry custom ringtones .
As for your customized channel ringtones , You need to customize when creating channels :
NotificationChannel mChannel = new NotificationChannel(id, name, importance);mChannel.setSound(Uri.parse("android.resource://" + getPackageName() + "/raw/qqqq"),null);
2、 Whether the customized channel is effective , You don't just need to specify the channel in the message , It also depends on the results of intelligent message classification . Only NORMAL Level messages , Will take the channel customized by developers . You can slide the message left in the notification Center , Click the gear shaped setting button , You can see through which channel this message is displayed .
The reference documents of message intelligent classification are as follows :
<p><a>https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides-V5/message-classification-management-solution-0000001149358835-V5</a></p>
3、 Created a channel, but still follow the marketing notice , What is it for? ?(APP Created channel, Sound is set in the notice , Vibration, etc , Background push uses the corresponding channel_id, But it's not the designated one channel, It's a marketing notice )
answer :
It is recommended to apply for self classified interests , Reference link :
4、 Can't get token What is it for? ?
answer :
1. First , Please check whether the network connection quality of the mobile phone is good , It is recommended to give priority to data traffic .
2. then , Please re check whether the fingerprint certificate of the generated application is allied with Huawei developers AGC The application fingerprint certificate configured in the page is consistent , If it's not consistent , Please add the applied fingerprint certificate to AGC On the page , And click the small on the right √ Preservation .
3. AGC Fingerprint certificate configured in the page , For details, please refer to the link :
4. Apply packaged fingerprint certificate , Please review the following steps :
- decompression apk file
- find RSA/CERT file :apk package /META-INF/xxx.RSA(xxx.CERT)
- Use the command to read RSA/CERT Information about
```
keytool -printcert -file file
```
5、 Whether the message receipt can be sent to multiple addresses at the same time ?
answer : At present, only one receipt address is supported to return messages . If the developer has configured both project level and application level receipt addresses , Get the application level receipt address information first , Equivalent to a receipt address in effect
6、APP Integrated Huawei manufacturer channel , On Huawei mobile phones that support manufacturer channels ,APP When it is not opened and the process does not survive , If you receive a notification , Is there a callback method , Call back to APP? After receiving the callback , Whether it is possible to play an audio to remind users ?
answer :
1. app When the process does not survive, it cannot be given app Callback ,
2. After the notification bar message is received, the user needs to click to open the application ,
3. Transparent messaging requires app Only when the process survives can it receive ,
4. The ability of voice broadcasting may meet the needs of developers , Need to apply for special permission
https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/faq-0000001050042183
More relevant learning materials : https://developer.huawei.com/consumer/cn/forum/topic/0203805599057430101?fid=18?ha_source=zzh |
边栏推荐
- Distributed computing framework map/reduce
- 有人知道oracle cdc这个问题吗?source没有空值,但是查询定义的cdc表时说有空值,让修
- ES6 related interview question 2
- Default constraint of MySQL constraint default
- Virtual machine performance test scheme
- 奇瑞星途产品规划曝光,2.0t涡轮增压发动机,年底推出
- 【HMS core】【push kit】关于消息分类问题的集合
- SSRF vulnerability attack intranet redis recurrence
- C static classes and static class members
- 关键路径实现
猜你喜欢
NFS shared storage service
sqlmap的打开方式以代码的形式打开不是以图像形式打开
Instruction arrangement problem
DP subsequence series problem
【HMS core】【FAQ】【Account Kit】典型问题集2
【Harmony OS】【ARK UI】【Demo】加载动画实现
DOM operation of JS -- prevent event bubbling and block default events
Network Security Learning (Qianfeng network security notes) 5 -- NTFS security permissions
深说浅谈DOM对象,用4个版本demoplus让你扭断history.state头(更)
Win11 Beta 22621.436和22622.436有什么区别?
随机推荐
深度学习实现交叉验证(图像、信号处理)
SQL language (foundation 1)
SSRF vulnerability attack intranet redis recurrence
NFS shared storage service
关键路径问题
Unity3d GameObject component
【数据库】MySQL表的增删改查(基础)
Real time synchronization and conversion of massive data based on Flink CDC
Does anyone know the problem of Oracle CDC? Source does not have a null value, but when querying the defined CDC table, it says there is a null value. Let's fix it
How does win11 run as an administrator? Win11 setup method running as Administrator
FPGA之红外遥控
Can the task of flinksql monitor whether it is interrupted?
【HMS core】【FAQ】In-App Purchases 常见问题分享
php数组排序
unity PostProcess 屏幕后处理
DOM operation of JS - event chain (bubble target capture)
并发程序的噩梦——数据竞争
【C】分支和循环语句
NFS共享存儲服務
【C】 Branch and loop statements