CN109286648B - Data pushing method, device and system and terminal equipment - Google Patents

Data pushing method, device and system and terminal equipment Download PDF

Info

Publication number
CN109286648B
CN109286648B CN201710602867.8A CN201710602867A CN109286648B CN 109286648 B CN109286648 B CN 109286648B CN 201710602867 A CN201710602867 A CN 201710602867A CN 109286648 B CN109286648 B CN 109286648B
Authority
CN
China
Prior art keywords
user
server
push
push notification
grouping information
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.)
Active
Application number
CN201710602867.8A
Other languages
Chinese (zh)
Other versions
CN109286648A (en
Inventor
张佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201710602867.8A priority Critical patent/CN109286648B/en
Publication of CN109286648A publication Critical patent/CN109286648A/en
Application granted granted Critical
Publication of CN109286648B publication Critical patent/CN109286648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data pushing method, a device, a system and a terminal device, wherein the data pushing method comprises the following steps: acquiring grouping information of a user logging in an application program; sending the grouping information of the user to a publishing and subscribing server through a WebService server so that the publishing and subscribing server updates a subscription theme of the user according to the grouping information of the user; receiving a push notification sent by a push server, wherein the push notification is sent by the push server, determines a subscription topic according to a push condition, acquires a subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and pushes the subscriber list to a user; displaying the push notification to the user. According to the method and the device, grouping management of the users is achieved, group sending of the push notifications according to grouping conditions can be achieved, the users can receive the push notifications in real time, the sending success rate of the push notifications is improved, and the user experience degree is improved.

Description

Data pushing method, device and system and terminal equipment
Technical Field
The present application relates to the field of data communication technologies, and in particular, to a data pushing method, apparatus, system, and terminal device.
Background
In the related art, when an Apple mobile phone pushes a notification, an Apple push notification Service (hereinafter referred to as "APNs") server provides a push interface, but the push interface can only send a notification to a certain device, if the notification needs to be sent in a group according to a group, the group sending can be realized only in groups divided by the server, but some groups are groups performed by a user in a using process, and when the group is a group generated manually or in the using process of the user, the push interface provided by the APNs cannot meet the requirement of group distribution.
In the related art, the most mobile phone push is the Extensible message processing field Protocol (XMPP), which can be based on the Transmission Control Protocol (TCP) long connection to upload the data stream in the Extensible Markup Language (XML) format, and is a main technology used in the current instant messaging. After the XMPP mobile phone client and the XMPP server use an XMPP protocol to perform TCP authentication, a long connection is established, in order to maintain the TCP long connection, a heartbeat packet needs to be sent at intervals, a mobile operating system (iOS) developed by apple Inc monitors an application program occupying more memory and actively closes the application program occupying more memory, so that the mobile phone client cannot meet the real-time online requirement, the requirement of receiving a notification in real time cannot be met, and the success rate of pushing the notification is not high.
Disclosure of Invention
The present application aims to solve at least one of the technical problems in the related art to some extent.
To this end, a first object of the present application is to propose a data push method. The method realizes grouping management of the users, further can realize group sending of the push notification according to grouping conditions, can enable the users to receive the push notification in real time, improves the sending success rate of the push notification, and improves the user experience.
A second object of the present application is to provide a data pushing apparatus.
A third object of the present application is to provide a terminal device.
A fourth objective of the present application is to provide a data pushing system.
A fifth object of the present application is to propose a non-transitory computer-readable storage medium.
In order to achieve the above object, a data pushing method in an embodiment of the first aspect of the present application includes: acquiring grouping information of a user logging in an application program; sending the grouping information of the user to a publishing and subscribing server through a web service (WebService) server so that the publishing and subscribing server updates a subscription theme of the user according to the grouping information of the user; receiving a push notification sent by a push server, wherein the push notification is sent by the push server, determines a subscription topic according to a push condition, acquires a subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and pushes the subscriber list to a user; displaying the push notification to the user.
In the data pushing method of the embodiment of the application, after the group information of the user logging in the application program is acquired, the group information of the user is sent to the publishing and subscribing server through a web service (WebService) server, so that the publishing and subscribing server updates the subscription theme of the user according to the group information of the user, then the pushing notification sent by the pushing server is received, and the pushing notification is displayed to the user.
In order to achieve the above object, a data pushing apparatus according to an embodiment of the second aspect of the present application includes: the acquisition module is used for acquiring the grouping information of the user logging in the application program; the sending module is used for sending the grouping information of the user to a publishing and subscribing server through a web service (WebService) server so that the publishing and subscribing server updates the subscription theme of the user according to the grouping information of the user; the receiving module is used for receiving a push notification sent by a push server, wherein the push notification is sent by the push server according to a push condition to determine a subscription topic, and a subscriber list of the subscription topic is obtained from the publish-subscribe server according to the subscription topic, and is pushed to a user in the subscriber list; and the display module is used for displaying the push notification to the user.
In the data pushing device in the embodiment of the application, after the obtaining module obtains the group information of the user logging in the application program, the sending module sends the group information of the user to the publishing and subscribing server through the WebService server, so that the publishing and subscribing server updates the subscription theme of the user according to the group information of the user, then the receiving module receives the push notification sent by the pushing server, and the display module displays the push notification to the user.
In order to achieve the above object, an embodiment of a third aspect of the present application provides a terminal device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method described above.
In order to achieve the above object, a fourth aspect of the present application provides a data pushing system, including: the system comprises terminal equipment, a web service (WebService) server, a publish-subscribe server and a push server; the terminal device is used for acquiring the group information of a user logging in an application program installed in the terminal device, sending the group information of the user to the publishing and subscribing server through the WebService server, receiving the push notification sent by the push server, and displaying the push notification to the user; the publishing and subscribing server is used for receiving the grouping information of the user sent by the terminal equipment and updating the subscription theme of the user according to the grouping information of the user; the push server is used for determining a subscription topic according to a push condition, acquiring a subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and sending a push notification to a user in the subscriber list.
In order to achieve the above object, a fifth aspect of the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method as described above.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of an embodiment of a data pushing method of the present application;
FIG. 2 is a flow chart of another embodiment of a data pushing method according to the present application;
FIG. 3 is a flow chart of a data pushing method according to another embodiment of the present application;
FIG. 4 is a schematic structural diagram of an embodiment of a data pushing apparatus according to the present application;
fig. 5 is a schematic structural diagram of an embodiment of a terminal device according to the present application;
FIG. 6 is a schematic diagram of an embodiment of an internal portion of the handset 10 of the present application;
FIG. 7 is a schematic structural diagram of an embodiment of a data push system of the present application;
fig. 8 is a structural diagram of a publish-subscribe schema in the data push system of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart of an embodiment of a data pushing method according to the present application, and as shown in fig. 1, the data pushing method may include:
step 101, group information of a user logging in an application program is obtained.
In this embodiment, users are grouped, the grouping information of the users may include the grouping topics subscribed by the users, and each user may subscribe to at least one grouping topic, for example, the grouping topic may be a vehicle type "down", or a power system "hybrid", and the like.
And 102, sending the group information of the user to a publish-subscribe server through a web service (WebService) server, so that the publish-subscribe server updates the subscription theme of the user according to the group information of the user.
In this embodiment, after receiving the group information of the user, the publish-subscribe server may update the subscription topic of the user according to the group information of the user, and specifically, the publish-subscribe server may compare the received group information of the user with previously stored group information of the user, store the newly added subscription topic in the received group information of the user compared with the previously stored group information of the user, and delete the subscription topic in the received group information of the user reduced compared with the previously stored group information of the user from the previously stored group information of the user.
That is, each time a user logs in an application program, after receiving the group information of the user, the publish-subscribe server updates the subscription theme of the user according to the group information of the user, thereby ensuring that push notifications are all pushed according to the latest group information of the user, and improving the sending success rate of the push notifications.
Step 103, receiving a push notification sent by the push server. The push notification is pushed to the user in the subscriber list by the push server determining the subscription topic according to the push condition, acquiring the subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and pushing the subscriber list.
Determining the subscription theme according to the push condition may be to combine the subscription theme according to at least two push conditions, for example, the push condition may be 'down' AND 'electric' AND '100' ″, which means that the subscription theme "down", "electric", AND "100" are to be combined into a theme of "pure electric vehicle of down 100", AND then send a push notification to a user who subscribes to the theme of "pure electric vehicle of down 100"; alternatively, the push condition may also be "'down' OR 'F6' OR 'E6'", which means that a push notification is to be sent to a user subscribing to the topic "down", "F6", OR "E6".
And 104, displaying the push notification to the user.
In the data pushing method, after the group information of the user logging in the application program is acquired, the group information of the user is sent to a publishing and subscribing server through a web service (WebService) server, so that the publishing and subscribing server updates the subscription theme of the user according to the group information of the user, then a pushing notification sent by the pushing server is received and displayed to the user, and therefore the WebService technology can be adopted to acquire the latest group data of the user logging in the application program and perform group management on the user, further group sending of the pushing notification according to the group condition can be realized, the user can receive the pushing notification in real time, the sending success rate of the pushing notification is improved, and the user experience degree is improved.
Fig. 2 is a flowchart of another embodiment of the data pushing method of the present application, and as shown in fig. 2, step 101 of the embodiment shown in fig. 1 of the present application may include:
step 201, acquiring fixed grouping information and variable grouping information of a user logging in an application program.
Specifically, the fixed group information of the user who logs in to the application may be acquired as follows: after establishing connection with an APNs server, receiving token identifications (TokenIDs) of terminal equipment used by the users, which are sent by the APNs server; uploading the login account and the token identification of the user to the WebService server; and receiving the fixed grouping information of the user, which is sent by the WebService server.
The terminal device may be an intelligent terminal device such as a smart phone, a tablet computer, a smart watch, or a notebook computer, and the specific form of the terminal device is not limited in this embodiment.
The variable grouping information of the user who acquires the login application may be: the method comprises the steps of obtaining grouping information set by a user logging in an application program or grouping information changed by the user in the process of using the application program. That is to say, in this embodiment, the group information manually set by the user or the group information changed in the process of using the application program is additionally obtained, for example, after the user updates the application program, the original version number of the application program is changed from "3.0.0" to "3.0.1", or after the user changes the terminal device, the operating system of the terminal device is changed from "iOS 7" to "iOS 9", which all result in the change of the group information of the user.
Fig. 3 is a flowchart of a further embodiment of the data pushing method, as shown in fig. 3, after step 104 in the embodiment shown in fig. 1 of the present application, the method may further include:
step 301, receiving operation information of the push notification from the user.
The operation information may be operation information that the user clicks or presses the push notification for a long time, and the specific operation of the operation information is not limited in this embodiment.
Step 302, obtaining a history push notification from a database through the WebService server. Wherein the history push notification is that the push server stores the sent push notification in the database after sending the push notification.
That is to say, in this embodiment, after the push server sends the push notification, the sent push notification and the sending result of the push notification are stored in the database, and after the application installed in the terminal device 71 receives the operation information that the user clicks the push notification, the WebService server may obtain the push history list from the database, and may further obtain the history push notification in the push history list.
In addition, the push server can also obtain a push history list stored in the database, and the situation that the user receives and reads the push notification can be checked through the push history list.
Fig. 4 is a schematic structural diagram of an embodiment of a data pushing apparatus according to the present application, where the data pushing apparatus in this embodiment may be used as a terminal device or a part of the terminal device, to implement the data pushing method provided in this embodiment of the present application. As shown in fig. 4, the data pushing apparatus may include: an acquisition module 41, a sending module 42, a receiving module 43 and a display module 44;
the acquiring module 41 is configured to acquire group information of a user logging in an application; in this embodiment, users are grouped, the grouping information of the users may include the grouping topics subscribed by the users, and each user may subscribe to at least one grouping topic, for example, the grouping topic may be a vehicle type "down", or a power system "hybrid", and the like.
A sending module 42, configured to send the group information of the user to a publish-subscribe server through a WebService server, so that the publish-subscribe server updates a subscription theme of the user according to the group information of the user; in this embodiment, after receiving the group information of the user, the publish-subscribe server may update the subscription topic of the user according to the group information of the user, and specifically, the publish-subscribe server may compare the received group information of the user with previously stored group information of the user, store the newly added subscription topic in the received group information of the user compared with the previously stored group information of the user, and delete the subscription topic in the received group information of the user reduced compared with the previously stored group information of the user from the previously stored group information of the user.
That is, each time a user logs in an application program, after receiving the group information of the user, the publish-subscribe server updates the subscription theme of the user according to the group information of the user, thereby ensuring that push notifications are all pushed according to the latest group information of the user, and improving the sending success rate of the push notifications.
A receiving module 43, configured to receive a push notification sent by a push server, where the push notification is sent by the push server to determine a subscription topic according to a push condition, obtain a subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and push the subscriber list to a user in the subscriber list; determining the subscription theme according to the push condition may be to combine the subscription theme according to at least two push conditions, for example, the push condition may be 'down' AND 'electric' AND '100' ″, which means that the subscription theme "down", "electric", AND "100" are to be combined into a theme of "pure electric vehicle of down 100", AND then send a push notification to a user who subscribes to the theme of "pure electric vehicle of down 100"; alternatively, the push condition may also be "'down' OR 'F6' OR 'E6'", which means that a push notification is to be sent to a user subscribing to the topic "down", "F6", OR "E6".
A display module 44, configured to display the push notification to the user.
In this embodiment, the obtaining module 41 is specifically configured to obtain the fixed group information and the variable group information of the user logging in the application program.
In an implementation manner of this embodiment, the obtaining module 41 is specifically configured to, after establishing a connection with an APNs server, receive a token identifier of a terminal device used by the user and sent by the APNs server, and upload the login account and the token identifier of the user to the WebService server; and receiving the fixed grouping information of the user sent by the WebService server.
The terminal device may be an intelligent terminal device such as a smart phone, a tablet computer, a smart watch, or a notebook computer, and the specific form of the terminal device is not limited in this embodiment.
In another implementation manner of this embodiment, the obtaining module 41 is specifically configured to obtain grouping information set by a user logging in an application program or grouping information changed by the user in a process of using the application program.
That is to say, in this embodiment, the group information manually set by the user or the group information changed in the process of using the application program is additionally obtained, for example, after the user updates the application program, the original version number of the application program is changed from "3.0.0" to "3.0.1", or after the user changes the terminal device, the operating system of the terminal device is changed from "iOS 7" to "iOS 9", which all result in the change of the group information of the user.
Further, the receiving module 43 is further configured to receive operation information of the push notification from the user after the display module 44 displays the push notification to the user; the operation information may be operation information that the user clicks or presses the push notification for a long time, and the specific operation of the operation information is not limited in this embodiment.
The obtaining module 41 is further configured to obtain, by the WebService server, a historical push notification from a database, where the historical push notification is obtained by storing, in the database, a push notification that is sent by the push server after the push notification is sent.
That is to say, in this embodiment, after the push server sends the push notification, the sent push notification and the sending result of the push notification are stored in the database, and after the application program receives the operation information that the user clicks the push notification, the WebService server may obtain the push history list from the database, and further may obtain the history push notification in the push history list.
In addition, the push server can also obtain a push history list stored in the database, and the situation that the user receives and reads the push notification can be checked through the push history list.
In the data pushing device, after the obtaining module 41 obtains the group information of the user logging in the application program, the sending module 42 sends the group information of the user to the publish-subscribe server through the WebService server, so that the publish-subscribe server updates the subscription theme of the user according to the group information of the user, then the receiving module 43 receives the push notification sent by the push server, and the display module 44 displays the push notification to the user, thereby obtaining the latest group data of the user logging in the application program by adopting the WebService technology, performing group management on the user, further performing group sending on the push notification according to the group condition, enabling the user to receive the push notification in real time, improving the sending success rate of the push notification, and improving the user experience.
Fig. 5 is a schematic structural diagram of an embodiment of a terminal device according to the present application, where the terminal device may include a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the data push method according to the embodiment of the present application may be implemented.
In this embodiment, the terminal device is taken as a smart phone as an example for explanation.
It should be understood that the handset 10 shown in fig. 5 is merely one example of the terminal device described above, and that the handset 10 may have more or fewer components than shown in fig. 5, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 5 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The mobile phone 10 will be specifically described as an example. As shown in fig. 5, the mobile phone 10 may include a memory 11, a Central Processing Unit (CPU) 12, a peripheral interface 13, a Radio Frequency (RF) circuit 14, an audio circuit 15, a speaker 16, a power supply system 17, an input/output (I/O) subsystem 18, other input/control devices 19, and an external port 20, which communicate via one or more communication buses or signal lines 21.
The following describes the mobile phone provided in this embodiment in detail.
The memory 11: the memory 11 may be accessed by the CPU12, the peripheral interface 13, and the like, and the memory 11 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 13 which may connect input and output peripherals of the handset 10 to the CPU12 and the memory 11.
I/O subsystem 18: the I/O subsystem 18 may connect input and output peripherals on the handset 10, such as a touch screen 22 and other input/control devices 19, to the peripheral interface 13. The I/O subsystem 18 may include a display controller 181 and one or more input controllers 182 for controlling other input/control devices 19. Where one or more input controllers 182 receive electrical signals from or transmit electrical signals to other input/control devices 19, the other input/control devices 19 may include physical buttons (e.g., push buttons or rocker buttons, etc.), dials, slide switches, joysticks, or click wheels. It is noted that the input controller 182 may be connected to any of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 22: the touch screen 22 is an input and output interface between the handset 10 and the user that displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 181 in the I/O subsystem 18 receives electrical signals from the touch screen 22 or transmits electrical signals to the touch screen 22. The touch screen 22 detects a contact on the touch screen, and the display controller 181 converts the detected contact into an interaction with a user interface object displayed on the touch screen 22, i.e., implements a human-computer interaction, which may be an icon for running a game, an icon networked to a corresponding network, etc., displayed on the touch screen 22. It is noted that the handset 10 may also include a light mouse, which is a touch sensitive surface that does not display visual output, or an extension of the touch sensitive surface formed by a touch screen.
The RF circuit 14 is mainly used to establish communication between the mobile phone 10 and a wireless network (i.e., a network side), so as to implement data transmission and reception between the mobile phone 10 and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuitry 14 receives and transmits RF signals, also referred to as electromagnetic signals, by which the RF circuitry 14 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 14 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 15 is mainly used to receive audio data from the peripheral interface 13, convert the audio data into an electric signal, and transmit the electric signal to the speaker 16.
A speaker 16 for reproducing the voice signal received by the handset 10 from the wireless network through the RF circuit 14 into sound and playing the sound to the user.
And the power supply system 17 is used for supplying power and managing the power for the hardware connected with the CPU12, the I/O subsystem 18 and the peripheral interface 13. The power system 17 may include a power management system, one or more power sources (e.g., batteries or ac), a recharging system, power failure detection circuitry, a power converter or inverter, a power status indicator (e.g., light emitting diodes), and any other components associated with power generation, management, and distribution in the portable device.
Fig. 6 is a schematic structural diagram of an embodiment of an internal portion of the mobile phone 10 according to the present application. In the present embodiment, the software components stored in the memory 11 may include an operating system 1001, a communication module 1002, a contact/movement module 1003, a graphic module 1004, and a function module 1005.
The operating system 1001 (e.g., Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, or an embedded operating system such as VxWorks) includes various software components and/or drivers for controlling and managing general system tasks (e.g., memory management, storage device control, power management, etc.) and facilitates communication between various hardware and software components.
The communications module 1002 facilitates communications with other devices through one or more external ports 20, and also includes various software components for processing data received by the RF circuitry 14 and/or the external ports 20.
The contact/movement module 1003 may detect contact with the touch screen 22 (in conjunction with the display controller 181) and other touch sensitive devices (e.g., a touchpad or a physical click wheel). The contact/movement module 1003 includes various software components for performing various operations related to detecting contact, such as determining whether contact has occurred, determining whether the contact has moved and tracked the movement on the touch screen 22, and determining whether the contact has been broken (i.e., whether contact has ceased). Determining movement of the point of contact may include determining velocity (magnitude), velocity (magnitude and direction), and/or acceleration (change in magnitude and/or direction) of the point of contact. These operations may be applied to a single contact (e.g., one finger contact) or to multiple simultaneous contacts (e.g., "multi-touch"/multi-finger contacts). In some embodiments, the contact/movement module 1003 and the display controller 181 also detect contact on the touch panel.
The graphics module 1004 includes various known software components for displaying graphics on the touch screen 22, including components for changing the darkness of the displayed graphics. For example, a graphic user interface of various software is displayed on the touch panel 22 in response to an instruction from the CPU 12.
The functional module 1005 executes various functional applications and data processing by executing programs stored in the memory 11, for example, implementing the data push method provided by the embodiment of the present application.
The RF circuit 14 receives a message sent by a network side or other devices, where the message includes an email or a short message or an instant message, and the message may specifically be the message in the embodiment shown in fig. 1 to fig. 3. It is understood that the message received by the RF circuit 14 may be other types of messages, and is not limited in the embodiments of the present application. Those skilled in the art will appreciate that the received message may carry data of a variety of data types. There may be only one data type of data, or there may be two or more data types of data.
The CPU12 implements the data push method provided by the embodiment of the present application when executing the program stored in the memory 11.
Fig. 7 is a schematic structural diagram of an embodiment of a data pushing system according to the present application, and as shown in fig. 7, the data pushing system may include: a terminal device 71, a web service WebService server 72, a publish-subscribe server 73 and a push server 74;
a terminal device 71 configured to acquire group information of a user who logs in an application installed in the terminal device 71, send the group information of the user to the publish-subscribe server 73 through the WebService server 72, receive a push notification sent by a push server 74, and display the push notification to the user; the terminal device 71 may adopt the terminal device provided in the embodiment shown in fig. 5 of the present application.
A publish-subscribe server 73, configured to receive the group information of the user sent by the terminal device 71, and update the subscription theme of the user according to the group information of the user; in this embodiment, users are grouped, the grouping information of the users may include the grouping topics subscribed by the users, and each user may subscribe to at least one grouping topic, for example, the grouping topic may be a vehicle type "down", or a power system "hybrid", and the like. After receiving the group information of the user, the publish-subscribe server 73 may update the subscription topic of the user according to the group information of the user, and specifically, the publish-subscribe server 73 may compare the received group information of the user with previously stored group information of the user, store a new subscription topic in the received group information of the user compared with the previously stored group information of the user, and delete a reduced subscription topic in the received group information of the user compared with the previously stored group information of the user from the previously stored group information of the user.
That is, each time a user logs in an application program and receives the group information of the user, the publish-subscribe server 73 updates the subscription theme of the user according to the group information of the user, thereby ensuring that push notifications are all pushed according to the latest group information of the user and improving the sending success rate of the push notifications.
The push server 74 is configured to determine a subscription topic according to the push condition, acquire a subscriber list of the subscription topic from the publish-subscribe server 73 according to the subscription topic, and send a push notification to a user in the subscriber list. Determining the subscription theme according to the push condition may be to combine the subscription theme according to at least two push conditions, for example, the push condition may be 'down' AND 'electric' AND '100' ″, which means that the subscription theme "down", "electric", AND "100" are to be combined into a theme of "pure electric vehicle of down 100", AND then send a push notification to a user who subscribes to the theme of "pure electric vehicle of down 100"; alternatively, the push condition may also be "'down' OR 'F6' OR 'E6'", which means that a push notification is to be sent to a user subscribing to the topic "down", "F6", OR "E6".
In this embodiment, the terminal device 71 is specifically configured to obtain fixed group information and variable group information of a user logging in an application.
Further, the data push system may further include: an APNs server 75;
in one implementation, the terminal device 71 is specifically configured to receive a token identifier of the terminal device 71 sent by the APNs server 75 after establishing a connection with the APNs server 75, upload the login account and the token identifier of the user to the WebService server 72, and receive the fixed packet information of the user sent by the WebService server 72.
The terminal device 71 may be a smart terminal device such as a smart phone, a tablet computer, a smart watch, or a notebook computer, and the specific form of the terminal device 71 is not limited in this embodiment, but the terminal device 71 is taken as a smart phone in this embodiment for explanation.
In another implementation manner, the terminal device 71 is specifically configured to obtain grouping information set by a user logging in an application program or grouping information changed by the user in a process of using the application program.
That is, in this embodiment, the group information manually set by the user or the group information changed in the process of using the application program is additionally obtained, for example, after the user updates the application program, the original version number of the application program is changed from "3.0.0" to "3.0.1", or after the user changes the terminal device 71, the operating system of the terminal device 71 is changed from "iOS 7" to "iOS 9", which all results in the change of the group information of the user.
Further, the data push system may further include: a database 76;
a push server 74 for storing the push notification and the result of the push notification in a database 76 after the push notification is transmitted;
the terminal device 71 is further configured to receive operation information of the push notification from the user, and acquire a history push notification from the database 76 through the WebService server 72.
The operation information may be operation information that the user clicks or presses the push notification for a long time, and the specific operation of the operation information is not limited in this embodiment.
That is, in the present embodiment, after the push server 74 transmits the push notification, the transmitted push notification and the transmission result of the push notification are stored in the database 76, and after the application installed in the terminal device 71 receives the operation information of the user clicking the push notification, the push history list may be acquired from the database 76 by the WebService server 72, and then the history push notification in the push history list may be acquired.
In addition, the push server 74 may also obtain a push history list stored in the database 76, and the situation that the user receives and reads the push notification is checked through the push history list.
In this embodiment, the terminal device 71 connects to the APNs server 75 through the TCP to request a token identifier, and uploads the login account of the user who logs in the application installed in the terminal device 71 and the token identifier of the terminal device 71 to the WebService server 72, and the WebService server 72 may store the login account of the user and the token identifier of the terminal device 71 in the database 76, and the user using the terminal device 71 is a subscriber.
The WebService server 72 is a data path between the terminal device 71 and the database 76, and after receiving the login account of the user and the token identifier of the terminal device 71, the WebService server 72 directly stores the login account of the user and the token identifier of the terminal device 71 into the database 76; the group information of the user transmitted from the receiving terminal device 71 is transmitted to the publish-subscribe server 73.
The APNs server 75 generates a token identification of the terminal device 71 and sends the token identification to the terminal device 71, and provides an interface for sending a push notification to the terminal device 71 to the pusher.
The publish-subscribe server 72 is responsible for storing subscribers and subscription topics in a database, and obtaining subscriber list information to the push server 74 according to the subscription topics.
The publish-subscribe server 72 is implemented by first decoupling the subscribers and the senders through the design of a publish-subscribe mode, and implementing group management on users, where a structure diagram of the publish-subscribe mode may be as shown in fig. 8, and fig. 8 is a structure diagram of the publish-subscribe mode in the data push system of the present application, where a user, i.e., a subscriber, logging in an application program may subscribe to multiple topics, and a push notification may be issued to multiple topics by a sender, i.e., a publisher.
The database 76 is responsible for storing data, and the database 76 is used for storing the corresponding information of the login account of the user and the token identifier of the terminal device 71, the subscription theme, the subscription relation information, the historical push notification and the push result of the push notification.
The push server 74 is a publisher in the publish-subscribe model, determines a subscription topic according to the push condition, acquires a subscriber list of the subscription topic according to the subscription topic, calls a push interface of the APNs server 75 to send a push notification to the APNs server 75, further sends the push notification to the terminal device 71 by the APNs server 75, and then the push server 74 stores the sent push notification and the result of sending the push notification in the database 76.
The embodiment of the application provides a data pushing method, a device, a system and terminal equipment based on the combination of a WebService technology and APNs server pushing, wherein the WebService technology is adopted, when a user logs in an application program installed on the terminal equipment each time, the latest grouping information of the user is uploaded, and the user and a sender are decoupled through the design of a publish-subscribe mode to realize grouping management on the user; and then, the pushing interface of the APNs server is utilized to send pushing notification to the terminal equipment in a group according to the pushing condition.
The embodiment of the present application further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the data pushing method provided in the embodiment of the present application.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic Gate circuit for implementing a logic function on a data signal, an asic having an appropriate combinational logic Gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), and the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (11)

