当前位置:网站首页>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
边栏推荐
- Recyclerview advanced use (II) - simple implementation of vertical drag and drop sorting
- On September 8, the night before going to Songshan Lake
- 倒计时1天~2022云容灾产品线上发布会即将开始
- 什么是云迁移?云迁移的四种模式分别是?
- 微信小程序轮播图swiper
- 星界边境文本自动翻译机使用说明
- 金融行业云迁移实践 平安金融云整合HyperMotion云迁移解决方案,为金融行业客户提供迁移服务
- Operation instructions of star boundary text automatic translator
- dp-能量项链
- RecyclerView高级使用(二)-垂直拖拽排序的简单实现
猜你喜欢

某政务云项目业务系统迁移调研实践

关于NodeJS中JSON5的相关配置和使用

01-nio basic ByteBuffer and filechannel

How QT designer adds resource files

VMware installation 64 bit XP Chinese tutorial

线程组ThreadGroup使用介绍+自定义线程工厂类实现ThreadFactory接口

A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios

x509证书cer格式转pem格式

openstack理论知识

squid代理
随机推荐
使用开源调研工具Prophet是一种什么体验?
百度笔试2022.4.12+编程题目:简单整数问题
统信UOS PHP7.2.3升级至PHP7.2.24
一些小小小小记录~
krpano全景之vtour文件夹和tour
mysql锁数据库锁
ie8 浏览器提示是否 阻止访问js脚本
A table splitting implementation scheme of MySQL and InnoDB, MyISAM and MRG_ Introduction to MyISAM and other engine application scenarios
mysql 5.1升级到5.66
剑指offer刷题(2)--面向华为
Returns the subscript after array sorting
elk安装
微信小程序客服接入,实现发送和接收消息
Preview CSV file
void*是怎样的存在?
连接公司跳板机取别名
Arrays类的使用案例
关于训练过程中损失函数出现断崖式增长的问题
SSH 通过跳板机连接远程主机
Essential difference between restful WebService and gSOAP webservice