Message push system and method, storage medium and electronic device

By introducing message channel interface module and push module in the Smart Home Platform APP, the code redundancy and complex business logic problems caused by push function development methods are solved, and unified management and modular development of push function are realized.

CN115733815BActive Publication Date: 2025-05-02HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211336877.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2025-05-02
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

The push function development method in the existing smart home platform APP results in different code redundancy and business logic processing methods, which cannot be managed in a unified manner, and complicates the development process.

Method used

The message channel interface module and the push module are introduced to separate the push function, and the message channel interface module is compatible with the differences between different push channels, reducing the complexity of the business module.

Benefits of technology

It realizes unified management of push functions, reduces code redundancy, improves the degree of functional modularity, and reduces development complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115733815B_ABST
    Figure CN115733815B_ABST
Patent Text Reader

Abstract

The present application discloses a message push system and method, a storage medium and an electronic device, and relates to the field of smart home technology. The message push system includes: a message channel interface module, a push module connected to the message channel interface module, and a business module connected to the push module, wherein the message channel interface module is used to receive a message body carrying notification information sent by a push service center corresponding to a third-party application; the push module is used to receive the message body sent by the message channel interface module, and process the message body according to a preset processing logic to obtain a model object corresponding to the message body; when the model object is information processed by the business module, the model object is broadcast to the business module, wherein the model object is used to indicate the notification information; the business module is used to receive the model object broadcast by the push module, update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and more specifically, to a message push system and method, a storage medium, and an electronic device. Background Art

[0002] At present, with the diversification of the functions of the Smart Home Platform App and the enhancement of interactivity, more and more messages need to be delivered to users in a timely manner, and the push function has become an indispensable capability. However, due to the wide variety of Smart Home Platform Apps, the push processing logic is scattered in multiple Apps, resulting in a large amount of code redundancy, and when processing the same business logic, multiple Apps may have different processing methods. In order to better manage push accounts and improve the precision of push conditions, different third-party push channels will be introduced, further leading to greater code differences.

[0003] With the introduction of the push function, the messaging mechanism in App development must be completed through the push function. At present, the mainstream way for Apps to use the push function is to directly develop push-related functions in the project, or even if modular development is carried out, it is impossible to take into account the use of different third-party push channels by different Apps, or the push function code is scattered in the business modules. For this reason, the push function cannot be managed uniformly, and at the same time, it disrupts the developers of the business modules, who cannot focus on the business logic and have to take into account the push-related code. This makes the development process complicated and difficult.

[0004] Regarding the related technologies, the development method of the push function of the application is to directly develop push-related functions in the project, and the push function codes are scattered in the business modules. No effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a message push system and method, storage medium and electronic device, so as to at least solve the problems in the related art that the development method of the push function of the application adopts the method of directly developing push-related functions in the project, and the push function codes are scattered in the business modules.

[0006] According to an embodiment of the present application, a message push system is provided, comprising: a message channel interface module, a push module connected to the message channel interface module, and a business module connected to the push module, wherein the message channel interface module is used to receive a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center; the push module is used to receive the message body sent by the message channel interface module, and process the message body according to a preset processing logic to obtain a model object corresponding to the message body; when the model object is information processed by the business module, broadcast the model object to the business module, wherein the model object is used to indicate the notification information; and the business module is used to receive the model object broadcast by the push module, update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application.

[0007] In an exemplary embodiment, the push module also includes: a message conversion module and a target message interceptor connected to the message conversion module, wherein the message conversion module is used to decrypt the message body in a preset manner to obtain a decrypted message body; parse the decrypted message body to obtain a model object corresponding to the message body, and send the model object to the target message interceptor; the target message interceptor is used to determine the push method of the model object according to the attribute information of the model object, and send the model object to the message processing queue.

[0008] In an exemplary embodiment, the message conversion module is further used to determine the message type corresponding to the model object, determine the target message interceptor among multiple message interceptors according to the message type corresponding to the model object, and send the model object to the target message interceptor.

[0009] In an exemplary embodiment, the push module also includes: a message processing queue connected to the target message interceptor, and a message processing factory connected to the message processing queue, wherein the message processing queue is used to receive the model object sent by the target message interceptor, and when the current time is consistent with the preset time, the model object is sent to the message processing factory; the message processing factory is used to determine the message type corresponding to the model object, determine the message processor corresponding to the message type, and send the model object to the message processor.

