当前位置:网站首页>SmobilerService 推送实现
SmobilerService 推送实现
2022-08-03 11:04:00 【51CTO】
SmobilerService 推送实现
SmobilerService 社区版、专业版、标准版都支持推送服务,那怎么能实现呢?
安装SmobilerService
在 https://www.smobiler.com/service/serviceInstall.html 上下载安装包并安装,安装后使用浏览器访问 http://localhost:15486 ,输入默认登陆名 admin 与默认密码 admin ,登陆并立即开始使用。
Ps:打不开 http://localhost:15486 则参考 https://wiki.smobiler.com/wiki/103 排查
在云平台上创建应用
登录云平台 https://cloud.smobiler.com/ ,点击【创建】
创建一个新应用
在vs中创建服务端程序,并通过SmobilerService部署
前提:需要有 安装 VS以及SmobilerDesigner
1. 创建一个SmobilerApplicants项目
2. 在SmobilerForm1中拖入两个button和两个label,布局如图
并在SmobilerForm1中写入下方代码:
3. 将项目的输出改成类库,重新生产项目,并部署到smobilerservce上去。
Ps:部署方法参考 https://www.smobiler.com/service/serviceHelpDoc.html?isExpand=yes#cloud
若是手机app打开出现“未配置业务地址xxx.xxx.xxx” 点击【许可证】-【同步】
在云平台上打包应用
点击应用打包
选择【Android】,并添加内网推送插件
1883是SmobilerService默认的推送端口
192.168.9.113 是服务端的ip
Ps:默认推送端口可以在SmobilerService 中修改
打包完成后,下载apk安装到手机上
效果演示
1. 通过SmobilerService推送
点击【推送】,输入推送消息后,点击【选择设备并推送】
手机端显示
2. 通过代码推送
点击app里的推送按钮,效果如图
边栏推荐
猜你喜欢
Activiti产生的背景和作用
[Bubble sort and odd-even sorting]
redis基础知识总结——数据类型(字符串,列表,集合,哈希,集合)
Machine Learning Overview
Web Server 设置缓存响应字段的一些推荐方案
袋鼠云思枢:数驹 DTengine,助力企业构建高效的流批一体数据湖计算平台
Analysis of the idea of the complete knapsack problem
【Star项目】小帽飞机大战(九)
Depth study of 100 cases - convolution neural network (CNN) to realize the clothing image classification
如何通过DBeaver 连接 TDengine?
随机推荐
机器学习(第一章)—— 特征工程
2022年五面蚂蚁、三面拼多多、字节跳动最终拿offer入职拼多多
LeetCode 899 有序队列[字典序] HERODING的LeetCode之路
Basic using MySQL database
浅谈SVN备份
怎么在外头使用容器里php命令
创建C UDR时,指定的HANDLESNULLS的作用是什么?
gbase在轨道交通一般都采用哪种高可用架构?
玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
图新地球为什么很模糊,白球、看图、下载问题深度剖析
The way of programmer architecture practice: how to design a sustainable evolution system architecture?
Skills required to be a good architect: How to draw a system architecture that everyone will love?What's the secret?Come and open this article to see it!...
Machine Learning Overview
通过组策略安装软件和删除用户配置文件
代码分析Objective-C中的深拷贝与浅拷贝
机器比人更需要通证
C - 为什么指针常常初始化为 NULL?
[Star Project] Little Hat Plane Battle (9)
Binary search tree (search binary tree) simulation implementation (there is a recursive version)
二叉搜索树(搜索二叉树)模拟实现(有递归版本)