WO2023015671A1 - Push message processing method and apparatus, intelligent terminal, and storage medium - Google Patents

Push message processing method and apparatus, intelligent terminal, and storage medium Download PDF

Info

Publication number
WO2023015671A1
WO2023015671A1 PCT/CN2021/118788 CN2021118788W WO2023015671A1 WO 2023015671 A1 WO2023015671 A1 WO 2023015671A1 CN 2021118788 W CN2021118788 W CN 2021118788W WO 2023015671 A1 WO2023015671 A1 WO 2023015671A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
push
application
message type
target
Prior art date
Application number
PCT/CN2021/118788
Other languages
French (fr)
Chinese (zh)
Inventor
欧阳鹏
Original Assignee
广东艾檬电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东艾檬电子科技有限公司 filed Critical 广东艾檬电子科技有限公司
Publication of WO2023015671A1 publication Critical patent/WO2023015671A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the application "Super Curriculum” agrees with the smart watch party that when the "Super Curriculum” application is installed on the smart watch, the types of messages it is interested in are 1 and 2, and the application of "Super Curriculum”
  • the message types that the program party pushes to all smart terminals that have installed the "Super Curriculum” application include 1, 2, 3, and 4. Therefore, when the smart watch receives the push message of the "Super Curriculum", the smart watch The watch will filter out push messages with message types 3 and 4, and only push messages with message types 1 and 2 to the "Super Class Schedule” application.
  • the static broadcast setting in the push configuration of the application program is such that when a broadcast message carrying the package name of the application program is detected, the broadcast message is acquired immediately.
  • the specific preset broadcast process is as follows: set the broadcast action to "$ ⁇ pkgName ⁇ .im.data", where pkgName is the package name of the application; and register the broadcast in the Androidmanifest.xml file as static broadcast. In this way, when the static broadcast listens to the broadcast message whose action format is "$ ⁇ pkgName ⁇ .im.data", it can receive the broadcast message at the first time.
  • the user is a student who is preparing for the postgraduate entrance examination, and needs to pay attention to national political news while concentrating on preparing for the exam. Therefore, by issuing a selection command and a change command, the interested message type list of the entertainment application is empty, and the sense of information application is improved. Remove news types that are not related to politics and social news from the list of news types of interest. After taking the postgraduate entrance examination, you can choose to restore the default setting of the interested message type list, or selectively add back to the interested message type list from all message type lists.

Landscapes

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

Abstract

A push message processing method and apparatus, an intelligent terminal, and a storage medium. The push message processing method comprises: acquiring a push message and a message type of the push message (102); determining, according to a preset application-message type table and the message type, whether the push message is a target push message; and when the push message is the target push message, pushing the push message to an application having an interest in the message type (106). The push message is obtained by means of unified interception, and whether the intercepted push message is a target push message is determined according to the preset application-message type table, thus the effects of pushing a message of interest to the application and intercepting and filtering out a push message not of interest are achieved, the memory requirement and power consumption of a message push service is greatly reduced, the operation of an intelligent terminal is kept smooth and the good usage state of a battery is kept.

Description

