CN108540565A - A method of the mobile terminal push based on MQTT agreements and statistics - Google Patents
A method of the mobile terminal push based on MQTT agreements and statistics Download PDFInfo
- Publication number
- CN108540565A CN108540565A CN201810342228.7A CN201810342228A CN108540565A CN 108540565 A CN108540565 A CN 108540565A CN 201810342228 A CN201810342228 A CN 201810342228A CN 108540565 A CN108540565 A CN 108540565A
- Authority
- CN
- China
- Prior art keywords
- push
- mobile terminal
- message
- push message
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
Abstract
The method of the invention discloses a kind of mobile terminal push and statistics based on MQTT agreements, pushing condition is arranged by web page in user, pushes content, pushes the time, push form, PUSH message is sent to MQTT servers, after MQTT servers receive PUSH message, then message is pushed into mobile device, after mobile device receives PUSH message, PUSH message is showed into user, and according to the subsequent operation of user, collects associated user's behavioral statistics data.Include mainly:Whether user opens PUSH message, user opens the period of PUSH message, user reaches the time difference between opening PUSH message from receiving, by these statistical data, it is uploaded in server, and is stored in non-relational database, and further show message push person, to allow push person that various actions data of the user after receiving push are well understood, push person is facilitated to advanced optimize supplying system and push content.
Description
Technical field
The present invention relates to mobile terminal push and statistics field, more particularly to it is a kind of based on MQTT agreements mobile terminal push and
The method of statistics.
Background technology
With the fast development of mobile device and mobile Internet, mobile terminal APP in daily life increasingly can not or
It lacks.And in all kinds of APP, push function is again essential, and often has critical effect.In addition to ensureing that PUSH message can
Quickly, to be efficiently and accurately pushed in mobile device, push person often wants that understanding user receives the behavior after PUSH message
The accounting of behavior is opened and cancelled to data for example, after user receives every PUSH message, open and cancel that behavior occurs when
Between section etc., push person receive PUSH message by understanding user after behavioral data, push content, method can be further improved
With the time etc., to improve the efficiency of supplying system.
MQTT agreements are a kind of communications protocol based on publish/subscribe model of IBM exploitations, and mobile end equipment is subscribed to corresponding
Topic, Push Service end need to only send pushed information to these topics, and mobile end equipment can receive corresponding push and disappear
Breath.MQTT agreements are more suitable for number of devices, and equipment computing capability is low, the unstable environment of network environment, have and stablize, can
The advantages that leaning on, saving a little, save flow, for being very ideal to the scene of mobile device PUSH message.
Invention content
The shortcomings that it is a primary object of the present invention to overcome the prior art and deficiency, provide a kind of shifting based on MQTT agreements
Moved end pushes and the method for statistics, and this method is to carry out message push to mobile end equipment, and count using MQTT as communications protocol
User receives the behavioral data after PUSH message.
The purpose of the present invention is realized by the following technical solution:
A method of the mobile terminal push based on MQTT agreements and statistics, including the step of following sequence:
When S1, Push Service end backstage are opened, the first parameter of configuration server, the first parameter of the server includes user
Name, password, time-out time, heart time etc. connect and log in MQTT servers;After logining successfully, push person's push is waited for disappear
Breath;
Application is opened in S2, mobile terminal, and the second parameter of configuration server, the second parameter of the server includes time-out time,
Heart time etc. connects and logs in MQTT servers, subscribes to corresponding topic, and send push application to data statistics server and open
Dynamic data;
S3, push person are by web page, when the substance of PUSH message, pushing condition, reminder option, push is arranged
Between, subsequent action and content, PUSH message is distributed to corresponding topic in MQTT servers with the format of JSON, while will push away
Message is sent to be uploaded to data statistics server;
S4, mobile-terminated receive are parsed after the PUSH message for the JSON formats that MQTT servers transmit, and will be pushed
Message is presented to mobile end subscriber;At the same time, the data for receiving pushed information are uploaded to data statistics server;
After S5, user click PUSH message or canceling push message, user behavior is recorded, the user behavior is main
Including:User click or cancel, user click or cancel time, from it is mobile-terminated receive PUSH message to user click or
The time interval of cancellation;At the same time, recording equipment information, the facility information include mainly:Mobile phone model, application version,
Operating system version, network environment, operator etc.;Information above is uploaded to data statistics server with JSON formats, and is protected
It deposits into database;
S6, by collected user behavior statistical data, check user behavior data, the user behavior for push person
Data include:The transmission number of every pushed information receives number, clicks number, cancelling number and PUSH message arrival
The period etc. that accounting was clicked and cancelled to rate, PUSH message, PUSH message is opened or cancels;Facility information is also counted simultaneously, institute
It includes mobile phone model accounting, application version accounting, operating system version accounting etc. to state facility information;And external interface is developed, it supplies
Front end page uses.
Further, the Push Service end in S1 and S2 and mobile device client need to connect and log in have taken
User name is arranged in the MQTT servers built up, and password, the parameters such as time-out time, after logining successfully, client needs to subscribe to corresponding
Topic waits for the arrival of server-side PUSH message.
In step S3, the pushing condition enables production firm of the push according to the mobile terminal of user, operating system version
Originally, mobile terminal application version carries out the specific aim push of equipment component;The substance of the pushing condition includes:The figure of push
Mark, push title, push main contents.
In step S3, the reminder option includes:The tinkle of bells whether is opened, vibrations whether are opened and whether opens breathing
Lamp.
In step S3, the push time is divided into push immediately and timing pushes, and is pushed immediately to be pushed at once;It is fixed
When push for setting start push time, pushed when reaching the time.
In step S3, the subsequent action can make user jump to the corresponding page after clicking PUSH message, subsequently
Action parameter setting jumps to the parameter of institute's band after respective page.Different contents is shown to facilitate.
Described that PUSH message is presented to mobile end subscriber in step S4, it is mobile terminal top title bar to show form
PUSH message, display title, icon and main contents are popped up, and according to the prompting form of PUSH message, equipment are selected to receive push
Whether there are the tinkle of bells, vibrations and breath light to remind after message.
In step S4, if the mobile terminal is in off-line state, PUSH message cannot be obtained at once, then is needed under
The PUSH message not received actively is obtained to server when secondary application is reached the standard grade, and after receiving message, pushed information will be received
Data be uploaded to data statistics server.
In step S5, the data statistics server stores data using non-relational database.
The non-relational database storage data include Redis, MongoDB.
The mobile terminal includes Android mobile devices, iOS mobile devices, Windows mobile devices.
Compared with prior art, the present invention having the following advantages that and advantageous effect:
1, basic communications protocol of the present invention due to the use of MQTT agreements as this programme makes the program have easily extension,
The advantages that easy programming, saving electricity and flow.
2, the present invention is supported according to equipment vendors, mobile device operation system version, and mobile device application version is into the hand-manipulating of needle
The push message type different to property carries out part push to different user groups, makes pushing efficiency higher.
3, the present invention supports a variety of prompting forms, push person whether can have with unrestricted choice PUSH message the tinkle of bells, vibrations and
The prompting of breath light.
4, the present invention supports timing to push, and pushing this can select time point to be timed push according to demand.
5, the present invention uses non-relational database, makes storage efficiency higher, while being also convenient for using calculating such as distributions
Method carries out the processing and analysis of big data.
6, statistical result of the present invention externally provides unified interface, and front end or client can easily carry out relevant
Diagrammatic representation.
Description of the drawings
Fig. 1 is the sequence chart of mobile terminal push and statistical method of the present invention based on MQTT agreements.
Fig. 2 is the system architecture diagram of mobile terminal push and statistical method of the present invention based on MQTT agreements.
Specific implementation mode
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited
In this.
As shown in Figure 1, 2, the mobile terminal based on MQTT agreements that present example provides pushes and statistical method, this implementation
Example has the following steps:
S1, push end connect and log in MQTT servers.
S2, mobile end equipment connect and log in MQTT servers, and subscribe to the corresponding topic of MQTT servers.
After S3, mobile terminal application are opened, the data that mobile terminal application starts are uploaded to data statistics server.
Push content, time, prompting form etc. is arranged in S4, push person.
S5, push end send pushed information to MQTT servers, while sending statistical information to statistical server.
After S6, MQTT server receive the message from push end, message is pushed to mobile device.
After S7, mobile device receive push, the behavioral data that user clicks or cancels is waited for and recorded.
S8, the various user behaviors of user received after pushing are uploaded to data statistics server.
S9, data statistics server carry out calculating analysis, such as pushed information arrival rate by collected statistical data,
Accounting is clicked and cancelled to PUSH message, and time etc. is opened/cancelled to PUSH message, and externally provides interface.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment
Limitation, it is other it is any without departing from the spirit and principles of the present invention made by changes, modifications, substitutions, combinations, simplifications,
Equivalent substitute mode is should be, is included within the scope of the present invention.
Claims (10)
1. it is a kind of based on MQTT agreements mobile terminal push and statistics method, which is characterized in that include following sequence the step of:
S1, Push Service end backstage open when, the first parameter of configuration server, the first parameter of the server include user name,
Password, time-out time, heart time connect and log in MQTT servers;After logining successfully, push person's PUSH message is waited for;
Application is opened in S2, mobile terminal, and the second parameter of configuration server, the second parameter of the server includes time-out time, heartbeat
Time connects and logs in MQTT servers, subscribes to corresponding topic, and send push application to data statistics server and start number
According to;
S3, push person by web page, be arranged the substance of PUSH message, pushing condition, reminder option, the push time, after
Continuous action and content, are distributed to corresponding topic in MQTT servers, while push being disappeared by PUSH message with the format of JSON
Breath is uploaded to data statistics server;
S4, mobile-terminated receive are parsed after the PUSH message for the JSON formats that MQTT servers transmit, by PUSH message
It is presented to mobile end subscriber;At the same time, the data for receiving pushed information are uploaded to data statistics server;
After S5, user click PUSH message or canceling push message, user behavior is recorded, the user behavior includes:User
Click or cancel, user click or cancel time, from it is mobile-terminated receive PUSH message to user click or cancel when
Between be spaced;At the same time, recording equipment information, the facility information include:Mobile phone model, application version, operating system version,
Network environment, operator;Information above is uploaded to data statistics server with JSON formats, and is preserved into database;
S6, by collected user behavior statistical data, check user behavior data, the user behavior data for push person
Including:The transmission number of every pushed information receives number, clicks number, cancel number and PUSH message arrival rate, push away
Send the period that accounting was clicked and cancelled to message, PUSH message is opened or cancelled;Facility information, the equipment letter are also counted simultaneously
Breath includes mobile phone model accounting, application version accounting, operating system version accounting;And external interface is developed, make for front end page
With.
2. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S3
In, the pushing condition enables push to apply version according to the production firm of the mobile terminal of user, operating system version, mobile terminal
The specific aim of this progress equipment component pushes;The substance of the pushing condition includes:The icon of push, pushes away push title
Send main contents.
3. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S3
In, the reminder option includes:The tinkle of bells whether is opened, vibrations whether is opened and whether opens breath light.
4. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S3
In, the push time is divided into push immediately and timing pushes, and is pushed immediately to be pushed at once;Timing push is opened for setting
Begin the time pushed, is pushed when reaching the time.
5. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S3
In, the subsequent action can make user jump to the corresponding page after clicking PUSH message, and subsequent action parameter setting is jumped
Go to the parameter of institute's band after respective page.
6. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S4
In, described that PUSH message is presented to mobile end subscriber, it is that mobile terminal top title bar pops up PUSH message, shows to show form
Indicating topic, icon and main contents, and according to the prompting form of PUSH message, whether have bell after selecting equipment to receive PUSH message
Sound, vibrations and breath light are reminded.
7. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S4
In, if the mobile terminal is in off-line state, PUSH message cannot be obtained at once, then needs the master when next time, application was reached the standard grade
Trend server obtains the PUSH message not received, and after receiving message, the data for receiving pushed information are uploaded to number
Server according to statistics.
8. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that step S5
In, the data statistics server stores data using non-relational database.
9. the method for mobile terminal push and statistics based on MQTT agreements according to claim 8, which is characterized in that described non-
Relational data library storage data packet includes Redis, MongoDB.
10. the method for mobile terminal push and statistics based on MQTT agreements according to claim 1, which is characterized in that described
Mobile terminal includes Android mobile devices, iOS mobile devices, Windows mobile devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810342228.7A CN108540565A (en) | 2018-04-17 | 2018-04-17 | A method of the mobile terminal push based on MQTT agreements and statistics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810342228.7A CN108540565A (en) | 2018-04-17 | 2018-04-17 | A method of the mobile terminal push based on MQTT agreements and statistics |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108540565A true CN108540565A (en) | 2018-09-14 |
Family
ID=63480406
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810342228.7A Pending CN108540565A (en) | 2018-04-17 | 2018-04-17 | A method of the mobile terminal push based on MQTT agreements and statistics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108540565A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109788003A (en) * | 2019-03-26 | 2019-05-21 | 华南理工大学 | A kind of intelligent public lavatory equipment exchange method and system based on MQTT agreement |
CN110673502A (en) * | 2019-10-14 | 2020-01-10 | 珠海格力电器股份有限公司 | Quick response method and system of intelligent device, storage medium and network side device |
CN111355756A (en) * | 2018-12-21 | 2020-06-30 | 航天科工惯性技术有限公司 | GNSS receiver data communication method based on MQTT protocol |
CN111416763A (en) * | 2020-02-21 | 2020-07-14 | 北京值得买科技股份有限公司 | Message pushing method |
CN111636669A (en) * | 2020-06-08 | 2020-09-08 | 广东星层建筑科技股份有限公司 | Frame climbing intelligent safety monitoring and early warning method and system based on BIM |
CN111866109A (en) * | 2020-07-10 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Message processing method, device, equipment and storage medium |
CN112838977A (en) * | 2019-11-25 | 2021-05-25 | 浙江大搜车软件技术有限公司 | Data statistical method, device, computer equipment and storage medium |
CN113852450A (en) * | 2021-09-09 | 2021-12-28 | 深圳Tcl新技术有限公司 | Message push feedback method and device, electronic equipment and storage medium |
CN116049513A (en) * | 2023-04-03 | 2023-05-02 | 江苏橙智云信息技术有限公司 | Point location configuration method for building automatic control system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101616356A (en) * | 2009-07-31 | 2009-12-30 | 卓望数码技术(深圳)有限公司 | A kind of wireless data service product information method for pushing and system |
CN103297326A (en) * | 2013-05-29 | 2013-09-11 | 深圳Tcl新技术有限公司 | Method and device for message pushing |
US20150312179A1 (en) * | 2014-04-25 | 2015-10-29 | International Business Machines Corporation | Messaging based signaling for communications sessions |
CN105023172A (en) * | 2015-07-03 | 2015-11-04 | 叶秀兰 | Advertisement push system based on server push |
CN105099882A (en) * | 2015-07-09 | 2015-11-25 | 杭州电子科技大学 | MQTT-based cloud pushing method and system |
-
2018
- 2018-04-17 CN CN201810342228.7A patent/CN108540565A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101616356A (en) * | 2009-07-31 | 2009-12-30 | 卓望数码技术(深圳)有限公司 | A kind of wireless data service product information method for pushing and system |
CN103297326A (en) * | 2013-05-29 | 2013-09-11 | 深圳Tcl新技术有限公司 | Method and device for message pushing |
US20150312179A1 (en) * | 2014-04-25 | 2015-10-29 | International Business Machines Corporation | Messaging based signaling for communications sessions |
CN105023172A (en) * | 2015-07-03 | 2015-11-04 | 叶秀兰 | Advertisement push system based on server push |
CN105099882A (en) * | 2015-07-09 | 2015-11-25 | 杭州电子科技大学 | MQTT-based cloud pushing method and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111355756A (en) * | 2018-12-21 | 2020-06-30 | 航天科工惯性技术有限公司 | GNSS receiver data communication method based on MQTT protocol |
CN109788003A (en) * | 2019-03-26 | 2019-05-21 | 华南理工大学 | A kind of intelligent public lavatory equipment exchange method and system based on MQTT agreement |
CN110673502A (en) * | 2019-10-14 | 2020-01-10 | 珠海格力电器股份有限公司 | Quick response method and system of intelligent device, storage medium and network side device |
CN112838977A (en) * | 2019-11-25 | 2021-05-25 | 浙江大搜车软件技术有限公司 | Data statistical method, device, computer equipment and storage medium |
CN112838977B (en) * | 2019-11-25 | 2023-08-15 | 浙江大搜车软件技术有限公司 | Data statistics method, device, computer equipment and storage medium |
CN111416763A (en) * | 2020-02-21 | 2020-07-14 | 北京值得买科技股份有限公司 | Message pushing method |
CN111636669A (en) * | 2020-06-08 | 2020-09-08 | 广东星层建筑科技股份有限公司 | Frame climbing intelligent safety monitoring and early warning method and system based on BIM |
CN111636669B (en) * | 2020-06-08 | 2021-10-26 | 广东星层建筑科技股份有限公司 | Frame climbing intelligent safety monitoring and early warning method and system based on BIM |
CN111866109A (en) * | 2020-07-10 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Message processing method, device, equipment and storage medium |
CN113852450A (en) * | 2021-09-09 | 2021-12-28 | 深圳Tcl新技术有限公司 | Message push feedback method and device, electronic equipment and storage medium |
CN116049513A (en) * | 2023-04-03 | 2023-05-02 | 江苏橙智云信息技术有限公司 | Point location configuration method for building automatic control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540565A (en) | A method of the mobile terminal push based on MQTT agreements and statistics | |
CN105808070B (en) | A kind of method and apparatus of setting comment bandwagon effect | |
CN101505317B (en) | Streaming media interruption and resumption system | |
CN109347934B (en) | Message pushing method and system, server, storage medium and electronic device | |
KR101986481B1 (en) | Method for automatic monitoring end to end performance of end-user and apparatus for using the same | |
CN104301436B (en) | Content to be displayed push, subscription, update method and its corresponding device | |
CN110267053A (en) | Live broadcasting method, apparatus and system | |
US8433748B2 (en) | Method, terminal, server and system for processing notification message | |
CN107179697A (en) | A kind of intelligent home equipment control method, apparatus and system | |
TW200415893A (en) | Billing system for wireless device activity | |
TW200419393A (en) | Method of announcing sessions | |
CN109495433A (en) | Data download method and device, storage medium and electronic device | |
CN101753984A (en) | Processing method of video monitoring system journals, system and server | |
CN105791093B (en) | Virtual objects presentation method and device | |
CN105872006A (en) | Appointment reminding system and appointment reminding method | |
TW201814609A (en) | Information pushing | |
CN105808714B (en) | Method and device for acquiring network file resources and electronic equipment | |
CN106933839A (en) | A kind of method for page jump and device | |
CN103873518A (en) | Method for multiple terminals to synchronously obtain enhanced contact list, system and web server | |
CN110234080A (en) | A kind of information display method, device and system | |
CN104834649B (en) | It can realize the smart machine and multiple-equipment team working method of more equipment collaborations | |
CN109660858A (en) | Transmission method, device, terminal and the server of direct broadcasting room interaction data | |
CN103200022B (en) | A kind of data download abnormality eliminating method, equipment and system | |
CN108260017A (en) | A kind of Internet video batch turns the method and system pushed away | |
CN105553770B (en) | Data acquisition control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Lu Lu Inventor after: Ye Xihong Inventor after: Jia Jianye Inventor before: Lu Lu Inventor before: Jia Jianye |
|
CB03 | Change of inventor or designer information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |
|
RJ01 | Rejection of invention patent application after publication |