1. A data pushing method, comprising:
acquiring grouping information of a user logging in an application program;
sending the grouping information of the user to a publishing and subscribing server through a web service (WebService) server so that the publishing and subscribing server updates a subscription theme of the user according to the grouping information of the user;
receiving a push notification sent by a push server, wherein the push notification is sent by the push server, determines a subscription topic according to a push condition, acquires a subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and pushes the subscriber list to a user;
displaying the push notification to the user;
the acquiring the grouping information of the user logging in the application program comprises the following steps:
acquiring fixed grouping information and variable grouping information of a user logging in an application program;
the acquiring the fixed grouping information of the user logging in the application program comprises the following steps:
after establishing connection with an Apple Push Notification Service (APNs) server, receiving a token identifier of a terminal device used by a user, which is sent by the APNs server;
uploading the login account and the token identification of the user to the WebService server;
and receiving the fixed grouping information of the user, which is sent by the WebService server.
2. The method of claim 1, wherein obtaining variable grouping information for a user logged into an application comprises:
the method comprises the steps of obtaining grouping information set by a user logging in an application program or grouping information changed by the user in the process of using the application program.
3. The method of any of claims 1-2, wherein after displaying the push notification to the user, further comprising:
receiving operation information of the user on the push notification;
acquiring a historical push notification from a database through the WebService server, wherein the historical push notification is that the push server stores the sent push notification in the database after sending the push notification.
4. A data pushing apparatus, comprising:
the acquisition module is used for acquiring the grouping information of the user logging in the application program;
the sending module is used for sending the grouping information of the user to a publishing and subscribing server through a web service (WebService) server so that the publishing and subscribing server updates the subscription theme of the user according to the grouping information of the user;
the receiving module is used for receiving a push notification sent by a push server, wherein the push notification is sent by the push server according to a push condition to determine a subscription topic, and a subscriber list of the subscription topic is obtained from the publish-subscribe server according to the subscription topic, and is pushed to a user in the subscriber list;
a display module for displaying the push notification to the user;
the acquisition module is specifically used for acquiring fixed grouping information and variable grouping information of a user logging in an application program;
the acquisition module is specifically used for receiving a token identifier of the terminal equipment used by the user, which is sent by the APNs server, after establishing connection with the apple push notification service APNs server; uploading the login account and the token identification of the user to the WebService server; and receiving the fixed grouping information of the user sent by the WebService server.
5. The apparatus of claim 4,
the obtaining module is specifically configured to obtain grouping information set by a user who logs in an application program or grouping information changed by the user in a process of using the application program.
6. The apparatus according to any one of claims 4 to 5,
the receiving module is further configured to receive operation information of the push notification from the user after the display module displays the push notification to the user;
the obtaining module is further configured to obtain a historical push notification from a database through the WebService server, where the historical push notification is obtained by storing, in the database, the push notification sent by the push server after the push notification is sent.
7. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any one of claims 1-3 when executing the computer program.
8. A data push system, comprising: the system comprises terminal equipment, a web service (WebService) server, a publish-subscribe server and a push server;
the terminal device is used for acquiring the group information of a user logging in an application program installed in the terminal device, sending the group information of the user to the publishing and subscribing server through the WebService server, receiving the push notification sent by the push server, and displaying the push notification to the user;
the publishing and subscribing server is used for receiving the grouping information of the user sent by the terminal equipment and updating the subscription theme of the user according to the grouping information of the user;
the push server is used for determining a subscription topic according to a push condition, acquiring a subscriber list of the subscription topic from the publish-subscribe server according to the subscription topic, and sending a push notification to a user in the subscriber list;
the terminal device is specifically used for acquiring fixed grouping information and variable grouping information of a user logging in an application program;
further comprising: an apple push notification service APNs server;
the terminal device is specifically configured to receive a token identifier of the terminal device sent by the APNs server after establishing a connection with the APNs server, upload the login account and the token identifier of the user to the WebService server, and receive the fixed packet information of the user sent by the WebService server.
9. The system of claim 8,
the terminal device is specifically configured to acquire grouping information set by a user who logs in an application program or grouping information changed by the user in a process of using the application program.
10. The system according to any one of claims 8-9, further comprising: a database;
the push server is further used for storing the sent push notification and the result of sending the push notification in the database after sending the push notification;
the terminal device is further configured to receive operation information of the user on the push notification, and obtain a historical push notification from the database through the WebService server.
11. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any one of claims 1-3.
CN201710602867.8A 2017-07-21 2017-07-21 Data pushing method, device and system and terminal equipment Active CN109286648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710602867.8A CN109286648B (en) 2017-07-21 2017-07-21 Data pushing method, device and system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710602867.8A CN109286648B (en) 2017-07-21 2017-07-21 Data pushing method, device and system and terminal equipment