推送消息处理方法、装置、智能终端和存储介质Push message processing method, device, smart terminal and storage medium 技术领域technical field
本发明涉及即时通讯技术领域,尤其涉及一种推送消息处理方法、装置、智能终端和存储介质。The present invention relates to the technical field of instant messaging, in particular to a push message processing method, device, intelligent terminal and storage medium.
背景技术Background technique
随着互联网行业和信息技术的发展,各种各样的智能终端被应用于人们的生活当中,人们也习惯于借助这些智能终端去接触生活外的世界,获取世界上正在发生的热点事件的第一手资讯。在此过程中,消息推送是必不可少的服务,基本上安装于智能终端的应用程序都会配置这一服务功能。With the development of the Internet industry and information technology, a variety of smart terminals are used in people's lives, and people are also used to using these smart terminals to contact the world outside of life and obtain first-time information on hot events happening in the world. first-hand information. In this process, message push is an indispensable service, and basically all applications installed on smart terminals will be configured with this service function.
技术问题technical problem
但是对于智能手表等智能终端来说,受限于体积和硬件约束,内存和电池还不能很好地支持安装于其上的所有应用程序都独立运行各自的消息推送服务功能,但是又存在确切的用户场景需求,需要消息推送的服务功能才能达成更好的用户体验,因此,亟需一种推送消息处理方法。However, for smart terminals such as smart watches, limited by size and hardware constraints, the memory and battery cannot well support all the applications installed on them to independently run their respective message push service functions, but there are exact User scenario requirements require the service function of message push to achieve a better user experience. Therefore, a push message processing method is urgently needed.
技术解决方案technical solution
基于此,有必要针对上述问题,提出了一种推送消息处理方法、装置、智能终端及存储介质,以低内存需求、低功耗地实现消息推送服务功能。Based on this, it is necessary to address the above problems and propose a push message processing method, device, smart terminal and storage medium, so as to realize the message push service function with low memory requirements and low power consumption.
第一方面,提供了一种推送消息处理方法,应用于第一智能终端,所述方法包括以下步骤:In a first aspect, a push message processing method is provided, which is applied to a first smart terminal, and the method includes the following steps:
获取推送消息,以及所述推送消息的消息类型;Obtain a push message, and a message type of the push message;
根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;Judging 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 application program and the message that the application program is interested in Type correspondence, the target push message is a message corresponding to a message type that any application in the application-message type table is interested in;
在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。If the push message is the target push message, push the push message to an application program interested in the message type.
在该技术方案中,通过统一拦截获取推送消息,再根据预设的应用程序-消息类型表判断拦截获取的推送消息是否为目标推送消息,只对应用程序-消息类型表上的应用程序提供消息推送服务功能支持,并且达到只给应用程序推送其感兴趣的消息,也即目标推送消息,拦截过滤智能终端不感兴趣的推送消息的效果,本方法可以大大降低消息推送服务功能对内存的需求和功耗,保持智能终端的运行流畅和电池的良好使用状态。In this technical solution, push messages are obtained through unified interception, and then judge whether the intercepted push messages are target push messages according to the preset application-message type table, and only provide messages to the applications on the application-message type table The push service function supports, and achieves the effect of only pushing the messages that the application is interested in, that is, the target push message, and intercepting and filtering the push messages that the smart terminal is not interested in. This method can greatly reduce the demand for the memory of the message push service function and Power consumption, to keep the smart terminal running smoothly and the battery in good condition.
结合第一方面,在一种可能的实现方式中,上述根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,包括:查询并判断所述消息类型是否存在于所述应用程序-消息类型表中;在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。通过查表的方式判断所述推送消息是否为目标推送消息,简单直接,节约运算资源,可以以较快的速度完成关于推送消息是否为目标推送消息的判断。With reference to the first aspect, in a possible implementation manner, the above-mentioned judging whether the push message is a target push message according to the preset application program-message type table and the message type includes: querying and judging the message type Whether it exists in the application program-message type table; if the message type exists in the application program-message type table, determine that the push message is the target push message. Judging whether the push message is a target push message by means of table lookup is simple and direct, saves computing resources, and can complete the judgment on whether the push message is a target push message at a relatively fast speed.
结合第一方面,在一种可能的实现方式中,上述应用程序-消息类型表在所述第一智能终端重启后会重新生成;所述方法还包括:扫描所述第一智能终端上所有应用程序预设的推送配置,其中,所述推送配置包括应用程序感兴趣的消息类型;根据所述推送配置获取每个应用程序感兴趣的消息类型;根据所述所有应用程序的包名和所述每个应用程序感兴趣的消息类型生成应用程序-消息类型表,其中,所述包名用于指向所述包名对应的应用程序。通过预设应用程序与其感兴趣的消息类型的对应关系,确定了哪些推送消息需要接收、哪些推送消息可以过滤,所有的所述对应关系生成应用程序-消息类型表,以进行对推送消息的有效处理;应用程序-消息类型表在智能终端重启后生成,可以及时根据智能终端上应用的变化情况和更新情况更新所述应用程序-消息类型表。With reference to the first aspect, in a possible implementation manner, the above-mentioned application program-message type table will be regenerated after the first smart terminal is restarted; the method further includes: scanning all the application programs on the first smart terminal The push configuration preset by the program, wherein the push configuration includes the message type that the application program is interested in; obtain the message type that each application program is interested in according to the push configuration; according to the package names of all the application programs and the each An application-message type table is generated for a message type that an application program is interested in, wherein the package name is used to point to the application program corresponding to the package name. By presetting the corresponding relationship between the application program and the message type it is interested in, it is determined which push messages need to be received and which push messages can be filtered, and all the corresponding relationships generate an application program-message type table to carry out effective push messages Processing; the application-message type table is generated after the smart terminal restarts, and the application-message type table can be updated in time according to the changes and updates of the applications on the smart terminal.
结合第一方面,在一种可能的实现方式中,每个应用程序的推送配置还包括用于接收应用程序感兴趣的消息的静态广播;所述将所述推送消息推送至对所述消息类型感兴趣的应用程序,包括:根据所述应用程序-消息类型表获取与所述目标推送消息的消息类型对应的应用程序的目标包名;生成携带所述目标包名和所述目标推送消息的推送广播消息,并向所述第一智能终端中的所有应用程序广播所述推送广播消息,以使所述目标包名对应的应用程序的静态广播接收所述推送广播消息。以静态广播的形式接收推送消息,可以在静态广播较长的生命周期内持续对消息推送服务功能进行监听,当有应用程序感兴趣的消息被广播时,可以第一时间获取。With reference to the first aspect, in a possible implementation manner, the push configuration of each application program further includes a static broadcast for receiving messages that the application program is interested in; The interested application program includes: obtaining the target package name of the application program corresponding to the message type of the target push message according to the application program-message type table; generating a push message carrying the target package name and the target push message Broadcasting a message, and broadcasting the push broadcast message to all applications in the first smart terminal, so that the static broadcast of the application program corresponding to the target package name receives the push broadcast message. Receive push messages in the form of static broadcasts, and you can continuously monitor the message push service function during the long life cycle of static broadcasts. When a message that the application is interested in is broadcast, you can get it immediately.
结合第一方面,在一种可能的实现方式中,上述方法还包括:在获取到目标应用程序的选中指令的情况下,获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表,所述目标应用程序为所述第一智能终端中的任一应用程序;在获取到对所述感兴趣的消息类型列表的更改指令的情况下,从所述所有消息类型列表中选取消息类型添加至所述感兴趣的消息类型列表中,或将所述感兴趣的消息类型列表中的消息类型删除,以完成用户对所述感兴趣的消息类型列表的更改。用户通过下达选中指令和更改指令,可以在应用程序默认的推送配置的基础上进行二次配置,根据用户自身偏好调整智能终端对推送消息的接收设置。With reference to the first aspect, in a possible implementation manner, the above method further includes: in a case where the selection instruction of the target application is obtained, acquiring the interested message type list of the target application and the target application The program supports receiving all message type lists, and the target application program is any application program in the first smart terminal; in the case of obtaining a change instruction to the message type list of interest, from the Select a message type from all message type lists and add it to the interested message type list, or delete a message type in the interested message type list to complete the user's modification of the interested message type list . By issuing selection instructions and modification instructions, the user can perform secondary configuration on the basis of the default push configuration of the application, and adjust the receiving settings of the smart terminal for push messages according to the user's own preferences.
结合第一方面,在一种可能的实现方式中,上述在所述获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表之后,包括:将所述感兴趣的消息类型列表和所述所有消息类型列表发送至与所述第一智能终端绑定的第二智能终端;接收所述第二智能终端返回的根据所述感兴趣的消息类型列表和所述所有消息类型列表作出的所述更改指令。通过第二智能终端对第一智能终端的推送消息接收设置进行控制,拓展了应用场景,包括通过大屏幕的第二智能终端对小屏幕的第一智能终端的推送服务进行控制或设置,还包括家长的第二智能终端对孩子的第一智能终端的推送服务进行控制或设置。With reference to the first aspect, in a possible implementation manner, after acquiring 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: The message type list of interest and the list of all message types are sent to the second smart terminal bound to the first smart terminal; The change instruction made to the list of all message types. The push message receiving setting of the first smart terminal is controlled by the second smart terminal, which expands the application scenarios, including controlling or setting the push service of the first smart terminal of the small screen through the second smart terminal of the large screen, and also includes The parent's second smart terminal controls or sets the push service of the child's first smart terminal.
第二方面,提供了一种推送消息处理装置,其特征在于,应用于第一智能终端,所述装置包括:In a second aspect, there is provided a push message processing device, which is applied to a first smart terminal, and the device includes:
获取模块,用于获取推送消息,以及所述推送消息的消息类型;An acquisition module, configured to acquire a push message, and a message type of the push message;
判断模块,用于根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;A judging module, 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 application and the application The corresponding relationship between the message types that the program is interested in, and the target push message is the message corresponding to the message type that any application program is interested in in the application program-message type table;
推送模块,用于在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。A push module, configured to push the push message to an application interested in the message type when the push message is the target push message.
第三方面,提供智能终端,包括存储器以及一个或多个处理器,一个或多个处理器用于执行存储在存储器中的一个或多个计算机程序,一个或多个处理器在执行一个或多个计算机程序时,使得该智能终端实现上述第一方面的推送消息处理方法。In a third aspect, an intelligent terminal is provided, including memory and one or more processors, one or more processors are used to execute one or more computer programs stored in the memory, one or more processors are executing one or more In the case of a computer program, the smart terminal is configured to implement the push message processing method in the first aspect above.
第四方面,提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,上述程序指令当被处理器执行时使上述处理器执行上述第一方面的推送消息处理方法。In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When executed by a processor, the above-mentioned program instructions cause the above-mentioned processor to execute the push message of the above-mentioned first aspect. Approach.
有益效果Beneficial effect
本申请可以实现如下有益效果:可以实现对智能终端接收到的推送消息进行统一的管理和分发,解决了对于智能手表等体积较小的智能终端在支持消息推送服务功能时内存吃紧和功耗较大的问题。This application can achieve the following beneficial effects: it can realize the unified management and distribution of push messages received by smart terminals, and solve the problem of memory shortage and power consumption when small smart terminals such as smart watches support the message push service function. Big question.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
其中:in:
图1为本申请实施例提供的一种推送消息处理方法的实施流程图;FIG. 1 is an implementation flowchart of a push message processing method provided in an embodiment of the present application;
图2为本申请实施例提供的一种应用程序安装的流程图;Fig. 2 is a flow chart of application program installation provided by the embodiment of the present application;
图3为本申请实施例提供的一种应用程序-消息类型表的生成方法实施流程图;FIG. 3 is an implementation flowchart of a method for generating an application-message type table provided by an embodiment of the present application;
图4为本申请实施例提供的又一种推送消息处理方法的流程图;FIG. 4 is a flow chart of another push message processing method provided by the embodiment of the present application;
图5为本申请实施例提供的一种推送消息处理装置的结构框图;FIG. 5 is a structural block diagram of a push message processing device provided in an embodiment of the present application;
图6为本申请实施例提供的又一种推送消息处理装置的结构框图;FIG. 6 is a structural block diagram of another push message processing device provided in the embodiment of the present application;
图7为本申请实施例提供的一种智能终端的结构框图。FIG. 7 is a structural block diagram of an intelligent terminal provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
随着人们生活水平的提高和物联网技术的发展,智能穿戴已经在快速普及,包括智能手表、智能手环、智能眼镜等智能终端,它们应用于运动场景、学校场景、水下工作场景、残疾人生活等场景中,补充人们生活中电脑和智能手机无法满足的空白。但是,对于智能手机、平板等体积足够大的智能终端,其配备的标准大小的处理器、内存单元和电池,足以支撑安装在智能终端上的应用程序独立运行各自完整的服务功能;而对于智能手表等智能终端受限于体积和硬件,只能采取性能较弱的部件以满足体积上的要求,显然,此类智能终端还无法完全复现电脑或手机的性能与功能。With the improvement of people's living standards and the development of Internet of Things technology, smart wear has been rapidly popularized, including smart watches, smart bracelets, smart glasses and other smart terminals, which are used in sports scenes, school scenes, underwater work scenes, disability In scenarios such as people's lives, it fills the gaps in people's lives that computers and smartphones cannot meet. However, for smart terminals with sufficient volume, such as smartphones and tablets, the standard-sized processors, memory units, and batteries that are equipped with them are sufficient to support the applications installed on the smart terminals to independently run their own complete service functions; Smart terminals such as watches are limited by size and hardware, and can only use weaker components to meet the volume requirements. Obviously, such smart terminals cannot fully reproduce the performance and functions of computers or mobile phones.
因此,以智能手表等体积较小的智能终端给人们提供智能服务时,需要设计新的方法,在硬件限制的条件下满足用户的功能需求的目的。Therefore, when providing smart services to people with smaller smart terminals such as smart watches, it is necessary to design a new method to meet the functional requirements of users under the condition of hardware limitations.
即时通讯(Instant Messaging,简称 IM)是应用程序中常见,甚至在一定程度上必备的功能之一,它是一个实时通信功能,允许双方或多方使用网络实时的传递文字消息、文件、语音与视频交流。对于服务商与用户之间的即时通讯场景,一般为消息推送,如手机终端每天都会接收到各个应用程序推送的热点新闻、兴趣推荐等消息。具体到智能手表等体积较小的智能终端上时,以智能手表为例,随着智能穿戴市场的兴起,许多常见的应用程序都已开发出了适用于智能手表的版本,如微信、网易云音乐、腕上Bilibili等,可以想到,如果每个应用程序均独立运行各自的消息推送功能,会增大智能手表的内存开销,导致手表卡顿;同时也会增大功耗,造成电量飞速下降。另外,有许多应用程序的推送消息对于智能手表或智能手表用户来说是完全不需要的,如在不支持视频播放的智能手表上推送视频消息等。因此,需要一种推送消息处理方法。Instant Messaging (IM for short) 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, audio and Video communication. For the instant messaging scenario between the service provider and the user, it is generally a message push. For example, a mobile terminal receives hot news, interest recommendations and other messages pushed by various applications every day. When it comes to smaller smart terminals such as smart watches, take 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 and Netease Cloud. For music, Bilibili on the wrist, etc., it is conceivable that if each application runs its own message push function independently, 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, resulting in a rapid drop in power . 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.
本发明实施例的技术方案适用于智能终端,尤其是智能手表、智能手环、智能眼镜等因为体积较小的原因导致内存空间和电池容量较小的智能终端。通过以单独的消息推送服务功能对智能终端上的所有应用程序的推送消息进行统一接收、过滤和分发,降低了消息推送服务所需要的内存和功耗,又一定程度上保存了需要消息推送的场景下用户的体验。The technical solutions of the embodiments of the present invention are applicable to smart terminals, especially smart terminals such as smart watches, smart bracelets, and smart glasses, which have 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 the push messages of all applications on the smart terminal, the memory and power consumption required by the message push service are reduced, and the information required for message push is saved to a certain extent. User experience in the context.
在本申请文档中,发明的具体实施例以搭载安卓系统的智能终端为例进行说明,可以理解的是,以其他智能系统和智能终端,如搭载了苹果、Linux或鸿蒙等系统的其他类型的智能终端作为执行主体,实现与本发明技术特征相同或相似的方法,均处于本发明的保护范围之内。In this application document, the specific embodiments of the invention are described by taking the smart terminal equipped with the Android system as an example. It is understandable that other smart systems and smart terminals, such as other types of smart terminals equipped with Apple, Linux, or As the execution subject, the intelligent terminal implements the same or similar method as the technical features of the present invention, all of which fall within the protection scope of the present invention.
以下具体介绍本申请的技术方案。The technical solution of the present application is introduced in detail below.
参见图1,图1为本申请实施例提出的一种推送消息处理方法,应用于第一智能终端,所述方法包括以下步骤:Referring to FIG. 1, FIG. 1 is a push message processing method proposed by an embodiment of the present application, which is applied to a first smart terminal, and the method includes the following steps:
步骤102,获取推送消息,以及所述推送消息的消息类型。Step 102, acquire the push message and the message type of the push message.
其中,第一智能终端为执行本方法的智能终端,其中的“第一”仅为与后续的“第二智能终端”区别,并无具体含义,也不构成限定。Wherein, the first smart terminal is the smart terminal that executes the method, and the "first" is only used to distinguish it from the subsequent "second smart terminal", which has no specific meaning and does not constitute a limitation.
其中,推送消息是指智能终端上安装的应用程序向所述智能终端推送的消息,如微博应用程序推送的时事讯息、娱乐新闻,天气相关应用程序推送的天气预报等。消息类型指的是推送消息根据不同划分标准划分得到的类型属性,如按照技术属性划分,推送消息类型包括文本消息、图片消息和视频消息;如按照业务属性划分,则推送消息类型包括新闻资讯类、营销活动类和系统功能类;也可以将技术属性和业务属性混合后进行更细致的划分,如新闻资讯-文字类等。Wherein, the push message refers to the message pushed by the application program installed on the smart terminal to the smart terminal, such as current affairs information and entertainment news pushed by the Weibo application program, and weather forecast pushed by the weather-related application program. The message type refers to the type attribute of the push message according to different classification standards. For example, according to the technical attribute, the push message type includes text message, picture message and video message; if it is divided according to the business attribute, the push message type includes news information , marketing activities, and system functions; technical attributes and business attributes can also be mixed to make more detailed divisions, such as news information-text, etc.
需要说明的是,消息类型具有唯一标识代码,消息类型的名称相同不代表消息类型本身是等同的,如微博和网易新闻的推送消息类型中都有“新闻资讯类”,但是二者的唯一标识代码可能分别是10000-1和32005-2;而同一公司或同一系列的应用程序,对消息类型所使用的唯一标识代码可以是一致的。It should be noted that the message type has a unique identification code, and the same name of the message type does not mean that the message types themselves are equivalent. For example, both Weibo and Netease News have "news information" in the push message types, but the uniqueness of the two The identification codes may be 10000-1 and 32005-2 respectively; and the same company or the same series of application programs may use the same unique identification codes for message types.
其中,应用程序方与智能终端方预先约定,当应用程序安装于所述智能终端时,在所述应用程序的推送配置中预设所述应用程序感兴趣的消息类型,以使所述智能终端收到推送消息后判断所述推送消息是否为所述应用程序感兴趣的消息,从而进行过滤处理;另外还在所述应用程序的推送配置中预设了用于接收应用程序感兴趣的消息的静态广播,以使在所述智能终端接收到所述应用程序感兴趣的推送消息后第一时间被所述应用程序获取,不会发生因为应用程序未运行导致推送消息获取延迟甚至导致丢失的情况。Wherein, the application program side and the smart terminal side pre-agreed that when the application program is installed on the smart terminal, the message type that the application program is interested in is preset in the push configuration of the application program, so that the smart terminal After receiving the push message, it is judged whether the push message is a message that the application program is interested in, so as to perform filtering processing; in addition, the push configuration for receiving the application program is preset in the push configuration. Static broadcasting, so that after the smart terminal receives the push message that the application program is interested in, it will be acquired by the application program at the first time, and there will be no delay or even loss of push message acquisition because the application program is not running .
如图2所示,应用程序A\B\C的应用程序方按照约定将应用程序A\B\C感兴趣的消息类型和对应的静态广播预设于应用程序的安装包中,用户再在智能终端上安装所述应用程序A\B\C。As shown in Figure 2, the application side of application A\B\C presets the message types and corresponding static broadcasts that application A\B\C is interested in in the application installation package according to the agreement, and the user then The application programs A\B\C are installed on the smart terminal.
例如,应用程序“超级课程表”与智能手表方约定,当“超级课程表”应用程序安装于所述智能手表时,其感兴趣的消息类型为1和2,而“超级课程表”的应用程序方对所有安装了“超级课程表”应用程序的智能终端推送消息的消息类型包括1、2、3、4,因此,所述智能手表在获取到“超级课程表”的推送消息时,智能手表会过滤掉消息类型为3和4的推送消息,只将消息类型为1和2的推送消息推送给“超级课程表”应用程序。For example, the application "Super Curriculum" agrees with the smart watch party that when the "Super Curriculum" application is installed on the smart watch, the types of messages it is interested in are 1 and 2, and the application of "Super Curriculum" The message types that the program party pushes to all smart terminals that have installed the "Super Curriculum" application include 1, 2, 3, and 4. Therefore, when the smart watch receives the push message of the "Super Curriculum", the smart watch The watch will filter out push messages with message types 3 and 4, and only push messages with message types 1 and 2 to the "Super Class Schedule" application.
其中,智能终端获取到智能终端方的平台服务器转发的推送消息时,由智能终端上的消息推送服务功能统一拦截、管理和过滤,再获取所述推送消息中包含的消息类型信息。这样,智能终端上只需要维持一个消息推送服务功能,对所述平台服务器分发的消息进行接收即可,相较每个应用程序运行各自的消息推送服务功能,大大降低了内存需求和功耗。Wherein, when the smart terminal obtains the push message forwarded by the platform server of the smart terminal side, the message push service function on the smart terminal intercepts, manages and filters it uniformly, and then obtains the message type information contained in the push message. In this way, only one message push service function needs to be maintained on the smart terminal to receive the messages distributed by the platform server. Compared with each application running its own message push service function, memory requirements and power consumption are greatly reduced.
在一些可能的实施例中,在所述平台服务器接收推送消息时就进行过滤工作,例如,“超级课程表”应用程序方对所述平台服务器推送消息,其中包括消息类型为1、2、3或4的多条消息,所述平台服务器按照约定直接将应用程序不感兴趣的消息类型为3和4的推送消息过滤,将消息类型为1和2的推送消息分发给具体的智能终端。In some possible embodiments, the filtering work is performed when the platform server receives the push message, for example, the "Super Curriculum" application side pushes the message to the platform server, including message types 1, 2, 3 or 4, the platform server directly filters the push messages of message types 3 and 4 that the application program is not interested in according to the agreement, and distributes the push messages of message types 1 and 2 to specific smart terminals.
步骤104,根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息。Step 104, judging whether the push message is a target push message according to the preset application-message type table and the message type, wherein the application-message type table is used to reflect the application program and the application program Corresponding relationship between interested message types, the target push message is a message corresponding to a message type that any application in the application-message type table is interested in.
其中,应用程序-消息类型表是预设于智能终端中的映射表,用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,在所述智能终端重启后会重新生成,以更新所述应用程序-消息类型表。Wherein, the application program-message type table is a mapping table preset in the smart terminal, which is used to reflect the corresponding relationship between the application program and the message type that the application program is interested in, and will be regenerated after the smart terminal is restarted, so as to The application-message-type table is updated.
如图3所示,在一些可能的实施例中,所述应用程序-消息类型表的生成包括以下步骤:As shown in Figure 3, in some possible embodiments, the generation of the application-message type table includes the following steps:
步骤302,扫描智能终端上所有应用程序预设的推送配置。Step 302, scanning the preset push configurations of all application programs on the smart terminal.
其中,如前所述,所述推送配置包括应用程序感兴趣的消息类型。Wherein, as mentioned above, the push configuration includes message types that the application program is interested in.
步骤304,根据所述推送配置获取每个应用程序感兴趣的消息类型。Step 304, obtain the message type that each application is interested in according to the push configuration.
其中,智能终端遍历每个应用的推送配置,获取到每个应用程序的包名和感兴趣的消息类型。具体地,在采用安卓系统的智能终端中,智能终端遍历每个应用程序的Androidmanifest.xml文件,从其中配置的meta-data数据中获取到name定义为固定的SYNC_MSG_TYPE对应配置的value值,解析所述value值得到当前应用程序感兴趣的消息类型。Wherein, the smart terminal traverses the push configuration of each application, and obtains the package name and interested message type of each application. Specifically, in the smart terminal using the Android system, the smart terminal traverses the Androidmanifest.xml file of each application program, obtains the value corresponding to the SYNC_MSG_TYPE whose name is defined as fixed from the meta-data data configured therein, and parses the The above value value gets the message type that the current application is interested in.
步骤306,根据所述所有应用程序的包名和所述每个应用程序感兴趣的消息类型生成应用程序-消息类型表,其中,所述包名用于指向所述包名对应的应用程序。Step 306 , generating an application-message type table according to the package names of all the applications and the message types each application is interested in, wherein the package names are used to point to the applications corresponding to the package names.
具体地,新建一个list表记录解析得到的应用程序感兴趣的推送类型,并将所述应用程序的包名和list集合中所述应用程序感兴趣的消息类型建立映射关系,得到应用程序-消息类型表。Specifically, create a new list table to record the push type that the application program is interested in, and establish a mapping relationship between the package name of the application program and the message type that the application program is interested in in the list set, and obtain the application program-message type surface.
可以理解的是,部分应用程序没有在推送配置中预设感兴趣的消息类型,则说明该部分应用程序不需要消息推送服务功能的支持。It can be understood that some applications do not preset the message type of interest in the push configuration, which means that some applications do not need the support of the message push service function.
在一些可能的实施例中,在智能终端安装了新应用程序的情况下,智能终端扫描所述新应用程序的推送配置,获取到所述新应用程序的包名和新应用程序感兴趣的消息类型的映射关系后,将所述映射关系更新至应用程序-消息类型表中。In some possible embodiments, when a new application is installed on the smart terminal, the smart terminal scans the push configuration of the new application to obtain the package name of the new application and the type of message the new application is interested in After the mapping relationship, update the mapping relationship to the application-message type table.
在一个实施例中,所述根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,包括:查询并判断所述消息类型是否存在于所述应用程序-消息类型表中;在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。In one embodiment, the 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 - in a message type table; if the message type exists in the application-message type table, determine that the push message is the target push message.
其中,根据前述内容可知,应用程序-消息类型表中记录的是应用程序包名和应用程序感兴趣的消息类型的映射关系,只要推送消息的消息类型存在于所述应用程序-消息类型表中,说明智能终端中的一个或多个应用程序对所述推送消息感兴趣,进而可以判断所述推送消息为所述目标推送消息。Wherein, according to the foregoing content, it can be known that the application program-message type table records the mapping relationship between the application program package name and the message type that the application program is interested in, as long as the message type of the push message exists in the application program-message type table, It shows that one or more application programs 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.
通过查表的方式判断所述推送消息是否为目标推送消息,简单直接,节约运算资源,可以以较快的速度完成关于推送消息是否为目标推送消息的判断。Judging whether the push message is a target push message by means of table lookup is simple and direct, saves computing resources, and can complete the judgment on whether the push message is a target push message at a relatively fast speed.
步骤106,在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。Step 106, if the push message is the target push message, push the push message to an application program interested in the message type.
其中,当智能终端判断所述推送消息为目标推送消息时,以广播的方式将所述目标推送消息推送给对所述消息类型感兴趣的应用程序。Wherein, when the smart terminal judges that the push message is a target push message, the smart terminal pushes the target push message to application programs interested in the message type in a broadcast manner.
在一个实施例中,每个应用程序的推送配置还包括用于接收应用程序感兴趣的消息的静态广播;所述将所述推送消息推送至对所述消息类型感兴趣的应用程序,包括:根据所述应用程序-消息类型表获取与所述目标推送消息的消息类型对应的应用程序的目标包名;生成携带所述目标包名和所述目标推送消息的推送广播消息,并向所述第一智能终端中的所有应用程序广播所述推送广播消息,以使所述目标包名对应的应用程序的静态广播接收所述推送广播消息。In one embodiment, the push configuration of each application program also includes a static broadcast for receiving messages that the application program is interested in; the pushing the push message to the application program that is interested in the message type includes: Obtain the target package name of the application program corresponding to the message type of the target push message according to the application program-message type table; generate a push broadcast message carrying the target package name and the target push message, and send to the second push message All application programs in an intelligent terminal broadcast the push broadcast message, so that the static broadcast of the application program corresponding to the target package name receives the push broadcast message.
其中,应用程序的推送配置中的静态广播设置为监听到有携带所述应用程序的包名的广播消息时,立刻获取该广播消息。具体的预设广播的流程为,将广播的action设置为“${pkgName}.im.data”,其中pkgName为所述应用程序的包名;并将所述广播在Androidmanifest.xml文件中注册为静态广播。这样,所述静态广播在监听到action格式为“${pkgName}.im.data”的广播消息时,可以第一时间对所述广播消息进行接收。Wherein, the static broadcast setting in the push configuration of the application program is such that when a broadcast message carrying the package name of the application program is detected, the broadcast message is acquired immediately. The specific preset broadcast process is as follows: set the broadcast action to "${pkgName}.im.data", where pkgName is the package name of the application; and register the broadcast in the Androidmanifest.xml file as static broadcast. In this way, when the static broadcast listens to the broadcast message whose action format is "${pkgName}.im.data", it can receive the broadcast message at the first time.
在应用程序方和智能终端方的约定中,当智能终端判定推送消息为目标推送消息时,获取对所述目标推送消息感兴趣的应用程序的包名,并生成携带所述目标包名和所述目标推送消息的推送广播消息,最后向所述智能终端中的所有应用程序广播所述推送广播消息。具体地,智能终端根据所述目标包名和所述目标推送消息生成action格式为“${pkgName}.im.data”的推送广播消息,并广播向所述智能终端中的所有应用程序。In the agreement between the application program side and the smart terminal side, when the smart terminal determines that the push message is a target push message, it obtains the package name of the application program that is interested in the target push message, and generates a package name carrying the target package name and the The push broadcast message of the target push message, and finally broadcast the push broadcast message to all applications in the smart terminal. Specifically, the smart terminal generates a push broadcast message with an 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.
需要说明的是,以静态广播的形式接收推送消息,可以在静态广播较长的生命周期内持续对消息推送服务功能进行监听,即使应用程序当前未处于启动或运行状态,当有应用程序感兴趣的消息被广播时,也可以第一时间获取智能终端推送的广播消息。It should be noted that receiving push messages in the form of static broadcasts can continuously monitor the message push service function during the long life cycle of static broadcasts. Even if the application is not currently started or running, when an application is interested When the message is broadcast, you can also get the broadcast message pushed by the smart terminal at the first time.
请参阅图4,图4为又一种实施例中的推送消息处理方法的流程图,智能终端方的平台服务器在接收到应用程序服务器发来的推送消息后,分发给各个智能终端后,由智能终端的消息推送服务功能进行统一拦截处理;再获取推送消息的消息类型,并在应用程序-消息类型表中查询是否存在所述消息类型;若存在,则将所述推送消息推送至对所述推送消息感兴趣的应用程序;若不存在,则丢弃所述推送消息。Please refer to FIG. 4. FIG. 4 is a flow chart of a push message processing method in another embodiment. After the platform server on the smart terminal side receives the push message from the application program server and distributes it to each smart terminal, the The message push service function of the smart terminal performs unified interception processing; then obtains the message type of the push message, and inquires whether the message type exists in the application program-message type table; if it exists, then pushes the push message to all The application program that is interested in the push message; if it does not exist, the push message is discarded.
上述推送消息处理方法,通过统一拦截获取推送消息,再根据预设的应用程序-消息类型表判断拦截获取的推送消息是否为目标推送消息,只对应用程序-消息类型表上的应用程序提供消息推送服务功能支持,并且达到只给应用程序推送其感兴趣的消息,也即目标推送消息,拦截过滤智能终端不感兴趣的推送消息的效果,本方法可以大大降低消息推送服务功能对内存的需求和功耗,保持智能终端的运行流畅和电池的良好使用状态。The above push message processing method obtains push messages through uniform interception, and then judges whether the intercepted push messages are target push messages according to the preset application program-message type table, and only provides messages to the applications on the application program-message type table The push service function supports, and achieves the effect of only pushing the messages that the application is interested in, that is, the target push message, and intercepting and filtering the push messages that the smart terminal is not interested in. This method can greatly reduce the demand for the memory of the message push service function and Power consumption, to keep the smart terminal running smoothly and the battery in good condition.
在一个实施例中,所述方法还包括:在获取到目标应用程序的选中指令的情况下,获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表,所述目标应用程序为所述第一智能终端中的任一应用程序;在获取到对所述感兴趣的消息类型列表的更改指令的情况下,从所述所有消息类型列表中选取消息类型添加至所述感兴趣的消息类型列表中,或将所述感兴趣的消息类型列表中的消息类型删除,以完成用户对所述感兴趣的消息类型列表的更改。In one embodiment, the method further includes: in the case of obtaining the selection instruction of the target application program, obtaining a list of message types of interest of the target application program and all message types supported by the target application program list, the target application program is any application program in the first smart terminal; in the case of obtaining the modification instruction for the interested message type list, select a message from the list of all message types Types are added to the list of message types of interest, or message types in the list of message types of interest are deleted, so as to complete the modification of the list of message types of interest by the user.
其中,目标应用程序的选中指令用于选中第一智能终端中的任一应用程序作为目标应用程序,所述选中指令可以为用户通过第一智能终端下达,也可以通过第一智能终端之外的第二、第三等智能终端下达;目标应用程序的感兴趣的消息类型列表反映了目标应用程序当前时刻感兴趣的一个或多个消息类型,目标应用程序支持接收的所有消息类型列表反映的是目标应用程序支持接收的、可感兴趣的消息类型。Wherein, the selection instruction of the target application program is used to select any application program in the first smart terminal as the target application program, and the selection instruction can be issued by the user through the first smart terminal, or through a The second, third, etc. intelligent terminal issued; the target application's interested message type list reflects one or more message types that the target application program is currently interested in, and the list of all message types supported by the target application program reflects the The types of messages that the target application supports to receive and are of interest to.
其中,对所述感兴趣的消息类型列表的更改指令用于对所述感兴趣的消息类型列表进行调整和更改,同样地,也可以为用户通过第一智能终端下达,也可以通过第一智能终端之外的第二、第三等智能终端下达。Wherein, the modification instruction to the list of message types of interest is used to adjust and modify the list of message types of interest. The second, third and other intelligent terminals other than the terminal are issued.
例如,用户为备战考研的学生,在专心备考的同时需要关注国家政治新闻,因此通过下达选中指令和更改指令,将娱乐性应用程序的感兴趣的消息类型列表置空,资讯类应用程序的感兴趣的消息类型列表中移除与政治、社会新闻不相关的消息类型。在考研后,可以选择将所述感兴趣的消息类型列表恢复默认设置,也可以选择性地从所有消息类型列表中添加回所述感兴趣的消息类型列表。For example, the user is a student who is preparing for the postgraduate entrance examination, and needs to pay attention to national political news while concentrating on preparing for the exam. Therefore, by issuing a selection command and a change command, the interested message type list of the entertainment application is empty, and the sense of information application is improved. Remove news types that are not related to politics and social news from the list of news types of interest. After taking the postgraduate entrance examination, you can choose to restore the default setting of the interested message type list, or selectively add back to the interested message type list from all message type lists.
用户通过下达选中指令和更改指令,可以在应用程序默认的推送配置的基础上进行二次配置,根据用户自身偏好调整智能终端对推送消息的接收设置,使得智能终端提供的服务更符合用户需求。The user can perform secondary configuration on the basis of the default push configuration of the application by issuing the selection instruction and the modification instruction, and adjust the smart terminal's receiving settings for push messages according to the user's own preferences, so that the services provided by the smart terminal are more in line with user needs.
在一个实施例中,在所述获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表之后,包括:将所述感兴趣的消息类型列表和所述所有消息类型列表发送至与所述第一智能终端绑定的第二智能终端;接收所述第二智能终端返回的根据所述感兴趣的消息类型列表和所述所有消息类型列表作出的所述更改指令。In one embodiment, after obtaining the list of message types of interest of the target application program and the list of all message types supported by the target application program, it includes: combining the list of message types of interest and the list of message types Send the list of all message types to the second smart terminal bound to the first smart terminal; receive the information returned by the second smart terminal based on the list of message types of interest and the list of all message types Change instructions described above.
其中,通过两个智能终端间的绑定关系,第二智能终端对第一智能终端的推送消息接收设置进行控制,应用场景可以是用户通过大屏幕的第二智能终端对小屏幕的第一智能终端的推送服务进行控制或设置,操作更加方便;还可以是家长的第二智能终端对孩子的第一智能终端的推送服务进行控制或设置,使得家长对孩子的娱乐情况进行把控。Wherein, 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 push service of the terminal is controlled or set, and the operation is more convenient; 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.
上述介绍了本申请的方法,为了更好地实施本申请的方法,接下来介绍本申请的装置。The method of the present application has been introduced above, and in order to better implement the method of the present application, the device of the present application will be introduced next.
如图5所示,在一个实施例中,提供了一种推送消息处理装置,其特征在于,应用于第一智能终端,所述装置包括:As shown in Figure 5, in one embodiment, a device for processing push messages is provided, which is characterized in that it is applied to a first smart terminal, and the device includes:
获取模块10,用于获取推送消息,以及所述推送消息的消息类型;An acquisition module 10, configured to acquire a push message, and a message type of the push message;
判断模块20,用于根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;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 application program and the message type The corresponding relationship of the message types that the application program is interested in, and the target push message is the message corresponding to the message type that any application program is interested in in the application program-message type table;
推送模块30,用于在所述推送消息为所述目标推送消息的情况下,将所述推送消息发送至对所述消息类型感兴趣的应用程序。The push module 30 is configured to send the push message to an application interested in the message type if the push message is the target push message.
如图6所示,在一个实施例中,所述判断模块20还包括:查询单元210,用于查询并判断所述消息类型是否存在于所述应用程序-消息类型表中;确定单元220,用于在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。As shown in FIG. 6, in one embodiment, the judgment module 20 further includes: a query unit 210, configured to query and judge whether the message type exists in the application-message type table; a determination unit 220, It is used for determining that the push message is the target push message when the message type exists in the application program-message type table.
在一个实施例中,所述装置还包括:扫描模块,用于扫描所述第一智能终端上所有应用程序预设的推送配置,其中,所述推送配置包括应用程序感兴趣的消息类型;获取消息类型模块,用于根据所述推送配置获取每个应用程序感兴趣的消息类型;生成模块,用于根据所述所有应用程序的包名和所述每个应用程序感兴趣的消息类型生成应用程序-消息类型表,其中,所述包名用于指向所述包名对应的应用程序。In one embodiment, the device further includes: a scanning module, configured to scan the preset push configurations of all applications on the first smart terminal, wherein the push configurations include message types that the applications are interested in; obtain The message type module is used to obtain the message type that each application program is interested in according to the push configuration; the generation module is used to generate the application program according to the package names of all the application programs and the message type that each application program is interested in - a message type table, wherein the package name is used to point to the application program corresponding to the package name.
在一个实施例中,所述推送模块30还用于根据所述应用程序-消息类型表获取与所述目标推送消息的消息类型对应的应用程序的目标包名;所述推送模块30还用于生成携带所述目标包名和所述目标推送消息的推送广播消息,并向所述第一智能终端中的所有应用程序广播所述推送广播消息,以使所述目标包名对应的应用程序的静态广播接收所述推送广播消息。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 information of the application program corresponding to the target package name broadcasting and receiving the push broadcast message.
在一个实施例中,所述装置还包括:列表模块,用于在获取到目标应用程序的选中指令的情况下,获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表,所述目标应用程序为所述第一智能终端中的任一应用程序;更改模块,用于在获取到对所述感兴趣的消息类型列表的更改指令的情况下,从所述所有消息类型列表中选取消息类型添加至所述感兴趣的消息类型列表中,或将所述感兴趣的消息类型列表中的消息类型删除,以完成用户对所述感兴趣的消息类型列表的更改。In one embodiment, the device further includes: a list module, configured to obtain a list of message types of interest of the target application and the list of message types supported by the target application when the selection instruction of the target application is obtained. A list of all message types received, the target application program is any application program in the first smart terminal; a modification module, configured to obtain a modification instruction to the list of message types of interest, 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 types in the list of message types of interest to complete the user's interest in the message type List changes.
在一个实施例中,所述装置还包括:通信模块,用于将所述感兴趣的消息类型列表和所述所有消息类型列表发送至与所述第一智能终端绑定的第二智能终端;接收模块,用于接收所述第二智能终端返回的根据所述感兴趣的消息类型列表和所述所有消息类型列表作出的所述更改指令。In one embodiment, the device further includes: a communication module, configured to send 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, configured to receive the modification instruction returned by the second smart terminal based on the list of interested message types and the list of all message types.
上述推送消息处理装置,通过统一拦截获取推送消息,再根据预设的应用程序-消息类型表判断拦截获取的推送消息是否为目标推送消息,只对应用程序-消息类型表上的应用程序提供消息推送服务功能支持,并且达到只给应用程序推送其感兴趣的消息,也即目标推送消息,拦截过滤智能终端不感兴趣的推送消息的效果,本装置可以大大降低消息推送服务功能对内存的需求和功耗,保持智能终端的运行流畅和电池的良好使用状态。The above-mentioned push message processing device obtains the push message by unified interception, and then judges whether the intercepted push message is a target push message according to the preset application program-message type table, and only provides messages to the applications on the application program-message type table The push service function supports, and achieves the effect of only pushing messages of interest to the application program, that is, the target push message, intercepting and filtering the push messages that the smart terminal is not interested in, and this device can greatly reduce the demand for the memory of the message push service function and Power consumption, to keep the smart terminal running smoothly and the battery in good condition.
图7示出了一个实施例中智能终端的内部结构图。如图7所示,该智能终端包括通过系统总线连接的处理器、存储器和网络接口。其中,存储器包括非易失性存储介质和内存储器。该智能终端的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现推送消息处理方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行推送消息处理方法。本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用程序于其上的智能终端的限定,具体的智能终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Fig. 7 shows an internal structure diagram of a smart terminal in an embodiment. As shown in FIG. 7, the smart terminal includes a processor, a memory and a network interface connected through a system bus. Wherein, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the intelligent terminal stores an operating system, and may also store a computer program, and when the computer program is executed by the processor, the processor may realize the push message processing method. A computer program may also be stored in the internal memory, and when the computer program is executed by the processor, the processor may execute the push message processing method. Those skilled in the art can understand that the structure shown in Figure 7 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the smart terminal on which the solution of this application is applied. The specific smart terminal More or fewer components than shown in the figures may be included, or certain components may be combined, or have a different arrangement of components.
在一个实施例中,提出了一种智能终端,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下步骤:In one embodiment, a smart terminal is proposed, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
获取推送消息,以及所述推送消息的消息类型;根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。Acquiring a push message, and the message type of the push message; judging 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 uses In order to reflect the corresponding relationship between the application program and the message type that the application program is interested in, the target push message is the message corresponding to the message type that any application program is interested in in the application program-message type table; When the message is the target push message, push the push message to an application interested in the message type.
在一个实施例中,所述根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,包括:查询并判断所述消息类型是否存在于所述应用程序-消息类型表中;在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。In one embodiment, the 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 - in a message type table; if the message type exists in the application-message type table, determine that the push message is the target push message.
在一个实施例中,所述应用程序-消息类型表在所述第一智能终端重启后会重新生成;所述方法还包括:扫描所述第一智能终端上所有应用程序预设的推送配置,其中,所述推送配置包括应用程序感兴趣的消息类型;根据所述推送配置获取每个应用程序感兴趣的消息类型;根据所述所有应用程序的包名和所述每个应用程序感兴趣的消息类型生成应用程序-消息类型表,其中,所述包名用于指向所述包名对应的应用程序。In one embodiment, the application-message type table will be regenerated after the first smart terminal is restarted; the method further includes: scanning the preset push configurations of all applications on the first smart terminal, Wherein, the push configuration includes the message type that the application program is interested in; obtain the message type that each application program is interested in according to the push configuration; The type generates an application program-message type table, wherein the package name is used to point to the application program corresponding to the package name.
在一个实施例中,每个应用程序的推送配置还包括用于接收应用程序感兴趣的消息的静态广播;所述将所述推送消息推送至对所述消息类型感兴趣的应用程序,包括:根据所述应用程序-消息类型表获取与所述目标推送消息的消息类型对应的应用程序的目标包名;生成携带所述目标包名和所述目标推送消息的推送广播消息,并向所述第一智能终端中的所有应用程序广播所述推送广播消息,以使所述目标包名对应的应用程序的静态广播接收所述推送广播消息。In one embodiment, the push configuration of each application program also includes a static broadcast for receiving messages that the application program is interested in; the pushing the push message to the application program that is interested in the message type includes: Obtain the target package name of the application program corresponding to the message type of the target push message according to the application program-message type table; generate a push broadcast message carrying the target package name and the target push message, and send to the second push message All application programs in an intelligent terminal broadcast the push broadcast message, so that the static broadcast of the application program corresponding to the target package name receives the push broadcast message.
在一个实施例中,所述方法还包括:在获取到目标应用程序的选中指令的情况下,获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表,所述目标应用程序为所述第一智能终端中的任一应用程序;在获取到对所述感兴趣的消息类型列表的更改指令的情况下,从所述所有消息类型列表中选取消息类型添加至所述感兴趣的消息类型列表中,或将所述感兴趣的消息类型列表中的消息类型删除,以完成用户对所述感兴趣的消息类型列表的更改。In one embodiment, the method further includes: in the case of obtaining the selection instruction of the target application program, obtaining a list of message types of interest of the target application program and all message types supported by the target application program list, the target application program is any application program in the first smart terminal; in the case of obtaining the modification instruction for the interested message type list, select a message from the list of all message types Types are added to the list of message types of interest, or message types in the list of message types of interest are deleted, so as to complete the modification of the list of message types of interest by the user.
在一个实施例中,在所述获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表之后,包括:将所述感兴趣的消息类型列表和所述所有消息类型列表发送至与所述第一智能终端绑定的第二智能终端;接收所述第二智能终端返回的根据所述感兴趣的消息类型列表和所述所有消息类型列表作出的所述更改指令。In one embodiment, after obtaining the list of message types of interest of the target application program and the list of all message types supported by the target application program, it includes: combining the list of message types of interest and the list of message types Send the list of all message types to the second smart terminal bound to the first smart terminal; receive the information returned by the second smart terminal based on the list of message types of interest and the list of all message types Change instructions described above.
在一个实施例中,提出了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行以下步骤:In one embodiment, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the processor performs the following steps:
获取推送消息,以及所述推送消息的消息类型;根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。Acquiring a push message, and the message type of the push message; judging 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 uses In order to reflect the corresponding relationship between the application program and the message type that the application program is interested in, the target push message is the message corresponding to the message type that any application program is interested in in the application program-message type table; When the message is the target push message, push the push message to an application interested in the message type.
在一个实施例中,所述根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,包括:查询并判断所述消息类型是否存在于所述应用程序-消息类型表中;在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。In one embodiment, the 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 - in a message type table; if the message type exists in the application-message type table, determine that the push message is the target push message.
在一个实施例中,所述应用程序-消息类型表在所述第一智能终端重启后会重新生成;所述方法还包括:扫描所述第一智能终端上所有应用程序预设的推送配置,其中,所述推送配置包括应用程序感兴趣的消息类型;根据所述推送配置获取每个应用程序感兴趣的消息类型;根据所述所有应用程序的包名和所述每个应用程序感兴趣的消息类型生成应用程序-消息类型表,其中,所述包名用于指向所述包名对应的应用程序。In one embodiment, the application-message type table will be regenerated after the first smart terminal is restarted; the method further includes: scanning the preset push configurations of all applications on the first smart terminal, Wherein, the push configuration includes the message type that the application program is interested in; obtain the message type that each application program is interested in according to the push configuration; The type generates an application program-message type table, wherein the package name is used to point to the application program corresponding to the package name.
在一个实施例中,每个应用程序的推送配置还包括用于接收应用程序感兴趣的消息的静态广播;所述将所述推送消息推送至对所述消息类型感兴趣的应用程序,包括:根据所述应用程序-消息类型表获取与所述目标推送消息的消息类型对应的应用程序的目标包名;生成携带所述目标包名和所述目标推送消息的推送广播消息,并向所述第一智能终端中的所有应用程序广播所述推送广播消息,以使所述目标包名对应的应用程序的静态广播接收所述推送广播消息。In one embodiment, the push configuration of each application program also includes a static broadcast for receiving messages that the application program is interested in; the pushing the push message to the application program that is interested in the message type includes: Obtain the target package name of the application program corresponding to the message type of the target push message according to the application program-message type table; generate a push broadcast message carrying the target package name and the target push message, and send to the second push message All application programs in an intelligent terminal broadcast the push broadcast message, so that the static broadcast of the application program corresponding to the target package name receives the push broadcast message.
在一个实施例中,所述方法还包括:在获取到目标应用程序的选中指令的情况下,获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表,所述目标应用程序为所述第一智能终端中的任一应用程序;在获取到对所述感兴趣的消息类型列表的更改指令的情况下,从所述所有消息类型列表中选取消息类型添加至所述感兴趣的消息类型列表中,或将所述感兴趣的消息类型列表中的消息类型删除,以完成用户对所述感兴趣的消息类型列表的更改。In one embodiment, the method further includes: in the case of obtaining the selection instruction of the target application program, obtaining a list of message types of interest of the target application program and all message types supported by the target application program list, the target application program is any application program in the first smart terminal; in the case of obtaining the modification instruction for the interested message type list, select a message from the list of all message types Types are added to the list of message types of interest, or message types in the list of message types of interest are deleted, so as to complete the modification of the list of message types of interest by the user.
在一个实施例中,在所述获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表之后,包括:将所述感兴趣的消息类型列表和所述所有消息类型列表发送至与所述第一智能终端绑定的第二智能终端;接收所述第二智能终端返回的根据所述感兴趣的消息类型列表和所述所有消息类型列表作出的所述更改指令。In one embodiment, after obtaining the list of message types of interest of the target application program and the list of all message types supported by the target application program, it includes: combining the list of message types of interest and the list of message types Send the list of all message types to the second smart terminal bound to the first smart terminal; receive the information returned by the second smart terminal based on the list of message types of interest and the list of all message types Change instructions described above.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of 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 Chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

  1. 一种推送消息处理方法,其特征在于,应用于第一智能终端,所述方法包括:A push message processing method, characterized in that it is applied to a first smart terminal, the method comprising:
    获取推送消息,以及所述推送消息的消息类型;Obtain a push message, and a message type of the push message;
    根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;Judging 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 application program and the message that the application program is interested in Type correspondence, the target push message is a message corresponding to a message type that any application in the application-message type table is interested in;
    在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。If the push message is the target push message, push the push message to an application program interested in the message type.
  2. 根据权利要求1所述的推送消息处理方法,其特征在于,所述根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,包括:The push message processing method according to claim 1, wherein the judging 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;
    在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。If the message type exists in the application-message type table, determine that the push message is the target push message.
  3. 根据权利要求1所述的推送消息处理方法,其特征在于,所述应用程序-消息类型表在所述第一智能终端重启后会重新生成;所述方法还包括:The push message processing method according to claim 1, wherein the application-message type table will be regenerated after the first smart terminal restarts; the method also includes:
    扫描所述第一智能终端上所有应用程序预设的推送配置,其中,所述推送配置包括应用程序感兴趣的消息类型;scanning the preset push configurations of all applications on the first smart terminal, wherein the push configurations include message types that the applications are interested in;
    根据所述推送配置获取每个应用程序感兴趣的消息类型;Obtain the message type that each application program 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 names are used to point to the applications corresponding to the package names.
  4. 根据权利要求3所述的推送消息处理方法,其特征在于,每个应用程序的推送配置还包括用于接收应用程序感兴趣的消息的静态广播;The push message processing method according to claim 3, wherein the push configuration of each application program also includes a static broadcast for receiving messages that the application program is interested in;
    所述将所述推送消息推送至对所述消息类型感兴趣的应用程序,包括:The pushing the push message to the application program interested in the message type includes:
    根据所述应用程序-消息类型表获取与所述目标推送消息的消息类型对应的应用程序的目标包名;Acquiring the target package name of the application program corresponding to the message type of the target push message according to the application program-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 information of the application program corresponding to the target package name broadcasting and receiving the push broadcast message.
  5. 根据权利要求1所述的推送消息处理方法,其特征在于,所述方法还包括:The push message processing method according to claim 1, wherein the method further comprises:
    在获取到目标应用程序的选中指令的情况下,获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表,所述目标应用程序为所述第一智能终端中的任一应用程序;When the selected instruction of the target application program is obtained, the target application program is interested in the list of message types and the list of all message types supported by the target application program, and the target application program is the first Any application in the smart terminal;
    在获取到对所述感兴趣的消息类型列表的更改指令的情况下,从所述所有消息类型列表中选取消息类型添加至所述感兴趣的消息类型列表中,或将所述感兴趣的消息类型列表中的消息类型删除,以完成用户对所述感兴趣的消息类型列表的更改。In the case that the change instruction to the list of message types of interest is obtained, select a message type from the list of all message types and add it to the list of message types of interest, or add the message of interest to The message type in the type list is deleted to complete the user's modification of the interested message type list.
  6. 根据权利要求5所述的推送消息处理方法,其特征在于,在所述获取所述目标应用程序的感兴趣的消息类型列表和所述目标应用程序支持接收的所有消息类型列表之后,包括:The push message processing method according to claim 5, characterized in that, after acquiring the list of message types of interest of the target application program and the list of all message types supported by the target application program, comprising:
    将所述感兴趣的消息类型列表和所述所有消息类型列表发送至与所述第一智能终端绑定的第二智能终端;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 made according to the interested message type list and the all message type list returned by the second smart terminal.
  7. 一种推送消息处理装置,其特征在于,应用于第一智能终端,所述装置包括:A push message processing device, characterized in that it is applied to a first smart terminal, and the device includes:
    获取模块,用于获取推送消息,以及所述推送消息的消息类型;An acquisition module, configured to acquire a push message, and a message type of the push message;
    判断模块,用于根据预设的应用程序-消息类型表和所述消息类型判断所述推送消息是否为目标推送消息,其中,所述应用程序-消息类型表用于反映应用程序和所述应用程序感兴趣的消息类型的对应关系,所述目标推送消息为所述应用程序-消息类型表中任一应用程序感兴趣的消息类型对应的消息;A judging module, 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 application and the application The corresponding relationship of the message type that the program is interested in, and the target push message is the message corresponding to the message type that any application program is interested in in the application program-message type table;
    推送模块,用于在所述推送消息为所述目标推送消息的情况下,将所述推送消息推送至对所述消息类型感兴趣的应用程序。A push module, configured to push the push message to an application interested in the message type when the push message is the target push message.
  8. 根据权利要求7所述的推送消息处理装置,其特征在于,所述判断模块还包括:The push message processing device according to claim 7, wherein the judging module further comprises:
    查询单元,用于查询并判断所述消息类型是否存在于所述应用程序-消息类型表中;a query unit, configured to query and determine whether the message type exists in the application-message type table;
    确定单元,用于在所述消息类型存在于所述应用程序-消息类型表的情况下,确定所述推送消息为所述目标推送消息。A determining unit, configured to determine that the push message is the target push message when the message type exists in the application-message type table.
  9. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如权利要求1至6中任一项所述方法的步骤。A computer-readable storage medium storing a computer program, when the computer program is executed by a processor, the processor is made to perform the steps of the method according to any one of claims 1 to 6.
  10. 一种智能终端,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至6中任一项所述方法的步骤。An intelligent terminal, comprising a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 6 A step of.
