Push message processing method, device, intelligent terminal and storage medium
By uniformly intercepting and filtering push messages on smart terminals, using the application-message type table to judge the message type, and only pushing messages to interested applications, the memory and power consumption problems of smart terminals are solved and the user experience is improved.
Patent Information
- Application Number
- CN202110915178.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-08-10
AI Technical Summary
Due to size and hardware constraints, smart terminals such as smart watches cannot support all applications to independently run their message push service functions, resulting in tight memory and large power consumption, which affects the user experience.
Get push messages through unified interception, and determine whether the push messages are target push messages based on the preset application-message type table. Only message push services are provided to interested applications to achieve low memory requirements and low power consumption message push.
It greatly reduces the memory demand and power consumption of the message push service function, maintains the smooth operation of the smart terminal and the good use of the battery, and improves the user experience.
Smart Images

Figure CN115706736B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of instant messaging technology, and in particular to a push message processing method, device, intelligent terminal and storage medium. Background Art
[0002] With the development of the Internet industry and information technology, various smart terminals are used in people's lives. People are also accustomed to using these smart terminals to contact the world outside of life and obtain first-hand information on hot events happening in the world. In this process, message push is an indispensable service. Basically, applications installed on smart terminals will be equipped with this service function.
[0003] However, for smart terminals such as smart watches, due to size and hardware constraints, memory and battery cannot well support all applications installed on them to independently run their own message push service functions. However, there are specific user scenario requirements, and the message push service function is needed to achieve a better user experience. Therefore, a push message processing method is urgently needed. Summary of the invention
[0004] Based on this, it is necessary to propose a push message processing method, device, intelligent terminal and storage medium to address the above problems, so as to realize the message push service function with low memory requirement and low power consumption.
[0005] In a first aspect, a push message processing method is provided, which is applied to a first smart terminal, and the method comprises the following steps:
[0006] Obtain a push message and the message type of the push message;
[0007] Determine whether the push message is a target push message according to a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types that the applications are interested in, and the target push message is a message corresponding to a message type that any application in the application-message type table is interested in;
[0008] In the case where the push message is the target push message, the push message is pushed to an application program that is interested in the message type.
[0009] In this technical solution, push messages are uniformly intercepted and acquired, and then it is determined whether the intercepted push messages are target push messages according to the preset application-message type table. The message push service function support is only provided to the applications on the application-message type table, and the effect of only pushing messages of interest to the applications, that is, target push messages, is achieved, while the push messages that the smart terminal is not interested in are intercepted and filtered. This method can greatly reduce the memory requirements and power consumption of the message push service function, and keep the smart terminal running smoothly and the battery in good use.
[0010] In combination with the first aspect, in a possible implementation, the above-mentioned determining whether the push message is a target push message according to the preset application-message type table and the message type includes: querying and determining whether the message type exists in the application-message type table; and if the message type exists in the application-message type table, determining that the push message is the target push message. Determining whether the push message is a target push message by looking up a table is simple and direct, saves computing resources, and can complete the determination of whether the push message is a target push message at a faster speed.
[0011] In combination with the first aspect, in a possible implementation, the above-mentioned application-message type table will be regenerated after the first smart terminal is restarted; the method also includes: scanning the preset push configurations of all applications on the first smart terminal, wherein the push configurations include the message types that the applications are interested in; obtaining the message types that each application is interested in according to the push configurations; generating an application-message type table according to the package names of all the applications and the message types that each application is interested in, wherein the package name is used to point to the application corresponding to the package name. By presetting the correspondence between the application and the message type that it is interested in, it is determined which push messages need to be received and which push messages can be filtered, and all the correspondences generate an application-message type table to effectively process the push messages; the application-message type table is generated after the smart terminal is restarted, and the application-message type table can be updated in time according to the changes and updates of the applications on the smart terminal.
[0012] In combination with the first aspect, in a possible implementation, the push configuration of each application also includes a static broadcast for receiving messages of interest to the application; the pushing of the push message to the application that is interested in the message type includes: obtaining the target package name of the application corresponding to the message type of the target push message according to the application-message type table; generating a push broadcast message carrying the target package name and the target push message, and broadcasting the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application corresponding to the target package name receives the push broadcast message. Receiving push messages in the form of static broadcasts can continuously monitor the message push service function during the relatively long life cycle of the static broadcast, and when a message of interest to the application is broadcast, it can be obtained immediately.
[0013] In combination with the first aspect, in a possible implementation, the method further includes: when a selection instruction of a target application is obtained, obtaining a list of message types of interest of the target application and a list of all message types supported by the target application, wherein the target application is any application in the first smart terminal; when a change instruction for the list of message types of interest is obtained, selecting a message type from the list of all message types and adding it to the list of message types of interest, or deleting a message type from the list of message types of interest, so as to complete the user's change of the list of message types of interest. By issuing a selection instruction and a change instruction, the user can perform secondary configuration based on the default push configuration of the application, and adjust the smart terminal's reception settings for push messages according to the user's own preferences.
[0014] In combination with the first aspect, in a possible implementation, after obtaining the list of message types of interest of the target application and the list of all message types supported by the target application, the above includes: sending the list of message types of interest and the list of all message types to a second smart terminal bound to the first smart terminal; receiving the change instruction returned by the second smart terminal based on the list of message types of interest and the list of all message types. Controlling the push message receiving settings of the first smart terminal through the second smart terminal expands the application scenarios, including controlling or setting the push service of the first smart terminal with a small screen through the second smart terminal with a large screen, and also including the second smart terminal of a parent controlling or setting the push service of the first smart terminal of a child.
[0015] In a second aspect, a push message processing device is provided, characterized in that it is applied to a first smart terminal, and the device includes:
[0016] An acquisition module, used to acquire a push message and the message type of the push message;
[0017] a judgment module, used to judge whether the push message is a target push message according to a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types of interest to the applications, and the target push message is a message corresponding to a message type of interest to any application in the application-message type table;
[0018] The push module is used for pushing the push message to an application program that is interested in the message type when the push message is the target push message.
[0019] In a third aspect, a smart terminal is provided, comprising a memory and one or more processors, wherein the one or more processors are used to execute one or more computer programs stored in the memory, and when the one or more processors execute the one or more computer programs, the smart terminal implements the push message processing method of the first aspect.
[0020] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the push message processing method of the first aspect.
[0021] The present application can achieve the following beneficial effects: unified management and distribution of push messages received by smart terminals can be achieved, solving the problem of tight memory and high power consumption when supporting message push service functions for smaller smart terminals such as smart watches. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] in:
[0024] Figure 1 A flowchart of a method for processing push messages according to an embodiment of the present invention;
[0025] Figure 2 A flowchart of an application installation provided in an embodiment of the present application;
[0026] Figure 3A flowchart of a method for generating an application-message type table provided in an embodiment of the present application;
[0027] Figure 4 A flowchart of another push message processing method provided in an embodiment of the present application;
[0028] Figure 5 A structural block diagram of a push message processing device provided in an embodiment of the present application;
[0029] Figure 6 A structural block diagram of another push message processing device provided in an embodiment of the present application;
[0030] Figure 7 A structural block diagram of a smart terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] With the improvement of people's living standards and the development of Internet of Things technology, smart wearables have been rapidly popularized, including smart watches, smart bracelets, smart glasses and other smart terminals. They are used in sports scenes, school scenes, underwater work scenes, disabled people's lives and other scenes to fill the gaps in people's lives that cannot be met by computers and smart phones. However, for smart terminals with large enough volume, such as smart phones and tablets, they are equipped with standard-sized processors, memory units and batteries, which are sufficient to support the applications installed on the smart terminals to independently run their complete service functions; while for smart terminals such as smart watches, they are limited by volume and hardware, and can only use components with weaker performance to meet the volume requirements. Obviously, such smart terminals cannot fully reproduce the performance and functions of computers or mobile phones.
[0033] Therefore, when providing smart services to people with smaller smart terminals such as smart watches, new methods need to be designed to meet the functional needs of users under the conditions of hardware limitations.
[0034] Instant Messaging (IM) is one of the common and even necessary functions in applications. It is a real-time communication function that allows two or more parties to use the network to transmit text messages, files, voice and video communication in real time. For the instant messaging scenario between service providers and users, it is generally a message push, such as mobile terminals receive hot news, interest recommendations and other messages pushed by various applications every day. When it comes to smart terminals with smaller sizes such as smart watches, taking smart watches as an example, with the rise of the smart wearable market, many common applications have developed versions suitable for smart watches, such as WeChat, NetEase Cloud Music, Bilibili on the wrist, etc. It can be imagined that if each application independently runs its own message push function, it will increase the memory overhead of the smart watch, causing the watch to freeze; at the same time, it will also increase power consumption, causing the power to drop rapidly. In addition, there are many application push messages that are completely unnecessary for smart watches or smart watch users, such as pushing video messages on smart watches that do not support video playback. Therefore, a push message processing method is needed.
[0035] The technical solution of the embodiment of the present invention is applicable to smart terminals, especially smart watches, smart bracelets, smart glasses and other smart terminals with small memory space and battery capacity due to their small size. By using a separate message push service function to uniformly receive, filter and distribute push messages of all applications on the smart terminal, the memory and power consumption required for the message push service are reduced, and the user experience in the scenario where message push is required is preserved to a certain extent.
[0036] In this application document, the specific embodiments of the invention are described by taking an intelligent terminal equipped with an Android system as an example. It can be understood that using other intelligent systems and intelligent terminals, such as other types of intelligent terminals equipped with Apple, Linux or Hongmeng systems as execution entities, to implement methods that are the same or similar to the technical features of the present invention are all within the protection scope of the present invention.
[0037] The technical solution of this application is described in detail below.
[0038] See also Figure 1 , Figure 1 A push message processing method proposed in an embodiment of the present application is applied to a first smart terminal, and the method comprises the following steps:
[0039] Step 102: Obtain a push message and the message type of the push message.
[0040] Among them, the first smart terminal is a smart terminal that executes this method, and the "first" is only used to distinguish it from the subsequent "second smart terminal" and has no specific meaning and does not constitute a limitation.
[0041] Among them, push messages refer to messages pushed to the smart terminal by applications installed on the smart terminal, such as current affairs information and entertainment news pushed by Weibo applications, weather forecasts pushed by weather-related applications, etc. Message types refer to the type attributes of push messages divided according to different classification standards. For example, according to technical attributes, push message types include text messages, picture messages, and video messages; if divided according to business attributes, push message types include news information, marketing activities, and system functions; technical attributes and business attributes can also be mixed for more detailed classification, such as news information-text, etc.
[0042] It should be noted that the message type has a unique identification code. The same name of the message type does not mean that the message type itself is identical. For example, both Weibo and NetEase News have "News and Information" in their push message types, but their unique identification codes may be 10000-1 and 32005-2 respectively. However, the unique identification codes used for message types by applications from the same company or the same series may be the same.
[0043] Among them, the application party and the smart terminal party agree in advance that when the application is installed on the smart terminal, the message type that the application is interested in is preset in the push configuration of the application, so that the smart terminal can determine whether the push message is the message of interest to the application after receiving the push message, and then perform filtering processing; in addition, a static broadcast for receiving messages of interest to the application is also preset in the push configuration of the application, so that the push message of interest to the application can be obtained by the application as soon as possible after the smart terminal receives it, and the push message acquisition delay or even loss due to the application not running will not occur.
[0044] like Figure 2 As shown, the application party of application A\B\C presets the message types and corresponding static broadcasts that application A\B\C is interested in in the installation package of the application according to the agreement, and the user then installs the application A\B\C on the smart terminal.
[0045] For example, the application "Super Class Schedule" and the smart watch party agree that when the "Super Class Schedule" application is installed on the smart watch, the message types it is interested in are 1 and 2, and the message types of push messages of the "Super Class Schedule" application party to all smart terminals with the "Super Class Schedule" application installed include 1, 2, 3, and 4. Therefore, when the smart watch obtains the push message of "Super Class Schedule", the smart watch will filter out push messages of message types 3 and 4, and only push push messages of message types 1 and 2 to the "Super Class Schedule" application.
[0046] When the smart terminal obtains the push message forwarded by the platform server of the smart terminal, the message push service function on the smart terminal will uniformly intercept, manage and filter it, and then obtain the message type information contained in the push message. In this way, the smart terminal only needs to maintain one message push service function to receive the messages distributed by the platform server, which greatly reduces the memory requirements and power consumption compared to each application running its own message push service function.
[0047] In some possible embodiments, the platform server performs filtering when receiving push messages. For example, the "Super Class Schedule" application pushes messages to the platform server, which include multiple messages of message types 1, 2, 3, or 4. The platform server directly filters the push messages of message types 3 and 4 that the application is not interested in according to the agreement, and distributes the push messages of message types 1 and 2 to specific smart terminals.
[0048] Step 104, determine whether the push message is a target push message based on a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types that the applications are interested in, and the target push message is a message corresponding to a message type that any application in the application-message type table is interested in.
[0049] The application-message type table is a mapping table preset in the smart terminal, which is used to reflect the correspondence between applications and message types that the applications are interested in. It will be regenerated after the smart terminal is restarted to update the application-message type table.
[0050] like Figure 3 As shown, in some possible embodiments, the generation of the application-message type table includes the following steps:
[0051] Step 302: Scan the push configurations preset by all applications on the smart terminal.
[0052] As mentioned above, the push configuration includes the message types that the application is interested in.
[0053] Step 304: Acquire the message type that each application is interested in according to the push configuration.
[0054] Among them, the smart terminal traverses the push configuration of each application, obtains the package name of each application and the message type of interest. Specifically, in a smart terminal using the Android system, the smart terminal traverses the Androidmanifest.xml file of each application, obtains the value of the corresponding configuration of SYNC_MSG_TYPE with a fixed name definition from the meta-data data configured therein, and parses the value to obtain the message type of interest to the current application.
[0055] Step 306: Generate an application-message type table according to the package names of all the applications and the message types that each application is interested in, wherein the package name is used to point to the application corresponding to the package name.
[0056] Specifically, a new list table is created to record the push types that the application is interested in after parsing, and a mapping relationship is established between the package name of the application and the message type that the application is interested in in the list set, so as to obtain an application-message type table.
[0057] It is understandable that some applications do not preset the message types of interest in the push configuration, which means that these applications do not need the support of the message push service function.
[0058] In some possible embodiments, when a new application is installed on a smart terminal, the smart terminal scans the push configuration of the new application, obtains the mapping relationship between the package name of the new application and the message type of interest to the new application, and then updates the mapping relationship to the application-message type table.
[0059] In one embodiment, determining whether the push message is a target push message based on a preset application-message type table and the message type includes: querying and determining whether the message type exists in the application-message type table; and if the message type exists in the application-message type table, determining that the push message is the target push message.
[0060] Among them, according to the above content, it can be known that the application-message type table records the mapping relationship between the application package name and the message type that the application is interested in. As long as the message type of the push message exists in the application-message type table, it means that one or more applications in the smart terminal are interested in the push message, and then it can be determined that the push message is the target push message.
[0061] Judging whether the push message is a target push message by looking up a table is simple and direct, saves computing resources, and can complete the judgment on whether the push message is a target push message at a faster speed.
[0062] Step 106: If the push message is the target push message, push the push message to an application program that is interested in the message type.
[0063] When the smart terminal determines that the push message is a target push message, the target push message is pushed to the application programs that are interested in the message type in a broadcasting manner.
[0064] In one embodiment, the push configuration of each application also includes a static broadcast for receiving messages of interest to the application; pushing the push message to the application interested in the message type includes: obtaining the target package name of the application corresponding to the message type of the target push message according to the application-message type table; generating a push broadcast message carrying the target package name and the target push message, and broadcasting the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application corresponding to the target package name receives the push broadcast message.
[0065] Among them, the static broadcast in the push configuration of the application is set to immediately obtain the broadcast message when a broadcast message carrying the package name of the application is monitored. The specific process of preset broadcast is to set the action of the broadcast to "${pkgName}.im.data", where pkgName is the package name of the application; and register the broadcast as a static broadcast in the Androidmanifest.xml file. In this way, when the static broadcast monitors a broadcast message with an action format of "${pkgName}.im.data", it can receive the broadcast message as soon as possible.
[0066] In the agreement between the application and the smart terminal, when the smart terminal determines that the push message is a target push message, it obtains the package name of the application that is interested in the target push message, generates a push broadcast message carrying the target package name and the target push message, and finally broadcasts the push broadcast message to all applications in the smart terminal. Specifically, the smart terminal generates a push broadcast message with the action format of "${pkgName}.im.data" according to the target package name and the target push message, and broadcasts it to all applications in the smart terminal.
[0067] It should be noted that by receiving push messages in the form of static broadcasts, the message push service function can be continuously monitored during the longer life cycle of the static broadcast. Even if the application is not currently started or running, when a message of interest to the application is broadcast, the broadcast message pushed by the smart terminal can be obtained at the first time.
[0068] See also Figure 4 , Figure 4 This is a flowchart of a push message processing method in another embodiment. After receiving the push message from the application server, the platform server of the smart terminal distributes it to each smart terminal, and then the message push service function of the smart terminal performs unified interception and processing; then the message type of the push message is obtained, and the application-message type table is checked to see whether the message type exists; if so, the push message is pushed to the application that is interested in the push message; if not, the push message is discarded.
[0069] The above-mentioned push message processing method obtains push messages through unified interception, and then determines whether the intercepted push messages are target push messages according to the preset application-message type table, and only provides message push service function support for applications on the application-message type table, and achieves the effect of only pushing messages of interest to applications, that is, target push messages, and intercepting and filtering push messages that smart terminals are not interested in. This method can greatly reduce the memory requirements and power consumption of the message push service function, and keep the smart terminal running smoothly and the battery in good use.
[0070] In one embodiment, the method further includes: upon obtaining a selection instruction for a target application, obtaining a list of message types of interest for the target application and a list of all message types supported by the target application, wherein the target application is any application in the first smart terminal; upon obtaining a change instruction for the list of message types of interest, selecting a message type from the list of all message types and adding it to the list of message types of interest, or deleting a message type from the list of message types of interest, so as to complete the user's change to the list of message types of interest.
[0071] Among them, the selection instruction of the target application is used to select any application in the first smart terminal as the target application. The selection instruction can be issued by the user through the first smart terminal, or through a second, third, etc. smart terminal other than the first smart terminal; the list of message types of interest of the target application reflects one or more message types that the target application is currently interested in, and the list of all message types that the target application supports receiving reflects the message types that the target application supports receiving and may be interested in.
[0072] Among them, the modification instruction for the list of message types of interest is used to adjust and modify the list of message types of interest, and similarly, it can also be issued by the user through the first smart terminal, or through the second, third, etc. smart terminals other than the first smart terminal.
[0073] For example, if a user is a student preparing for the postgraduate entrance examination, he needs to pay attention to national political news while concentrating on preparing for the examination. Therefore, by issuing a selection command and a change command, the list of interesting message types of the entertainment application is cleared, and the list of interesting message types of the information application is removed from the message types that are not related to politics and social news. After the postgraduate entrance examination, the user can choose to restore the list of interesting message types to the default settings, or selectively add the list of interesting message types back from the list of all message types.
[0074] By issuing selection instructions and change instructions, users can perform secondary configuration based on the default push configuration of the application, and adjust the smart terminal's push message reception settings according to the user's own preferences, so that the services provided by the smart terminal better meet user needs.
[0075] In one embodiment, after obtaining the list of message types of interest to the target application and the list of all message types supported by the target application, the method includes: sending the list of message types of interest and the list of all message types to a second smart terminal bound to the first smart terminal; and receiving the change instruction returned by the second smart terminal based on the list of message types of interest and the list of all message types.
[0076] Among them, through the binding relationship between the two smart terminals, the second smart terminal controls the push message receiving settings of the first smart terminal. The application scenario can be that the user controls or sets the push service of the first smart terminal with a small screen through the second smart terminal with a large screen, which is more convenient to operate; it can also be that the parent's second smart terminal controls or sets the push service of the child's first smart terminal, so that the parent can control the child's entertainment situation.
[0077] The method of the present application is introduced above. In order to better implement the method of the present application, the device of the present application is introduced next.
[0078] like Figure 5 As shown, in one embodiment, a push message processing device is provided, characterized in that it is applied to a first smart terminal, and the device includes:
[0079] The acquisition module 10 is used to acquire the push message and the message type of the push message;
[0080] A judging module 20, configured to judge whether the push message is a target push message according to a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types of interest to the applications, and the target push message is a message corresponding to a message type of interest to any application in the application-message type table;
[0081] The push module 30 is configured to send the push message to an application program that is interested in the message type when the push message is the target push message.
[0082] like Figure 6 As shown, in one embodiment, the judgment module 20 also includes: a query unit 210, used to query and determine whether the message type exists in the application-message type table; a determination unit 220, used to determine that the push message is the target push message when the message type exists in the application-message type table.
[0083] In one embodiment, the device also includes: a scanning module, used to scan the push configuration preset by all applications on the first smart terminal, wherein the push configuration includes the message type of interest to the application; a message type acquisition module, used to acquire the message type of interest to each application according to the push configuration; a generation module, used to generate an application-message type table according to the package names of all the applications and the message type of interest to each application, wherein the package name is used to point to the application corresponding to the package name.
[0084] In one embodiment, the push module 30 is also used to obtain the target package name of the application corresponding to the message type of the target push message according to the application-message type table; the push module 30 is also used to generate a push broadcast message carrying the target package name and the target push message, and broadcast the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application corresponding to the target package name receives the push broadcast message.
[0085] In one embodiment, the device also includes: a list module, which is used to obtain a list of message types of interest to the target application and a list of all message types supported by the target application when a selection instruction of the target application is obtained, and the target application is any application in the first smart terminal; a change module, which is used to select a message type from the list of all message types and add it to the list of message types of interest, or delete the message type from the list of message types of interest when an instruction to change the list of message types of interest is obtained, so as to complete the user's change of the list of message types of interest.
[0086] In one embodiment, the device also includes: a communication module for sending the list of message types of interest and the list of all message types to a second smart terminal bound to the first smart terminal; a receiving module for receiving the change instructions returned by the second smart terminal based on the list of message types of interest and the list of all message types.
[0087] The above-mentioned push message processing device obtains push messages through unified interception, and then determines whether the intercepted push messages are target push messages according to the preset application-message type table. It only provides message push service function support for the applications on the application-message type table, and achieves the effect of only pushing messages of interest to the applications, that is, target push messages, and intercepting and filtering push messages that the smart terminal is not interested in. This device can greatly reduce the memory requirements and power consumption of the message push service function, and keep the smart terminal running smoothly and the battery in good use.
[0088] Figure 7 FIG. 1 shows an internal structure diagram of an intelligent terminal in an embodiment. Figure 7 As shown, the smart terminal includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the smart terminal stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the push message processing method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the push message processing method. Those skilled in the art can understand that Figure 7 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the smart terminal on which the scheme of the present application is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0089] In one embodiment, an intelligent terminal is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0090] Obtain a push message and the message type of the push message; determine whether the push message is a target push message based on a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types that the applications are interested in, and the target push message is a message corresponding to a message type that any application in the application-message type table is interested in; when the push message is the target push message, push the push message to the application that is interested in the message type.
[0091] In one embodiment, determining whether the push message is a target push message based on a preset application-message type table and the message type includes: querying and determining whether the message type exists in the application-message type table; and if the message type exists in the application-message type table, determining that the push message is the target push message.
[0092] In one embodiment, the application-message type table will be regenerated after the first smart terminal is restarted; the method also includes: scanning the push configuration preset for all applications on the first smart terminal, wherein the push configuration includes the message type of interest to the application; obtaining the message type of interest to each application according to the push configuration; generating an application-message type table according to the package names of all the applications and the message type of interest to each application, wherein the package name is used to point to the application corresponding to the package name.
[0093] In one embodiment, the push configuration of each application also includes a static broadcast for receiving messages of interest to the application; pushing the push message to the application interested in the message type includes: obtaining the target package name of the application corresponding to the message type of the target push message according to the application-message type table; generating a push broadcast message carrying the target package name and the target push message, and broadcasting the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application corresponding to the target package name receives the push broadcast message.
[0094] In one embodiment, the method further includes: upon obtaining a selection instruction for a target application, obtaining a list of message types of interest for the target application and a list of all message types supported by the target application, wherein the target application is any application in the first smart terminal; upon obtaining a change instruction for the list of message types of interest, selecting a message type from the list of all message types and adding it to the list of message types of interest, or deleting a message type from the list of message types of interest, so as to complete the user's change to the list of message types of interest.
[0095] In one embodiment, after obtaining the list of message types of interest to the target application and the list of all message types supported by the target application, the method includes: sending the list of message types of interest and the list of all message types to a second smart terminal bound to the first smart terminal; and receiving the change instruction returned by the second smart terminal based on the list of message types of interest and the list of all message types.
[0096] In one embodiment, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:
[0097] Obtain a push message and the message type of the push message; determine whether the push message is a target push message based on a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types that the applications are interested in, and the target push message is a message corresponding to a message type that any application in the application-message type table is interested in; when the push message is the target push message, push the push message to the application that is interested in the message type.
[0098] In one embodiment, determining whether the push message is a target push message based on a preset application-message type table and the message type includes: querying and determining whether the message type exists in the application-message type table; and if the message type exists in the application-message type table, determining that the push message is the target push message.
[0099] In one embodiment, the application-message type table will be regenerated after the first smart terminal is restarted; the method also includes: scanning the push configuration preset for all applications on the first smart terminal, wherein the push configuration includes the message type of interest to the application; obtaining the message type of interest to each application according to the push configuration; generating an application-message type table according to the package names of all the applications and the message type of interest to each application, wherein the package name is used to point to the application corresponding to the package name.
[0100] In one embodiment, the push configuration of each application also includes a static broadcast for receiving messages of interest to the application; pushing the push message to the application interested in the message type includes: obtaining the target package name of the application corresponding to the message type of the target push message according to the application-message type table; generating a push broadcast message carrying the target package name and the target push message, and broadcasting the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application corresponding to the target package name receives the push broadcast message.
[0101] In one embodiment, the method further includes: upon obtaining a selection instruction for a target application, obtaining a list of message types of interest for the target application and a list of all message types supported by the target application, wherein the target application is any application in the first smart terminal; upon obtaining a change instruction for the list of message types of interest, selecting a message type from the list of all message types and adding it to the list of message types of interest, or deleting a message type from the list of message types of interest, so as to complete the user's change to the list of message types of interest.
[0102] In one embodiment, after obtaining the list of message types of interest to the target application and the list of all message types supported by the target application, the method includes: sending the list of message types of interest and the list of all message types to a second smart terminal bound to the first smart terminal; and receiving the change instruction returned by the second smart terminal based on the list of message types of interest and the list of all message types.
[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0104] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A push message processing method, It is characterized in that Applied to a first intelligent terminal, the method includes: Obtain a push message and the message type of the push message; Determine whether the push message is a target push message according to a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types that the applications are interested in, and the target push message is a message corresponding to a message type that any application in the application-message type table is interested in; In the case where the push message is the target push message, the push message is pushed to an application program that is interested in the message type.
2. The push message processing method according to claim 1, It is characterized in that The determining whether the push message is a target push message according to the preset application-message type table and the message type includes: Query and determine whether the message type exists in the application-message type table; In a case where the message type exists in the application-message type table, the push message is determined to be the target push message.
3. The push message processing method according to claim 1, It is characterized in that The application-message type table is regenerated after the first intelligent terminal is restarted; the method further includes: Scanning the push configurations preset by all applications on the first smart terminal, wherein the push configurations include message types that the applications are interested in; Obtaining the message type that each application is interested in according to the push configuration; An application-message type table is generated according to the package names of all the applications and the message types that each application is interested in, wherein the package name is used to point to the application corresponding to the package name.
4. The push message processing method according to claim 3, It is characterized in that Each application's push configuration also includes static broadcasts for receiving messages that the application is interested in; The pushing the push message to an application program that is interested in the message type includes: Acquire a target package name of an application corresponding to the message type of the target push message according to the application-message type table; Generate a push broadcast message carrying the target package name and the target push message, and broadcast the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application corresponding to the target package name receives the push broadcast message.
5. The push message processing method according to claim 1, It is characterized in that The method further comprises: In the case of obtaining a selection instruction of a target application, obtaining a list of message types of interest to the target application and a list of all message types supported by the target application, wherein the target application is any application in the first intelligent terminal; When an instruction to change the list of message types of interest is obtained, a message type is selected from the list of all message types and added to the list of message types of interest, or a message type in the list of message types of interest is deleted to complete the user's change of the list of message types of interest.
6. The push message processing method according to claim 5, It is characterized in that After obtaining the list of message types of interest to the target application and the list of all message types supported by the target application, the method further includes: Sending the list of message types of interest and the list of all message types to a second smart terminal bound to the first smart terminal; Receive the change instruction returned by the second intelligent terminal and made according to the list of message types of interest and the list of all message types.
7. A push message processing device, It is characterized in that Applied to a first intelligent terminal, the device comprises: An acquisition module, used to acquire a push message and the message type of the push message; a judgment module, used to judge whether the push message is a target push message according to a preset application-message type table and the message type, wherein the application-message type table is used to reflect the correspondence between applications and message types of interest to the applications, and the target push message is a message corresponding to a message type of interest to any application in the application-message type table; The push module is used for pushing the push message to an application program that is interested in the message type when the push message is the target push message.
8. The push message processing device according to claim 7, It is characterized in that The judging module further includes: A query unit, used to query and determine whether the message type exists in the application-message type table; A determining unit is used to determine that the push message is the target push message if the message type exists in the application-message type table.
9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to execute the steps of the method according to any one of claims 1 to 6.
10. An intelligent terminal, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Notification message filtering and control method, smart phone and system
CN104853043A
Information push method and device
CN104980327A
Information pushing method and device
CN108763433A