当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
线程间控制之Semaphore使用介绍
man man随记和crontab的@reboot用法
MySQL数据库讲解(九)
mysql锁数据库锁
拨开云雾synchronized使用五种方式介绍
win10自带Groove音乐不能播放CUE和APE文件的一种曲线救国办法,自己创建aimppack插件包,AIMP安装DSP插件
Jira截取全图
HyperMotion云迁移助力中国联通,青云完成某央企上云项目,加速该集团核心业务系统上云进程
剑指offer刷题(1)--面向华为
mysql 5.1升级到5.66
mysql 5.1升级到5.610
VMware installation 64 bit XP Chinese tutorial
DP - [noip2000] grid access
OpenStack命令操作
sql中出现一个变态问题
How to do a project easily
统信UOS PHP7.2.3升级至PHP7.2.24
01-nio basic ByteBuffer and filechannel
KVM学习资源
数据库DbVisualizer Pro报文件错误,导致数据连接失败