[0010] In an exemplary embodiment, the push module also includes: a message processor connected to the message processing factory, and a message broadcast module connected to the message processor, wherein the message processor is used to receive the model object sent by the message processing factory and determine the push time of the model object; when it is determined that the model object is information processed by the business module, the push time and the model object are sent to the message broadcast module; the message broadcast module is used to broadcast the push time and the model object to the business module, so that the business module updates the information corresponding to the third-party application according to the model object, and displays the updated information on the terminal device according to the push time.

[0011] In an exemplary embodiment, the push module also includes: a message status reporting module connected to the message processor, wherein the message status reporting module is used to determine the status of the model object according to whether the message processor sends the push time and the model object to the message broadcast module, and send the status of the model object to the server corresponding to the third-party application.

[0012] In an exemplary embodiment, the message status reporting module is also used to determine that the status of the model object is a pushed status when the message processor sends the push time and the model object to the message broadcast module; and to determine that the status of the model object is a not pushed status when the message processor does not send the push strategy and the model object to the message broadcast module.

[0013] According to another embodiment of the embodiments of the present application, a message push method is also provided, including: receiving a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, the first push service center being a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; the second push service center being a push service center other than the first push service center; processing the message body according to a preset processing logic to obtain a model object corresponding to the message body; updating information corresponding to the third-party application according to the model object, and displaying the updated information on the third-party application.

[0014] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned message pushing method when running.

[0015] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the message pushing method through the computer program.

[0016] In an embodiment of the present application, a message channel interface module, a push module connected to the message channel interface module, and a business module connected to the push module, wherein the message channel interface module is used to receive a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; the second push service center is a push service center other than the first push service center; the push module is used to receive the message body sent by the message channel interface module, process the message body according to a preset processing logic, to obtain a model object corresponding to the message body; and process the model object for the business module. In the case of information, the model object is broadcast to the business module, wherein the model object is used to indicate the notification information; the business module is used to receive the model object broadcast by the push module, update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application; the above technical solution is adopted to solve the problem that the development method of the push function of the application adopts the method of directly developing push-related functions in the project, and the push function code is scattered in the business module. The embodiment of the present invention introduces a push module and a message channel interface module, so that in the development of the business module, the developers can focus on the business development itself and no longer pay attention to the push-related functions, reduce the complexity of the business module, reduce the redundancy of the push function code, improve the degree of functional modularization, and make the differences between different push channels compatible through the message channel interface module. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 It is a schematic diagram of the hardware environment of a message push method in an embodiment of the present application;

[0020] Figure 2 is a structural block diagram of a message push system according to an embodiment of the present application;

[0021] Figure 3 is a timing diagram of a message push method according to an optional embodiment of the present application;

[0022] Figure 4 is a framework diagram of a message push system according to an optional embodiment of the present application;

[0023] Figure 5 It is a flowchart of a message pushing method according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to one aspect of the embodiments of the present application, a message push method is provided. The message push method is widely used in smart home (Smart Home), smart home, smart home device ecology, smart house (IntelligenceHouse) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above message push method can be applied to Figure 1 In the hardware environment composed of the terminal device 102 and the server 104 shown in FIG. Figure 1As shown, the server 104 is connected to the terminal device 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data computing services for the server 104.

[0027] The network may include but is not limited to at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0028] In this embodiment, a message push system is provided, which is applied to the above terminal device. Figure 2 : is a structural block diagram of a message push system according to an embodiment of the present application, and the message push system includes the following modules:

[0029] A message channel interface module 22, a push module 24 connected to the message channel interface module, and a service module 26 connected to the push module, wherein:

[0030] The message channel interface module 22 is used to receive a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center;

[0031] It should be noted that the first push service center can be an APNS server, a push server corresponding to an Android device, etc., and the second push service center includes but is not limited to: a Jiguang push server, a HuanXin push server, a Google push server, etc.

[0032] The push module 24 is used to receive the message body sent by the message channel interface module, process the message body according to the preset processing logic to obtain the model object corresponding to the message body; when the model object is the information processed by the business module, broadcast the model object to the business module, wherein the model object is used to indicate the notification information;

