技术领域technical field
本公开涉及信息处理技术领域,尤其涉及通知消息处理方法及装置。The present disclosure relates to the technical field of information processing, and in particular to a notification message processing method and device.
背景技术Background technique
随着智能设备及互联网技术的发展,智能手机、平板电脑等智能设备的使用率越来越高。智能设备中可以安装用户可以通过在智能设备上安装应用(APP,Application),获得应用所提供的功能。智能设备在日常使用中,各应用会产生较多的通知消息,相关技术中,通知消息通常会展示在通知栏、锁屏界面或桌面图标等位置,通知消息的处理方式智能化水平较低,给用户带来了不便。With the development of smart devices and Internet technology, the usage rate of smart devices such as smartphones and tablets is getting higher and higher. The smart device can be installed on the smart device. The user can obtain the functions provided by the application by installing the application (APP, Application) on the smart device. In the daily use of smart devices, various applications will generate more notification messages. In related technologies, notification messages are usually displayed on the notification bar, lock screen interface or desktop icons, etc., and the processing method of notification messages is relatively low in intelligence. Inconvenience to the user.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供了通知消息处理方法及装置。In order to overcome the problems existing in related technologies, the present disclosure provides a notification message processing method and device.
根据本公开实施例的第一方面,提供一种通知消息处理方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a notification message processing method is provided, the method including:
获取应用所生成的通知消息,所述通知消息携带有处理标识;Obtain a notification message generated by the application, where the notification message carries a processing identifier;
确定与所述处理标识对应的通知处理方式;Determine the notification processing method corresponding to the processing identifier;
根据所述通知处理方式,对所述通知消息进行相应的处理。According to the notification processing mode, corresponding processing is performed on the notification message.
可选的,所述处理标识包括指示所述通知消息的级别的级别标识;Optionally, the processing identifier includes a level identifier indicating the level of the notification message;
所述确定与所述处理标识对应的通知处理方式,包括:The determining the notification processing method corresponding to the processing identifier includes:
根据预设的级别标识与通知处理方式的对应关系,确定与所述通知消息所携带的级别标识对应的通知处理方式。According to the preset correspondence between the level identifier and the notification processing manner, the notification processing manner corresponding to the level identifier carried in the notification message is determined.
可选的,所述方法还包括:Optionally, the method also includes:
获取类型标识与级别标识的对应关系并发送给应用,用于所述应用在生成通知消息时,使通知消息携带与类型标识对应的级别标识,所述类型标识指示所述通知消息的类型。Obtaining the corresponding relationship between the type identifier and the level identifier and sending it to the application, so that when the application generates a notification message, the notification message carries the level identifier corresponding to the type identifier, and the type identifier indicates the type of the notification message.
可选的,所述处理标识包括指示所述通知消息的类型的类型标识;Optionally, the processing identifier includes a type identifier indicating the type of the notification message;
所述确定与所述处理标识对应的通知处理方式,包括:The determining the notification processing method corresponding to the processing identifier includes:
根据预设的类型标识、级别标识与通知处理方式的对应关系,确定与所述类型标识对应的通知处理方式。According to the preset correspondence between the type identifier, the level identifier and the notification processing manner, the notification processing manner corresponding to the type identifier is determined.
可选的,所述方法还包括:Optionally, the method also includes:
提供对所述通知消息进行级别设置的设置界面,所述设置界面中展示有应用所生成的通知消息的类型、预设的若干个级别,以及预设的各所述级别对应的通知处理方式;Provide a setting interface for setting the level of the notification message, the setting interface displays the type of notification message generated by the application, several preset levels, and the notification processing method corresponding to each preset level;
通过所述设置界面,获取用户对不同类型的通知消息所设定的级别;Obtain the levels set by the user for different types of notification messages through the setting interface;
根据所获取的用户对不同类型的通知消息所设定的级别,获得所述类型标识与级别标识的对应关系。According to the acquired levels set by the user for different types of notification messages, the corresponding relationship between the type identifier and the level identifier is obtained.
可选的,所述通知处理方式包括如下的一种或多种方式:Optionally, the notification processing method includes one or more of the following methods:
过滤、显示在通知栏、显示在应用图标上、显示在锁屏界面或声音提醒。Filter, show in notification bar, show on app icon, show on lock screen or sound alert.
根据本公开实施例的第二方面,提供一种通知消息处理装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, an apparatus for processing a notification message is provided, the apparatus comprising:
通知消息获取模块,被配置为:获取应用所生成的通知消息,所述通知消息携带有处理标识;The notification message acquiring module is configured to: acquire a notification message generated by an application, the notification message carrying a processing identifier;
通知处理方式确定模块,被配置为:确定与所述处理标识对应的通知处理方式;The notification processing method determination module is configured to: determine the notification processing method corresponding to the processing identifier;
处理模块,被配置为:根据所述通知处理方式,对所述通知消息进行相应的处理。The processing module is configured to: perform corresponding processing on the notification message according to the notification processing manner.
可选的,所述处理标识包括指示所述通知消息的级别的级别标识;Optionally, the processing identifier includes a level identifier indicating the level of the notification message;
所述通知处理方式确定模块,包括第一确定子模块,被配置为:The notification processing mode determination module includes a first determination sub-module configured to:
根据预设的级别标识与通知处理方式的对应关系,确定与所述通知消息所携带的级别标识对应的通知处理方式。According to the preset correspondence between the level identifier and the notification processing manner, the notification processing manner corresponding to the level identifier carried in the notification message is determined.
可选的,所述装置还包括发送模块,被配置为:Optionally, the device also includes a sending module configured to:
获取类型标识与级别标识的对应关系并发送给应用,用于所述应用在生成通知消息时,使通知消息携带与类型标识对应的级别标识,所述类型标识指示所述通知消息的类型。Obtaining the corresponding relationship between the type identifier and the level identifier and sending it to the application, so that when the application generates a notification message, the notification message carries the level identifier corresponding to the type identifier, and the type identifier indicates the type of the notification message.
可选的,所述处理标识包括指示所述通知消息的类型的类型标识;Optionally, the processing identifier includes a type identifier indicating the type of the notification message;
所述通知处理方式确定模块,包括第二确定子模块,被配置为:The notification processing mode determination module includes a second determination sub-module configured to:
根据预设的类型标识、级别标识与通知处理方式的对应关系,确定与所述类型标识对应的通知处理方式。According to the preset correspondence between the type identifier, the level identifier and the notification processing manner, the notification processing manner corresponding to the type identifier is determined.
可选的,所述装置,还包括:Optionally, the device also includes:
界面提供模块,被配置为:提供对所述通知消息进行级别设置的设置界面,所述设置界面中展示有应用所生成的通知消息的类型、预设的若干个级别,以及预设的各所述级别对应的通知处理方式;The interface providing module is configured to: provide a setting interface for setting the level of the notification message, and the setting interface displays the type of notification message generated by the application, several preset levels, and preset levels of notification messages. Notification processing methods corresponding to the above levels;
级别获取模块,被配置为:通过所述设置界面,获取用户对不同类型的通知消息所设定的级别;The level obtaining module is configured to: obtain the levels set by the user for different types of notification messages through the setting interface;
对应关系获取模块,被配置为:根据所获取的用户对不同类型的通知消息所设定的级别,获得所述类型标识与级别标识的对应关系。The corresponding relationship obtaining module is configured to: obtain the corresponding relationship between the type identifier and the level identifier according to the acquired levels set by the user for different types of notification messages.
可选的,所述通知处理方式如下的一种或多种:Optionally, the notification processing method is one or more of the following:
过滤、显示在通知栏、显示在应用图标上、显示在锁屏界面或声音提醒。Filter, show in notification bar, show on app icon, show on lock screen or sound alert.
根据本公开实施例的第三方面,提供一种通知消息处理装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for processing notification messages, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取应用所生成的通知消息,所述通知消息携带有处理标识;Obtain a notification message generated by the application, where the notification message carries a processing identifier;
确定与所述处理标识对应的通知处理方式;Determine the notification processing method corresponding to the processing identifier;
根据所述通知处理方式,对所述通知消息进行相应的处理。According to the notification processing mode, corresponding processing is performed on the notification message.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开中,由于通知消息携带有处理标识,因此能够根据处理标识确定该通知消息对应的通知处理方式,进而进行相应的处理,相对于相关技术中对所有通知消息的统一处理方式,本公开实施例能够对不同的通知消息采用不同的处理方式,因此通知消息的处理更为灵活,该处理方式更为智能化,给用户带来了便利。In this disclosure, since the notification message carries a processing identifier, it is possible to determine the notification processing method corresponding to the notification message according to the processing identifier, and then perform corresponding processing. Compared with the unified processing method for all notification messages in the related art, this disclosure implements For example, different processing methods can be adopted for different notification messages, so the processing of notification messages is more flexible, and the processing method is more intelligent, which brings convenience to users.
本公开中,处理标识包括指示所述通知消息的级别的级别标识,由于通知消息携带有级别标识,因此根据级别标识与通知处理方式的对应关系,能快速确定与所述通知消息所携带的级别标识对应的通知处理方式。In this disclosure, the processing identification includes a level identification indicating the level of the notification message. Since the notification message carries the level identification, according to the correspondence between the level identification and the notification processing mode, the level carried by the notification message can be quickly determined. Identifies the corresponding notification processing method.
本公开中,可以获取类型标识与级别标识的对应关系并发送给应用,因此应用可以在生成通知消息时,使通知消息携带与类型标识对应的级别标识,所述类型标识指示所述通知消息的类型,该方式易于实现,并且可以在获取待通知消息时,根据通知消息所携带的级别标识,快速确定对应的处理方式。In this disclosure, the corresponding relationship between the type identifier and the level identifier can be obtained and sent to the application. Therefore, when the application generates a notification message, the notification message can carry the level identifier corresponding to the type identifier, and the type identifier indicates the notification message. Type, this method is easy to implement, and can quickly determine the corresponding processing method according to the level identifier carried by the notification message when obtaining the message to be notified.
本公开中,处理标识包括指示所述通知消息的类型的类型标识,由于通知消息携带有类型标识,因此根据预设的类型标识、级别标识与通知处理方式的对应关系,能快速确定与所述类型标识对应的通知处理方式。In this disclosure, the processing identifier includes a type identifier indicating the type of the notification message. Since the notification message carries the type identifier, according to the preset correspondence between the type identifier, the level identifier, and the notification processing method, it can be quickly determined. The type identifies the corresponding notification processing method.
本公开中,能提供为不同类型的通知消息进行级别设置的设置界面,使用户可以方便地进行设置操作,此种方式准确率高,且实现难度较低。In the present disclosure, a setting interface for level setting for different types of notification messages can be provided, so that users can conveniently perform setting operations. This method has high accuracy and low difficulty in implementation.
本公开中,通知处理方式可以包括过滤、显示在通知栏、显示在应用图标上、显示在锁屏界面或声音提醒等多种方式,使得对通知消息的处理更为灵活。In the present disclosure, notification processing methods may include filtering, displaying on a notification bar, displaying on an application icon, displaying on a lock screen interface, or sound reminder, etc., so that the processing of notification messages is more flexible.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1A是相关技术中一种通知消息的示意图。Fig. 1A is a schematic diagram of a notification message in the related art.
图1B是相关技术中一种设置通知消息的处理方式的示意图。FIG. 1B is a schematic diagram of a processing manner of a setting notification message in the related art.
图2A是本公开根据一示例性实施例示出的一种通知消息处理方法的流程图。Fig. 2A is a flow chart showing a method for processing a notification message according to an exemplary embodiment of the present disclosure.
图2B是本公开根据一示例性实施例示出的一种设置界面的示意图。Fig. 2B is a schematic diagram of a setting interface according to an exemplary embodiment of the present disclosure.
图2C是本公开根据一示例性实施例示出的一种通知消息显示在通知栏的示意图。Fig. 2C is a schematic diagram showing a notification message displayed on a notification bar according to an exemplary embodiment of the present disclosure.
图2D是本公开根据一示例性实施例示出的一种通知消息显示在应用图标上的示意图。Fig. 2D is a schematic diagram showing a notification message displayed on an application icon according to an exemplary embodiment of the present disclosure.
图3是本公开根据一示例性实施例示出的一种通知消息处理装置的框图。Fig. 3 is a block diagram of an apparatus for processing notification messages according to an exemplary embodiment of the present disclosure.
图4是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图。Fig. 4 is a block diagram of another device for processing notification messages according to an exemplary embodiment of the present disclosure.
图5是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图。Fig. 5 is a block diagram of another device for processing notification messages according to an exemplary embodiment of the present disclosure.
图6是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图。Fig. 6 is a block diagram of another device for processing notification messages according to an exemplary embodiment of the present disclosure.
图7是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图。Fig. 7 is a block diagram of another device for processing notification messages according to an exemplary embodiment of the present disclosure.
图8是本公开根据一示例性实施例示出的一种用于通知消息处理装置的框图。Fig. 8 is a block diagram of an apparatus for processing notification messages according to an exemplary embodiment of the present disclosure.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
本领域技术人员应当理解,本公开所称的“应用”、“应用程序”、“应用软件”以及类似表述的概念,是业内技术人员所公知的相同概念,是指由一系列计算机指令及相关数据资源有机构造的适于电子运行的计算机软件。除非特别指定,这种命名本身不受编程语言种类、级别,也不受其赖以运行的操作系统或平台所限制。理所当然地,此类概念也不受任何形式的设备所限制。Those skilled in the art should understand that the concepts of "application", "application program", "application software" and similar expressions in this disclosure are the same concepts well known to those skilled in the art, and refer to a series of computer instructions and related Computer software that is organically constructed from data resources and suitable for electronic operation. Unless otherwise specified, this naming itself is not limited by the type of programming language, level, or the operating system or platform on which it runs. Naturally, such concepts are also not limited to any form of equipment.
随着智能设备及互联网技术的发展,智能手机、平板电脑等智能设备的使用率越来越高。智能设备中可以安装用户可以通过在智能设备上安装应用(APP,Application),获得应用所提供的功能。智能设备在日常使用中,各应用会产生较多的通知消息。With the development of smart devices and Internet technology, the usage rate of smart devices such as smartphones and tablets is getting higher and higher. The smart device can be installed on the smart device. The user can obtain the functions provided by the application by installing the application (APP, Application) on the smart device. During the daily use of smart devices, various applications will generate more notification messages.
本公开实施例所指的通知消息,是指由智能设备中所安装的应用所产生的各种类型的通知消息,例如,从应用层面来说,可以包括应用更新消息和涉及应用功能的推送消息;具体的,根据应用的不同功能,涉及应用功能的应用推送消息可以是短信应用生成的短信、社交应用生成的推送消息(包括有即时通信消息、评论消息、好友添加消息、新功能推荐消息等)、购物应用生成的推送消息(包括有订单物流更新消息、订单退款消息、新产品上线消息等)邮件应用生成的新邮件通知、以及其他各类应用生成的推送信息等等。The notification messages referred to in the embodiments of the present disclosure refer to various types of notification messages generated by applications installed in smart devices, for example, from the application level, it may include application update messages and push messages related to application functions ; Specifically, according to the different functions of the application, the application push message related to the application function can be a short message generated by a short message application, a push message generated by a social application (including instant messaging messages, comment messages, friend addition messages, new function recommendation messages, etc. ), push messages generated by shopping apps (including order logistics update messages, order refund messages, new product launch messages, etc.), new email notifications generated by mail apps, and push messages generated by other types of apps, etc.
通知消息通常会展示在通知栏、锁屏界面或桌面图标等位置,如图1A所示,是相关技术中一种通知消息的示意图,图1A中以智能手机为例,示出了展示在锁屏界面中的通知消息。相关技术中,可以让用户设置通知消息的处理方式,该处理方式是针对应用的所有通知消息的设置,如图1B所示,示出了相关技术中一种设置通知消息的处理方式的示意图,该处理方式能设置各应用的通知消息的是否展示、或具体的展示位置、是否输出时声音提醒等。Notification messages are usually displayed on the notification bar, lock screen interface, or desktop icons, etc., as shown in Figure 1A, which is a schematic diagram of a notification message in the related art. Notification messages in the screen interface. In related technologies, users can be allowed to set the processing method of notification messages, which is the setting for all notification messages of the application, as shown in FIG. 1B , which shows a schematic diagram of a processing method of setting notification messages in related technologies. This processing method can set whether to display the notification message of each application, or a specific display location, whether to output a sound reminder, and the like.
由于某些应用会产生多种不同类型的消息,如社交应用生成的推送消息包括有即时通信消息、评论消息、好友添加消息、新功能推荐消息等,在实际应用中,可能用户对于即时通信消息的关注度较高,对于新功能推荐消息等类型的消息关注度较低,一方面用户希望能展示即时通信消息,一方面用户希望新功能推荐消息等类型的消息不进行展示。而相关技术中的通知消息的处理方案面向的是应用所产生的所有类型的通知消息,其智能化水平较低,消息处理灵活性较差,给用户带来了不便。Because some applications will generate a variety of different types of messages, such as push messages generated by social applications, including instant messaging messages, comment messages, friend addition messages, new function recommendation messages, etc. The degree of attention is relatively high, and the degree of attention to new function recommendation messages is low. On the one hand, users hope to display instant messaging messages, and on the other hand, users hope that new function recommendation messages and other types of messages will not be displayed. However, the notification message processing scheme in the related art is oriented to all types of notification messages generated by applications, and its intelligence level is low, and the message processing flexibility is poor, which brings inconvenience to users.
本公开实施例所提供的方案,应用所生成的通知消息,能够携带有处理标识,通过预设的与所述处理标识对应的通知处理方式,能够对通知消息进行相应的处理。本公开实施例中,由于通知消息携带有处理标识,因此能够根据处理标识确定该通知消息对应的通知处理方式,进而进行相应的处理,相对于相关技术中对所有通知消息的统一处理方式,本公开实施例能够对不同的通知消息采用不同的处理方式,因此通知消息的处理更为灵活,该处理方式更为智能化,给用户带来了便利。接下来对本公开实施例进行详细说明。In the solutions provided by the embodiments of the present disclosure, the notification message generated by the application can carry a processing identifier, and the notification message can be processed accordingly through a preset notification processing mode corresponding to the processing identifier. In the embodiment of the present disclosure, since the notification message carries a processing identifier, the notification processing method corresponding to the notification message can be determined according to the processing identifier, and then corresponding processing is performed. Compared with the unified processing method for all notification messages in the related art, this The disclosed embodiments can adopt different processing methods for different notification messages, so the processing of notification messages is more flexible, and the processing method is more intelligent, which brings convenience to users. Next, the embodiments of the present disclosure will be described in detail.
如图2A所示,是本公开根据一示例性实施例示出的一种通知消息处理方法的流程图,可应用于智能设备,包括以下步骤201至203:As shown in FIG. 2A, it is a flow chart of a notification message processing method according to an exemplary embodiment of the present disclosure, which can be applied to smart devices, and includes the following steps 201 to 203:
在步骤201中,获取应用所生成的通知消息,所述通知消息携带有处理标识。In step 201, a notification message generated by an application is acquired, and the notification message carries a processing identifier.
在步骤202中,确定与所述处理标识对应的通知处理方式。In step 202, a notification processing manner corresponding to the processing identifier is determined.
在步骤203中,根据所述通知处理方式,对所述通知消息进行相应的处理。In step 203, corresponding processing is performed on the notification message according to the notification processing manner.
本公开实施例中,智能设备可以为智能手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、电子书阅读器、智能手表、多媒体播放器、智能电视等等。当然,本公开实施例也不排除在计算机上的应用。In the embodiment of the present disclosure, the smart device may be a smart phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), an e-book reader, a smart watch, a multimedia player, a smart TV, and the like. Of course, the embodiments of the present disclosure do not exclude the application on computers.
本公开实施例的方法,可应用于智能设备的操作系统(Operating System,简称OS)的应用层,操作系统是管理和控制计算机硬件与软件资源的计算机程序,是直接运行在设备上的最基本的系统软件,任何其他应用软件须在操作系统的支持下才能运行。The method of the embodiment of the present disclosure can be applied to the application layer of the operating system (Operating System, referred to as OS) of the smart device. The operating system is a computer program that manages and controls computer hardware and software resources, and is the most basic system that runs directly on the device. system software, any other application software must be supported by the operating system to run.
各应用运行在操作系统中,当应用产生通知消息后,应用会将通知消息上报给操作系统,由操作系统将通知消息在屏幕上进行展示处理。本公开实施例的方法,应用根据所产生的通知消息,使所上报的通知消息中携带有处理标识,该级别标识指示该通知消息所对应的处理方式,设备可以预先配置不同处理标识对应的通知处理方式,因此在接收到通知消息时,即可根据其携带的处理标识进行相应的处理。Each application runs in the operating system. When the application generates a notification message, the application reports the notification message to the operating system, and the operating system displays the notification message on the screen for processing. According to the method of the embodiment of the present disclosure, the application makes the reported notification message carry a processing identifier according to the generated notification message, and the level identifier indicates the processing method corresponding to the notification message, and the device can pre-configure notifications corresponding to different processing identifiers Therefore, when a notification message is received, corresponding processing can be performed according to the processing identifier it carries.
本公开实施例中,处理标识可以采用多种标识,例如可以是指示所述通知消息的级别的级别标识,或者是指示所述通知消息的类型的类型标识。接下来对这两种标识进行说明。In the embodiment of the present disclosure, the processing identifier may adopt various identifiers, for example, it may be a level identifier indicating the level of the notification message, or a type identifier indicating the type of the notification message. Next, the two identifications will be described.
第一种、处理标识包括指示所述通知消息的级别的级别标识。In the first type, the processing identifier includes a level identifier indicating the level of the notification message.
所述确定与所述处理标识对应的通知处理方式,包括:The determining the notification processing method corresponding to the processing identifier includes:
根据预设的级别标识与通知处理方式的对应关系,确定与所述通知消息所携带的级别标识对应的通知处理方式。According to the preset correspondence between the level identifier and the notification processing manner, the notification processing manner corresponding to the level identifier carried in the notification message is determined.
本公开实施例中,级别标识用于指示通知消息的处理级别,不同级别对应不同的处理方式。设备可以预先设定级别标识与通知处理方式的对应关系,从而确定与所述通知消息所携带的级别标识对应的通知处理方式。In the embodiments of the present disclosure, the level identifier is used to indicate the processing level of the notification message, and different levels correspond to different processing modes. The device may preset the corresponding relationship between the level identifier and the notification processing manner, so as to determine the notification processing manner corresponding to the grade identifier carried in the notification message.
在实际应用中,可以由应用在生成通知消息时,使通知消息携带级别标识后发送操作系统。具体的,通知消息携带何种级别标识,可以由应用根据通知消息的类型而确定,不同级别标识可以对应不同的类型,从而使不同类型的通知消息采用不同的通知处理方式。In practical applications, when the application generates the notification message, the notification message may be sent to the operating system after carrying the level identifier. Specifically, the level identifier carried by the notification message may be determined by the application according to the type of the notification message, and different level identifiers may correspond to different types, so that different types of notification messages adopt different notification processing methods.
其中,通知消息的类型,在实际应用中可以灵活配置,本公开不具体限定,例如根据不同应用的功能,可以包括如下多种类型:Among them, the type of the notification message can be flexibly configured in practical applications, and the disclosure does not specifically limit it. For example, according to the functions of different applications, it can include the following types:
社交应用生成的通知消息类型包括有:即时通信消息(即聊天消息,还可细化为好友聊天消息、群聊天消息、陌生人聊天消息等)、评论消息、好友添加消息、新功能推荐消息、应用更新消息、服务窗新消息等多种类型;The types of notification messages generated by social applications include: instant messaging messages (that is, chat messages, which can also be refined into friend chat messages, group chat messages, stranger chat messages, etc.), comment messages, friend addition messages, new function recommendation messages, Various types of application update messages, service window new messages, etc.;
购物应用生成的通知消息类型包括有:订单物流更新消息、订单退款消息、新产品上线消息、应用更新消息等;The notification message types generated by the shopping application include: order logistics update message, order refund message, new product launch message, application update message, etc.;
邮件应用生成的通知消息类型包括有:新邮件通知消息、应用更新消息等;The types of notification messages generated by the mail application include: new mail notification messages, application update messages, etc.;
短信应用生成的通知消息类型包括有:新短信通知消息等;The types of notification messages generated by the SMS application include: new SMS notification messages, etc.;
应用商城应用生成的通知消息类型包括有:应用更新消息、应用推荐消息等。The types of notification messages generated by the application store applications include: application update messages, application recommendation messages, and the like.
考虑到用户对不同类型的通知消息的关注程度不同,例如用户通常不太关注应用更新消息,但对于即时通信消息、新邮件通知消息等类型的通知消息较为关注,因此可能会涉及到用户希望关注度低的消息可以不进行展示,对关注度高的消息进行展示的需求,本公开实施例的通知消息携带有级别标识,该级别标识代表了对通知消息的处理级别高低,不同级别标识指示对应的不同处理方式。Considering that users pay different attention to different types of notification messages, for example, users usually do not pay much attention to application update messages, but pay more attention to notification messages such as instant messaging messages and new email notification messages, so it may involve Messages with low degrees of attention may not be displayed, and messages with high degrees of attention need to be displayed. The notification message in the embodiment of the present disclosure carries a level identifier. The level identifier represents the processing level of the notification message, and different level identifiers indicate the corresponding different processing methods.
为使应用能使通知消息携带级别标识,在一个可选的实现方式中,所述方法还包括:获取类型标识与级别标识的对应关系并发送给应用,用于所述应用在生成通知消息时,使通知消息携带与类型标识对应的级别标识,所述类型标识指示所述通知消息的类型。In order to enable the application to enable the notification message to carry the level identifier, in an optional implementation manner, the method further includes: obtaining the correspondence between the type identifier and the level identifier and sending it to the application for use when the application generates the notification message , causing the notification message to carry a level identifier corresponding to the type identifier, where the type identifier indicates the type of the notification message.
本公开实施例中,设备的操作系统可以将类型标识与级别标识的对应关系并发送给应用,从而使应用的通知消息携带级别标识,该方式易于实现,并且可以在获取待通知消息时,根据通知消息所携带的级别标识,快速确定对应的处理方式。In the embodiment of the present disclosure, the operating system of the device can send the corresponding relationship between the type identifier and the level identifier to the application, so that the notification message of the application can carry the grade identifier. This method is easy to implement, and when obtaining the message to be notified, according to The level identifier carried in the notification message can quickly determine the corresponding processing method.
第二种、所述处理标识包括指示所述通知消息的类型的类型标识。In the second type, the processing identifier includes a type identifier indicating the type of the notification message.
所述确定与所述处理标识对应的通知处理方式,包括:The determining the notification processing method corresponding to the processing identifier includes:
根据预设的类型标识、级别标识与通知处理方式的对应关系,确定与所述类型标识对应的通知处理方式。According to the preset correspondence between the type identifier, the level identifier and the notification processing manner, the notification processing manner corresponding to the type identifier is determined.
由前述分析可知,应用所生成的通知消息可以有多种不同的类型,因此可以是通知消息携带有类型标识,之后根据类型标识、级别标识与通知处理方式的对应关系,确定与所述类型标识对应的通知处理方式。From the foregoing analysis, it can be seen that the notification messages generated by the application can have many different types, so the notification message may carry a type identifier, and then determine the corresponding relationship with the type identifier according to the corresponding relationship between the type identifier, the level identifier and the notification processing method. The corresponding notification processing method.
具体的,应用所生成的通知消息中,何种类型的通知消息对应哪种级别,该级别对应哪种处理方式,在实际应用中可以根据具体需求灵活配置。例如,可以是由开发人员预先制定,结合各应用的不同功能、以及用户对各应用的使用习惯等因素,预先配置各应用中不同类型的通知消息的级别,并配置各级别所对应的通知处理方式。或者,在其他可选的实现方式中,也可以是操作系统预先确定各级别所对应的处理方式,之后由用户配置应用中不同类型的通知消息所对应的级别,当用户配置完成后,操作系统获取用户的配置,从而获取预设的通知消息的类型与级别标识的对应关系,将所述对应关系发送给应用,使得各应用在生成通知消息后,可以根据上述的通知消息的类型与级别标识的对应关系,使通知消息携带有级别标识,之后上报给操作系统,以使操作系统进行相应处理。Specifically, among the notification messages generated by the application, which type of notification message corresponds to which level, and which level corresponds to which processing method can be flexibly configured according to specific requirements in practical applications. For example, it can be pre-specified by the developer, combining the different functions of each application and the user's usage habits of each application to pre-configure the levels of different types of notification messages in each application, and configure the notification processing corresponding to each level Way. Or, in other optional implementation manners, the operating system may also predetermine the processing methods corresponding to each level, and then the user configures the levels corresponding to different types of notification messages in the application. After the user configuration is completed, the operating system Obtain the user's configuration, so as to obtain the preset correspondence between the type of notification message and the level identification, and send the correspondence to the application, so that after each application generates the notification message, it can Corresponding relationship, so that the notification message carries a level identifier, and then reports it to the operating system, so that the operating system can handle it accordingly.
对于上述由用户配置应用中不同类型的通知消息所对应的级别,本公开通过如下实施例进行说明。For the levels corresponding to the different types of notification messages configured by the user in the above application, the present disclosure is described through the following embodiments.
在一个可选的实现方式中,所述方法还包括:In an optional implementation, the method also includes:
提供对所述通知消息进行级别设置的设置界面,所述设置界面中展示有应用所生成的通知消息的类型、预设的若干个级别,以及预设的各所述级别对应的通知处理方式。A setting interface for setting the level of the notification message is provided, and the setting interface displays the type of the notification message generated by the application, several preset levels, and a notification processing method corresponding to each preset level.
通过所述设置界面,获取用户对不同类型的通知消息所设定的级别。The levels set by the user for different types of notification messages are acquired through the setting interface.
根据所获取的用户对不同类型的通知消息所设定的级别,获得所述类型标识与级别标识的对应关系。According to the acquired levels set by the user for different types of notification messages, the corresponding relationship between the type identifier and the level identifier is obtained.
本公开实施例中,设置界面中展示有应用所生成的通知消息的类型、预设的若干个级别,以及预设的各所述级别对应的通知处理方式,以供用户查阅不同级别及其对应的通知处理方式,另外,设置界面可以给用户提供诸如图形化输入项、文本输入框、下拉框、勾选项或选择项等多种设置方式,用户可以通过设置界面对不同类型的通知消息进行级别设置。In the embodiment of the present disclosure, the setting interface displays the types of notification messages generated by the application, several preset levels, and the notification processing methods corresponding to each of the preset levels, so that users can check different levels and their corresponding In addition, the setting interface can provide users with various setting methods such as graphical input items, text input boxes, drop-down boxes, tick options or selection items, and users can level different types of notification messages through the setting interface. set up.
如图2B所示,是本公开根据一示例性实施例示出的一种设置界面的示意图,图2B中示出了聊天应用下,4种不同类型的通知消息的级别设置方式,图2B中用户可以通过文本输入的方式进行级别设置。通过用户在设置界面上的输入,操作系统可以获取用户对不同类型的通知消息所设定的级别,根据所设定的级别对应的级别标识,从而获得所述通知消息的类型与级别标识的对应关系。As shown in FIG. 2B , it is a schematic diagram of a setting interface according to an exemplary embodiment of the present disclosure. FIG. 2B shows the level setting methods of four different types of notification messages under the chat application. In FIG. 2B , the user The level can be set by text input. Through the user's input on the setting interface, the operating system can obtain the levels set by the user for different types of notification messages, and according to the level identification corresponding to the set level, obtain the correspondence between the type of the notification message and the level identification relation.
确定上述通知消息的类型与级别标识的对应关系后,操作系统可以将该对应关系发送给对应的应用,使得应用在生成通知消息后使其携带有级别标识,当应用上报给操作系统后,操作系统获取预设的与所述级别标识对应的通知处理方式,从而可以对通知消息进行相应处理。After determining the correspondence between the type of notification message and the level identifier, the operating system can send the corresponding relationship to the corresponding application, so that the application generates the notification message to carry the level identifier. After the application reports to the operating system, the operation The system obtains a preset notification processing mode corresponding to the level identifier, so that the notification message can be processed accordingly.
上述级别标识与通知处理方式的对应关系,可以通过下表为例进行说明:The following table can be used as an example to illustrate the corresponding relationship between the above level identifiers and notification processing methods:
上述表格中,级别标识以数字进行标识,数字由小到大指示了级别由低到高,通知处理方式以英文字母标识,字母A表示过滤处理方式;字母B表示显示在应用图标上;字母C表示显示在应用图标上;字母D显示在通知栏,字母E表示显示在锁屏界面,字母F表示声音提醒。可以理解,上述只为示例说明,在实际应用中,可以灵活配置级别标识、通知处理方式以及两者的对应关系。In the above table, the level identification is identified by numbers, and the number indicates the level from low to high from small to large, and the notification processing method is identified by English letters. The letter A represents the filtering processing method; the letter B represents the display on the application icon; the letter C Indicates that it is displayed on the application icon; the letter D indicates that it is displayed in the notification bar, the letter E indicates that it is displayed on the lock screen interface, and the letter F indicates a sound reminder. It can be understood that the foregoing is only an example, and in practical applications, the level identifier, the notification processing manner, and the corresponding relationship between them can be flexibly configured.
其中,通知处理方式在实际应用中可灵活配置,例如可以包括如下的一种或多种:Wherein, the notification processing method can be flexibly configured in practical applications, for example, it may include one or more of the following:
过滤、显示在通知栏、显示在应用图标上、显示在锁屏界面或声音提醒。Filter, show in notification bar, show on app icon, show on lock screen or sound alert.
其中,过滤表示该通知消息不进行通知处理,设备可以对该通知消息直接丢弃。Wherein, filtering means that the notification message is not processed, and the device can directly discard the notification message.
通知栏(Notification),是指位于顶层可以展开的通知列表,将通知消息显示在通知栏,则用户通过设备所提供的通知栏功能,通过在设备屏幕触发下拉事件,即可查阅到通知消息。如图2C所示,是本公开根据一示例性实施例示出的一种通知消息显示在通知栏的示意图。The notification bar (Notification) refers to the notification list that can be expanded on the top layer. When the notification message is displayed in the notification bar, the user can view the notification message by triggering a drop-down event on the device screen through the notification bar function provided by the device. As shown in FIG. 2C , it is a schematic diagram showing a notification message displayed on a notification bar according to an exemplary embodiment of the present disclosure.
通知消息显示在应用图标上,表示当接收到通知消息,则可以在屏幕桌面所显示的应用图标上进行标记,通常是在应用图标的右上角,以一突出显示的图案表示新接收到通知消息。如图2D所示,是本公开根据一示例性实施例示出的一种通知消息显示在应用图标上的示意图,图2D中在商城应用图标的右上角展示了4条通知消息。The notification message is displayed on the application icon, which means that when the notification message is received, it can be marked on the application icon displayed on the screen desktop, usually in the upper right corner of the application icon, and a highlighted pattern indicates the newly received notification message . As shown in FIG. 2D , it is a schematic diagram of a notification message displayed on an application icon according to an exemplary embodiment of the present disclosure. In FIG. 2D , four notification messages are displayed in the upper right corner of the mall application icon.
显示在锁屏界面上,表示在设备处于锁定状态时,将通知消息显示在设备主界面上,可参考如图1A所示的示意图。Displayed on the lock screen interface means that when the device is in the locked state, the notification message is displayed on the main interface of the device. Refer to the schematic diagram shown in Figure 1A.
声音提醒,表示在接收到通知消息时,输出声音提示信息。Sound reminder means that when a notification message is received, a sound prompt message will be output.
与前述通知消息处理方法的实施例相对应,本公开还提供了通知消息处理装置及其所应用的设备的实施例。Corresponding to the foregoing embodiments of the notification message processing method, the present disclosure also provides embodiments of a notification message processing apparatus and equipment used therein.
如图3所示,图3是本公开根据一示例性实施例示出的一种通知消息处理装置的框图,所述装置包括:As shown in FIG. 3, FIG. 3 is a block diagram of a notification message processing device according to an exemplary embodiment of the present disclosure, and the device includes:
通知消息获取模块31,被配置为:获取应用所生成的通知消息,所述通知消息携带有处理标识。The notification message acquiring module 31 is configured to: acquire a notification message generated by an application, the notification message carrying a processing identifier.
通知处理方式确定模块32,被配置为:确定与所述处理标识对应的通知处理方式。The notification processing mode determining module 32 is configured to: determine a notification processing mode corresponding to the processing identifier.
处理模块33,被配置为:根据所述通知处理方式,对所述通知消息进行相应的处理。The processing module 33 is configured to: perform corresponding processing on the notification message according to the notification processing manner.
由上述实施例可见,由于通知消息携带有处理标识,因此能够根据处理标识确定该通知消息对应的通知处理方式,进而进行相应的处理,相对于相关技术中对所有通知消息的统一处理方式,本公开实施例能够对不同的通知消息采用不同的处理方式,因此通知消息的处理更为灵活,该处理方式更为智能化,给用户带来了便利。It can be seen from the above embodiments that since the notification message carries a processing identifier, it is possible to determine the notification processing method corresponding to the notification message according to the processing identifier, and then perform corresponding processing. Compared with the unified processing method for all notification messages in the related art, this The disclosed embodiments can adopt different processing methods for different notification messages, so the processing of notification messages is more flexible, and the processing method is more intelligent, which brings convenience to users.
如图4所示,图4是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图,该实施例在前述图3所示实施例的基础上,所述处理标识包括指示所述通知消息的级别的级别标识。As shown in FIG. 4, FIG. 4 is a block diagram of another notification message processing device according to an exemplary embodiment of the present disclosure. This embodiment is based on the embodiment shown in FIG. The level identifier of the level of the notification message.
所述通知处理方式确定模块32,包括第一确定子模块321,被配置为:The notification processing mode determination module 32 includes a first determination sub-module 321 configured to:
根据预设的级别标识与通知处理方式的对应关系,确定与所述通知消息所携带的级别标识对应的通知处理方式。According to the preset correspondence between the level identifier and the notification processing manner, the notification processing manner corresponding to the level identifier carried in the notification message is determined.
由上述实施例可见,处理标识包括指示所述通知消息的级别的级别标识,由于通知消息携带有级别标识,因此根据级别标识与通知处理方式的对应关系,能快速确定与所述通知消息所携带的级别标识对应的通知处理方式。It can be seen from the above-mentioned embodiments that the processing identifier includes a grade identifier indicating the grade of the notification message. Since the notification message carries the grade identifier, according to the corresponding relationship between the grade identifier and the notification processing mode, it can quickly determine the The level identifies the corresponding notification processing method.
如图5所示,图5是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图,该实施例在前述图4所示实施例的基础上,所述装置还包括发送模块34,被配置为:As shown in FIG. 5, FIG. 5 is a block diagram of another device for processing notification messages according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 4, the device further includes sending module 34, configured to:
获取类型标识与级别标识的对应关系并发送给应用,用于所述应用在生成通知消息时,使通知消息携带与类型标识对应的级别标识,所述类型标识指示所述通知消息的类型。Obtaining the corresponding relationship between the type identifier and the level identifier and sending it to the application, so that when the application generates a notification message, the notification message carries the level identifier corresponding to the type identifier, and the type identifier indicates the type of the notification message.
由上述实施例可见,可以获取类型标识与级别标识的对应关系并发送给应用,因此应用可以在生成通知消息时,使通知消息携带与类型标识对应的级别标识,所述类型标识指示所述通知消息的类型,该方式易于实现,并且可以在获取待通知消息时,根据通知消息所携带的级别标识,快速确定对应的处理方式。It can be seen from the above embodiments that the corresponding relationship between the type identifier and the level identifier can be obtained and sent to the application. Therefore, when the application generates a notification message, the notification message can carry the level identifier corresponding to the type identifier, and the type identifier indicates that the notification message The type of message, this method is easy to implement, and can quickly determine the corresponding processing method according to the level identifier carried by the notification message when obtaining the message to be notified.
如图6所示,图6是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图,该实施例在前述图3所示实施例的基础上,所述处理标识包括指示所述通知消息的类型的类型标识。As shown in FIG. 6, FIG. 6 is a block diagram of another notification message processing device according to an exemplary embodiment of the present disclosure. This embodiment is based on the embodiment shown in FIG. The type identifier of the type of the notification message.
所述通知处理方式确定模块32,包括第二确定子模块322,被配置为:The notification processing mode determination module 32 includes a second determination sub-module 322 configured to:
根据预设的类型标识、级别标识与通知处理方式的对应关系,确定与所述类型标识对应的通知处理方式。According to the preset correspondence between the type identifier, the level identifier and the notification processing manner, the notification processing manner corresponding to the type identifier is determined.
由上述实施例可见,处理标识包括指示所述通知消息的类型的类型标识,由于通知消息携带有类型标识,因此根据预设的类型标识、级别标识与通知处理方式的对应关系,能快速确定与所述类型标识对应的通知处理方式。It can be seen from the above embodiments that the processing identifier includes a type identifier indicating the type of the notification message. Since the notification message carries the type identifier, according to the preset correspondence between the type identifier, the level identifier, and the notification processing method, it can be quickly determined. The notification processing method corresponding to the type identifier.
如图7所示,图7是本公开根据一示例性实施例示出的另一种通知消息处理装置的框图,该实施例在前述图3所示实施例的基础上,所述装置还包括:As shown in FIG. 7, FIG. 7 is a block diagram of another device for processing notification messages according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3, the device further includes:
界面提供模块35,被配置为:提供对所述通知消息进行级别设置的设置界面,所述设置界面中展示有应用所生成的通知消息的类型、预设的若干个级别,以及预设的各所述级别对应的通知处理方式。The interface providing module 35 is configured to: provide a setting interface for setting the level of the notification message, and the setting interface displays the type of the notification message generated by the application, several preset levels, and various preset levels. The notification processing method corresponding to the level.
级别获取模块36,被配置为:通过所述设置界面,获取用户对不同类型的通知消息所设定的级别。The level obtaining module 36 is configured to: obtain the levels set by the user for different types of notification messages through the setting interface.
对应关系获取模块37,被配置为:根据所设定的级别对应的级别标识,获得所述通知消息的类型与级别标识的对应关系。The corresponding relationship acquiring module 37 is configured to: obtain the corresponding relationship between the type of the notification message and the level indicator according to the level indicator corresponding to the set level.
由上述实施例可见,能提供为不同类型的通知消息进行级别设置的设置界面,使用户可以方便地进行设置操作,此种方式准确率高,且实现难度较低。It can be seen from the above embodiments that a setting interface for level setting of different types of notification messages can be provided, so that the user can conveniently perform setting operations. This method has high accuracy and is less difficult to implement.
在一个可选的实现方式中,所述通知处理方式如下的一种或多种:In an optional implementation manner, the notification processing manner is one or more of the following:
过滤、显示在通知栏、显示在应用图标上、显示在锁屏界面或声音提醒。Filter, show in notification bar, show on app icon, show on lock screen or sound alert.
由上述实施例可见,通知处理方式可以包括过滤、显示在通知栏、显示在应用图标上、显示在锁屏界面或声音提醒等多种方式,使得对通知消息的处理更为灵活。It can be seen from the above embodiments that the notification processing methods may include filtering, displaying in the notification bar, displaying on the application icon, displaying on the lock screen interface or sound reminder, etc., so that the processing of notification messages is more flexible.
相应的,本公开还提供一种通知消息处理装置,包括:Correspondingly, the present disclosure also provides a notification message processing device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
获取应用所生成的通知消息,所述通知消息携带有处理标识。Obtain a notification message generated by the application, where the notification message carries a processing identifier.
确定与所述处理标识对应的通知处理方式。A notification processing manner corresponding to the processing identifier is determined.
根据所述通知处理方式,对所述通知消息进行相应的处理。According to the notification processing mode, corresponding processing is performed on the notification message.
上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for the related parts, please refer to the part of the description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.
图8是根据一示例性实施例示出的一种用于通知消息处理装置的结构示意图。Fig. 8 is a schematic structural diagram of an apparatus for processing notification messages according to an exemplary embodiment.
如图8所示,根据一示例性实施例示出的一种用于通知消息处理装置800,该装置800可以是智能手机,智能相机,计算机,移动电话,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。As shown in FIG. 8 , according to an exemplary embodiment, an apparatus 800 for notification message processing is shown. The apparatus 800 may be a smart phone, a smart camera, a computer, a mobile phone, a digital broadcast terminal, a messaging device, or a game control device. Tablets, tablet devices, medical equipment, fitness equipment, personal digital assistants and other terminals.
参照图8,装置800可以包括以下一个或多个组件:处理组件801,存储器802,电源组件803,多媒体组件804,音频组件805,输入/输出(I/O)的接口806,传感器组件807,以及通信组件808。8, device 800 may include one or more of the following components: processing component 801, memory 802, power supply component 803, multimedia component 804, audio component 805, input/output (I/O) interface 806, sensor component 807, and a communication component 808 .
处理组件801通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件801可以包括一个或多个处理器809来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件801可以包括一个或多个模块,便于处理组件801和其它组件之间的交互。例如,处理部件801可以包括多媒体模块,以方便多媒体组件804和处理组件801之间的交互。The processing component 801 generally controls the overall operations of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 801 may include one or more processors 809 to execute instructions, so as to complete all or part of the steps of the above method. Additionally, processing component 801 may include one or more modules to facilitate interaction between processing component 801 and other components. For example, the processing component 801 may include a multimedia module to facilitate interaction between the multimedia component 804 and the processing component 801 .
存储器802被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器802可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 802 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 802 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件803为装置800的各种组件提供电力。电源组件803可以包括电源管理系统,一个或多个电源,及其它与为装置800生成、管理和分配电力相关联的组件。The power supply component 803 provides power to various components of the device 800 . Power components 803 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 800 .
多媒体组件804包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件804包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 804 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 804 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件805被配置为输出和/或输入音频信号。例如,音频组件805包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器802或经由通信组件808发送。在一些实施例中,音频组件805还包括一个扬声器,用于输出音频信号。The audio component 805 is configured to output and/or input audio signals. For example, the audio component 805 includes a microphone (MIC) configured to receive external audio signals when the device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 802 or sent via communication component 808 . In some embodiments, the audio component 805 also includes a speaker for outputting audio signals.
I/O接口802为处理组件801和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 802 provides an interface between the processing component 801 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件807包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件807可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件807还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件807可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件807还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件807还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 807 includes one or more sensors for providing status assessments of various aspects of device 800 . For example, the sensor component 807 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor component 807 can also detect a change in the position of the device 800 or a component of the device 800 , the presence or absence of user contact with the device 800 , the device 800 orientation or acceleration/deceleration and the temperature change of the device 800 . The sensor assembly 807 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 807 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 807 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件808被配置为便于装置800和其它设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件808经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件808还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其它技术来实现。The communication component 808 is configured to facilitate wired or wireless communication between the apparatus 800 and other devices. The device 800 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 808 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 808 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其它电子元件实现,用于执行上述通知消息处理方法:In an exemplary embodiment, apparatus 800 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for performing the above notification message processing method:
获取应用所生成的通知消息,所述通知消息携带有处理标识。Obtain a notification message generated by the application, where the notification message carries a processing identifier.
确定与所述处理标识对应的通知处理方式。A notification processing manner corresponding to the processing identifier is determined.
根据所述通知处理方式,对所述通知消息进行相应的处理。According to the notification processing mode, corresponding processing is performed on the notification message.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器802,上述指令可由装置800的处理器809执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 802 including instructions, which can be executed by the processor 809 of the device 800 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
其中,当所述存储介质中的指令由所述处理器执行时,使得装置800能够执行一种通知消息处理方法,包括:Wherein, when the instructions in the storage medium are executed by the processor, the device 800 is enabled to execute a notification message processing method, including:
获取应用所生成的通知消息,所述通知消息携带有处理标识。Obtain a notification message generated by the application, where the notification message carries a processing identifier.
确定与所述处理标识对应的通知处理方式。A notification processing manner corresponding to the processing identifier is determined.
根据所述通知处理方式,对所述通知消息进行相应的处理。According to the notification processing mode, corresponding processing is performed on the notification message.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the present disclosure within the scope of protection.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611025408.XACN106775626A (en) | 2016-11-14 | 2016-11-14 | Notification message processing method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611025408.XACN106775626A (en) | 2016-11-14 | 2016-11-14 | Notification message processing method and device |
| Publication Number | Publication Date |
|---|---|
| CN106775626Atrue CN106775626A (en) | 2017-05-31 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611025408.XAPendingCN106775626A (en) | 2016-11-14 | 2016-11-14 | Notification message processing method and device |
| Country | Link |
|---|---|
| CN (1) | CN106775626A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107241432A (en)* | 2017-07-07 | 2017-10-10 | 北京小米移动软件有限公司 | Message receival method and device, information push method and device |
| CN107844233A (en)* | 2017-11-14 | 2018-03-27 | 珠海市魅族科技有限公司 | Message display method and device, computer installation and computer-readable recording medium |
| CN108494951A (en)* | 2018-03-02 | 2018-09-04 | 深圳前海桔子信息技术有限公司 | Data capture method, device, equipment and storage medium are not read |
| CN110288190A (en)* | 2019-05-21 | 2019-09-27 | 深圳壹账通智能科技有限公司 | Event notification method, event notification server, storage medium and device |
| CN110597802A (en)* | 2018-05-24 | 2019-12-20 | 北京京东尚科信息技术有限公司 | Message processing method and device |
| CN113296831A (en)* | 2021-06-11 | 2021-08-24 | 恒安嘉新(北京)科技股份公司 | Application identifier extraction method and device, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105468232A (en)* | 2015-11-11 | 2016-04-06 | 北京金山安全软件有限公司 | Method and device for displaying notification message and mobile terminal |
| CN105515953A (en)* | 2015-12-21 | 2016-04-20 | 小米科技有限责任公司 | Notification message processing method and device as well as apparatus |
| CN105843615A (en)* | 2016-03-22 | 2016-08-10 | 北京小米移动软件有限公司 | Notification message processing method and device |
| CN106095401A (en)* | 2016-05-26 | 2016-11-09 | 深圳天珑无线科技有限公司 | Informing message treatment method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105468232A (en)* | 2015-11-11 | 2016-04-06 | 北京金山安全软件有限公司 | Method and device for displaying notification message and mobile terminal |
| CN105515953A (en)* | 2015-12-21 | 2016-04-20 | 小米科技有限责任公司 | Notification message processing method and device as well as apparatus |
| CN105843615A (en)* | 2016-03-22 | 2016-08-10 | 北京小米移动软件有限公司 | Notification message processing method and device |
| CN106095401A (en)* | 2016-05-26 | 2016-11-09 | 深圳天珑无线科技有限公司 | Informing message treatment method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107241432A (en)* | 2017-07-07 | 2017-10-10 | 北京小米移动软件有限公司 | Message receival method and device, information push method and device |
| CN107844233A (en)* | 2017-11-14 | 2018-03-27 | 珠海市魅族科技有限公司 | Message display method and device, computer installation and computer-readable recording medium |
| CN108494951A (en)* | 2018-03-02 | 2018-09-04 | 深圳前海桔子信息技术有限公司 | Data capture method, device, equipment and storage medium are not read |
| CN108494951B (en)* | 2018-03-02 | 2021-02-02 | 深圳前海桔子信息技术有限公司 | Unread data acquisition method, unread data acquisition device, unread data acquisition equipment and storage medium |
| CN110597802A (en)* | 2018-05-24 | 2019-12-20 | 北京京东尚科信息技术有限公司 | Message processing method and device |
| CN110597802B (en)* | 2018-05-24 | 2024-09-24 | 北京京东尚科信息技术有限公司 | Message processing method and device |
| CN110288190A (en)* | 2019-05-21 | 2019-09-27 | 深圳壹账通智能科技有限公司 | Event notification method, event notification server, storage medium and device |
| WO2020233060A1 (en)* | 2019-05-21 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Event notification method and apparatus, event notification server, and storage medium |
| CN113296831A (en)* | 2021-06-11 | 2021-08-24 | 恒安嘉新(北京)科技股份公司 | Application identifier extraction method and device, computer equipment and storage medium |
| CN113296831B (en)* | 2021-06-11 | 2023-08-25 | 恒安嘉新(北京)科技股份公司 | Application identifier extraction method and device, computer equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| US10152207B2 (en) | Method and device for changing emoticons in a chat interface | |
| CN108334352A (en) | Notification message processing method, device, electronic equipment and storage medium | |
| CN106775626A (en) | Notification message processing method and device | |
| CN105843615A (en) | Notification message processing method and device | |
| CN105739834B (en) | Menu display method and device | |
| CN106126018A (en) | Desktop icons sort method and device | |
| CN106155703B (en) | Emotional state display method and device | |
| CN106528131A (en) | Application function display method and apparatus, and terminal device | |
| CN105892810A (en) | Message display method and device | |
| CN106201310A (en) | The display packing of notification message, device and terminal | |
| CN106060257A (en) | Method and device for viewing relevant information of contact | |
| CN105812515A (en) | Protection cover of mobile terminal, and method, device and terminal for setting system themes | |
| CN106027336A (en) | Equipment sharing method and device | |
| CN106056010A (en) | Method and apparatus for processing messages by terminal, and terminal | |
| CN107402767B (en) | Method and apparatus for displaying push messages | |
| CN106600367A (en) | Order information processing method and order information processing device | |
| CN105704016A (en) | Group message shielding processing method, device and terminal | |
| CN105791097A (en) | A group message receiving and processing method, device and terminal | |
| CN107404429A (en) | Circle of friends answering method, device and computer-readable recording medium | |
| CN104881342B (en) | terminal test method and device | |
| CN107493366A (en) | Address list information update method, device and storage medium | |
| CN106385470A (en) | Information push method and device | |
| CN106453774A (en) | Method and apparatus for displaying contact information | |
| CN105912202A (en) | Application sharing method and device | |
| CN106406659A (en) | Double-open application establishing method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20170531 | |
| RJ01 | Rejection of invention patent application after publication |