Publications (2)

Publication Number Publication Date
CN109286648A CN109286648A (en) 2019-01-29
CN109286648B true CN109286648B (en) 2020-11-06

Family

ID=65185395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710602867.8A Active CN109286648B (en) 2017-07-21 2017-07-21 Data pushing method, device and system and terminal equipment

Country Status (1)

Country Link
CN (1) CN109286648B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096420A (en) * 2019-04-26 2019-08-06 上海上湖信息技术有限公司 A kind of data processing method, system and device
CN110300067B (en) * 2019-06-26 2022-02-08 深圳前海微众银行股份有限公司 Queue adjusting method, device, equipment and computer readable storage medium
CN113037789A (en) * 2019-12-09 2021-06-25 上海擎感智能科技有限公司 Updating method, system, medium and device for voice service subscription
CN111314471A (en) * 2020-02-21 2020-06-19 广州欢网科技有限责任公司 Weather early warning pushing method and system
CN111711663A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Processing method and device for publishing and subscribing services and electronic equipment
CN112612985A (en) * 2020-12-24 2021-04-06 广州致远电子有限公司 Websocket-based multi-user and multi-type message pushing system and method
CN112839087A (en) * 2021-01-06 2021-05-25 深圳市芯中芯科技有限公司 Cluster-based multi-terminal control method and system
CN112967023B (en) * 2021-03-05 2023-01-24 北京百度网讯科技有限公司 Method, device, equipment, storage medium and program product for acquiring schedule information
CN113381923A (en) * 2021-05-17 2021-09-10 中企链信(北京)科技有限公司 Instant messaging method for IOS platform collaborative office
CN113923180B (en) * 2021-09-30 2023-02-03 北京字跳网络技术有限公司 Topic group message pushing method, receiving method, device, system and storage medium
CN115550439B (en) * 2022-11-29 2023-04-11 杭州涂鸦信息技术有限公司 Event management system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316423A (en) * 2010-07-06 2012-01-11 华为技术有限公司 Information pushing method, device and system
CN103037312A (en) * 2011-10-08 2013-04-10 阿里巴巴集团控股有限公司 Message push method and message push device
CN104023020A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 TypeB message subscription and push system for mobile equipment and corresponding method
CN104796473A (en) * 2015-04-21 2015-07-22 努比亚技术有限公司 Cross-platform information push method and cross-platform information push system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630624B2 (en) * 2009-02-25 2014-01-14 Apple Inc. Managing notification messages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316423A (en) * 2010-07-06 2012-01-11 华为技术有限公司 Information pushing method, device and system
CN103037312A (en) * 2011-10-08 2013-04-10 阿里巴巴集团控股有限公司 Message push method and message push device
CN104023020A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 TypeB message subscription and push system for mobile equipment and corresponding method
CN104796473A (en) * 2015-04-21 2015-07-22 努比亚技术有限公司 Cross-platform information push method and cross-platform information push system

