当前位置:网站首页>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里的推送按钮,效果如图

边栏推荐
猜你喜欢
随机推荐
The way of programmer architecture practice: how to design a sustainable evolution system architecture?
Spinner文字显示不全解决办法
Matplotlib
【JS 逆向百例】某网站加速乐 Cookie 混淆逆向详解
面试一面
Babbitt | Metaverse daily must-read: Players leave, platforms are shut down, and the digital collection market is gradually cooling down. Where is the future of the industry?...
云原生 Dev0ps 实践
【AppCube】数字孪生万物可视 | 联接现实世界与数字空间
Machines need tokens more than people
"Global Digital Economy Conference" landed in N World, Rongyun provides communication cloud service support
redis基础知识总结——数据类型(字符串,列表,集合,哈希,集合)
玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
试题G:单词分析 ← 第十一届蓝桥杯大赛第二场省赛赛题
全新的Uber App设计
卷起来!阿里高工携18位高级架构师耗时57天整合的1658页面试总结
complete knapsack problem
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之二
【TypeScript】为什么要选择 TypeScript?
多态详细讲解(简单实现买票系统模拟,覆盖/重定义,多态原理,虚表)
Programmers architecture practice way: software architecture basic concepts and thinking