PCT/CN2021/118788 2021-08-10 2021-09-16 Push message processing method and apparatus, intelligent terminal, and storage medium WO2023015671A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110915178.9 2021-08-10
CN202110915178.9A CN115706736A (en) 2021-08-10 2021-08-10 Push message processing method and device, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2023015671A1 true WO2023015671A1 (en) 2023-02-16

Family

ID=85179653

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/118788 WO2023015671A1 (en) 2021-08-10 2021-09-16 Push message processing method and apparatus, intelligent terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN115706736A (en)
WO (1) WO2023015671A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085928A1 (en) * 2013-12-13 2015-06-18 Tencent Technology (Shenzhen) Company Limited Method and device for message pushing management cross-reference to related applications
CN104767746A (en) * 2015-03-26 2015-07-08 上海大唐移动通信设备有限公司 Push message receiving method, message pushing method, client and server
CN105677719A (en) * 2015-12-29 2016-06-15 小米科技有限责任公司 Application management method and apparatus
CN106412334A (en) * 2016-11-11 2017-02-15 努比亚技术有限公司 Notification message shielding device and method
CN111866109A (en) * 2020-07-10 2020-10-30 北京字节跳动网络技术有限公司 Message processing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085928A1 (en) * 2013-12-13 2015-06-18 Tencent Technology (Shenzhen) Company Limited Method and device for message pushing management cross-reference to related applications
CN104767746A (en) * 2015-03-26 2015-07-08 上海大唐移动通信设备有限公司 Push message receiving method, message pushing method, client and server
CN105677719A (en) * 2015-12-29 2016-06-15 小米科技有限责任公司 Application management method and apparatus
CN106412334A (en) * 2016-11-11 2017-02-15 努比亚技术有限公司 Notification message shielding device and method
CN111866109A (en) * 2020-07-10 2020-10-30 北京字节跳动网络技术有限公司 Message processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115706736A (en) 2023-02-17