Also Published As

Publication number Publication date
CN109286648A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109286648B (en) Data pushing method, device and system and terminal equipment
CN110582017B (en) Video playing method, device, terminal and storage medium
CN105391803B (en) Message pushing method, device, equipment and computer readable storage medium
CN103460723A (en) Push notifications for updating multiple dynamic icon panels
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
CN107395473B (en) Networking method and device of household appliance and terminal equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN112764612A (en) Interaction method, interaction device, electronic equipment and storage medium
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN109547335B (en) Session message processing method and device
CN109446204B (en) Data storage method and device for instant messaging, electronic equipment and medium
CN111314433A (en) Message transmission method and device and electronic equipment
WO2023231915A1 (en) Message processing method and apparatus, device and storage medium
CN106936827B (en) A kind of broadcast recipients' queue regulation method, device and terminal
US8947982B2 (en) Method and apparatus for setting alarm in portable terminal
CN113034189A (en) Attribution method, attribution device, computer equipment and storage medium
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN113132122B (en) Group information processing method and device, storage medium and electronic equipment
CN105306244B (en) Router management method, system and equipment
CN106161188B (en) Message sending method, message display method and device
CN112306224A (en) Man-machine interaction method and device and electronic equipment
CN107930126B (en) Game reservation data processing method and device and mobile terminal
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106330875B (en) Message display 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
GR01 Patent grant
GR01 Patent grant