[0033] The business module 26 is used to receive the model object broadcast by the push module, update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application.

[0034] Through the above system, the message channel interface module is used to receive a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center; a push module is used to receive the message body sent by the message channel interface module, and process the message body according to a preset processing logic to obtain a model object corresponding to the message body; when the model object is information processed by the business module, the model object is broadcast to the business module, which In the embodiment, the model object is used to indicate the notification information; the business module is used to receive the model object broadcast by the push module, update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application; the above technical scheme is adopted to solve the problems that the development method of the push function of the application adopts the direct development of push-related functions in the project, and the push function codes are scattered in the business module. The embodiment of the present invention introduces the push module and the message channel interface module, so that in the development of the business module, the developers focus on the business development itself and no longer pay attention to the push-related functions, reduce the complexity of the business module, reduce the redundancy of the push function code, improve the degree of functional modularization, and make the differences of different push channels compatible through the message channel interface module.

[0035] In an exemplary embodiment, the push module also includes: a message conversion module and a target message interceptor connected to the message conversion module, wherein the message conversion module is used to decrypt the message body in a preset manner to obtain a decrypted message body; parse the decrypted message body to obtain a model object corresponding to the message body, and send the model object to the target message interceptor; the target message interceptor is used to determine the push method of the model object according to the attribute information of the model object, and send the model object to the message processing queue.

[0036] That is to say, the push module also includes: a message conversion module and a target message interceptor; due to security considerations, the push message body is encrypted during network transmission. After the push module receives the message, the message conversion module is first required to decrypt the message body. Since the received message body is an encoded message body, the message converter is also used to decode and convert the key-value form of the message body into a model object.

[0037] It should be noted that, since some messages are not expected to be uniformly processed by the push module, the external party can pre-process the messages by registering a message interceptor, or even intercept the message processing flow. If no additional message interceptor is registered, the message will be uniformly parsed and processed by the internal message interceptor provided by the push module. In other words, the message interceptor in the embodiment of the present application can be an external message interceptor or an internal message interceptor, wherein the external interceptor needs to be pre-registered with the message push system.

[0038] It should be noted that the target message interceptor includes: an external message interceptor and an internal message interceptor connected to the external message interceptor.

[0039] The external message interceptor is used to determine a first push mode of the model object according to the attribute information of the model object, and send the model object and the first push mode to the internal message interceptor;

[0040] The internal message interceptor is used to determine the second push mode of the model object according to the attribute information of the model object, determine the third push mode according to the first push mode and the second push mode, and send the model object to the message processing queue.

[0041] In an exemplary embodiment, the message conversion module is further used to determine the message type corresponding to the model object, determine the target message interceptor among multiple message interceptors according to the message type corresponding to the model object, and send the model object to the target message interceptor.

[0042] It should be noted that the push module includes multiple message interceptors, and the message conversion module can select a target message interceptor that can process the model object according to the message type of the model object for processing.

[0043] In an exemplary embodiment, the push module also includes: a message processing queue connected to the target message interceptor, and a message processing factory connected to the message processing queue, wherein the message processing queue is used to receive the model object sent by the target message interceptor, and when the current time is consistent with the preset time, the model object is sent to the message processing factory; the message processing factory is used to determine the message type corresponding to the model object, determine the message processor corresponding to the message type, and send the model object to the message processor.

[0044] That is to say, the push module also includes: message processing queue and message processing factory; in order not to block external business logic, the message processing queue uses the self-built processing queue to process the model object when processing messages. The self-built queue also gives the external ability to delay processing of model objects; because there are many message types and different processing methods, the message processing factory generates corresponding processors for processing this type of message according to different message types to process messages.

[0045] In an exemplary embodiment, the push module also includes: a message processor connected to the message processing factory, and a message broadcast module connected to the message processor, wherein the message processor is used to receive the model object sent by the message processing factory and determine the push time of the model object; when it is determined that the model object is information processed by the business module, the push time and the model object are sent to the message broadcast module; the message broadcast module is used to broadcast the push time and the model object to the business module, so that the business module updates the information corresponding to the third-party application according to the model object, and displays the updated information on the terminal device according to the push time.