Similar Documents

Publication Publication Date Title
US8874700B2 (en) Optimizing storage of data files
TWI514132B (en) Data synchronization
CN101167071A (en) Methods, systems, and computer-readable media for synchronizing modifiable documents with multiple clients
CN102769640B (en) The update method of user profile, server and system
WO2017167121A1 (en) Method and device for determining and applying association relationship between application programs
CN110765165B (en) Method, device and system for synchronously processing cross-system data
CN110704400A (en) Real-time data synchronization method and device and server
CN105978948B (en) A kind of method and system of cloud service
CN102014140B (en) Optimize the method and system of the metadata transmitted in push content processing protocol
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
CN112328413B (en) Application service calling method, device and system
CN112351068A (en) Information synchronization method, system, device, computer equipment and storage medium
CN114185489A (en) Data synchronization method and device, electronic equipment and storage medium
CN112181678A (en) Service data processing method, device and system, storage medium and electronic device
CN108132807B (en) Parameter loading method and device
WO2023015671A1 (en) Push message processing method and apparatus, intelligent terminal, and storage medium
US7849056B2 (en) System and method for managing databases associated with respective personal information manager service accounts
CN115629909A (en) Service data processing method and device, electronic equipment and storage medium
CN111447267B (en) Information synchronization method, device, computer readable storage medium and equipment
CN111930690B (en) File generation method and device
CA2620453C (en) System and method for managing databases associated with respective personal information manager service accounts
CN111988368A (en) Data interaction system and interaction method
CN113296968A (en) Address list updating method, device, medium and electronic equipment
CN113760683B (en) Log acquisition method and device
CN113824763B (en) Message pushing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21953280

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE