当前位置:网站首页>Uniapp -- the use of document collation and push of unipush
Uniapp -- the use of document collation and push of unipush
2022-06-25 23:40:00 【BetterGG】
One 、 Document links
Two 、 Make a chart
Please read the description at the bottom of the figure first , So as not to cause misunderstanding 
Simplify the picture 
Although the above figure is based on documents , But I still feel a certain disharmony , But did not check out the error , If you disagree , Please leave a message for discussion
3、 ... and 、 Notification column notification and message transmission
- Monitoring methods
/** * Received a transparent message , The application receives a push message event from the push server * Only APP Online , Will trigger receive event , Transparent messages do not trigger system messages , You need to create a local message */
plus.push.addEventListener(
'receive',
function(msg) {
uni.showToast({
icon: 'none',
duration: 3000,
title: 'receive::' + JSON.stringify(msg)
});
},
true
);
- ios Transparencies on , No banner will pop up on the top of the phone , Will not be displayed in the drop-down notification bar list , The picture below is receive Is the content of the monitored message

- Transparent messages received on Android
Will not enter the receive Monitoring methods , No banner will pop up on the top of the phone , But it will be displayed in the drop-down notification bar .
- The behavior of listening to messages in the drop-down notification bar
plus.push.addEventListener(
'click',
function(msg) {
uni.showToast({
icon: 'none',
duration: 3000,
title: 'click::' + JSON.stringify(msg)
});
},
true
);
- See here for more information : Including how to make ios The received message is displayed in the drop-down notification bar
边栏推荐
- 对卡巴斯基发现的一个将shellcode写入evenlog的植入物的复现
- Mutual conversion between QT utf8 and Unicode encoding, and the Unicode encoding output format is &xxxxx
- Go语言逃逸分析全纪录
- The first public available pytorch version alphafold2 is reproduced, and Columbia University is open source openfold, with more than 1000 stars
- 解决TypeError: Unicode-objects must be encoded before hashing
- Kotlin空指针Bug
- Hibernate core api/ configuration file / L1 cache details
- UE4 学习记录二 给角色添加骨架,皮肤,及运动动画
- String object (constant) pool
- excel如何实现中文单词自动翻译成英文?这个公式教你了
猜你喜欢

Kotlin null pointer bug

The simplest screen recording to GIF gadget in history, licecap, can be tried if the requirements are not high

Qt 中文和英文分别使用不同的字体

ACM. Hj16 shopping list ●●

漏刻有时API接口实战开发系列(13):小鹅通云服务PHP-API二维数组传参解决方案

Kotlin空指针Bug

二叉排序树

qtcreator 格式化代码

The software test interview has been suspended. The interviewer always says that the logical thinking is chaotic. What should I do?

konva系列教程2:绘制图形
随机推荐
Blob
[Axi] interpretation of Axi protocol atomic access
hiberate核心API/配置文件/一级缓存详解
CXF
Ble Low Power Bluetooth networking process and Bluetooth role introduction
C. Planar Reflections-CodeCraft-21 and Codeforces Round #711 (Div. 2)
转载: QTableWidget详解(样式、右键菜单、表头塌陷、多选等)
Windows redis installation and simple use
Mutual conversion between QT utf8 and Unicode encoding, and the Unicode encoding output format is &xxxxx
Anaconda一文入门笔记
Bi-sql stored procedure (I)
go中全类型等值判断解析&综合汇总
二叉排序树
golang Make a list of intervals with sequential numbers
Uniapp - call payment function: Alipay
When are the three tools used for interface testing?
社招两年半10个公司28轮面试面经(含字节、拼多多、美团、滴滴......)
A. Balance the Bits--Codeforces Round #712 (Div. 1)
#23class介绍
Qtcreator formatting code