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

边栏推荐
猜你喜欢

微信小程序获取用户手机号码

全新的Uber App设计

MySQL - 2059 - Authentication plugin ‘caching_sha2_password‘ cannot be loaded

Analysis of the idea of the complete knapsack problem

ABAB-740新语法

numpy
![LeetCode 899 有序队列[字典序] HERODING的LeetCode之路](/img/95/1b63cfb25b9e0802666114f089fcb8.png)
LeetCode 899 有序队列[字典序] HERODING的LeetCode之路

在 Chrome 开发者工具里通过 network 选项模拟网站的离线访问模式

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

苏州大学:从PostgreSQL到TDengine
随机推荐
Dry goods!A highly structured and sparse linear transformation called Deformable Butterfly (DeBut)
本周四晚19:00知识赋能第4期直播丨OpenHarmony智能家居项目之设备控制实现
MATLAB Programming and Applications 2.6 Strings
多态详细讲解(简单实现买票系统模拟,覆盖/重定义,多态原理,虚表)
深度学习经典网络 -- Inception系列(稀疏结构)
程序员架构修炼之道:软件架构基本概念和思维
LP流动性挖矿DAPP系统开发丨流动性挖矿功能原理及说明
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之二
下午见!2022京东云数据库新品发布会
[Star Project] Little Hat Plane Battle (9)
面试官:工作两年了,这么简单的算法题你都不会?
如何通过DBeaver 连接 TDengine?
The way of programmer architecture practice: how to design a sustainable evolution system architecture?
STM32入门开发 介绍SPI总线、读写W25Q64(FLASH)(硬件+模拟时序)
redis基础知识总结——数据类型(字符串,列表,集合,哈希,集合)
【网络原理的概念】
全新的Uber App设计
【二分查找详解外加递归写法】附有全部代码
白帽黑客与留守儿童破壁对“画”!ISC、中国光华科技基金会、光明网携手启动数字安全元宇宙公益展
Depth study of 100 cases - convolution neural network (CNN) to realize the clothing image classification