[0046] It should be noted that the message types include: push message type and custom message type. When the third-party application is active, messages of the custom message type are received, and in all states, messages of the push message type are received; therefore, the message processor includes: a processor for processing messages of the push message type and a processor for processing messages of the custom message type.

[0047] The message processing module in the embodiment of the present invention is also used to determine whether the model object is information that needs to be processed by the business module. When it is determined that the model object is information that needs to be processed by the business module, the model object is sent to the message broadcasting module; otherwise, the message corresponding to the model object is directly displayed on the third-party application; when the message broadcasting module receives the model object, the model object is broadcast to the business module so that the business module updates the information corresponding to the third-party application according to the model object, and displays the updated information on the terminal device according to the push time.

[0048] For example, the push information indicated by the model object is that device A moves from room A to room B. At this time, the business module needs to update the location information of device A according to the push information. After the business module updates the location information of device A, the updated location information of device A is displayed on the terminal device.

[0049] In an exemplary embodiment, the push module also includes: a message status reporting module connected to the message processor, wherein the message status reporting module is used to determine the status of the model object according to whether the message processor sends the push time and the model object to the message broadcast module, and send the status of the model object to the server corresponding to the third-party application.

[0050] Specifically, the message status reporting module is also used to determine that the status of the model object is a pushed status when the message processor sends the push time and the model object to the message broadcast module; and to determine that the status of the model object is a not pushed status when the message processor does not send the push strategy and the model object to the message broadcast module.

[0051] That is to say, the message status reporting module monitors the progress of the message processor in processing the model object in real time. When the message processor sends the push time and the model object to the message broadcast module, the pushed status of the model object is sent to the server corresponding to the third-party application; when the message processor does not send the push time and the model object to the message broadcast module, the not-pushed status of the model object is sent to the server corresponding to the third-party application.

[0052] In order to better understand the process of the above-mentioned message push system, the implementation method flow of the above-mentioned message push is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.

[0053] In this embodiment, a message push system is provided. To realize the push function of modular docking push server, the project integrates the push module into the project through static library or cocoapods and other integration methods, and implements the message channel interface module provided by the push module to be compatible with the differences in third-party push channels. The integration of the push module can be realized, and finally the business module that needs to handle the push by itself listens to the corresponding push message and processes it. Taking the IOS system as an example, Figure 3 is a timing diagram of a message push method according to an optional embodiment of the present application, such as Figure 3 As shown, the specific steps are as follows:

[0054] Step S301: the service server sends a message body carrying notification information to the APNS server (equivalent to the first push server in the above embodiment);

[0055] Step S302: the APNS server sends a message body carrying notification information to the App end (equivalent to the third-party application in the above embodiment);

[0056] Step S303: After receiving the message body, the App sends the message body to the push module for processing;

[0057] Step S304: After receiving the message body, the push module decrypts and decodes the encrypted message body (for example, base64 encryption) to obtain a model object;

[0058] Step S305: selecting a message interceptor that can process the message body according to the content of the model object, and sending the model object to the message interceptor for processing;

[0059] Step S306: the message interceptor receives the model object and puts the model object into an asynchronous processing queue to wait for processing;

[0060] Step S307: According to the message content of the model object, the processor factory generates a corresponding message processor, such as a pop-up message, a jump message, a toast message, etc.;

[0061] Step S308: the message processor processes the message;

[0062] Step S309: After the message is processed, the message forwarder broadcasts it to the business module for self-processing;

[0063] Step S310: the business model processes the message;

[0064] Step S311: The status reporter determines whether to report the message as a processed message (messages processed by some business modules need to report the processed status by themselves). If reporting is required, the status reporter reports the message status;

[0065] Step S312: Message processing is completed.

[0066] In this embodiment, a message push system is also provided. Figure 4 is a framework diagram of a message push system according to an optional embodiment of the present application, such as Figure 4 As shown, the project includes: business module, push module, message channel interface implementation module, among which,

[0067] The business module mainly completes the processing of certain messages that need to be processed by the business module. Such messages will be notified to the business module in the form of broadcasting, and the business module can process the received messages.

