[go: up one dir, main page]

CN114780268B - Display method and electronic device of notification message - Google Patents

Display method and electronic device of notification message Download PDF

Info

Publication number
CN114780268B
CN114780268B CN202210704580.7A CN202210704580A CN114780268B CN 114780268 B CN114780268 B CN 114780268B CN 202210704580 A CN202210704580 A CN 202210704580A CN 114780268 B CN114780268 B CN 114780268B
Authority
CN
China
Prior art keywords
notification
application
notification message
contact
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210704580.7A
Other languages
Chinese (zh)
Other versions
CN114780268A (en
Inventor
王彦恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210704580.7A priority Critical patent/CN114780268B/en
Publication of CN114780268A publication Critical patent/CN114780268A/en
Application granted granted Critical
Publication of CN114780268B publication Critical patent/CN114780268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例提供了一种通知消息的显示方法及电子设备。其中,在电子设备显示通知消息的界面中显示有第一通知窗口,在第一通知窗口中显示有至少一个第二通知窗口,每个第二通知窗口中分别显示用户感兴趣的应用通知消息。由此,该显示方法能够将用户感兴趣的通知消息聚合在一个通知消息窗口中进行显示,以便于用户查看,用户无需再从大量应用通知窗口中一一查找,提升了用户使用体验。

Figure 202210704580

Embodiments of the present application provide a method and an electronic device for displaying a notification message. Wherein, a first notification window is displayed in the interface for displaying notification messages of the electronic device, at least one second notification window is displayed in the first notification window, and application notification messages of interest to the user are respectively displayed in each second notification window. Therefore, the display method can aggregate the notification messages that the user is interested in for display in one notification message window, so as to facilitate the user to view, and the user does not need to search one by one from a large number of application notification windows, which improves the user experience.

Figure 202210704580

Description

通知消息的显示方法及电子设备Notification message display method and electronic device

技术领域technical field

本申请涉及智能终端技术领域,尤其涉及一种消息通知的显示方法及电子设备。The present application relates to the technical field of smart terminals, and in particular to a method for displaying message notifications and electronic equipment.

背景技术Background technique

随着终端设备和终端应用的普及,越来越多的终端应用采用消息推送的方式通知用户,这些通知用户的消息称为通知消息。用户可以在终端设备锁屏界面或终端设备的通知中心(或通知栏)看到这些推送的通知消息。With the popularization of terminal devices and terminal applications, more and more terminal applications notify users by means of message push, and these messages for notifying users are called notification messages. Users can see these push notification messages on the lock screen interface of the terminal device or the notification center (or notification bar) of the terminal device.

终端应用的普及和用户安装终端应用的数量上升,随之而来的是通知消息过多且内容不聚焦,各种通知消息相互交织在一起,使得用户很难迅速找到自己关注的通知消息。With the popularity of terminal applications and the increase in the number of terminal applications installed by users, there are too many notification messages and unfocused content. Various notification messages are intertwined, making it difficult for users to quickly find the notification messages they care about.

发明内容Contents of the invention

为了解决上述技术问题,本申请实施例提供一种通知消息的显示方法及电子设备。在该方法中,可以将用户感兴趣的通知消息聚合在一个通知消息窗口中进行显示,便于用户查看,提升了用户使用体验。In order to solve the above technical problem, embodiments of the present application provide a method for displaying a notification message and an electronic device. In this method, the notification messages that the user is interested in can be aggregated and displayed in one notification message window, which is convenient for the user to view and improves the user experience.

第一方面,本申请实施例提供一种通知消息的显示方法。该方法包括:电子设备显示第一界面;其中,第一界面上包括第一通知窗口,在第一通知窗口中显示至少一个第二通知窗口,在每个第二通知窗口中分别显示有用户感兴趣的应用通知消息。In a first aspect, the embodiment of the present application provides a method for displaying a notification message. The method includes: the electronic device displays a first interface; wherein, the first interface includes a first notification window, at least one second notification window is displayed in the first notification window, and a user-sensitive App notification messages of interest.

其中,第一界面可以是显示通知消息窗口的任意界面,例如通知中心界面等。示例性的,在第一界面中除了显示第一通知窗口之外,还可以显示与任意应用对应的应用通知窗口,例如图1中(2)所示的应用通知窗口101、应用通知窗口102、应用通知窗口103。Wherein, the first interface may be any interface displaying a notification message window, such as a notification center interface. Exemplarily, in addition to displaying the first notification window on the first interface, an application notification window corresponding to any application may also be displayed, for example, the application notification window 101, the application notification window 102, the application notification window 102 shown in (2) in FIG. Application notification window 103 .

其中,第一通知窗口为通知聚合显示窗口,第二通知窗口为在第一通知窗口中聚合显示的应用通知窗口。示例性的,应用可以为社交应用,例如微信、QQ、短信息等。Wherein, the first notification window is a notification aggregation display window, and the second notification window is an application notification window aggregated and displayed in the first notification window. Exemplarily, the application may be a social application, such as WeChat, QQ, short message and so on.

示例性的,任意两个第二通知窗口可以对应于相同的应用,例如同为微信应用通知窗口。也即,任意两个第二通知窗口可以显示来自相同应用的通知消息。Exemplarily, any two second notification windows may correspond to the same application, for example, both are WeChat application notification windows. That is, any two second notification windows can display notification messages from the same application.

又示例性的,任意两个第二通知窗口也可以对应于不同的应用,例如一个为微信应用窗口,一个为短信息应用窗口。也即,任意两个第二通知窗口可以显示来自不同应用的通知消息。As another example, any two second notification windows may also correspond to different applications, for example, one is a WeChat application window and the other is a short message application window. That is, any two second notification windows can display notification messages from different applications.

这样,用户感兴趣的通知消息可以聚合在一个通知消息窗口中进行显示,便于用户查看,提升了用户使用体验。其中,用户感兴趣的通知消息可以来源于相同的应用,也可以来源于不同的应用。In this way, the notification messages that the user is interested in can be aggregated and displayed in one notification message window, which is convenient for the user to view and improves the user experience. Wherein, the notification messages of interest to the user may originate from the same application, or may originate from different applications.

根据第一方面,第一通知窗口用于聚合显示与第一联系人对应的应用通知消息;第二通知窗口分别用于显示第一联系人在不同的应用中发送的通知消息。According to the first aspect, the first notification window is used to collectively display application notification messages corresponding to the first contact; the second notification window is respectively used to display notification messages sent by the first contact in different applications.

其中,第一通知窗口例如可以是下文中描述的通知聚合窗口,用于聚合显示某个联系人在不同应用中发送的通知消息。每个第二通知窗口为与该联系人对应的一个应用通知窗口。Wherein, the first notification window may be, for example, a notification aggregation window described below, which is used to aggregate and display notification messages sent by a certain contact in different applications. Each second notification window is an application notification window corresponding to the contact.

这样,无论该联系人通过哪个应用向电子设备用户发送通知消息,电子设备用户均可以在与该联系人对应的通知聚合窗口中查看到相应的通知消息,无需再从大量应用通知窗口中一一查找,简化了用户获取感兴趣信息的时间成本。电子设备可以将用户真正关心的联系人通知消息醒目地展示给用户,提升了用户使用体验。In this way, no matter which application the contact uses to send a notification message to the user of the electronic device, the user of the electronic device can view the corresponding notification message in the notification aggregation window corresponding to the contact, without needing to check the corresponding notification message from a large number of application notification windows one by one. Searching simplifies the time cost for users to obtain information of interest. The electronic device can conspicuously display the contact notification message that the user really cares about to the user, thereby improving the user experience.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备显示第一界面,包括:电子设备获取第一通知消息,确定第一通知消息所属的第一应用的名称以及第一通知消息的第一会话标识;电子设备如果根据第一应用的名称和第一会话标识,确定存在第一通知消息所属的第一联系人分组,则在第一通知窗口中与第一应用的名称对应的第二通知窗口中,显示第一通知消息;其中,第一通知窗口为与第一联系人分组对应的通知窗口。According to the first aspect, or any implementation manner of the above first aspect, the electronic device displays the first interface, including: the electronic device obtains the first notification message, determines the name of the first application to which the first notification message belongs and the first notification message The first session identifier of the message; if the electronic device determines that there is a first contact group to which the first notification message belongs according to the name of the first application and the first session identifier, it will correspond to the name of the first application in the first notification window The first notification message is displayed in the second notification window; wherein, the first notification window is a notification window corresponding to the first contact group.

这样,如果通知消息已基于联系人进行分组,则电子设备会在与相应的分组对应的通知聚合窗口中显示该通知消息。In this way, if the notification message has been grouped based on contacts, the electronic device will display the notification message in the notification aggregation window corresponding to the corresponding group.

根据第一方面,或者以上第一方面的任意一种实现方式,在电子设备显示第一界面之前,还包括:电子设备显示第二界面;第二界面中包括第三通知窗口,第三通知窗口中显示有第一应用的第二通知消息;其中,第二通知消息的会话标识为第一会话标识;响应于第一操作,创建第一联系人分组,并将第一应用的名称以及第一会话标识,与第一联系人分组进行关联。According to the first aspect, or any implementation of the above first aspect, before the electronic device displays the first interface, it further includes: the electronic device displays the second interface; the second interface includes a third notification window, and the third notification window The second notification message of the first application is displayed in ; wherein, the session identifier of the second notification message is the first session identifier; in response to the first operation, the first contact group is created, and the name of the first application and the first The session identifier is associated with the first contact group.

其中,第二界面可以是显示通知消息窗口的任意界面,例如通知中心界面等。Wherein, the second interface may be any interface displaying a notification message window, such as a notification center interface.

其中,第二通知消息和第一通知消息是同一个联系人在同一个应用中发出的。Wherein, the second notification message and the first notification message are sent by the same contact in the same application.

这样,用户可以基于感兴趣的联系人在某个应用中发出的通知消息创建联系人分组,以使后续接收到同一联系人在这个应用中发出的其他通知消息时,这些通知消息可以在与联系人分组对应的通知聚合窗口中进行显示。In this way, the user can create a contact group based on the notification messages sent by the interested contacts in a certain application, so that when receiving other notification messages from the same contact in this application, these notification messages can be shared with the contact It will be displayed in the notification aggregation window corresponding to the person group.

根据第一方面,或者以上第一方面的任意一种实现方式,在电子设备显示第一界面之前,还包括:显示第三界面;第三界面中包括第四通知窗口,第四通知窗口中显示有第一应用的第三通知消息;其中,第三通知消息的会话标识为第一会话标识;电子设备响应于第二操作,将第一应用的名称以及第一会话标识,与第一联系人分组进行关联。According to the first aspect, or any implementation of the above first aspect, before the electronic device displays the first interface, it further includes: displaying a third interface; the third interface includes a fourth notification window, and the fourth notification window displays There is a third notification message of the first application; wherein, the session identifier of the third notification message is the first session identifier; the electronic device links the name of the first application and the first session identifier with the first contact in response to the second operation Groups are associated.

其中,第三界面可以是显示通知消息窗口的任意界面,例如通知中心界面等。Wherein, the third interface may be any interface displaying a notification message window, such as a notification center interface.

其中,第三通知消息和第一通知消息是同一个联系人在同一个应用中发出的。Wherein, the third notification message and the first notification message are sent by the same contact in the same application.

这样,用户可以基于感兴趣的联系人在某个应用中发出的通知消息,将该通知消息对应的应用名称及会话标识与已有的联系人分组进行关联,以使后续接收到同一联系人在这个应用中发出的其他通知消息时,这些通知消息可以在与联系人分组对应的通知聚合窗口中进行显示。In this way, based on the notification message sent by the interested contact in a certain application, the user can associate the application name and session ID corresponding to the notification message with the existing contact group, so that the subsequent receipt of the same contact in the When other notification messages are sent in this application, these notification messages can be displayed in the notification aggregation window corresponding to the contact group.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备显示第四界面;第四界面中包括第五通知窗口,第五通知窗口中显示有第二应用的第四通知消息;其中,第四通知消息的会话标识为第二会话标识;响应于第三操作,将第二应用的名称以及第二会话标识,与第一联系人分组进行关联。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device displays a fourth interface; the fourth interface includes a fifth notification window, and the fifth notification window displays the information of the second application A fourth notification message; wherein, the session ID of the fourth notification message is the second session ID; in response to the third operation, associating the name of the second application and the second session ID with the first contact group.

其中,第四界面可以是显示通知消息窗口的任意界面,例如通知中心界面等。Wherein, the fourth interface may be any interface displaying a notification message window, such as a notification center interface.

其中,第四通知消息和第一通知消息是同一个联系人在不同应用中发出的。Wherein, the fourth notification message and the first notification message are sent by the same contact in different applications.

这样,用户可以基于感兴趣的联系人在某个应用中发出的通知消息,将该通知消息对应的应用名称及会话标识与已有的联系人分组进行关联,以使后续接收到同一联系人在这个应用中发出的其他通知消息时,这些通知消息可以在与联系人分组对应的通知聚合窗口中进行显示。In this way, based on the notification message sent by the interested contact in a certain application, the user can associate the application name and session ID corresponding to the notification message with the existing contact group, so that the subsequent receipt of the same contact in the When other notification messages are sent in this application, these notification messages can be displayed in the notification aggregation window corresponding to the contact group.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:在电子设备创建第一联系人分组时,响应于第四操作,电子设备对第一联系人分组进行个性化设置。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: when the electronic device creates the first contact group, in response to the fourth operation, the electronic device personalizes the first contact group set up.

示例性的,个性化设置可以包括:通知铃声、通知消息显示字体、通知窗口背景色、是否置顶显示、头像等。Exemplarily, the personalized setting may include: notification ringtone, notification message display font, notification window background color, whether to display on top, avatar, etc.

这样,基于对联系人分组的个性化设置,能够区分不同的联系人分组的通知聚合窗口中的通知消息,用户体验更佳。而且,与第一联系人分组对应的第一通知窗口置顶显示时,电子设备可以将用户感兴趣的通知信息醒目地显示给用户查看。In this way, based on the personalized setting of the contact group, the notification messages in the notification aggregation window of different contact groups can be distinguished, and the user experience is better. Moreover, when the first notification window corresponding to the first contact group is displayed on top, the electronic device may prominently display the notification information that the user is interested in for the user to view.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备显示第五界面;第五界面上显示有第一应用的标识;响应于对第一应用的标识的第五操作,电子设备将第一应用的名称以及第一会话标识,与第一联系人分组取消关联。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device displays a fifth interface; the fifth interface displays the identification of the first application; responding to the identification of the first application In a fifth operation, the electronic device disassociates the name of the first application and the first session identifier from the first contact group.

其中,第五界面可以理解为联系人分组关联的应用列表界面。Wherein, the fifth interface can be understood as an application list interface associated with contact groups.

这样,用户可以对各个联系人分组关联的应用进行删除管理,以避免不再感兴趣的通知消息依旧显示在通知聚合窗口中。In this way, the user can delete and manage the applications associated with each contact group, so as to prevent notification messages that are no longer interested in still being displayed in the notification aggregation window.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备显示第五界面;第五界面上显示有第一应用的标识;响应于对第一应用的标识的第六操作,电子设备显示第六界面;其中,在第六界面中显示第一应用中与第一会话标识对应的会话界面。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device displays a fifth interface; the fifth interface displays the identification of the first application; responding to the identification of the first application In a sixth operation, the electronic device displays a sixth interface; where a session interface in the first application corresponding to the first session identifier is displayed on the sixth interface.

其中,第五界面可以理解为联系人分组关联的应用列表界面。Wherein, the fifth interface can be understood as an application list interface associated with contact groups.

这样,用户可以便捷地查看相应的应用会话界面,以便用户确认是否为自己感兴趣的联系人发出的通知消息。In this way, the user can conveniently check the corresponding application session interface, so that the user can confirm whether the notification message is sent by the contact person he/she is interested in.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备显示第七界面;第七界面上显示有联系人分组列表,联系人分组列表中包括第一联系人分组的标识;响应于对第一联系人分组的标识的第七操作,电子设备显示第八界面;第八界面中显示有第一联系人分组的个性化设置信息。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device displays a seventh interface; a contact group list is displayed on the seventh interface, and the contact group list includes the first contact Group identification; in response to the seventh operation of identifying the first contact group, the electronic device displays an eighth interface; the eighth interface displays personalized setting information of the first contact group.

这样,便于用户对各个联系人分组进行详情查看及个性化设置管理。In this way, it is convenient for the user to view details and manage personalized settings for each contact group.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备显示第七界面;第七界面上显示有联系人分组列表,联系人分组列表中包括第一联系人分组的标识;电子设备响应于对第一联系人分组的标识的第八操作,删除第一联系人分组。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device displays a seventh interface; a contact group list is displayed on the seventh interface, and the contact group list includes the first contact Group identification; the electronic device deletes the first contact group in response to the eighth operation of identifying the first contact group.

这样,便于用户对联系人分组进行删除管理,以避免不再感兴趣联系人的通知消息依旧在聚合显示。In this way, it is convenient for the user to delete and manage the contact group, so as to prevent the notification messages of the no longer interested contacts from being aggregated and displayed.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备响应于对第一通知窗口的第九操作,第一通知窗口由展开态切换为折叠态;电子设备响应于对第一通知窗口的第十操作,第一通知窗口由折叠态切换为展开态。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device switches the first notification window from an expanded state to a folded state in response to the ninth operation on the first notification window; the electronic device In response to the tenth operation on the first notification window, the first notification window is switched from the collapsed state to the expanded state.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:响应于对第一通知窗口的第十一操作,在界面中删除第一通知窗口。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: in response to the eleventh operation on the first notification window, deleting the first notification window in the interface.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:响应于对第二通知窗口的第十二操作,在第一通知窗口中删除第二通知窗口。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: in response to the twelfth operation on the second notification window, deleting the second notification window in the first notification window.

这样,用户可以在通知聚合窗口中对任意一个应用通知窗口进行操作。In this way, the user can operate any application notification window in the notification aggregation window.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:响应于对第二通知窗口的第十三操作,获取与第二通知窗口对应的第三应用的名称以及第三会话标识,将第三应用的名称以及第三会话标识,与第一联系人分组取消关联。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: in response to the thirteenth operation on the second notification window, acquiring the name of the third application corresponding to the second notification window and the name of the third application Three session identifiers, disassociate the name of the third application and the third session identifier from the first contact group.

这样,在通知聚合窗口界面,用户也可以对联系人分组关联的应用进行删除管理,以避免不再感兴趣的通知消息依旧显示在通知聚合窗口中。In this way, in the notification aggregation window interface, the user can also delete and manage the applications associated with the contact group, so as to avoid notification messages that are no longer of interest still displayed in the notification aggregation window.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备如果根据第一应用的名称和第一会话标识,确定不存在第一通知消息所属的第一联系人分组,则在与第一应用对应的应用通知窗口中显示第一通知消息。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: if the electronic device determines that there is no first contact to which the first notification message belongs according to the name of the first application and the first session identifier grouping, the first notification message is displayed in the application notification window corresponding to the first application.

这样,如果通知消息未基于联系人进行分组,则电子设备会在与相应的应用通知窗口中显示该通知消息,与已有技术相同。In this way, if the notification message is not grouped based on contacts, the electronic device will display the notification message in the corresponding application notification window, which is the same as the prior art.

示例性的,上述提及的第一操作至第十三操作,可以参考下述实施例中相对应的各用户操作,本实施例对此不做限定。Exemplarily, for the first to thirteenth operations mentioned above, reference may be made to corresponding user operations in the following embodiments, which are not limited in this embodiment.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备创建第一联系人分组,并将第一应用的名称以及第一会话标识,与第一联系人分组进行关联,包括:电子设备在第一数据表中添加与第一联系人分组对应的第一记录;其中,第一记录至少包括联系人分组标识,联系人分组标识为第一数据表的主键;电子设备在第二数据表中添加与第一应用的名称以及第一会话标识对应的第二记录,第二记录至少包括通知消息所属的应用名称、通知消息的会话标识,以及联系人分组;其中,通知消息所属的应用名称和通知消息的会话标识共同为第二数据表的主键,联系人分组为第一数据表的外键,关联到第一数据表中的联系人分组标识。According to the first aspect, or any implementation manner of the above first aspect, the electronic device creates a first contact group, and associates the name of the first application and the first session identifier with the first contact group, including: The electronic device adds a first record corresponding to the first contact group in the first data table; wherein, the first record includes at least a contact group identifier, and the contact group identifier is the primary key of the first data table; A second record corresponding to the name of the first application and the first session identifier is added to the data table, and the second record at least includes the application name to which the notification message belongs, the session identifier of the notification message, and the contact group; wherein, the notification message belongs to The application name and the session ID of the notification message are both the primary key of the second data table, and the contact group is the foreign key of the first data table, which is associated with the contact group ID in the first data table.

示例性的,第一数据表可以为下文所述的groupInformation数据表,第二数据表可以为下文所述的convationlist数据表。Exemplarily, the first data table may be the groupInformation data table described below, and the second data table may be the convationlist data table described below.

类似的,在第二数据表中删除记录,可以实现将应用名称以及会话标识与所联系人分组取消关联。在第一数据表中删除记录,同时在第二数据表中删除关联记录,可以实现删除联系人分组。Similarly, deleting a record in the second data table can realize disassociation of the application name and the session identifier from the contact group. Deleting a record in the first data table and deleting an associated record in the second data table can realize the deletion of the contact group.

第二方面,本申请实施例提供一种电子设备。该电子设备包括:一个或多个处理器;存储器;以及一个或多个计算机程序,其中一个或多个计算机程序存储在存储器上,当计算机程序被一个或多个处理器执行时,使得电子设备执行第一方面以及第一方面中任意一项的通知消息的显示方法。In a second aspect, the embodiment of the present application provides an electronic device. The electronic device includes: one or more processors; memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when executed by the one or more processors, the electronic device Execute the first aspect and the method for displaying the notification message in any one of the first aspect.

第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The second aspect and any implementation manner of the second aspect correspond to the first aspect and any implementation manner of the first aspect respectively. For technical effects corresponding to the second aspect and any implementation manner of the second aspect, reference may be made to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, and details are not repeated here.

第三方面,本申请实施例提供一种计算机可读存储介质。该计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得电子设备执行第一方面以及第一方面中任意一项的通知消息的显示方法。In a third aspect, the embodiments of the present application provide a computer-readable storage medium. The computer-readable storage medium includes a computer program, and when the computer program is run on the electronic device, the electronic device is made to execute the first aspect and the method for displaying a notification message in any one of the first aspect.

第三方面以及第三方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第三方面以及第三方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The third aspect and any implementation manner of the third aspect correspond to the first aspect and any implementation manner of the first aspect respectively. For technical effects corresponding to the third aspect and any implementation manner of the third aspect, reference may be made to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, and details are not repeated here.

第四方面,本申请实施例提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面中任意一项的通知消息的显示方法。In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when the computer program is executed, causes the computer to execute the method for displaying a notification message as in the first aspect or any one of the first aspect.

第四方面以及第四方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第四方面以及第四方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The fourth aspect and any implementation manner of the fourth aspect correspond to the first aspect and any implementation manner of the first aspect respectively. For the technical effects corresponding to the fourth aspect and any one of the implementation manners of the fourth aspect, refer to the above-mentioned first aspect and the technical effects corresponding to any one of the implementation manners of the first aspect, and details are not repeated here.

第五方面,本申请提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚和该处理电路通过内部连接通路互相通信,该处理电路执行如第一方面或第一方面中任意一项的通知消息的显示方法,以控制接收管脚接收信号,以控制发送管脚发送信号。In a fifth aspect, the present application provides a chip, and the chip includes a processing circuit and transceiving pins. Wherein, the transceiving pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the display method of the notification message as in the first aspect or any one of the first aspect, to control the receiving pin to receive a signal, to control The send pin sends a signal.

第五方面以及第五方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第五方面以及第五方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。The fifth aspect and any implementation manner of the fifth aspect correspond to the first aspect and any implementation manner of the first aspect respectively. For the technical effects corresponding to the fifth aspect and any one of the implementation manners of the fifth aspect, refer to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation manners of the first aspect, and details are not repeated here.

附图说明Description of drawings

图1为示例性示出的一种应用场景示意图;FIG. 1 is a schematic diagram of an exemplary application scenario;

图2为示例性示出的一种应用场景示意图;FIG. 2 is a schematic diagram of an exemplary application scenario;

图3为示例性示出的电子设备的硬件结构示意图;FIG. 3 is a schematic diagram of a hardware structure of an exemplary electronic device;

图4为示例性示出的电子设备的软件结构示意图;FIG. 4 is a schematic diagram of a software structure of an exemplary electronic device;

图5为示例性示出的一种应用场景示意图;FIG. 5 is a schematic diagram of an exemplary application scenario;

图6a-图6c为示例性示出的一种应用场景示意图;Fig. 6a-Fig. 6c are schematic diagrams showing an exemplary application scenario;

图7a-图7c为示例性示出的一种应用场景示意图;FIG. 7a-FIG. 7c are exemplary schematic diagrams showing an application scenario;

图8a-图8b为示例性示出的一种应用场景示意图;Fig. 8a-Fig. 8b is a schematic diagram of an exemplary application scenario;

图9a-图9d为示例性示出的一种应用场景示意图;FIG. 9a-FIG. 9d are exemplary schematic diagrams showing an application scenario;

图10为示例性示出的一种应用场景示意图;FIG. 10 is a schematic diagram of an exemplary application scenario;

图11为本申请实施例提供的模块交互示意图;Fig. 11 is a schematic diagram of module interaction provided by the embodiment of the present application;

图12为示例性示出的一种应用场景示意图;Fig. 12 is a schematic diagram of an exemplary application scenario;

图13a-图13d为示例性示出的一种应用场景示意图;Figure 13a-Figure 13d is a schematic diagram of an application scenario exemplarily shown;

图14为示例性示出的一种应用场景示意图;Fig. 14 is a schematic diagram of an exemplary application scenario;

图15为示例性示出的一种应用场景示意图;Fig. 15 is a schematic diagram of an exemplary application scenario;

图16为示例性示出的一种应用场景示意图。Fig. 16 is a schematic diagram of an exemplary application scenario.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.

本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first target object, the second target object, etc. are used to distinguish different target objects, rather than describing a specific order of the target objects.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

终端应用的普及和用户安装终端应用的数量上升,随之而来的是通知消息过多且内容不聚焦,各种通知消息相互交织在一起,使得用户很难迅速找到自己关注的通知消息。终端设备往往对同一来源的通知消息进行聚合呈现,在通知栏中对聚合后的通知消息进行显示,从而一定程度上使得通知栏的界面变得简洁而不杂乱。示例性的,终端设备基于通知ID对通知消息进行分组,其中,通知ID是系统预先定义的。当应用发送通知时,自行选定一个通知ID进行发送,终端基于通知ID对通知消息进行聚合显示。With the popularity of terminal applications and the increase in the number of terminal applications installed by users, there are too many notification messages and unfocused content. Various notification messages are intertwined, making it difficult for users to quickly find the notification messages they care about. Terminal devices often aggregate and present notification messages from the same source, and display the aggregated notification messages in the notification bar, thereby making the interface of the notification bar simple and not cluttered to a certain extent. Exemplarily, the terminal device groups the notification messages based on the notification ID, where the notification ID is predefined by the system. When the application sends a notification, it selects a notification ID to send, and the terminal aggregates and displays the notification messages based on the notification ID.

下述以手机为例进行解释说明,以其他终端设备为例亦是如此,不再赘述。The mobile phone is taken as an example for explanation below, and the same is true for taking other terminal devices as examples, and details will not be repeated here.

图1示例性的示出了一种应用场景。参照图1,在手机显示如图1中(1)所示的主界面时,用户在屏幕顶部左侧执行下滑操作,响应于用户操作,手机界面切换,显示如图1中(2)所示的通知中心界面(或者通知栏界面)。如图1中(2)所示,在通知中心界面中,同一来源的通知消息合并显示。示例性的,来自微信应用的通知消息在通知窗口(或称通知卡片)101中显示,来自视频应用的通知消息在通知窗口102中显示,来自短信息应用(或称信息应用)的通知消息在通知窗口103中显示。Fig. 1 exemplarily shows an application scenario. Referring to Figure 1, when the mobile phone displays the main interface as shown in (1) in Figure 1, the user performs a sliding operation on the top left of the screen, and in response to the user operation, the mobile phone interface switches, as shown in (2) in Figure 1 The notification center interface (or notification bar interface) of . As shown in (2) in Figure 1, in the notification center interface, notification messages from the same source are combined and displayed. Exemplarily, a notification message from a WeChat application is displayed in a notification window (or called a notification card) 101, a notification message from a video application is displayed in a notification window 102, and a notification message from a short message application (or called an information application) is displayed in The notification window 103 is displayed.

图2示例性的示出了一种应用场景。参照图2中(1),手机在锁屏界面中显示多个通知窗口,分别用于合并显示来自不同应用的通信消息。示例性的,在通知窗口201中显示有4个通知来自微信应用,在通知窗口202中显示有1个通知来自视频应用,在通知窗口203中显示有1个通知来自短信息应用。由于手机当前为锁屏状态,为保护用户隐私,在通知窗口中仅显示来自某个应用的通知数量。待手机解锁后,在各个通知窗口中即可显示来自某个应用的通知消息,可以参照图2中(2)所示。示例性的,来自微信应用的4个通知的详细信息在通知窗口204中显示,来自视频应用的1个通知的详细信息在通知窗口205中显示,来自短信息应用的1个通知的详细信息在通知窗口206中显示。Fig. 2 exemplarily shows an application scenario. Referring to (1) in FIG. 2 , the mobile phone displays multiple notification windows on the lock screen interface, which are respectively used to combine and display communication messages from different applications. Exemplarily, 4 notifications are displayed in the notification window 201 from the WeChat application, 1 notification is displayed in the notification window 202 from the video application, and 1 notification is displayed in the notification window 203 from the SMS application. Since the phone is currently locked, in order to protect user privacy, only the number of notifications from an application is displayed in the notification window. After the mobile phone is unlocked, a notification message from an application can be displayed in each notification window, as shown in (2) in Figure 2. Exemplarily, the detailed information of 4 notifications from the WeChat application is displayed in the notification window 204, the detailed information of 1 notification from the video application is displayed in the notification window 205, and the detailed information of 1 notification from the short message application is displayed in the notification window 204. A notification window 206 is displayed.

然而,终端应用的普及和用户安装终端应用的数量上升,随之而来的是通知消息过多且内容不聚焦,各种通知消息相互交织在一起,使得用户很难迅速找到自己关注的通知消息。However, with the popularity of terminal applications and the increase in the number of terminal applications installed by users, there are too many notification messages and the content is not focused. Various notification messages are intertwined, making it difficult for users to quickly find the notification messages they care about. .

当终端设备中安装多个社交类应用时,例如微信、QQ、短信息、支付宝、抖音等,同一个人可以基于不同的应用向终端设备用户发送通知消息。在现有的通知消息显示方案中,由于对每个应用的通知消息分别合并显示,因此同一个人在不同应用中向终端设备用户发送的通知消息是各自独立显示的,使得用户难以迅速聚焦自己关注的某个人的通知消息,用户体验较低。When multiple social applications are installed in the terminal device, such as WeChat, QQ, SMS, Alipay, Douyin, etc., the same person can send notification messages to the terminal device user based on different applications. In the existing notification message display scheme, since the notification messages of each application are combined and displayed separately, the notification messages sent by the same person to the terminal device user in different applications are displayed independently, making it difficult for users to quickly focus on themselves Notification message of someone, the user experience is poor.

参照图1中(2)或图2中(2),假设微信应用联系人中的“Chen”与短信息应用联系人中“陈某某”为现实生活中的同一个人,且该人在各个应用中发出的通知消息均为用户比较关注的通知消息。然而,该人在不同应用中发出的通知消息是在不同的通知窗口中进行显示的。由此,用户难以迅速聚焦自己关注的这个人的通知消息,尤其是在通知窗口的数量较多时,用户难以在多个通知窗口中迅速找到这个人通过不同应用发出的通知消息,用户体验较低。Referring to (2) in Figure 1 or (2) in Figure 2, it is assumed that "Chen" in the WeChat application contact and "Chen Moumou" in the SMS application contact are the same person in real life, and this person is in each The notification messages sent by the application are the notification messages that the user pays more attention to. However, notification messages sent by the person in different applications are displayed in different notification windows. As a result, it is difficult for users to quickly focus on the notification messages of the person they care about, especially when the number of notification windows is large, it is difficult for the user to quickly find the notification messages sent by this person through different applications in multiple notification windows, and the user experience is poor. .

如图3所示为电子设备100的结构示意图。可选地,电子设备100可以为终端,也可以称为终端设备,终端可以为蜂窝电话(cellular phone)或平板电脑(pad)等设备,本申请不做限定。需要说明的是,电子设备100的结构示意图可以适用于图1-图2中的手机。应该理解的是,图3所示的电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图3中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。FIG. 3 is a schematic structural diagram of the electronic device 100 . Optionally, the electronic device 100 may be a terminal, which may also be called a terminal device, and the terminal may be a device such as a cellular phone (cellular phone) or a tablet computer (pad), which is not limited in this application. It should be noted that the schematic structural diagram of the electronic device 100 may be applicable to the mobile phones shown in FIGS. 1-2 . It should be understood that the electronic device 100 shown in FIG. 3 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, and may combine two or more components, or may have different component configurations. The various components shown in Figure 3 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器,陀螺仪传感器,加速度传感器,温度传感器,运动传感器,气压传感器,磁传感器,距离传感器,接近光传感器,指纹传感器,触摸传感器,环境光传感器,骨传导传感器等。The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an acceleration sensor, a temperature sensor, a motion sensor, an air pressure sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor (ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory.

USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.

在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used for processing the data fed back by the camera 193 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 193 .

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理,例如使得电子设备100实现本申请实施例中的通知消息的显示方法。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 , such as enabling the electronic device 100 to implement the method for displaying notification messages in the embodiment of the present application. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.

电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.

音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .

扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。在一些实施例中,电子设备100可以设置多个扬声器170A。Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls. In some embodiments, the electronic device 100 may be provided with a plurality of speakers 170A.

受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.

麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.

耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used for connecting wired earphones. The earphone interface 170D may be the USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏194。电子设备100也可以根据压力传感器的检测信号计算触摸的位置。The pressure sensor is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, a pressure sensor may be located on the display screen 194 . The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor.

陀螺仪传感器可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。The gyro sensor can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by a gyro sensor.

加速度传感器可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时加速度传感器可检测出重力的大小及方向。加速度传感器还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor can detect the acceleration of the electronic device 100 in various directions (generally three axes). The acceleration sensor can detect the magnitude and direction of gravity when the electronic device 100 is stationary. Acceleration sensors can also be used to identify the attitude of electronic devices, and are used in applications such as horizontal and vertical screen switching, pedometers, etc.

触摸传感器,也称“触控面板”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。Touch sensor, also known as "touch panel". The touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, also called “touch screen”. The touch sensor is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.

按键190包括开机键(或称电源键),音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button (or called a power button), a volume button, and the like. The key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.

电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .

图4是本申请实施例的电子设备100的软件结构框图。FIG. 4 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.

电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android Runtime)和系统库,以及内核层。The layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application program layer, the application program framework layer, the Android Runtime (Android Runtime) and the system library, and the kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.

如图4所示,应用程序包可以包括微信、短信息、设置、通知中心、社交应用、Lancher、通知分组管理模块等应用程序。示例性的,应用程序包还可以包括通话、日历、地图、导航、音乐、视频等应用程序。As shown in FIG. 4 , the application program package may include application programs such as WeChat, short message, setting, notification center, social application, Lancher, and notification group management module. Exemplarily, the application program package may also include application programs such as call, calendar, map, navigation, music, and video.

其中,社交应用可以指的是联系人(或称好友)之间能够发送通知消息的任意应用,例如QQ、抖音、支付宝等。Wherein, the social application may refer to any application capable of sending notification messages between contacts (or called friends), such as QQ, Douyin, Alipay, and the like.

其中,Launcher,也可称为桌面应用或主屏幕等。一般,Android系统启动后Launcher可作为核心应用常驻在Android系统中运行。Wherein, the Launcher may also be referred to as a desktop application or a main screen. Generally, after the Android system is started, the Launcher can run resident in the Android system as a core application.

其中,通知中心,可以用于实现对通知消息的展示,例如可以是展示来自各个应用程序的通信消息。Wherein, the notification center may be used to display notification messages, for example, to display communication messages from various application programs.

在本实施例中,通知分组管理模块,可以用于实现对基于联系人进行通知消息分组显示的管理。其中,通知分组管理模块可以是独立的功能模块,也可以是集成于Lancher或设置应用中,本实施例对此不做限定。示例性的,通知分组管理模块可以新增或删除联系人通知消息分组(或称联系人分组),也可以新增或删除与某个联系人通知消息分组关联的应用会话信息,还可以基于通知消息所属的应用名称和会话标识判断该通知消息是否已基于联系人进行了分组等。In this embodiment, the notification group management module can be used to manage the group display of notification messages based on contacts. Wherein, the notification group management module may be an independent functional module, or may be integrated in the Lancher or setting application, which is not limited in this embodiment. Exemplarily, the notification group management module can add or delete a contact notification message group (or called a contact group), and can also add or delete application session information associated with a contact notification message group, and can also The application name and the session identifier to which the message belongs determine whether the notification message has been grouped based on contacts.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 4, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.

通知管理器使应用程序可以在状态栏(或通知中心界面等)中显示通知信息(或称通知消息),可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互,也可以长时间停留待用户删除后消失。比如通知消息被用于告知下载完成,消息提醒等。通知消息还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information (or notification messages) in the status bar (or notification center interface, etc.), which can be used to convey notification-type messages, which can disappear automatically after a short stay without user interaction, or It stays for a long time and disappears after the user deletes it. For example, notification messages are used to inform download completion, message reminders, etc. The notification message can also be a notification appearing on the status bar at the top of the system in the form of a chart or scroll bar text, such as a notification of an application program running in the background, or a notification appearing on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.

在本申请实施例中,通知管理器还可以用于解析通知消息的会话ID及应用名称,以使通知分组管理模块可以基于通知消息的会话ID及应用名称判断该通知消息是否基于联系人进行了分组。如果某通知消息基于联系人进行了分组,则该通知消息在与相应联系人对应的通知聚合窗口中进行显示,否则,该通知消息基于已有技术进行显示。In this embodiment of the application, the notification manager can also be used to parse the session ID and application name of the notification message, so that the notification group management module can judge whether the notification message is based on the contact person based on the session ID and application name of the notification message. grouping. If a notification message is grouped based on contacts, the notification message is displayed in the notification aggregation window corresponding to the corresponding contact; otherwise, the notification message is displayed based on the prior art.

Android Runtime包括核心库和虚拟机。Android Runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. Android Runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.

2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,音频驱动,Wi-Fi驱动,传感器驱动等。其中,硬件至少包括处理器、显示屏、Wi-Fi模块、传感器等。The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, audio driver, Wi-Fi driver, sensor driver, etc. Wherein, the hardware includes at least a processor, a display screen, a Wi-Fi module, a sensor, and the like.

可以理解的是,图4示出的软件结构中的层以及各层中包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的层,以及每个层中可以包括更多或更少的部件,本申请不做限定。It can be understood that the layers in the software structure shown in FIG. 4 and the components contained in each layer do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.

可以理解的是,电子设备为了实现本申请实施例中的通知消息的显示方法,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to implement the method for displaying notification messages in the embodiments of the present application, the electronic device includes corresponding hardware and/or software modules for performing various functions. Combining the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

为了解决“用户很难在多个通知窗口中迅速找到自己关注的某个联系人的通知消息”的问题,本申请实施例提供了一种通知消息的显示方法。其中,用户可以对不同应用中的同一联系人(对应于现实生活中的某个人)进行自定义分组,终端设备则基于该自定义分组将同一联系人在不同应用中发出的通知消息进行聚合显示。由此,无论该联系人通过哪个应用向终端设备用户发送通知消息,终端设备用户均可以在与该联系人对应的通知聚合窗口中查看到相应的通知消息,无需再从大量应用通知窗口中一一查找,简化了用户获取感兴趣信息的时间成本。这样,终端设备可以将用户真正关心的联系人通知消息醒目地展示给用户,提升了用户使用体验。In order to solve the problem that "it is difficult for a user to quickly find a notification message of a contact he/she cares about in multiple notification windows", an embodiment of the present application provides a method for displaying a notification message. Among them, the user can customize the grouping of the same contact (corresponding to a person in real life) in different applications, and the terminal device will aggregate and display the notification messages sent by the same contact in different applications based on the custom grouping . As a result, no matter which application the contact uses to send a notification message to the terminal device user, the terminal device user can view the corresponding notification message in the notification aggregation window corresponding to the contact, without having to click through a large number of application notification windows. One search simplifies the time cost for users to obtain interested information. In this way, the terminal device can conspicuously display the contact notification message that the user really cares about to the user, which improves the user experience.

图5示例性的示出了一种应用场景。假设,手机用户比较关注“老板”这一现实生活中的联系人发送的通知消息,则手机用户可以将“老板”这一联系人在各个应用中发送的通知消息分配到一个通知聚合分组中,例如将“老板”在微信、短信息、QQ以及其他应用中发送的通知消息分配到与“老板”这一联系人对应的通知聚合分组中。由此,当“老板”使用这些应用中的任一应用向手机用户发送通知消息时,通知消息均会显示在与“老板”这一联系人对应的通知聚合分组(或称通知聚合窗口)中。如图5所示,以通知中心页面为例,手机上显示有与“老板”这一现实生活中的联系人对应的通知聚合窗口301。在通知聚合窗口301中,显示有与“老板”这一联系人对应的至少一个应用通知窗口,例如短信息应用通知窗口3011和微信应用通知窗口3012。其中,无论“老板”这一联系人是从短信息应用给手机用户发送通知消息,是从微信应用中给手机用户发送通知消息,还是从其他应用中给手机用户发送通知消息,通知消息均会显示在在与“老板”这一联系人对应的通知聚合窗口301中。当用户点击短信息应用通知窗口3011或微信应用通知窗口3012时,手机即可显示对应的应用界面,以使用户可以查看该应用中的会话消息或通知消息。Fig. 5 exemplarily shows an application scenario. Assuming that the mobile phone user pays more attention to the notification messages sent by the contact "boss" in real life, the mobile phone user can assign the notification messages sent by the contact "boss" in each application to a notification aggregation group, For example, the notification messages sent by the "boss" in WeChat, SMS, QQ and other applications are assigned to the notification aggregation group corresponding to the contact "boss". Therefore, when the "boss" uses any of these applications to send a notification message to the mobile phone user, the notification message will be displayed in the notification aggregation group (or notification aggregation window) corresponding to the "boss" contact . As shown in FIG. 5 , taking the notification center page as an example, the mobile phone displays a notification aggregation window 301 corresponding to the real-life contact "boss". In the notification aggregation window 301, at least one application notification window corresponding to the contact "boss" is displayed, such as a short message application notification window 3011 and a WeChat application notification window 3012. Among them, no matter whether the "boss" contact person sends a notification message to the mobile phone user from a short message application, sends a notification message to the mobile phone user from the WeChat application, or sends a notification message to the mobile phone user from other applications, the notification message will be sent to the mobile phone user. It is displayed in the notification aggregation window 301 corresponding to the "boss" contact. When the user clicks on the notification window 3011 of the SMS application or the notification window 3012 of the WeChat application, the mobile phone can display the corresponding application interface, so that the user can view the conversation message or notification message in the application.

需要注意的是,与某个通知聚合窗口对应的联系人为现实生活中的某个联系人,“老板”这一联系人称呼可以是手机用户自定义的,可以与某个应用中该联系人的备注相同,也可以不同。其中,与某个通知聚合窗口对应的联系人称呼并非以某个应用为准。It should be noted that the contact corresponding to a notification aggregation window is a contact in real life, and the title of the contact "boss" can be customized by the mobile phone user, and can be related to the contact's name in an application. Remarks are the same or different. Wherein, the contact name corresponding to a certain notification aggregation window is not subject to a certain application.

需要指出的是,图1中(2)所示的通知中心界面,图2中(2)所示的锁屏解锁界面,仅仅是示例性的示出了通知窗口显示界面,通知窗口还可以显示在其他界面中,本实施例对此不做限定。下述仅以通知中心界面为例,对本实施例提供的通知消息的显示方法进行解释说明,以其他通知窗口显示界面为例亦是如此,不再赘述。It should be pointed out that the notification center interface shown in (2) in Figure 1 and the lock screen unlocking interface shown in (2) in Figure 2 are only exemplary notification window display interfaces, and the notification window can also display In other interfaces, this embodiment does not limit it. The following only uses the notification center interface as an example to explain the method for displaying notification messages provided by this embodiment, and the same is true for other notification window display interfaces, so details will not be repeated here.

其中,在手机基于联系人进行通知消息聚合显示之前,手机用户需要按照个人需求创建联系人通知消息分组。进而,在联系人通知消息分组创建完成后,手机即可在与该联系人通知消息分组对应的通知聚合窗口中进行通知消息聚合显示。下述分别对联系人通知消息分组创建、管理以及基于联系人通知消息分组的通知消息聚合显示等流程进行详细解释说明。Among them, before the mobile phone aggregates and displays notification messages based on contacts, mobile phone users need to create contact notification message groups according to individual needs. Furthermore, after the contact notification message group is created, the mobile phone can display the notification message aggregation in the notification aggregation window corresponding to the contact notification message group. The processes of creating and managing contact notification message groups and aggregated display of notification messages based on contact notification message groups are explained in detail below.

场景一scene one

在本场景中,手机中不存在联系人通知消息分组,当手机接收到通知消息时,手机用户可以基于个人需求完成联系人通知消息分组创建。其中,在联系人通知消息分组创建的过程中,手机的通知分组管理模块实现了该联系人通知消息分组与这条通知消息的应用会话信息的关联。In this scenario, there is no contact notification message group in the mobile phone. When the mobile phone receives the notification message, the mobile phone user can complete the creation of the contact notification message group based on personal needs. Wherein, during the process of creating a contact notification message group, the notification group management module of the mobile phone implements the association between the contact notification message group and the application session information of this notification message.

图6a-图6c示例性的示出了用户创建联系人通知消息分组的应用场景。6a-6c exemplarily show an application scenario in which a user creates a contact notification message group.

如图6a中(1)所示,响应于微信应用发送通知消息,手机通知中心界面上显示与微信应用对应的通知窗口401。其中,在通知窗口401中,显示有微信应用通知消息的发送时间“刚刚”、发送人“Chen”以及信息内容“xxxxxxxx”。如果该通知消息的发送人“Chen”为手机用户关注的联系人(假设为“老板”),手机用户则可以创建与联系人“老板”对应的通知消息分组,以使联系人“老板”在微信应用中发送的通知消息可以显示在与联系人“老板”对应的通知聚合窗口中。此时,手机用户可以在通知窗口401中执行左滑操作。响应于用户操作,手机显示如图6a中(2)所示的界面。参照图6a中(2),由于用户左滑操作,通知窗口401仅右半部分显示于界面上。在通知窗口401的右侧,界面上显示有联系人通知消息分组创建选项402和通知窗口删除选项403。当用户点击通知窗口删除选项403时,响应于用户操作,手机在界面上删除通知窗口401。当用户点击联系人通知消息分组创建选项402时,响应于用户操作,手机创建与“老板”对应的联系人通知消息分组。As shown in (1) in FIG. 6 a , in response to the notification message sent by the WeChat application, a notification window 401 corresponding to the WeChat application is displayed on the mobile phone notification center interface. Wherein, in the notification window 401, the sending time "just now", the sender "Chen" and the message content "xxxxxxxx" of the WeChat application notification message are displayed. If the sender "Chen" of the notification message is a contact (assumed to be "boss") followed by the mobile phone user, the mobile phone user can create a notification message group corresponding to the contact "boss", so that the contact "boss" is in the The notification message sent in the WeChat application may be displayed in a notification aggregation window corresponding to the contact "boss". At this point, the mobile phone user can perform a left-swipe operation in the notification window 401 . In response to user operations, the mobile phone displays an interface as shown in (2) in Figure 6a. Referring to (2) in FIG. 6 a , due to the left sliding operation of the user, only the right half of the notification window 401 is displayed on the interface. On the right side of the notification window 401 , the contact notification message group creation option 402 and the notification window deletion option 403 are displayed on the interface. When the user clicks the notification window deletion option 403, in response to the user operation, the mobile phone deletes the notification window 401 on the interface. When the user clicks on the contact notification message group creation option 402, in response to the user operation, the mobile phone creates a contact notification message group corresponding to "boss".

图6b中(1)示例性的示出了联系人通知消息分组的信息界面。响应于用户点击联系人通知消息分组创建选项402的操作,手机可以显示如图6b中(1)所示的界面。在该界面中,用户可以对联系人通知消息分组的信息进行设置。示例性的,用户点击头像选项501,并在图库中选择图像,可以实现对联系人通知消息分组的头像设置;用户点击分组名称选项,键入文字信息,可以实现对联系人通知消息分组的名称设置。又示例性的,用户点击开关选项503,可以设置是否允许联系人通知消息分组进行消息通知。再示例性的,用户点击选项504可以为联系人通知消息分组选择通知铃声,用户点击选项505可以为联系人通知消息分组选择消息字体,用户操作开关选项506可以设置是否置顶显示联系人通知消息分组,用户点击选项507可以为联系人通知消息分组的消息聚合窗口选择背景色。这样,用户可以对联系人通知消息分组进行个性化设置。(1) in FIG. 6b exemplarily shows an information interface of a contact notification message group. In response to the user's operation of clicking the contact notification message group creation option 402, the mobile phone may display an interface as shown in (1) in FIG. 6b. In this interface, the user can set the information of the contact notification message group. Exemplarily, the user clicks on the avatar option 501 and selects an image in the gallery to realize the avatar setting of the contact notification message group; the user clicks the group name option and enters text information to realize the name setting of the contact notification message group . For another example, the user clicks the switch option 503 to set whether to allow the contact notification message group to perform message notification. As another example, the user clicks option 504 to select a notification ringtone for the contact notification message group, the user clicks option 505 to select a message font for the contact notification message group, and the user operates the switch option 506 to set whether to display the contact notification message group on top , the user can click option 507 to select a background color for the message aggregation window of the contact notification message group. In this way, the user can personalize the grouping of contact notification messages.

图6b中(2)示例性的示出了一个联系人通知消息分组的信息。其中,该联系人通知消息分组的名称为“老板”,允许联系人通知消息分组进行消息通知,该联系人通知消息分组的通知铃声为铃声Y,消息字体为字体Y,消息聚合窗口背景色为灰色,且置顶显示该联系人通知消息分组。参照图6b中(2),在联系人通知消息分组的信息界面中,还可以显示确认选项和取消选项。当用户点击确认选项时,手机保存当前联系人通知消息分组的信息,并完成联系人通知消息分组的创建。当用户点击取消选项时,手机不保存当前联系人通知消息分组的信息,取消对当前联系人通知消息分组的创建。(2) in FIG. 6b exemplarily shows information of a contact notification message group. Among them, the name of the contact notification message group is "boss", which allows the contact notification message group to perform message notification. The notification ringtone of the contact notification message group is ringtone Y, the message font is font Y, and the background color of the message aggregation window is Gray, and the contact notification message group will be displayed on top. Referring to (2) in FIG. 6 b , in the information interface of the contact notification message group, a confirmation option and a cancel option may also be displayed. When the user clicks the confirmation option, the mobile phone saves the information of the current contact notification message group, and completes the creation of the contact notification message group. When the user clicks the cancel option, the mobile phone does not save the information of the notification message group of the current contact, and cancels the creation of the notification message group of the current contact.

继续参照图6b中(1),在联系人通知消息分组的信息界面中,还显示有分组应用详情选项508。在联系人通知消息分组“老板”被创建完成之后,如图6b中(2)所示,用户点击分组应用详情选项508,响应于用户操作,手机显示如图6c中(1)所示的应用管理界面。在该应用管理界面中,显示有联系人通知消息分组涉及的应用信息,也即显示需要聚合显示在联系人通知消息分组中的通知消息所对应的应用。示例性的,用户基于微信应用消息创建的联系人通知消息分组,故该联系人通知消息分组涉及的应用包括微信,如图6c中(1)所示。参照图6c中(1),当用户点击微信应用选项601时,响应于用户操作,手机显示微信应用中相应联系人(也即与联系人通知消息分组对应的联系人)的聊天界面,如图6c中(2)所示。Continuing to refer to (1) in FIG. 6 b , in the information interface of the contact notification message group, a group application details option 508 is also displayed. After the contact notification message group "boss" is created, as shown in (2) in Figure 6b, the user clicks the group application details option 508, and in response to the user operation, the mobile phone displays the application as shown in (1) in Figure 6c management interface. In the application management interface, the application information related to the contact notification message group is displayed, that is, the application corresponding to the notification messages that need to be aggregated and displayed in the contact notification message group is displayed. Exemplarily, the contact notification message group created by the user based on the WeChat application message, so the application involved in the contact notification message group includes WeChat, as shown in (1) in FIG. 6c. Referring to (1) in Figure 6c, when the user clicks on the WeChat application option 601, in response to the user operation, the mobile phone displays the chat interface of the corresponding contact in the WeChat application (that is, the contact corresponding to the contact notification message group), as shown in the figure Shown in (2) in 6c.

其中,创建联系人通知消息分组时,手机的通知分组管理模块需要对联系人通知消息分组的数据进行存储。示例性的,本实施例可以采用数据库形式或文件形式等对联系人通知消息分组的数据进行存储,本实施例对此不做限定。下述以数据库形式为例进行解释说明。Wherein, when creating a contact notification message group, the notification group management module of the mobile phone needs to store the data of the contact notification message group. Exemplarily, in this embodiment, the data of the contact notification message group may be stored in the form of a database or a file, which is not limited in this embodiment. The following uses the database format as an example for explanation.

在本实施例中,手机的通知分组管理模块可以基于两张数据表实现对联系人通知消息分组的数据存储及管理。其中,一张数据表用于存储联系人通知消息分组的信息,一张数据表用于存储已分组(即基于联系人通知消息分组进行分组)的应用会话信息。这两张数据表可以基于联系人通知消息分组的ID进行关联。In this embodiment, the notification group management module of the mobile phone can implement data storage and management of contact notification message groups based on two data tables. Wherein, one data table is used for storing information of contact notification message groups, and one data table is used for storing grouped (that is, grouped based on contact notification message grouping) application session information. These two data tables can be associated based on the ID of the contact notification message group.

示例性的,用于存储联系人通知消息分组的信息的数据表(如groupInformation数据表)中可以包括如下信息:联系人通知消息分组的标识(ID),联系人通知消息分组的名称(name),是否允许联系人通知消息分组进行消息通知(allow_notify),联系人通知消息分组的铃声(ring),联系人通知消息分组的消息字体(font),联系人通知消息分组是否置顶显示(stick),联系人通知消息分组的头像(avatar),联系人通知消息分组的通知聚合窗口背景色(bg_color)。Exemplarily, the data table (such as the groupInformation data table) for storing the information of the contact notification message group may include the following information: the identification (ID) of the contact notification message group, the name (name) of the contact notification message group , Whether to allow the contact notification message group to perform message notification (allow_notify), the ringtone of the contact notification message group (ring), the message font of the contact notification message group (font), whether the contact notification message group is displayed on top (stick), The avatar (avatar) of the contact notification message group, and the background color (bg_color) of the notification aggregation window of the contact notification message group.

其中,联系人通知消息分组的标识(ID),用于唯一标识一个联系人通知消息分组,数据类型为整数类型(INT),为groupInformation数据表的主键。示例性的,联系人通知消息分组的ID从1开始,自动递增。Wherein, the identification (ID) of the contact notification message group is used to uniquely identify a contact notification message group, and the data type is an integer type (INT), which is the primary key of the groupInformation data table. Exemplarily, the ID of the contact notification message group starts from 1 and increases automatically.

其中,在groupInformation数据表中,联系人通知消息分组的名称,是否允许联系人通知消息分组进行消息通知,联系人通知消息分组的铃声,联系人通知消息分组的消息字体,联系人通知消息分组是否置顶显示,联系人通知消息分组的头像,以及联系人通知消息分组的通知聚合窗口背景色中的一项或多项可以设置默认值。Among them, in the groupInformation data table, the name of the contact notification message group, whether the contact notification message group is allowed to perform message notification, the ringtone of the contact notification message group, the message font of the contact notification message group, whether the contact notification message group is Default values can be set for one or more of the top display, the avatar of the contact notification message group, and the background color of the notification aggregation window of the contact notification message group.

又示例性的,用于存储已分组应用会话信息的数据表(如convationlist数据表)中可以包括如下信息:已分组通知消息的标识(ID),通知消息所属应用名称(pkg_name),应用中的会话标识(ConversationID),通知消息所属的联系人通知消息分组(group)。As another example, the data table (such as the convationlist data table) for storing grouped application session information may include the following information: the identifier (ID) of the grouped notification message, the name of the application (pkg_name) to which the notification message belongs, and the ConversationID, the contact notification group to which the notification message belongs.

其中,已分组通知消息的标识(ID),用于唯一标识一条已分组的通知消息,数据类型为整数类型(INT)。示例性的,已分组通知消息的ID从1开始,自动递增。Wherein, the identifier (ID) of the grouped notification message is used to uniquely identify a grouped notification message, and the data type is an integer type (INT). Exemplarily, the ID of the grouped notification message starts from 1 and increases automatically.

通知消息所属应用名称(pkg_name)可以唯一地区分通知消息是哪个应用发出的,而在发出通知消息的应用已确定的基础上,应用中的会话标识(ConversationID)可以唯一地区分通知消息是应用中哪个联系人发出的。因此,通知消息所属应用名称(pkg_name)和应用中的会话标识(ConversationID)可以唯一地将一条已分组的通知消息标识出来。故在convationlist数据表中,通知消息所属应用名称(pkg_name)和应用中的会话标识(ConversationID)共同组成数据表的主键。The application name (pkg_name) to which the notification message belongs can uniquely distinguish which application sent the notification message, and on the basis that the application that sent the notification message has been determined, the conversation ID (ConversationID) in the application can uniquely distinguish which application the notification message is from. Which contact sent it. Therefore, the application name (pkg_name) to which the notification message belongs and the conversation ID (ConversationID) in the application can uniquely identify a grouped notification message. Therefore, in the convationlist data table, the application name (pkg_name) to which the notification message belongs and the conversation ID (ConversationID) in the application together form the primary key of the data table.

需要指出的是,应用中的会话标识(ConversationID)可以唯一地区分通知消息是应用中哪个联系人发出的。不同应用中的会话标识(ConversationID)可能相同,故本实施例采用通知消息所属应用名称(pkg_name)和应用中的会话标识(ConversationID)来唯一标识一条已分组的通知消息。It should be pointed out that the conversation ID (ConversationID) in the application can uniquely distinguish which contact in the application sends the notification message. Conversation IDs in different applications may be the same, so this embodiment uses the application name (pkg_name) to which the notification message belongs and the conversation ID (ConversationID) in the application to uniquely identify a grouped notification message.

在一种可选的实施方式中,应用基于预定义的会话构造方法来构造通知消息,在该通知消息中携带其在应用中的会话标识(ConversationID)。当通知管理器接收到应用发出的通知消息后,基于预定义的会话构造方法来解析通知消息,获取该通知消息在应用中的会话标识(ConversationID)。此时,结合发出通知消息的应用的名称,以及通知消息在应用中的会话标识(ConversationID),即可确定一条通知消息是否为已分组的通知消息。In an optional implementation manner, the application constructs a notification message based on a predefined conversation construction method, and the notification message carries its conversation identifier (ConversationID) in the application. When the notification manager receives the notification message sent by the application, it parses the notification message based on the predefined session construction method, and obtains the conversation ID (ConversationID) of the notification message in the application. At this point, combining the name of the application that sends the notification message and the conversation ID (ConversationID) of the notification message in the application, it can be determined whether a notification message is a grouped notification message.

在另一种可选的实施方式中,应用基于自定义的会话构造方法来构造通知消息,在该通知消息中携带其在应用中的会话标识(ConversationID)。当通知管理器接收到应用发出的通知消息后,基于与该应用匹配的会话构造方法来解析通知消息,获取该通知消息在应用中的会话标识(ConversationID)。此时,结合发出通知消息应用名称,以及通知消息在应用中的会话标识(ConversationID),即可确定一条通知消息是否为已分组的通知消息。In another optional implementation manner, the application constructs a notification message based on a custom session construction method, and the notification message carries its conversation ID (ConversationID) in the application. When the notification manager receives the notification message sent by the application, it parses the notification message based on the conversation construction method matching the application, and obtains the conversation ID (ConversationID) of the notification message in the application. At this point, combining the name of the application that sends the notification message and the conversation ID (ConversationID) of the notification message in the application, it can be determined whether a notification message is a grouped notification message.

在又一种可选的实施方式中,应用基于自定义的会话构造方法来构造通知消息。当通知管理器接收到应用发出的通知消息后,基于应用提供的相关接口获取该通知消息在应用中的会话标识(ConversationID)。此时,结合发出通知消息应用名称,以及通知消息在应用中的会话标识(ConversationID),即可确定一条通知消息是否为已分组的通知消息。In yet another optional implementation manner, the application constructs the notification message based on a custom session construction method. After receiving the notification message sent by the application, the notification manager obtains the conversation ID (ConversationID) of the notification message in the application based on the relevant interface provided by the application. At this point, combining the name of the application that sends the notification message and the conversation ID (ConversationID) of the notification message in the application, it can be determined whether a notification message is a grouped notification message.

在convationlist数据表中,通知消息所属的联系人通知消息分组(group)为外键,关联到groupInformation数据表中的联系人通知消息分组的标识(ID)字段,用于标识通知消息所属的联系人通知消息分组。In the convationlist data table, the contact notification message group (group) to which the notification message belongs is a foreign key, which is associated with the identification (ID) field of the contact notification message group in the groupInformation data table, and is used to identify the contact to which the notification message belongs Notification message grouping.

继续参照图6a中(2),当用户点击联系人通知消息分组创建选项402时,响应于用户操作,手机的通知分组管理模块创建与“老板”对应的联系人通知消息分组。其中,在通知分组管理模块创建与“老板”对应的联系人通知消息分组的过程中,通知分组管理模块自动生成一个联系人通知消息分组“老板”的ID,并根据用户对联系人通知消息分组的信息设置(如名称、图像、是否允许通知、是否置顶、铃声、字体、窗口背景色等),在groupInformation数据表中添加一条记录,用于指示该联系人通知消息分组“老板”的信息。然后,通知分组管理模块自动生成一个已分组通知消息的ID,并根据通知消息的所属应用名称(pkg_name),“Chen”发送的通知消息在微信应用中的会话标识(ConversationID),以及新建的联系人通知消息分组“老板”的ID,在convationlist数据表中添加一条记录,用于指示一条已分组应用会话信息。其中,该条已分组通知消息的联系人通知消息分组(group)为新建的联系人通知消息分组“老板”的ID,以此实现新创建的该联系人通知消息分组“老板”,与这条已分组通知消息(即“Chen”在微信应用中发送的通知消息)的应用会话信息(即pkg_name和ConversationID)的关联。Continuing to refer to (2) in FIG. 6 a , when the user clicks on the contact notification message group creation option 402 , in response to the user operation, the notification group management module of the mobile phone creates a contact notification message group corresponding to "boss". Wherein, in the process of creating a contact notification message group corresponding to "boss" by the notification group management module, the notification group management module automatically generates a contact notification message group "boss" ID, and groups the contact notification message according to the user Information settings (such as name, image, whether to allow notifications, whether to stick to the top, ringtones, fonts, window background colors, etc.), add a record in the groupInformation data table, which is used to indicate the information of the contact notification message group "Boss". Then, the notification group management module automatically generates an ID of a grouped notification message, and according to the application name (pkg_name) of the notification message, the conversation ID (ConversationID) of the notification message sent by "Chen" in the WeChat application, and the newly created contact Add a record to the convationlist data table for the ID of the person notification message group "boss", which is used to indicate a grouped application session information. Among them, the contact notification message group (group) of the grouped notification message is the ID of the newly created contact notification message group "boss", so as to realize the newly created contact notification message group "boss", which is consistent with this Correlation of application session information (ie, pkg_name and ConversationID) of grouped notification messages (that is, notification messages sent by "Chen" in the WeChat application).

至此,手机的通知分组管理模块完成对一个联系人通知消息分组的创建。其中,创建的该联系人通知消息分组,与一条应用会话信息进行关联。也即,当接收到与该条应用会话匹配的通知消息时,也即接收到“Chen”在微信应用中发送的通知消息时,手机会将该通知消息显示于与联系人通知消息分组“老板”对应的通知聚合窗口中。So far, the notification group management module of the mobile phone has completed the creation of a contact notification message group. Wherein, the created contact notification message group is associated with a piece of application session information. That is to say, when receiving a notification message matching the application session, that is, when receiving a notification message sent by "Chen" in the WeChat application, the mobile phone will display the notification message in the contact notification message group "boss". ” in the corresponding notification aggregation window.

场景二scene two

在本场景中,手机中存在联系人通知消息分组,当手机接收到未基于联系人分组的一条通知消息时,手机用户可以基于个人需求将该通知消息对应的应用会话信息与已有的某个联系人通知消息分组进行关联。In this scenario, there are contact notification message groups in the mobile phone. When the mobile phone receives a notification message that is not based on contact grouping, the mobile phone user can combine the application session information corresponding to the notification message with an existing one based on personal needs. Contact notification messages are grouped for association.

图7a-图7c示例性的示出了用户基于已创建的联系人通知消息分组进行通知消息分组的应用场景。7a-7c exemplarily show an application scenario where a user groups notification messages based on the created contact notification message groups.

如图7a中(1)所示,响应于短信息应用发送通知消息,手机通知中心界面上显示与短信息应用对应的通知窗口701。其中,在通知窗口701中,显示有短信息应用通知消息的发送时间“刚刚”、发送人“陈某某”以及信息内容“xxxxxxxx”。如果该通知消息的发送人“陈某某”为手机用户关注的联系人(假设为“老板”),手机用户则可以将该通知消息对应的应用会话信息与联系人通知消息分组“老板”进行关联,以使“陈某某”在短信息应用中发送的通知消息可以显示在与联系人“老板”对应的通知聚合窗口中。此时,手机用户可以在通知窗口701中执行左滑操作。响应于用户操作,手机显示如图7a中(2)所示的界面。参照图7a中(2),由于用户左滑操作,通知窗口701仅右半部分显示于界面上。在通知窗口701的右侧,界面上显示有联系人通知消息分组创建选项702。当用户点击联系人通知消息分组创建选项702时,响应于用户操作,手机显示联系人通知消息分组列表界面,如图7b中(1)所示。As shown in (1) in FIG. 7 a , in response to the notification message sent by the short message application, a notification window 701 corresponding to the short message application is displayed on the mobile phone notification center interface. Wherein, in the notification window 701, the sending time "just now", the sender "Chen XX" and the message content "xxxxxxxx" of the short message application notification message are displayed. If the sender of the notification message "Chen Moumou" is a contact (assumed to be "boss") followed by the mobile phone user, the mobile phone user can compare the application session information corresponding to the notification message with the contact notification message group "boss". Association, so that the notification message sent by "Chen XX" in the short message application can be displayed in the notification aggregation window corresponding to the contact "Boss". At this point, the mobile phone user can perform a left swipe operation in the notification window 701 . In response to user operations, the mobile phone displays an interface as shown in (2) in Figure 7a. Referring to (2) in FIG. 7 a , due to the left sliding operation of the user, only the right half of the notification window 701 is displayed on the interface. On the right side of the notification window 701, a contact notification message group creation option 702 is displayed on the interface. When the user clicks the contact notification message group creation option 702, in response to the user operation, the mobile phone displays a contact notification message group list interface, as shown in (1) in FIG. 7b.

参照图7b中(1)所示的联系人通知消息分组列表界面,当前已创建的联系人通知消息分组包括名称为“老板”和“张三”的两个联系人通知消息分组。如果用户需要将“陈某某”在短信息应用中发送的通知消息聚合显示在与联系人“老板”对应的通知聚合窗口中,则可以点击与联系人通知消息分组“老板”对应的选项801以选中联系人通知消息分组“老板”。如图7b中(2)所示,选项801的圆圈中显示圆点,标识联系人通知消息分组“老板”被选中。Referring to the contact notification message group list interface shown in (1) in FIG. 7b, the currently created contact notification message group includes two contact notification message groups named "Boss" and "Zhang San". If the user needs to aggregate and display the notification messages sent by "Chen XX" in the short message application in the notification aggregation window corresponding to the contact "boss", he can click on the option 801 corresponding to the contact notification message group "boss". Group "boss" with the selected contact notification message. As shown in (2) in FIG. 7 b , a dot is displayed in the circle of option 801 , indicating that the contact notification message group "boss" is selected.

在联系人通知消息分组“老板”被选中之后,用户如果点击确认选项802,则手机的通知分组管理模块完成通知消息(即“陈某某”在短信息应用中发送的通知消息)对应的应用会话信息与联系人通知消息分组“老板”的关联。此时,groupInformation数据表中数据不增加,convationlist数据表中添加一条记录,用于指示一条已分组应用会话信息,也即指示与“陈某某”在短信息应用中发送的通知消息对应的应用会话信息。其中,该会话信息被分组至联系人通知消息分组“老板”,也即该会话信息的联系人通知消息分组(group),为groupInformation数据表中联系人通知消息分组“老板”的ID。After the contact notification message group "boss" is selected, if the user clicks on the confirmation option 802, the notification group management module of the mobile phone completes the corresponding application Association of session information with contact notification message group "boss". At this time, the data in the groupInformation data table does not increase, and a record is added in the convationlist data table to indicate a grouped application session information, that is, to indicate the application corresponding to the notification message sent by "Chen Moumou" in the short message application session information. Wherein, the session information is grouped into the contact notification message group "boss", that is, the contact notification message group (group) of the session information, which is the ID of the contact notification message group "boss" in the groupInformation data table.

在联系人通知消息分组“老板”被选中之后,用户如果点击取消选项803,则手机的通知分组管理模块不对联系人通知消息分组数据进行调整,也即groupInformation数据表和convationlist数据表中的数据均不变。After the contact notification message group "boss" is selected, if the user clicks the cancel option 803, the notification group management module of the mobile phone will not adjust the contact notification message group data, that is, the data in the groupInformation data table and the convationlist data table are both constant.

用户点击确认选项802,手机的通知分组管理模块完成通知消息(即“陈某某”在短信息应用中发送的通知消息)对应的应用会话信息与联系人通知消息分组“老板”的关联。在此情形下,如果用户在联系人通知消息分组“老板”的分组信息界面中点击分组应用详情选项508(参照图6b中(2)所示),则手机响应于用户操作,显示如图7c中(1)所示的应用管理界面。在该应用管理界面中,显示有联系人通知消息分组涉及的应用信息,也即显示需要聚合显示在联系人通知消息分组中的通知消息所对应的应用。如图7c中(1)所示,该联系人通知消息分组涉及的应用包括微信和短信息。参照图7c中(1),当用户点击短信息应用选项901时,响应于用户操作,手机显示短信息应用中相应联系人(也即与联系人通知消息分组对应的联系人)的聊天界面,如图7c中(2)所示。The user clicks the confirmation option 802, and the notification group management module of the mobile phone completes the association of the application session information corresponding to the notification message (that is, the notification message sent by "Chen XX" in the SMS application) with the contact notification message group "Boss". In this case, if the user clicks the group application details option 508 (refer to (2) in Figure 6b) in the group information interface of the contact notification message group "Boss", the mobile phone responds to the user operation and displays the information shown in Figure 7c The application management interface shown in (1). In the application management interface, the application information related to the contact notification message group is displayed, that is, the application corresponding to the notification messages that need to be aggregated and displayed in the contact notification message group is displayed. As shown in (1) in FIG. 7c , the applications involved in the contact notification message group include WeChat and SMS. Referring to (1) in Figure 7c, when the user clicks on the short message application option 901, in response to the user operation, the mobile phone displays the chat interface of the corresponding contact in the short message application (that is, the contact corresponding to the contact notification message group), As shown in (2) in Figure 7c.

至此,手机的通知分组管理模块完成一条应用会话信息与已有的联系人通知消息分组“老板”的关联。当接收到与该条应用会话匹配的通知消息时,也即接收到“陈某某”在短信息应用中发送的通知消息时,手机会将该通知消息显示于与联系人通知消息分组“老板”对应的通知聚合窗口中。So far, the notification group management module of the mobile phone has completed the association of a piece of application session information with the existing contact notification message group "Boss". When receiving a notification message matching the application session, that is, when receiving a notification message sent by "Chen Moumou" in the SMS application, the mobile phone will display the notification message in the contact notification message group "Boss" ” in the corresponding notification aggregation window.

其中,微信应用会话信息与联系人通知消息分组“老板”关联,是在联系人通知消息分组“老板”创建时实现的(可以参见场景一),短信息应用会话信息与联系人通知消息分组“老板”关联,是在联系人通知消息分组“老板”创建后实现的。类似的,用户可以在手机接收到联系人“老板”在其他应用(例如QQ、支付宝等)中发送的通知消息时,将通知消息的会话信息与联系人通知消息分组“老板”关联,以使联系人“老板”通过各个应用中发送的通知消息均可以显示在于与联系人通知消息分组“老板”对应的通知聚合窗口中,本实施例对此不再赘述。Among them, the WeChat application session information is associated with the contact notification message group "Boss", which is realized when the contact notification message group "Boss" is created (see Scenario 1), and the SMS application session information is associated with the contact notification message group "Boss". The "boss" association is realized after the contact notification message group "boss" is created. Similarly, when the mobile phone receives a notification message sent by the contact "Boss" in other applications (such as QQ, Alipay, etc.), the user can associate the session information of the notification message with the contact notification message group "Boss", so that The notification messages sent by the contact "boss" through various applications can be displayed in the notification aggregation window corresponding to the contact notification message group "boss", which will not be repeated in this embodiment.

场景三scene three

在本场景中,手机中存在联系人通知消息分组,当手机接收到未基于联系人分组的一条通知消息时,手机用户可以基于个人需求创建一个新的联系人通知消息分组。其中,在这个新的联系人通知消息分组创建的过程中,手机的通知分组管理模块实现了该联系人通知消息分组与这条通知消息的应用会话信息的关联。In this scenario, there are contact notification message groups in the mobile phone. When the mobile phone receives a notification message that is not based on the contact group, the mobile phone user can create a new contact notification message group based on personal needs. Wherein, during the process of creating the new contact notification message group, the notification group management module of the mobile phone implements the association between the contact notification message group and the application session information of the notification message.

图8a-图8b示例性的示出了用户创建联系人通知消息分组的应用场景。Fig. 8a- Fig. 8b exemplarily show an application scenario in which a user creates a contact notification message group.

如图8a中(1)所示,响应于短信息应用发送通知消息,手机通知中心界面上显示与短信息应用对应的通知窗口1001。其中,在通知窗口1001中,显示有短信息应用通知消息的发送时间“刚刚”、发送人“李某某”以及信息内容“xxxxxxxx”。如果该通知消息的发送人“李某某”为手机用户关注的联系人(假设为“李四”),且当前未创建与“李四”对应的通知消息分组,手机用户则可以创建与联系人“李四”对应的通知消息分组,以使联系人“李四”在短信息应用中发送的通知消息可以显示在与联系人“李四”对应的通知聚合窗口中。此时,手机用户可以在通知窗口1001中执行左滑操作。响应于用户操作,手机显示如图8a中(2)所示的界面。参照图8a中(2),由于用户左滑操作,通知窗口1001仅右半部分显示于界面上。在通知窗口1001的右侧,界面上显示有联系人通知消息分组创建选项1002。当用户点击联系人通知消息分组创建选项1002时,响应于用户操作,手机显示联系人通知消息分组列表界面,如图8b中(1)所示。As shown in (1) in FIG. 8 a , in response to the notification message sent by the short message application, a notification window 1001 corresponding to the short message application is displayed on the mobile phone notification center interface. Wherein, in the notification window 1001, the sending time "just now", the sender "Li XX" and the message content "xxxxxxxx" of the short message application notification message are displayed. If the sender of the notification message "Li XX" is a contact that the mobile phone user follows (assuming it is "Li Si"), and there is no notification message group corresponding to "Li Si" currently created, the mobile phone user can create and contact The notification messages corresponding to the person "Li Si" are grouped, so that the notification messages sent by the contact "Li Si" in the short message application can be displayed in the notification aggregation window corresponding to the contact "Li Si". At this point, the mobile phone user can perform a left swipe operation in the notification window 1001 . In response to user operations, the mobile phone displays an interface as shown in (2) in Figure 8a. Referring to (2) in FIG. 8 a , due to the left sliding operation of the user, only the right half of the notification window 1001 is displayed on the interface. On the right side of the notification window 1001, a contact notification message group creation option 1002 is displayed on the interface. When the user clicks the contact notification message group creation option 1002, in response to the user operation, the mobile phone displays a contact notification message group list interface, as shown in (1) in FIG. 8b.

参照图8b中(1)所示的联系人通知消息分组列表界面,当前已创建的联系人通知消息分组包括名称为“老板”和“张三”的两个联系人通知消息分组。如果用户需要基于“李某某”在短信息应用中发送的通知消息创建一个新的联系人通知消息分组,则可以点击联系人通知消息分组新建选项804。响应于用户点击联系人通知消息分组新建选项804的操作,手机可以显示如图8b中(2)所示的界面。在该界面中,用户可以对联系人通知消息分组的信息进行设置,以完成对联系人通知消息分组进行个性化设置。关于此时新建联系人通知消息分组的流程,可以参照前文关于图6b的解释说明,在此不再赘述。Referring to the contact notification message group list interface shown in (1) in FIG. 8b, the currently created contact notification message group includes two contact notification message groups named "Boss" and "Zhang San". If the user needs to create a new contact notification message group based on the notification message sent by "Li XX" in the short message application, the user can click the contact notification message group creation option 804 . In response to the user's operation of clicking the option 804 to create a new contact notification message group, the mobile phone may display an interface as shown in (2) in FIG. 8b. In this interface, the user can set the information of the contact notification message group, so as to complete the personalized setting of the contact notification message group. As for the process of creating a new contact notification message group at this time, reference may be made to the previous explanation about FIG. 6 b , and details will not be repeated here.

至此,手机的通知分组管理模块完成对一个联系人通知消息分组的创建。其中,在groupInformation数据表中添加一条记录,用于指示联系人通知消息分组“李四”的信息。然后,通知分组管理模块自动生成一个已分组通知消息的ID,并根据通知消息的所属应用名称(pkg_name)“短信息”,“李某某”发送的通知消息在短信息应用中的会话标识(ConversationID),以及新建的联系人通知消息分组的ID,在convationlist数据表中添加一条记录,用于指示一条已分组应用会话信息。其中,该条已分组通知消息的联系人通知消息分组(group)为新建的联系人通知消息分组“李四”的ID,以此实现新创建的联系人通知消息分组“李四”,与这条已分组通知消息(即“李某某”在短信息应用中发送的通知消息)的应用会话信息(即pkg_name和ConversationID)的关联。进而,当接收到与该条应用会话匹配的通知消息时,手机会将该通知消息显示于与联系人通知消息分组“李四”对应的通知聚合窗口中。So far, the notification group management module of the mobile phone has completed the creation of a contact notification message group. Wherein, a record is added in the groupInformation data table for instructing the contact to notify the information of the message group "Li Si". Then, the notification group management module automatically generates an ID of a grouped notification message, and according to the application name (pkg_name) "short message" of the notification message, the session identifier ( ConversationID), and the ID of the new contact notification message group, add a record in the convationlist data table to indicate a grouped application conversation information. Among them, the contact notification message group (group) of the grouped notification message is the ID of the newly created contact notification message group "Li Si", so as to realize that the newly created contact notification message group "Li Si" is the same as this Association of the application session information (ie pkg_name and ConversationID) of the grouped notification messages (that is, the notification message sent by "Li XX" in the SMS application). Further, when receiving a notification message matching the application session, the mobile phone will display the notification message in the notification aggregation window corresponding to the contact notification message group "Li Si".

场景四scene four

在本场景中,用户可以在设置应用中对联系人通知消息分组进行管理,或者通知聚合窗口中对联系人通知消息分组进行管理。In this scenario, the user can manage contact notification message groups in the settings application, or manage contact notification message groups in the notification aggregation window.

图9a-图9d示例性的示出了用户在设置应用中进行联系人通知消息分组管理的应用场景。9a-9d exemplarily show an application scenario where a user performs group management of contact notification messages in a setting application.

在如图9a中(1)所示的设置应用界面中,用户点击通知选项1101。响应于用户的操作,手机可以显示如图9a中(2)所示的通知设置界面。其中,在通知设置界面中,显示有通知分组选项1102。参照图9a中(2),用户点击通知分组选项1102,响应于用户操作,手机即可显示通知分组管理界面。In the setting application interface as shown in ( 1 ) in FIG. 9 a , the user clicks on the notification option 1101 . In response to the user's operation, the mobile phone may display a notification setting interface as shown in (2) in FIG. 9a. Wherein, in the notification setting interface, a notification grouping option 1102 is displayed. Referring to (2) in FIG. 9a, the user clicks on the notification group option 1102, and in response to the user operation, the mobile phone can display the notification group management interface.

示例性的,图9b中(1)示出了手机的通知分组管理界面。如图9b中(1)所示,在通知分组管理界面中示出了已创建的各个联系人通知消息分组,其中,这些联系人通知消息分组可以按照名称进行排序。当用户点击某个联系人通知消息分组对应的选项时,手机即可为用户展示该联系人通知消息分组的详细信息。示例性的,参照图9b中(1),用户点击联系人通知消息分组“老板”的选项1103,响应于用户操作,手机可以显示如图9b中(2)所示的界面。在该分组界面中,显示有联系人通知消息分组“老板”的个性化设置信息。在该分组界面,用户可以对个性化设置信息进行调整,可以参照已有技术,在此不再赘述。当用户点击分组应用详情选项508时,响应于用户操作,手机显示如图9c中(1)所示的应用管理界面。在该应用管理界面中,显示有联系人通知消息分组“老板”涉及的应用信息,也即显示需要聚合显示在联系人通知消息分组中的通知消息所对应的应用。示例性的,联系人通知消息分组“老板”涉及的应用包括微信应用和短信息应用。Exemplarily, (1) in FIG. 9b shows the notification group management interface of the mobile phone. As shown in (1) in FIG. 9b , the created contact notification message groups are shown in the notification group management interface, wherein these contact notification message groups can be sorted by name. When the user clicks on an option corresponding to a contact notification message group, the mobile phone can display detailed information of the contact notification message group for the user. Exemplarily, referring to (1) in FIG. 9b, the user clicks the option 1103 of the contact notification message group "boss", and in response to the user operation, the mobile phone may display the interface as shown in (2) in FIG. 9b. In the group interface, the personalized setting information of the contact notification message group "boss" is displayed. In the grouping interface, the user can adjust the personalized setting information, which can refer to the prior art, and will not be repeated here. When the user clicks on the group application details option 508, in response to the user operation, the mobile phone displays the application management interface as shown in (1) in FIG. 9c. In the application management interface, the application information related to the contact notification message group "boss" is displayed, that is, the application corresponding to the notification messages that need to be aggregated and displayed in the contact notification message group is displayed. Exemplarily, the applications involved in the contact notification message group "boss" include WeChat applications and short message applications.

继续参照9c中(1),若用户基于个人需要想要将短信息应用会话与联系人通知消息分组“老板”取消关联,也即不再需要将与联系人“老板”在短信应用中发送的通知消息,显示于与联系人通知消息分组“老板”对应的通知聚合窗口中,则用户可以在短信息应用选项901上执行左滑操作。响应于用户操作,手机显示如图9c中(2)所示的界面。如图9c中(2)所示,界面上显示有与短信息应用对应的删除选项902。若用户点击删除选项902,则手机的通知分组管理模块执行将相应的短信息应用会话与联系人通知消息分组“老板”取消关联的操作,手机显示的应用管理界面中只包括微信应用,也即此时联系人通知消息分组“老板”涉及的应用只包括微信应用。Continuing to refer to (1) in 9c, if the user wants to disassociate the SMS application session from the contact notification message group "Boss" based on personal needs, that is, it is no longer necessary to send messages with the contact "Boss" in the SMS application. The notification message is displayed in the notification aggregation window corresponding to the contact notification message group “boss”, and the user can perform a left-swipe operation on the short message application option 901 . In response to user operations, the mobile phone displays an interface as shown in (2) in Figure 9c. As shown in (2) in FIG. 9c, a delete option 902 corresponding to the short message application is displayed on the interface. If the user clicks on the delete option 902, the notification group management module of the mobile phone performs the operation of disassociate the corresponding SMS application session from the contact notification message group "boss", and the application management interface displayed on the mobile phone only includes the WeChat application, that is, At this time, the application involved in the contact notification message group "boss" only includes the WeChat application.

在手机的通知分组管理模块执行将短信息应用会话与联系人通知消息分组“老板”取消关联的操作时,groupInformation数据表中数据不变,convationlist数据表中删除一条记录。其中,在convationlist数据表中删除的记录中,group值为groupInformation数据表中联系人通知消息分组“老板”的ID,pkg_name值为短信息应用,ConversationID值为“Chen”发送的通知消息在短信息应用中的会话标识。When the notification group management module of the mobile phone performs the operation of disassociation between the short message application session and the contact notification message group "boss", the data in the groupInformation data table remains unchanged, and a record is deleted in the convationlist data table. Among them, among the records deleted in the convationlist data table, the group value is the ID of the contact notification message group "Boss" in the groupInformation data table, the pkg_name value is the SMS application, and the ConversationID value is the notification message sent by "Chen" in the SMS The session ID in the application.

参照9d中(1),若用户基于个人需要想要将联系人通知消息分组“老板”删除,也即不再需要将联系人“老板”在不同应用中发送的通知消息显示于与联系人通知消息分组“老板”对应的通知聚合窗口中,则用户可以在联系人通知消息分组“老板”的选项1103上执行左滑操作。响应于用户操作,手机显示如图9d中(2)所示的界面。如图9d中(2)所示,界面上显示有与联系人通知消息分组“老板”对应的删除选项1104。若用户点击删除选项1104,则手机的通知分组管理模块执行将联系人通知消息分组“老板”删除的操作,手机显示的通知分组管理界面中已创建的联系人通知消息分组则只包括联系人通知消息分组“张三”。Referring to (1) in 9d, if the user wants to delete the contact notification message group "boss" based on personal needs, that is, it is no longer necessary to display the notification messages sent by the contact "boss" in different applications on the same page as the contact notification message. In the notification aggregation window corresponding to the message group "boss", the user can perform a left-swipe operation on the option 1103 of the contact notification message group "boss". In response to user operations, the mobile phone displays an interface as shown in (2) in Figure 9d. As shown in (2) in FIG. 9d , a delete option 1104 corresponding to the contact notification message group "boss" is displayed on the interface. If the user clicks on the delete option 1104, the notification group management module of the mobile phone executes the operation of deleting the contact notification message group "boss", and the contact notification message group created in the notification group management interface displayed on the mobile phone only includes contact notifications. Message grouping "Zhang San".

在手机的通知分组管理模块执行将联系人通知消息分组“老板”删除的操作时,groupInformation数据表中删除一条记录。其中,在groupInformation数据表中删除的记录中,联系人通知消息分组的ID为联系人通知消息分组“老板”的ID。与此同时,在convationlist数据表中删除至少一条记录,其中,删除的这些记录的group值为联系人通知消息分组“老板”的ID。When the notification group management module of the mobile phone executes the operation of deleting the contact notification message group "boss", a record is deleted in the groupInformation data table. Wherein, in the deleted record in the groupInformation data table, the ID of the contact notification message group is the ID of the contact notification message group "boss". At the same time, at least one record is deleted in the convationlist data table, wherein the group value of these deleted records is the ID of the contact notification message group "boss".

继续参照9b中(1),若用户基于个人需要想要创建一个新的联系人通知消息分组,则可以点击新建联系人分组选项1105。响应于用户操作,手机可以显示如图6b中(1)所示的界面。在该界面中,用户可以对联系人通知消息分组的信息进行设置,以完成对联系人通知消息分组进行个性化设置。关于此时新建联系人通知消息分组的流程,可以参照前文关于图6b的解释说明,在此不再赘述。Continuing to refer to (1) in 9b, if the user wants to create a new contact notification message group based on personal needs, he can click on the option 1105 of creating a new contact group. In response to user operations, the mobile phone may display an interface as shown in (1) in Figure 6b. In this interface, the user can set the information of the contact notification message group, so as to complete the personalized setting of the contact notification message group. As for the process of creating a new contact notification message group at this time, reference may be made to the previous explanation about FIG. 6 b , and details will not be repeated here.

在手机的通知分组管理模块执行联系人通知消息分组创建操作时,groupInformation数据表中新增一条记录,用于指示新创建的联系人通知消息分组。When the notification group management module of the mobile phone executes the contact notification message group creation operation, a new record is added in the groupInformation data table, which is used to indicate the newly created contact notification message group.

需要注意的是,用户点击新建联系人分组选项1105以使手机的通知分组管理模块执行联系人通知消息分组创建操作时,由于该新创建的联系人通知消息分组未关联任何应用的任何通知消息,则此时convationlist数据表中不增加记录。待手机接收到某应用的通知消息,且用户需要将该通知消息的应用会话消息与该新创建的联系人通知消息分组关联时,用户可以执行类似图7a-图7b的操作,此时convationlist数据表中增加相应的记录。It should be noted that when the user clicks the new contact group option 1105 to enable the notification group management module of the mobile phone to execute the operation of creating a contact notification message group, since the newly created contact notification message group is not associated with any notification message of any application, Then no records will be added in the convationlist data table at this time. When the mobile phone receives a notification message from an application, and the user needs to associate the application session message of the notification message with the newly created contact notification message group, the user can perform operations similar to those shown in Figure 7a-7b. At this time, the convationlist data Add the corresponding record to the table.

图10示例性的示出了用户在通知聚合窗口中进行联系人通知消息分组管理的应用场景。如图10中(1)所示,手机通知中心界面中显示有与联系人通知消息分组“老板”对应的通知聚合窗口1201。在通知聚合窗口1201中,显示有短信息应用通知窗口1202和微信应用通知窗口1203。若用户基于个人需要想要将短信息应用会话与联系人通知消息分组“老板”取消关联,也即不再需要将与联系人“老板”在短信息应用中发送的通知消息,显示于与联系人通知消息分组“老板”对应的通知聚合窗口1201中,则用户可以在通知聚合窗口1201中进行操作。参照图10中(1),用户在短信息应用通知窗口1202上执行左滑操作,响应于用户的操作,手机显示如图10中(2)所示的界面。参照图10中(2),由于用户左滑操作,短信息应用通知窗口1202仅右半部分显示于通知聚合窗口1201的界面上。在短信息应用通知窗口1202的右侧,通知聚合窗口1201中显示有将应用通知在联系人通知消息分组中移除的选项1204和应用通知窗口删除选项1205。当用户点击选项1204时,响应于用户操作,手机的通知分组管理模块执行将相应的短信息应用会话与联系人通知消息分组“老板”取消关联的操作。此时,若用户点击查查联系人通知消息分组“老板”对应的应用管理界面,则该应用管理界面中不再包括短信息应用。FIG. 10 exemplarily shows an application scenario where a user performs group management of contact notification messages in a notification aggregation window. As shown in (1) in FIG. 10 , a notification aggregation window 1201 corresponding to the contact notification message group "boss" is displayed in the mobile phone notification center interface. In the notification aggregation window 1201, a short message application notification window 1202 and a WeChat application notification window 1203 are displayed. If the user wants to disassociate the short message application session with the contact notification message group "boss" based on personal needs, that is, it is no longer necessary to display the notification message sent by the contact "boss" in the short message application on the contact In the notification aggregation window 1201 corresponding to the notification message group "Boss", the user can perform operations in the notification aggregation window 1201. Referring to (1) in FIG. 10 , the user performs a left-swipe operation on the notification window 1202 of the short message application, and in response to the user's operation, the mobile phone displays an interface as shown in (2) in FIG. 10 . Referring to (2) in FIG. 10 , only the right half of the SMS application notification window 1202 is displayed on the interface of the notification aggregation window 1201 due to the left sliding operation of the user. On the right side of the short message application notification window 1202, the notification aggregation window 1201 displays an option 1204 to remove the application notification in the contact notification message group and an option 1205 to delete the application notification window. When the user clicks option 1204, in response to the user operation, the notification group management module of the mobile phone performs an operation of disassociate the corresponding short message application session from the contact notification message group "boss". At this time, if the user clicks to check the application management interface corresponding to the contact notification message group "boss", the application management interface does not include the short message application.

其中,在手机的通知分组管理模块执行将短信息应用会话与联系人通知消息分组“老板”取消关联的操作时,groupInformation数据表中数据不变,convationlist数据表中删除一条记录。其中,在convationlist数据表中删除的记录中,group值为groupInformation数据表中联系人通知消息分组“老板”的ID,pkg_name值为短信息应用,ConversationID值为“Chen”发送的通知消息在短信息应用中的会话标识。Wherein, when the notification group management module of the mobile phone performs the operation of disassociate the short message application session from the contact notification message group "boss", the data in the groupInformation data table remains unchanged, and a record is deleted in the convationlist data table. Among them, among the records deleted in the convationlist data table, the group value is the ID of the contact notification message group "Boss" in the groupInformation data table, the pkg_name value is the SMS application, and the ConversationID value is the notification message sent by "Chen" in the SMS The session ID in the application.

如图11所示为各模块的交互示意图。参照图11,本申请实施例提供的通知消息的显示方法的流程,具体包括:Figure 11 is a schematic diagram of the interaction of each module. Referring to FIG. 11 , the flow of the notification message display method provided by the embodiment of the present application specifically includes:

S1301,社交应用构造通知消息,并将通知消息发送给通知管理器。S1301. The social application constructs a notification message, and sends the notification message to the notification manager.

其中,社交应用可以指的是联系人(或称好友)之间能够发送通知消息的任意应用,例如微信、短信息、QQ、抖音、支付宝等。Wherein, a social application may refer to any application capable of sending notification messages between contacts (or called friends), such as WeChat, SMS, QQ, Douyin, Alipay, and the like.

以微信应用为例,当手机用户A的微信好友B给A发送信息时,微信应用构造相应的通知消息。Taking the WeChat application as an example, when mobile phone user A's WeChat friend B sends a message to A, the WeChat application constructs a corresponding notification message.

示例性的,微信应用基于预定义的会话构造方法来构造通知消息,在该通知消息中携该通知消息其在微信应用中的会话标识(ConversationID)。Exemplarily, the WeChat application constructs a notification message based on a predefined conversation construction method, and carries the conversation ID (ConversationID) of the notification message in the WeChat application in the notification message.

示例性的,微信应用也可以基于自定义的会话构造方法来构造通知消息,本实施例对此不做限定。Exemplarily, the WeChat application may also construct a notification message based on a custom session construction method, which is not limited in this embodiment.

S1302,通知管理器解析通知消息,得到通知消息所属的应用名称和会话标识,并将通知消息所属的应用名称和会话标识发送给通知分组管理模块。S1302. The notification manager parses the notification message to obtain the application name and the session identifier to which the notification message belongs, and sends the application name and the session identifier to which the notification message belongs to the notification group management module.

当通知管理器接收到微信应用发出的通知消息后,基于预定义的会话构造方法来解析通知消息,获取该通知消息在微信应用中的会话标识(ConversationID),得到通知消息所属的应用名称和会话标识。When the notification manager receives the notification message sent by the WeChat application, it parses the notification message based on the predefined session construction method, obtains the conversation ID (ConversationID) of the notification message in the WeChat application, and obtains the application name and session to which the notification message belongs logo.

如果微信应用发出的通知消息是基于自定义的会话构造方法而构造的,则通知管理器可以基于与微信应用匹配的会话构造方法来解析通知消息,以获取该通知消息在微信应用中的会话标识(ConversationID),或者基于微信应用提供的相关接口来获取该通知消息在微信应用中的会话标识(ConversationID)。If the notification message sent by the WeChat application is constructed based on a custom session construction method, the notification manager can parse the notification message based on the session construction method that matches the WeChat application to obtain the session ID of the notification message in the WeChat application (ConversationID), or obtain the conversation ID (ConversationID) of the notification message in the WeChat application based on the relevant interface provided by the WeChat application.

S1303,通知分组管理模块根据通知消息所属的应用名称和会话标识,判断通知消息是否已基于联系人进行分组,若是,则执行S1304,若否,则执行S1306。S1303. The notification group management module judges whether the notification message has been grouped based on the contact according to the application name and the session identifier to which the notification message belongs. If yes, execute S1304; if not, execute S1306.

通知分组管理结合发出通知消息的应用的名称,以及通知消息在应用中的会话标识(ConversationID),即可确定一条通知消息是否为已分组的通知消息。Notification group management combines the name of the application that sends the notification message and the conversation ID (ConversationID) of the notification message in the application to determine whether a notification message is a grouped notification message.

其中,通知分组管理在确定通知消息所属应用名称(pkg_name)和应用中的会话标识(ConversationID)之后,在convationlist数据表中进行数据匹配判断是否存在该通知消息所属的联系人通知消息分组(group)。若是,则通知分组管理判断出该通知消息已基于联系人进行分组;若否,则通知分组管理判断出该通知消息未基于联系人进行分组,Among them, after the notification group management determines the application name (pkg_name) to which the notification message belongs and the conversation ID (ConversationID) in the application, data matching is performed in the convationlist data table to determine whether there is a contact notification message group (group) to which the notification message belongs . If so, the notification group management judges that the notification message has been grouped based on contacts; if not, the notification group management judges that the notification message is not grouped based on contacts,

S1304,通知分组管理模块确定与通知消息关联的联系人通知消息分组。S1304. The notification group management module determines a contact notification message group associated with the notification message.

通知分组管理在确定通知消息所属应用名称(pkg_name)和应用中的会话标识(ConversationID)之后,在convationlist数据表中进行数据匹配确定出该通知消息所属的联系人通知消息分组(group)。Notification group management After determining the application name (pkg_name) to which the notification message belongs and the conversation ID (ConversationID) in the application, perform data matching in the convationlist data table to determine the contact notification message group (group) to which the notification message belongs.

进而,通知分组管理可以根据该通知消息所属的联系人通知消息分组(group),在groupInformation数据表中进行数据匹配,确定与通知消息关联的联系人通知消息分组,并获取该联系人通知消息分组的个性化配置信息。Furthermore, the notification group management can perform data matching in the groupInformation data table according to the contact notification message group (group) to which the notification message belongs, determine the contact notification message group associated with the notification message, and obtain the contact notification message group personalized configuration information.

S1305,通知分组管理模块指示通知中心在与联系人通知消息分组对应的通知聚合窗口中显示通知消息。S1305, the notification group management module instructs the notification center to display the notification message in the notification aggregation window corresponding to the contact notification message group.

通知分组管理模块向通知中心发送指示信息,以指示通知中心在与联系人通知消息分组对应的通知聚合窗口中显示通知消息。其中,指示信息中可以携带联系人通知消息分组的个性化配置信息,如携带通知聚合窗口的个性化配置信息等。The notification group management module sends instruction information to the notification center to instruct the notification center to display the notification message in the notification aggregation window corresponding to the contact notification message group. Wherein, the indication information may carry the personalized configuration information of the contact notification message group, such as carrying the personalized configuration information of the notification aggregation window.

S1306,通知分组管理模块指示通知中心在相应的应用通知窗口中显示通知消息。S1306, the notification group management module instructs the notification center to display the notification message in the corresponding application notification window.

如果通知分组管理模块判断出通知消息未基于联系人进行分组,则指示通知中心以已有技术形式显示该通知信息,例如将该通知消息显示于微信应用通知窗口中。If the notification grouping management module determines that the notification message is not grouped based on contacts, it instructs the notification center to display the notification information in a prior art form, for example, the notification message is displayed in the WeChat application notification window.

其中,关于通知分组管理模块发送的指示信息的内容及格式,本实施例不做限定。The content and format of the indication information sent by the notification group management module are not limited in this embodiment.

S1307,通知中心获取待显示的通知消息,并根据指示显示通知消息。S1307. The notification center acquires the notification message to be displayed, and displays the notification message according to the instruction.

如果通知分组管理模块指示通知中心在与联系人通知消息分组对应的通知聚合窗口中显示通知消息,则通知中心获取待显示的通知信息,并在关联的联系人通知消息分组对应的通知聚合窗口中显示通知消息,可以参照图12中(1)所示。其中,通知聚合窗口的通知铃声、窗口背景颜色、显示字体等信息与相应的联系人通知消息分组的个性化配置信息相符。如果在与该通知聚合窗口相应的联系人通知消息分组配置了置顶显示,则该通知聚合窗口会在通知中心界面中置顶显示。If the notification group management module instructs the notification center to display the notification message in the notification aggregation window corresponding to the contact notification message group, the notification center obtains the notification information to be displayed, and displays the notification information in the notification aggregation window corresponding to the associated contact notification message group For displaying notification messages, refer to (1) in Figure 12. Wherein, the notification ringtone, window background color, display font and other information of the notification aggregation window are consistent with the personalized configuration information of the corresponding contact notification message group. If top display is configured in the contact notification message group corresponding to the notification aggregation window, the notification aggregation window will be displayed on top in the notification center interface.

如果通知分组管理模块指示通知中心在相应的应用通知窗口中显示通知消息,则通知中心获取待显示的通知信息,并在相应的应用通知窗口中显示通知消息,可以参照图12中(2)所示。在此情形下,只要通知管理器能够识别到该通知消息在应用中的会话标识(ConversationID),用户就可以将对与该通知消息对应的会话基于联系人进行分组,详见场景一、二、三,在此不再赘述。If the notification group management module instructs the notification center to display the notification message in the corresponding application notification window, the notification center obtains the notification information to be displayed, and displays the notification message in the corresponding application notification window, as shown in (2) in Figure 12 Show. In this case, as long as the notification manager can identify the conversation ID (ConversationID) of the notification message in the application, the user can group the conversations corresponding to the notification message based on contacts. For details, see Scenarios 1, 2, and Three, I will not repeat them here.

需要指出的是,为了确保用户的使用体验,通知聚合窗口可以继承已有的应用通知窗口的相关操作,例如窗口折叠操作,窗口删除操作等。It should be pointed out that, in order to ensure the user experience, the notification aggregation window can inherit the related operations of the existing application notification window, such as window folding operation, window deletion operation and so on.

图13a-图13d示例性的示出了用户在通知聚合窗口中执行相关操作的应用场景。Fig. 13a- Fig. 13d exemplarily show the application scenario where the user performs related operations in the notification aggregation window.

如图13a中(1)所示,手机通知中心界面中显示有与联系人通知消息分组“老板”对应的通知聚合窗口1401。在通知聚合窗口1401中,显示有短信息应用通知窗口和微信应用通知窗口。其中,通知聚合窗口1401呈展开态。通知聚合窗口1401中显示有窗口折叠选项1402,用于将通知聚合窗口进行折叠显示。参照图13a中(1),用户点击窗口折叠选项1402,响应于用户操作,手机显示如图13a中(2)所示的手机通知中心界面,与联系人通知消息分组“老板”对应的通知聚合窗口的显示形态由通知聚合窗口1401切换为通知聚合窗口1403。As shown in (1) in FIG. 13a, a notification aggregation window 1401 corresponding to the contact notification message group "boss" is displayed in the mobile phone notification center interface. In the notification aggregation window 1401, a short message application notification window and a WeChat application notification window are displayed. Wherein, the notification aggregation window 1401 is in an expanded state. A window folding option 1402 is displayed in the notification aggregation window 1401 for folding and displaying the notification aggregation window. Referring to (1) in Figure 13a, the user clicks the window collapse option 1402, and in response to the user operation, the mobile phone displays the mobile phone notification center interface as shown in Figure 13a (2), and the notification aggregation corresponding to the contact notification message group "boss" The display form of the window is switched from the notification aggregation window 1401 to the notification aggregation window 1403 .

参照图13a中(2),通知聚合窗口1403呈折叠态。通知聚合窗口1403中显示有窗口展开选项1404,用于将通知聚合窗口进行展开显示。如果用户点击窗口展开选项1404,响应于用户操作,手机显示如图13a中(1)所示的手机通知中心界面,与联系人通知消息分组“老板”对应的通知聚合窗口的显示形态由通知聚合窗口1403切换为通知聚合窗口1401。Referring to (2) in FIG. 13a, the notification aggregation window 1403 is in a collapsed state. A window expansion option 1404 is displayed in the notification aggregation window 1403 for expanding and displaying the notification aggregation window. If the user clicks the window expansion option 1404, in response to the user operation, the mobile phone displays the mobile phone notification center interface as shown in (1) in Figure 13a, and the display form of the notification aggregation window corresponding to the contact notification message group "boss" is determined by the notification aggregation The window 1403 is switched to the notification aggregation window 1401 .

继续参照图13a中(2),在通知聚合窗口1403中,不再显示各个应用通知窗口,而是显示通知消息列表1405,用于描述在通知聚合窗口中显示的各通知消息。如图13a中(2)所示,通知消息列表1405中包括:在通知聚合窗口1401中显示的各通知消息所属的各个应用名称,与各个应用分别对应的通知消息条数,以及与各个应用分别对应的最近一条通知消息的接收时间。Continuing to refer to (2) in FIG. 13 a , in the notification aggregation window 1403 , instead of displaying individual application notification windows, a notification message list 1405 is displayed, which is used to describe each notification message displayed in the notification aggregation window. As shown in (2) in Figure 13a, the notification message list 1405 includes: the name of each application to which each notification message displayed in the notification aggregation window 1401 belongs, the number of notification messages corresponding to each application, and the number of notification messages corresponding to each application. The receiving time of the corresponding latest notification message.

如图13b中(1)所示,手机通知中心界面中显示有与联系人通知消息分组“老板”对应的通知聚合窗口1401(窗口呈展开态)。如果用户想将通知聚合窗口1401在通知中心界面删除,则可以在通知聚合窗口1401上执行左滑操作。响应于用户的操作,手机显示如图13b中(2)所示的通知中心界面。参照图13b中(2),由于用户的左滑操作,通知聚合窗口1401仅右半部分显示于通知中心界面上。在通知聚合窗口1401的右侧,通知中心界面上显示有将删除选项1405。当用户点击删除选项1405时,响应于用户操作,手机执行将通知聚合窗口1401在界面中删除的操作。As shown in (1) in FIG. 13b , a notification aggregation window 1401 corresponding to the contact notification message group "boss" is displayed in the mobile phone notification center interface (the window is in an expanded state). If the user wants to delete the notification aggregation window 1401 on the notification center interface, the user may perform a left-swipe operation on the notification aggregation window 1401 . In response to the user's operation, the mobile phone displays the notification center interface as shown in (2) in Figure 13b. Referring to (2) in Figure 13b, due to the user's left-swipe operation, only the right half of the notification aggregation window 1401 is displayed on the notification center interface. On the right side of the notification aggregation window 1401, a delete option 1405 is displayed on the notification center interface. When the user clicks the delete option 1405, in response to the user operation, the mobile phone performs an operation of deleting the notification aggregation window 1401 in the interface.

如图13c中(1)所示,手机通知中心界面中显示有与联系人通知消息分组“老板”对应的通知聚合窗口1403(窗口呈折叠态)。如果用户想将通知聚合窗口1403在通知中心界面删除,则可以在通知聚合窗口1403上执行左滑操作。响应于用户的操作,手机显示如图13c中(2)所示的通知中心界面。参照图13c中(2),由于用户的左滑操作,通知聚合窗口1403仅右半部分显示于通知中心界面上。在通知聚合窗口1403的右侧,通知中心界面上显示有将删除选项1406。当用户点击删除选项1406时,响应于用户操作,手机执行将通知聚合窗口1403在界面中删除的操作。As shown in (1) in FIG. 13c , a notification aggregation window 1403 corresponding to the contact notification message group "boss" is displayed in the mobile phone notification center interface (the window is in a folded state). If the user wants to delete the notification aggregation window 1403 on the notification center interface, the user can perform a left-swipe operation on the notification aggregation window 1403 . In response to the user's operation, the mobile phone displays the notification center interface as shown in (2) in Figure 13c. Referring to (2) in Figure 13c, due to the user's left-swipe operation, only the right half of the notification aggregation window 1403 is displayed on the notification center interface. On the right side of the notification aggregation window 1403, a delete option 1406 is displayed on the notification center interface. When the user clicks the delete option 1406, in response to the user operation, the mobile phone performs an operation of deleting the notification aggregation window 1403 in the interface.

如图13d中(1)所示,手机通知中心界面中显示有与联系人通知消息分组“老板”对应的通知聚合窗口1401。如果用户想将通知聚合窗口1401中某个应用通知窗口删除,则可以在通知聚合窗口1401中相应的应用通知窗口上执行左滑操作。示例性的,参照图13d中(1),用户在短信息应用通知窗口1407上执行左滑操作。响应于用户的操作,手机显示如图13d中(2)所示的通知中心界面。参照图13d中(2),由于用户的左滑操作,短信息应用通知窗口1407仅右半部分显示于通知聚合窗口中。在短信息应用通知窗口1407的右侧,通知聚合窗口中显示有将删除选项1408。当用户点击删除选项1408时,响应于用户操作,手机执行在通知聚合窗口1401中删除短信息应用通知窗口的操作,以使通知聚合窗口1401中只显示微信应用通知窗口。As shown in (1) in FIG. 13d , a notification aggregation window 1401 corresponding to the contact notification message group "boss" is displayed in the mobile phone notification center interface. If the user wants to delete a certain application notification window in the notification aggregation window 1401 , the user may perform a left-swipe operation on the corresponding application notification window in the notification aggregation window 1401 . Exemplarily, referring to (1) in FIG. 13 d , the user performs a left swipe operation on the notification window 1407 of the short message application. In response to the user's operation, the mobile phone displays the notification center interface as shown in (2) in Figure 13d. Referring to (2) in FIG. 13d , due to the user's left-swipe operation, only the right half of the SMS application notification window 1407 is displayed in the notification aggregation window. On the right side of the notification window 1407 of the short message application, an option 1408 to be deleted is displayed in the notification aggregation window. When the user clicks on the delete option 1408, in response to the user operation, the mobile phone executes the operation of deleting the SMS application notification window in the notification aggregation window 1401, so that only the WeChat application notification window is displayed in the notification aggregation window 1401.

需要指出的是,通知聚合窗口中各个应用通知窗口的功能可以继承现有的应用通知窗口的功能,包括点击查看,折叠展开,左滑删除,点击查看后自动删除等,本实施例不再一一赘述。It should be pointed out that the functions of each application notification window in the notification aggregation window can inherit the functions of the existing application notification window, including clicking to view, folding and unfolding, left sliding to delete, and automatic deletion after clicking to view. A repeat.

需要注意的是,如果通知聚合窗口中只包括一个应用通知窗口,则用户在应用通知窗口上执行左滑操作以将该应用通知窗口在通知聚合窗口中删除,可以等同于用户在通知聚合窗口上执行左滑操作以将通知聚合窗口在通知中心界面上删除。也即,当通知聚合窗口中只包括一个应用通知窗口时,用户在该应用通知窗口上执行左滑操作后点击删除选项,响应于用户的操作,通知中心界面上不再显示该通知聚合窗口。It should be noted that if there is only one application notification window in the notification aggregation window, the user performs a left-swipe operation on the application notification window to delete the application notification window in the notification aggregation window, which can be equivalent to the user clicking on the notification aggregation window. Swipe left to delete the notification aggregation window on the notification center interface. That is, when the notification aggregation window includes only one application notification window, the user performs a left-swipe operation on the application notification window and then clicks the delete option. In response to the user's operation, the notification aggregation window is no longer displayed on the notification center interface.

需要指出的是,在通知中心界面中,不仅可以显示本实施例提供的通知聚合窗口,还可以依据通知消息接收情形以现有方式显示其他应用通知窗口。示例性的,如图14所示,在手机通知中心界面上,显示有通知聚合窗口1401,和微信应用通知窗口1402。其中,在通知聚合窗口1401中,显示有短信息应用通知窗口14011和微信应用通知窗口14012。虽然微信应用通知窗口14012和微信应用通知窗口1402显示的均是微信应用中发出的通知消息,但微信应用通知窗口14012中显示的通知消息是用户感兴趣的或关注的,已与联系人通知消息分组“老板”关联,聚合显示于与联系人通知消息分组“老板”对应的通知聚合窗口1401中。然而,微信应用通知窗口1402中显示的通知消息当前未与任何通知消息分组关联,故以现有方式显示在相应的应用通知窗口中。It should be pointed out that in the notification center interface, not only the notification aggregation window provided by this embodiment can be displayed, but also other application notification windows can be displayed in an existing manner according to the notification message receiving situation. Exemplarily, as shown in FIG. 14 , a notification aggregation window 1401 and a WeChat application notification window 1402 are displayed on the mobile phone notification center interface. Wherein, in the notification aggregation window 1401, a short message application notification window 14011 and a WeChat application notification window 14012 are displayed. Although both the WeChat application notification window 14012 and the WeChat application notification window 1402 display notification messages sent in the WeChat application, the notification messages displayed in the WeChat application notification window 14012 are those that the user is interested in or concerned about, and have been notified with contacts. The group "boss" is associated and aggregated and displayed in the notification aggregation window 1401 corresponding to the contact notification message group "boss". However, the notification message displayed in the WeChat application notification window 1402 is currently not associated with any notification message group, so it is displayed in the corresponding application notification window in the existing manner.

在前述实施例中,以通知聚合窗口对应于一个联系人通知消息分组为例进行解释说明。类似的,一个通知聚合窗口也可以对应与任意一个通知消息分组,其中,该通知消息分组可以是用户基于个人需求自定义的,且该通知消息分组中关联的通知消息可以来源于相同的应用,也可以来源于不同的应用,本实施例对此不做限定。In the foregoing embodiments, an explanation is made by taking a notification aggregation window corresponding to a contact notification message group as an example. Similarly, a notification aggregation window can also correspond to any notification message group, where the notification message group can be customized by the user based on personal needs, and the notification messages associated in the notification message group can come from the same application, It may also come from different applications, which is not limited in this embodiment.

示例性的,若用户关注的或感兴趣的通知消息为联系人A在某一个应用(例如微信应用)中发出的消息,以及联系人B在另外一个应用(例如短信息应用)中发出的通知消息,则可以创建一个通知消息分组,并将联系人A在相应的应用(例如微信应用)中发出的通知消息,以及联系人B在相应的应用(例如短信息应用)中发出的通知消息,与该通知消息分组进行关联。进而,后续接收到的联系人A在相应的应用(例如微信应用)中发出的通知消息,以及联系人B在相应的应用(例如短信息应用)中发出的通知消息,均会显示在于该通知消息分组对应的通知聚合窗口中。进而,后续接收到的联系人A在相应的应用(例如微信应用)中发出的通知消息,以及联系人B在相应的应用(例如短信息应用)中发出的通知消息,均会显示在于该通知消息分组对应的通知聚合窗口中。例如,联系人“张某某”发送的短信息和微信好友“李”发送的微信为手机用户感兴趣或关注的通知消息,则手机用户可以创建通知消息分组1,并将联系人“张某某”发送的短信息对应的应用名称及会话标识(ConversationID),以及微信好友“李”发送的微信通知消息对应的应用名称及会话标识(ConversationID),与通知消息分组1进行关联,以使后续接收到的联系人“张某某”发送的短信息,以及微信好友“李”发送的微信,均会显示在与通知消息分组1对应的通知聚合窗口中。如图15所示,通知聚合窗口1501为与通知消息分组1对应的通知聚合窗口,在通知聚合窗口1501中可以聚合显示短信息应用通知窗口15011和微信应用通知窗口15012。其中,短信息应用通知窗口15011中显示的为联系人“张某某”发送的短信息,微信应用通知窗口15012中显示的为微信好友“李”发送的微信通知消息。Exemplarily, if the notification message that the user cares about or is interested in is a message sent by contact A in a certain application (such as WeChat application), and a notification sent by contact B in another application (such as a short message application) message, you can create a notification message group, and combine the notification message sent by contact A in the corresponding application (such as WeChat application), and the notification message sent by contact B in the corresponding application (such as SMS application), Associate with the notification message group. Furthermore, the notification message sent by contact A in the corresponding application (such as WeChat application) and the notification message sent by contact B in the corresponding application (such as SMS application) received subsequently will be displayed in the notification In the notification aggregation window corresponding to the message group. Furthermore, the notification message sent by contact A in the corresponding application (such as WeChat application) and the notification message sent by contact B in the corresponding application (such as SMS application) received subsequently will be displayed in the notification In the notification aggregation window corresponding to the message group. For example, if the short message sent by the contact "Zhang XX" and the WeChat message sent by the WeChat friend "Li" are notification messages that the mobile phone user is interested in or concerned about, the mobile phone user can create a notification message group 1 and assign the contact "Zhang XX The application name and conversation ID (ConversationID) corresponding to the short message sent by "" and the application name and conversation ID (ConversationID) corresponding to the WeChat notification message sent by WeChat friend "Li" are associated with notification message group 1, so that subsequent The received short message sent by the contact "Zhang XX" and the WeChat message sent by the WeChat friend "Li" will be displayed in the notification aggregation window corresponding to the notification message group 1. As shown in FIG. 15 , the notification aggregation window 1501 is a notification aggregation window corresponding to the notification message group 1. In the notification aggregation window 1501 , a short message application notification window 15011 and a WeChat application notification window 15012 can be aggregated and displayed. Among them, the short message application notification window 15011 displays the short message sent by the contact "Zhang XX", and the WeChat application notification window 15012 displays the WeChat notification message sent by the WeChat friend "Li".

又示例性的,若用户关注的或感兴趣的通知消息为联系人A和联系人B在某个应用(例如微信应用)中发出的通知消息,则可以创建一个通知消息分组,并将联系人A和联系人B在该应用中发出的通知消息,与该通知消息分组进行关联。进而,后续接收到的联系人A和联系人B在该应用中发出的通知消息,均会显示在于该通知消息分组对应的通知聚合窗口中。例如,微信好友“CC”和微信好友“ZZ”发送的微信通知消息为手机用户感兴趣或关注的通知消息,则手机用户可以创建通知消息分组2,并将微信好友“CC”和微信好友“ZZ”发送的微信通知消息分别对应的应用名称及会话标识(ConversationID),均与通知消息分组2进行关联,以使后续接收到的微信好友“CC”和微信好友“ZZ”发送的微信通知消息,均会显示在与通知消息分组2对应的通知聚合窗口中。如图16所示,通知聚合窗口1601为与通知消息分组2对应的通知聚合窗口,在通知聚合窗口1601中可以聚合显示微信应用通知窗口16011和微信应用通知窗口16012。其中,微信应用通知窗口16011显示的为微信好友“CC”发送的微信通知消息,微信应用通知窗口16012中显示的为微信好友“ZZ”发送的微信通知消息。As another example, if the notification message that the user is concerned about or interested in is the notification message sent by contact A and contact B in a certain application (such as a WeChat application), a notification message group can be created and the contact The notification messages sent by A and contact B in the application are associated with the notification message group. Furthermore, the subsequent notification messages sent by contact A and contact B in the application will be displayed in the notification aggregation window corresponding to the notification message group. For example, if the WeChat notification message sent by the WeChat friend "CC" and the WeChat friend "ZZ" is a notification message that the mobile phone user is interested in or concerned about, the mobile phone user can create a notification message group 2 and group the WeChat friend "CC" and the WeChat friend "ZZ". The application names and conversation IDs (ConversationID) corresponding to the WeChat notification messages sent by ZZ” are associated with the notification message group 2, so that the WeChat notification messages sent by WeChat friend “CC” and WeChat friend “ZZ” received subsequently , will be displayed in the notification aggregation window corresponding to notification message group 2. As shown in FIG. 16 , the notification aggregation window 1601 is a notification aggregation window corresponding to the notification message group 2, and the WeChat application notification window 16011 and the WeChat application notification window 16012 can be aggregated and displayed in the notification aggregation window 1601 . Among them, the WeChat application notification window 16011 displays the WeChat notification message sent by the WeChat friend "CC", and the WeChat application notification window 16012 displays the WeChat notification message sent by the WeChat friend "ZZ".

其中,通知消息分组1或2的创建及管理流程,将通知消息对应的应用名称及会话标识与通知消息分组关联或取消关联的流程,以及其他未尽详细解释之处均可以参照前文,在此不再赘述。Among them, the creation and management process of notification message group 1 or 2, the process of associating or disassocating the application name and session ID corresponding to the notification message with the notification message group, and other details that have not been explained in detail can refer to the above, here No longer.

本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的通知消息的显示方法。This embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned related method steps to realize the display of the notification message in the above-mentioned embodiment method.

本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的通知消息的显示方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to realize the method for displaying the notification message in the above embodiment.

本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的通知消息的显示方法。Embodiments of the present application also provide a device, which may specifically be a chip, component or module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor The computer execution instructions stored in the memory can be executed, so that the chip executes the method for displaying the notification message in the above method embodiments.

另外,本申请的实施例还提供一种芯片,该芯片可包括一个或多个处理电路和一个或多个收发管脚;其中,所述收发管脚和所述处理电路通过内部连接通路互相通信,所述处理电路执行上述相关方法步骤实现上述实施例中的通知消息的显示方法,以控制接收管脚接收信号,以控制发送管脚发送信号。In addition, embodiments of the present application also provide a chip, which may include one or more processing circuits and one or more transceiver pins; wherein, the transceiver pins and the processing circuits communicate with each other through an internal connection path The processing circuit executes the above related method steps to implement the notification message display method in the above embodiment, to control the receiving pin to receive a signal, and to control the sending pin to send a signal.

其中,本实施例提供的电子设备(如手机等)、计算机存储介质、计算机程序产品或芯片等均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic devices (such as mobile phones, etc.), computer storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that it can achieve can refer to the above The beneficial effects of the corresponding method provided herein will not be repeated here.

通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by different Completion of functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the application.

Claims (19)

1. A method for displaying a notification message, comprising:
displaying a first interface;
the first interface comprises a first notification window, at least one second notification window is displayed in the first notification window, the second notification window is an application notification window, and application notification messages interesting to a user are respectively displayed in each second notification window;
the notification message group corresponding to the first notification window is created by a user in advance according to requirements, and the application name and the session identifier of the application notification message displayed in each second notification window are associated with the notification message group by the user in advance according to requirements;
the application notification messages displayed in the second notification windows have different application names and/or session identifiers, and the session identifiers are used for indicating sending users of the application notification messages.
2. The method of claim 1,
the first notification window is used for displaying application notification messages corresponding to the first contact in an aggregation mode; and each second notification window is respectively used for displaying notification messages sent by the first contact in different applications.
3. The method of claim 1, wherein displaying the first interface comprises:
acquiring a first notification message, and determining the name of a first application to which the first notification message belongs and a first session identifier of the first notification message;
if the first contact group to which the first notification message belongs is determined to exist according to the name of the first application and the first session identifier, displaying the first notification message in a second notification window corresponding to the name of the first application in the first notification window;
the first notification window is a notification window corresponding to the first contact group.
4. The method of claim 3, further comprising, prior to said displaying the first interface:
displaying a second interface; the second interface comprises a third notification window, and a second notification message of the first application is displayed in the third notification window; wherein the session identifier of the second notification message is the first session identifier;
in response to a first operation, a first contact group is created and the name of the first application and the first session identification are associated with the first contact group.
5. The method of claim 3, prior to said displaying the first interface, further comprising:
displaying a third interface; the third interface comprises a fourth notification window, and a third notification message of the first application is displayed in the fourth notification window; wherein the session identifier of the third notification message is the first session identifier;
associating the name of the first application and the first session identification with the first contact group in response to a second operation.
6. The method of claim 4 or 5, further comprising:
displaying a fourth interface; the fourth interface comprises a fifth notification window, and a fourth notification message of the second application is displayed in the fifth notification window; wherein, the session identifier of the fourth notification message is a second session identifier;
in response to a third operation, associating the name of the second application and the second session identification with the first contact group.
7. The method of claim 4, wherein, when creating the first group of contacts, further comprising:
and responding to a fourth operation, and performing personalized setting on the first contact group.
8. The method of claim 4 or 5, further comprising:
displaying a fifth interface; the fifth interface displays the identifier of the first application;
in response to a fifth operation on the identification of the first application, disassociating the name of the first application and the first session identification from the first contact group.
9. The method of claim 4 or 5, further comprising:
displaying a fifth interface; the fifth interface displays the identifier of the first application;
displaying a sixth interface in response to a sixth operation on the identification of the first application;
and displaying a session interface corresponding to the first session identifier in the first application in the sixth interface.
10. The method of claim 4 or 5, further comprising:
displaying a seventh interface; a contact person grouping list is displayed on the seventh interface, and the contact person grouping list comprises the identifier of the first contact person group;
in response to a seventh operation on the identification of the first contact group, displaying an eighth interface; and personalized setting information of the first contact person group is displayed in the eighth interface.
11. The method of claim 4 or 5, further comprising:
displaying a seventh interface; a contact person grouping list is displayed on the seventh interface, and the contact person grouping list comprises the identifier of the first contact person group;
deleting the first group of contacts in response to an eighth operation on the identification of the first group of contacts.
12. The method of claim 1 or 2, further comprising:
in response to a ninth operation on the first notification window, the first notification window is switched from an unfolded state to a folded state;
in response to a tenth operation on the first notification window, the first notification window is switched from a collapsed state to an expanded state.
13. The method of claim 1 or 2, further comprising:
in response to an eleventh operation on the first notification window, deleting the first notification window in an interface.
14. The method of claim 1 or 2, further comprising:
in response to a twelfth operation on the second notification window, deleting the second notification window in the first notification window.
15. The method of claim 3, further comprising:
and responding to a thirteenth operation of the second notification window, acquiring a name and a third session identifier of a third application corresponding to the second notification window, and disassociating the name and the third session identifier of the third application from the first contact group.
16. The method of claim 3, further comprising:
and if the first contact person group to which the first notification message belongs does not exist according to the name of the first application and the first session identification, displaying the first notification message in an application notification window corresponding to the first application.
17. The method of claim 4, wherein creating a first contact group and associating the name of the first application and the first session identification with the first contact group comprises:
adding a first record corresponding to the first contact group in a first data table; the first record at least comprises a contact person grouping identifier, and the contact person grouping identifier is a primary key of the first data table;
adding a second record corresponding to the name of the first application and the first session identification in a second data table, wherein the second record at least comprises the application name to which the notification message belongs, the session identification of the notification message, and a contact group; the application name to which the notification message belongs and the session identifier of the notification message are both the primary key of the second data table, and the contact group is the external key of the first data table and is associated with the contact group identifier in the first data table.
18. An electronic device, comprising:
one or more processors;
a memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when executed by the one or more processors, cause the electronic device to perform the method of displaying the notification message of any of claims 1-17.
19. A computer-readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform a method of displaying a notification message according to any of claims 1-17.
CN202210704580.7A 2022-06-21 2022-06-21 Display method and electronic device of notification message Active CN114780268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210704580.7A CN114780268B (en) 2022-06-21 2022-06-21 Display method and electronic device of notification message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210704580.7A CN114780268B (en) 2022-06-21 2022-06-21 Display method and electronic device of notification message

Publications (2)

Publication Number Publication Date
CN114780268A CN114780268A (en) 2022-07-22
CN114780268B true CN114780268B (en) 2022-11-08

Family

ID=82421305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210704580.7A Active CN114780268B (en) 2022-06-21 2022-06-21 Display method and electronic device of notification message

Country Status (1)

Country Link
CN (1) CN114780268B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055634B (en) * 2022-08-09 2023-10-31 荣耀终端有限公司 Message management method, terminal device and medium thereof
CN120416383A (en) * 2024-01-31 2025-08-01 华为技术有限公司 Display method, user interface and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708895A (en) * 2015-11-17 2017-05-24 腾讯科技(深圳)有限公司 Method and device for displaying message in mobile social application
CN111343081A (en) * 2020-03-02 2020-06-26 维沃移动通信有限公司 Information display method and electronic device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8723823B2 (en) * 2011-02-07 2014-05-13 Qualcomm Incorporated System and method for providing notifications on a mobile computing device
US9692838B2 (en) * 2014-12-09 2017-06-27 Facebook, Inc. Generating business insights using beacons on online social networks
CN104994236A (en) * 2015-07-13 2015-10-21 魅族科技(中国)有限公司 Information processing method and device
CN106598392B (en) * 2016-12-14 2020-03-17 北京小米移动软件有限公司 Notification message display method and device
US10685169B2 (en) * 2017-05-08 2020-06-16 Zoho Corporation Private Limited Messaging application with presentation window
CN109062709A (en) * 2018-07-12 2018-12-21 维沃移动通信有限公司 A kind of processing method and mobile terminal of notification message
CN109905545B (en) * 2018-12-29 2021-09-17 努比亚技术有限公司 Message processing method, terminal and computer readable storage medium
CN110290058B (en) * 2019-06-30 2022-03-11 上海掌门科技有限公司 A method and device for presenting session messages in an application
CN110830468B (en) * 2019-11-05 2021-04-13 腾讯科技(深圳)有限公司 Cross-application-based authority management method and device and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708895A (en) * 2015-11-17 2017-05-24 腾讯科技(深圳)有限公司 Method and device for displaying message in mobile social application
CN111343081A (en) * 2020-03-02 2020-06-26 维沃移动通信有限公司 Information display method and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Fernando Zaldívar Coto等.Scheduling of events through notifications in mobile devices.《2019 IV Jornadas Costarricenses de Investigación en Computación e Informática (JoCICI)》.2020,第1-6页. *
雷学智.Android消息推送机制在城市通中的应用研究.《计算机光盘软件与应用》.2014,第31-32页. *

Also Published As

Publication number Publication date
CN114780268A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN114467297B (en) Video call display method and related device applied to electronic equipment
US20240168603A1 (en) Card Display Method, Electronic Device, and Computer-Readable Storage Medium
US11385857B2 (en) Method for displaying UI component and electronic device
CN109889630B (en) Display method and related device
CN110231905B (en) Screen capturing method and electronic equipment
JP7268275B2 (en) Method and electronic device for presenting video on electronic device when there is an incoming call
WO2021129688A1 (en) Display method and related product
JP2022548121A (en) Foldable screen display method and electronic device
US11843712B2 (en) Address book-based device discovery method, audio and video communication method, and electronic device
CN114844984B (en) Notification message reminding method and electronic equipment
CN114780268B (en) Display method and electronic device of notification message
CN113806105A (en) Message processing method and device, electronic equipment and readable storage medium
WO2023029985A1 (en) Method for displaying dock bar in launcher and electronic device
CN114244955B (en) Service sharing method and system, electronic device and computer readable storage medium
US20240295905A1 (en) Screen display method and electronic device
CN117873409A (en) Cross-screen sharing method, graphical interface and related device
CN113835802A (en) Device interaction method, system, device, and computer-readable storage medium
CN114064160A (en) Application icon layout method and related device
CN116016418A (en) Information interaction method and electronic equipment
CN117914992A (en) Notification display method and terminal device
CN117724640B (en) Split screen display method, electronic equipment and storage medium
CN117931036B (en) Task processing-based reminding method and electronic equipment
CN114245060B (en) Path processing method, device, equipment and storage medium
CN115250261B (en) Information display method and electronic equipment
EP4345590A1 (en) Task synchronization system and method, and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address