当前位置:网站首页>Uni app message push
Uni app message push
2022-04-23 14:16:00 【Ruirui junior】
1. Sign in first :https://dev.dcloud.net.cn/app/index?type=0
2. The next step is important , Ah , For a long time , To the back cid It's useful to get . Remember to have these things .
3. Create a uni-app project , To configure manifest.json, Here we use the above things
4.CID Acquisition , Attention is to let cid Display in the client , Then save the obtained value , Behind the useful
Code display :
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
this.getcid()
},
methods: {
getcid(){
setInterval(function(){
uni.showToast({
icon:"success",
position:"center",
title:plus.push.getClientInfo().clientid
})
},2000)
}
}
}
</script>
5.
6.
7, Cloud packaging , Choose the first one , Native app Cloud packaging , The package name inside is consistent with that configured in the background , May choose dcloud Public certificate .
8, After successful packing , Pay attention to the console , You can download it later apk The address of , Install on your phone , Because the client code has been written cid Acquisition , So you can see on your mobile phone cid 了 , Pay attention , Is to get... On your mobile phone , Of course, the simulator can also , The browser won't work , Put this cid Write it down , When sending message preview, you will use
9 You can send messages , The mobile notification bar can see , ha-ha
版权声明
本文为[Ruirui junior]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231408339424.html
边栏推荐
猜你喜欢
MySQL数据库讲解(十)
在MAC上安装mysql
Postman的安装使用及填坑心得
统信UOS卸载php7.2.24,安装php7.4.27 ;卸载再安装为PHP 7.2.34
Win10 comes with groove music, which can't play cue and ape files. It's a curvilinear way to save the country. It creates its own aimpack plug-in package, and aimp installs DSP plug-in
krpano全景之vtour文件夹和tour
uni-app消息推送
倒计时1天~2022云容灾产品线上发布会即将开始
教育行业云迁移最佳实践:海云捷迅使用HyperMotion云迁移产品为北京某大学实施渐进式迁移,成功率100%
VMware installation 64 bit XP Chinese tutorial
随机推荐
字节面试编程题:最小的K个数
js 键值判断
使用开源调研工具Prophet是一种什么体验?
json date时间日期格式化
拨开云雾synchronized使用五种方式介绍
mysql 5.1升级到5.66
Five ways of using synchronized to remove clouds and fog are introduced
FBS (fman build system) packaging
Algorithem_ReverseLinkedList
关于NodeJS中JSON5的相关配置和使用
Operation instructions of star boundary text automatic translator
Jira截取全图
VMware installation 64 bit XP Chinese tutorial
政务云迁移实践 北明数科使用HyperMotion云迁移产品为某政府单位实施上云迁移项目,15天内完成近百套主机迁移
星界边境文本自动翻译机(高级版)使用说明
数据库DbVisualizer Pro报文件错误,导致数据连接失败
编译Openssl
01-NIO基础之ByteBuffer和FileChannel
MySQL数据库讲解(十)
HyperBDR云容灾V3.3.0版本发布|容灾功能升级,资源组管理功能优化