[0068] The message channel interface implementation module provides a message channel interface to the outside world, which is implemented externally and registered in the push module in order to be compatible with the differences between different push channels because different project projects may be connected to different third-party push channels.

[0069] The push module is the main body for processing push messages, and is composed of a message converter (equivalent to the message conversion module in the above embodiment), a message interceptor (equivalent to the target message interceptor in the above embodiment), a message processing queue, a message processing factory, a message processor, a message broadcaster (equivalent to the message broadcast module in the above embodiment) and a status reporter (equivalent to the message status reporting module in the above embodiment).

[0070] Message converter: Due to security considerations, the pushed message body is encrypted during network transmission. After the push module receives the message, the message converter needs to decrypt the message body and convert the decrypted message body into a model object.

[0071] Message interceptor: Since some messages are not expected to be processed uniformly by the push module, the external can pre-process the model object by registering a message interceptor, or even intercept the processing flow of the model object. If no additional message interceptor is registered, the model object will be uniformly parsed and processed by the internal message interceptor provided by the push module.

[0072] Message processing queue: In order not to block external business logic, the push module uses a self-built processing queue to process model objects when processing model objects. The self-built queue also gives the external side the ability to delay message processing.

[0073] Message processing factory: Because there are many types of model objects and the processing methods are different, the message processing factory generates message processors corresponding to the model objects of this type according to different message types to process the model objects.

[0074] Message processor: processes the model object according to the message content.

[0075] Message broadcaster: For model objects that need to be processed by business modules, after the message processor completes the processing of the model object, the model object will be broadcasted by the broadcaster for external business modules that monitor such model objects to process the model object.

[0076] Message status reporter: reports the status of the model object to the server corresponding to the APP.

[0077] The architecture mode that takes project engineering as the core and integrates other business functions into various modules to provide various business capabilities for project engineering is widely used. The relative stability of each module is crucial to the architecture itself and developers. Functional business logic such as push is almost distributed in all business modules, and the push processing code is scattered among various business modules. At the same time, non-unified processing methods will greatly reduce the stability of project engineering. Through the embodiment of the present invention, the push processing logic is unified and modularized by utilizing a modular solution. When the message processing method changes, there is no need to frequently modify other business modules and project engineering, and business module developers can focus more on business development itself. It provides more favorable conditions for the stability and sustainability of the App architecture.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0079] Figure 5 is a flow chart of a message push method according to an embodiment of the present application; Figure 5 As shown, including:

[0080] Step S502: receiving a message body carrying notification information sent by a push service center corresponding to the third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center;

[0081] Step S504: Process the message body according to a preset processing logic to obtain a model object corresponding to the message body;

[0082] Step S506: updating the information corresponding to the third-party application according to the model object, and displaying the updated information on the third-party application.

[0083] Through the above steps, a message body carrying notification information sent by a push service center corresponding to a third-party application is received, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center; the message body is processed according to a preset processing logic to obtain a model object corresponding to the message body; information corresponding to the third-party application is updated according to the model object, and the updated information is displayed on the third-party application; the above technical solution is adopted to solve the problem that the development method of the push function of the application adopts direct development of push-related functions in the project, and the push function codes are scattered in the business modules. The embodiment of the present invention introduces a push module and a message channel interface module, so that in the development of the business module, developers focus on the business development itself and no longer pay attention to push-related functions, reduce the complexity of the business module, reduce the redundancy of the push function code, improve the degree of functional modularization, and make the differences of different push channels compatible through the message channel interface module.

[0084] In an exemplary embodiment, the message body is decrypted in a preset manner to obtain a decrypted message body; the decrypted message body is parsed to obtain a model object corresponding to the message body; and a push method of the model object is determined according to attribute information of the model object.

[0085] In an exemplary embodiment, when the current time is consistent with the preset time, the message type corresponding to the model object is determined.

[0086] In an exemplary embodiment, the push time of the model object is determined; when it is determined that the model object is information processed by the business module, the push time and the model object are broadcast to the business module, so that the business module updates the information corresponding to the third-party application according to the model object, and displays the updated information on the terminal device according to the push time.

[0087] In an exemplary embodiment, the state of the model object is determined according to whether the push time and the model object are sent to the message broadcast module, and the state of the model object is sent to the server corresponding to the third-party application.

