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

边栏推荐
- What is the relationship between The Matrix and 6G?
- Programmers architecture practice way: software architecture basic concepts and thinking
- 鸿蒙第三次
- Dva.js 新手入门指南
- RecyclerView的item高度自适应
- MySQL - 2059 - Authentication plugin ‘caching_sha2_password‘ cannot be loaded
- 2022年五面蚂蚁、三面拼多多、字节跳动最终拿offer入职拼多多
- 【JS 逆向百例】某网站加速乐 Cookie 混淆逆向详解
- BPMN和DMN基本概念和使用案例
- 卷起来!阿里高工携18位高级架构师耗时57天整合的1658页面试总结
猜你喜欢

通过组策略安装软件和删除用户配置文件
![[Star Project] Little Hat Plane Battle (9)](/img/e3/c7d2728080bcdccc181a7e5c50ee6f.png)
[Star Project] Little Hat Plane Battle (9)

Machine Learning (Chapter 1) - Feature Engineering

【二分查找详解外加递归写法】附有全部代码

Binary search tree (search binary tree) simulation implementation (there is a recursive version)

QT with OpenGL(Shadow Mapping)(面光源篇)

图新地球为什么很模糊,白球、看图、下载问题深度剖析

用于发票处理的 DocuWare,摆脱纸张和数据输入的束缚,自动处理所有收到的发票

【Star项目】小帽飞机大战(九)

MySQL数据库实战(1)
随机推荐
【JDBC以及内部类的讲解】
RecyclerView的item高度自适应
ERC20通证标准是什么?
[Bubble sort and odd-even sorting]
如何通过DBeaver 连接 TDengine?
跨链桥协议 Nomad 遭遇黑客攻击,损失超 1.5 亿美元
Summary of redis basics - data types (strings, lists, sets, hashes, sets)
Machine Learning (Chapter 1) - Feature Engineering
Boolean 与numeric 无法互转
Spinner文字显示不全解决办法
浅谈SVN备份
微信多开批处理(自动获取安装路径)
MySQL database combat (1)
[Explanation of JDBC and inner classes]
Machines need tokens more than people
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!...
使用.NET简单实现一个Redis的高性能克隆版(一)
What is the ERC20 token standard?
What is the relationship between The Matrix and 6G?
C#+WPF 单元测试项目类高级程序员必知必会