[0088] In an exemplary embodiment, when the push time and the model object are sent to the message broadcast module, the state of the model object is determined to be a pushed state; when the push strategy and the model object are not sent to the message broadcast module, the state of the model object is determined to be a not pushed state.

[0089] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0090] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0091] S1, receiving a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center;

[0092] S2, processing the message body according to a preset processing logic to obtain a model object corresponding to the message body;

[0093] S3: Update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application.

[0094] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0095] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0096] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0097] S1, receiving a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center;

[0098] S2, processing the message body according to a preset processing logic to obtain a model object corresponding to the message body;

[0099] S3: Update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application.

[0100] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0101] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0102] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0103] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A message push system, characterized in that: include: A message channel interface module, a push module connected to the message channel interface module, and a service module connected to the push module, wherein: The message channel interface module is used to receive a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center; The push module is used to receive the message body sent by the message channel interface module, process the message body according to the preset processing logic to obtain the model object corresponding to the message body; when the model object is the information processed by the business module, broadcast the model object to the business module, wherein the model object is used to indicate the notification information; The business module is used to receive the model object broadcast by the push module, update the information corresponding to the third-party application according to the model object, and display the updated information on the third-party application.

2. The message push system according to claim 1, characterized in that: The push module further includes: a message conversion module and a target message interceptor connected to the message conversion module, wherein the message conversion module is used to decrypt the message body in a preset manner to obtain a decrypted message body; parse the decrypted message body to obtain a model object corresponding to the message body, and send the model object to the target message interceptor; The target message interceptor is used to determine the push mode of the model object according to the attribute information of the model object, and send the model object to the message processing queue.

3. The message push system according to claim 2, characterized in that: include: The message conversion module is further used to determine the message type corresponding to the model object, determine the target message interceptor among multiple message interceptors according to the message type corresponding to the model object, and send the model object to the target message interceptor.

4. The message push system according to claim 2, characterized in that: The push module further includes: a message processing queue connected to the target message interceptor, and a message processing factory connected to the message processing queue, wherein: The message processing queue is used to receive the model object sent by the target message interceptor, and when the current time is consistent with the preset time, the model object is sent to the message processing factory; the message processing factory is used to determine the message type corresponding to the model object, determine the message processor corresponding to the message type, and send the model object to the message processor.

5. The message push system according to claim 4, characterized in that: The push module also includes: a message processor connected to the message processing factory, and a message broadcast module connected to the message processor, wherein: The message processor is used to receive the model object sent by the message processing factory and determine the push time of the model object; when it is determined that the model object is information processed by the business module, the push time and the model object are sent to the message broadcast module; The message broadcast module is used to broadcast the push time and the model object to the business module, so that the business module updates the information corresponding to the third-party application according to the model object, and displays the updated information on the terminal device according to the push time.

6. The message push system according to claim 5, characterized in that: The push module also includes: a message status reporting module connected to the message processor, wherein: The message status reporting module is used to determine the status of the model object according to whether the message processor sends the push time and the model object to the message broadcasting module, and send the status of the model object to the server corresponding to the third-party application.

7. The message push system according to claim 6, characterized in that: include: The message status reporting module is further configured to determine that the status of the model object is a pushed status when the message processor sends the push time and the model object to the message broadcasting module; In a case where the message processor does not send the push strategy and the model object to the message broadcast module, it is determined that the state of the model object is a non-pushed state.

8. A message push method, characterized in that: The system as claimed in any one of claims 1 to 7, comprising: Receiving a message body carrying notification information sent by a push service center corresponding to a third-party application, wherein the push service center includes at least one of the following: a first push service center and a second push service center, wherein the first push service center is a push service center provided by a manufacturer of a terminal device on which the third-party application is installed; and the second push service center is a push service center other than the first push service center; The message body is processed according to a preset processing logic to obtain a model object corresponding to the message body; information corresponding to the third-party application is updated according to the model object, and the updated information is displayed on the third-party application.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method of claim 8 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method of claim 8 through the computer program.

Citation Information

Patent Citations

  • Message pushing method and system for application

    CN105791352A

  • Multi-channel message pushing system

    CN112887428A