Notification processing method and processing apparatus

By establishing a network among multiple electronic devices and utilizing identifier recognition and user detection mechanisms to control notification display modes and synchronization methods, the problems of duplicate notification display and privacy leakage are solved, achieving efficient notification synchronization and privacy protection.

WO2026001605A9PCT designated stage Publication Date: 2026-03-12HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-06-05
Publication Date
2026-03-12

AI Technical Summary

Technical Problem

When notifications are synchronized across multiple electronic devices, duplicate displays or reminders may occur, affecting user experience and posing a risk of privacy breaches.

Method used

By establishing a network between the first and second electronic devices and utilizing identification and user detection mechanisms, the display mode and synchronization method of notifications are controlled to ensure that notifications are displayed on one device, avoid duplicate display or reminders, and synchronize while protecting the privacy of the device owner.

Benefits of technology

It effectively reduces the probability of repeated notifications or reminders, improves user experience, and protects the privacy of the device owner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025099217_12032026_PF_FP_ABST
    Figure CN2025099217_12032026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a notification processing method and a processing apparatus, which are applied to the technical field of terminals. The method comprises: a first electronic device establishes networking with a second electronic device, the first electronic device having a function of notification synchronization, that is, sending a received notification of an application to the second electronic device; when the same application is installed on both the second electronic device and the first electronic device and accounts logging in the application are the same, the second electronic device can receive a notification of the application from a server, or can also receive the notification of the application from the first electronic device. If both the first electronic device and the second electronic device receive a notification and display same, a situation in which the notification is repeatedly displayed will occur. In the embodiments of the present application, upon receiving a notification, the second electronic device can determine whether an identical notification has been received and, if not, displays the notification, or if yes, does not display the notification, thereby helping to reduce the probability of repeatedly displaying notifications.
Need to check novelty before this filing date? Find Prior Art

Description

Processing method and processing device of notification

[0001] The present application claims priority to the Chinese patent application No. 202410866900.8, filed on June 29, 2024, and entitled "Processing method and processing device of notification", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] Embodiments of the present application relate to the technical field of terminal, in particular to a processing method and processing device of notification. BACKGROUND

[0003] With the development of terminal technology, synchronization of notifications between multiple electronic devices can be achieved. For example, a first electronic device receives a notification of a chat application, and the first electronic device can synchronize the notification to a second electronic device. In this way, the user can receive the notification whether using the first electronic device or the second electronic device.

[0004] However, in the case that the second electronic device also installs the chat application and the account of the chat application of the second electronic device is the same as that of the first electronic device, the second electronic device may receive two notifications, causing repeated display and affecting user experience. SUMMARY

[0005] Embodiments of the present application provide a processing method and processing device of notification, which are applied to the technical field of terminal, and are beneficial to reduce the probability of repeated display of notifications, and further improve user experience.

[0006] In a first aspect, embodiments of the present application provide a processing method of notification. The method can be applied to a communication system including a first electronic device and a second electronic device. The method includes: establishing networking between the first electronic device and the second electronic device by the first electronic device; the first electronic device installs a first application and a second application, the second electronic device does not install the first application, or installs the first application but the login account of the first application in the second electronic device is different from the login account of the first application in the first electronic device, the second electronic device installs the second application, and the login account of the second application in the first electronic device is the same as the login account of the second application in the second electronic device; in the case that the first application has a first notification, the first electronic device displays the first notification in a first mode, and the second electronic device displays the first notification in a second mode, the first mode includes a notification display mode when a message is obtained from a server, and the second mode includes a notification display mode when a message or notification is obtained from a device in the networking; in the case that the second application has a second notification, the first electronic device displays the second notification in the first mode, and the second electronic device displays the second notification in one of the first mode or the second mode.

[0007] The first electronic device establishes networking with the second electronic device, which can be understood as that the first electronic device and the second electronic device can communicate to cooperatively complete the same service. The first electronic device and the second electronic device establish networking, which can also be referred to as that the first electronic device and the second electronic device establish super-terminal networking, and the embodiments of the present application do not limit this. The first electronic device and the second electronic device establishing networking can refer to the scenario shown in FIG. 4.

[0008] The first application has the first notification, the first electronic device can obtain the first notification from the server, and therefore the first notification can be displayed in the first mode. The first electronic device has the function of notification synchronization, and can send the first notification to the second electronic device. The second electronic device obtains the first notification from the first electronic device, and can display the first notification in the second mode. In some examples, the first mode can refer to the mode in which the notification of the chat application displayed by the mobile phone 110 in FIG. 1.

[0009] The first application has the second notification, the first electronic device can obtain the second notification from the server, and therefore the second notification can be displayed in the first mode. The first electronic device has the function of notification synchronization, and can send the second notification to the second electronic device. The second electronic device can obtain the second notification from the first electronic device, or can obtain the second notification from the server, but the second electronic device can display the second notification in one of the first mode or the second mode. In this way, it is beneficial to reduce the probability of repeatedly displaying notifications.

[0010] In some examples, the first mode can refer to the notification shown in the first dashed box in FIG. 3. The second mode can refer to the notification shown in the second dashed box in FIG. 3.

[0011] Whether the second electronic device displays the second notification in the first mode or in the second mode can depend on whether the second notification is obtained from the first electronic device first or from the server first. If the second electronic device obtains the second notification from the first electronic device first, the second electronic device displays the second notification in the second mode. If the second electronic device obtains the second notification from the server first, the second electronic device displays the second notification in the first mode.

[0012] In a possible implementation, the second electronic device displays the second notification in one of the first mode or the second mode in a case where the second application has the second notification, including: in a case where the second application has the second notification, the second electronic device obtains the second notification from the server; the second electronic device determines whether an identifier same as the first identifier carried by the second notification is stored; in a case where the identifier same as the first identifier is not stored, the second electronic device displays the second notification in the first mode and stores the first identifier; in a case where the second electronic device obtains the second notification from the first electronic device, the second electronic device determines whether the identifier same as the first identifier carried by the second notification is stored; in a case where the identifier same as the first identifier is stored, the second electronic device does not display the second notification in the second mode.

[0013] In a case where the second application has the second notification, the second electronic device first receives the second notification from the server, at this time, an identifier same as an identifier carried by the second notification is not stored, and the second electronic device can display the second notification in the first mode and store the identifier carried by the second notification. In an example, the method can refer to S809 to S812 in FIG. 8.

[0014] The second electronic device further receives the second notification from the first electronic device, at this time, the identifier carried by the second notification is stored, and the second electronic device can not display the second notification in the second mode. In an example, the method can refer to S819 to S821 in FIG. 8.

[0015] In this way, it is favorable to reduce the probability of repeatedly displaying the notification.

[0016] In a possible implementation, the second electronic device displays the second notification in one of the first mode or the second mode in a case where the second application has the second notification, including: in a case where the second application has the second notification, the second electronic device obtains the second notification from the first electronic device; the second electronic device determines whether an identifier same as the first identifier carried by the second notification is stored; in a case where the identifier same as the first identifier is not stored, the second electronic device displays the second notification in the second mode and stores the first identifier; in a case where the second electronic device obtains the second notification from the server, the second electronic device determines whether the identifier same as the first identifier carried by the second notification is stored; in a case where the identifier same as the first identifier is stored, the second electronic device does not display the second notification in the first mode.

[0017] In a case where the second application has the second notification, the second electronic device first receives the second notification from the first electronic device, at this time, an identifier same as an identifier carried by the second notification is not stored, and the second electronic device can display the second notification in the second mode and store the identifier carried by the second notification.

[0018] The second electronic device further receives a second notification from the server, and at this time, the second electronic device can not display the second notification in the first mode if the second notification carries the stored identifier. In this way, the probability of repeatedly displaying the notification can be reduced.

[0019] In a possible implementation, the first electronic device displays the second notification in the first mode when the second application has the second notification, including: when the second application has the second notification, the first electronic device determines whether the same identifier as the first identifier carried by the second notification is stored; and when the same identifier as the first identifier is not stored, the first electronic device sends the second notification to the second electronic device and displays the second notification in the first mode.

[0020] Before the first electronic device synchronizes the second notification with the second electronic device, the first electronic device can determine whether the same identifier as the first identifier carried by the second notification is stored. If the same identifier is stored, it means that the same notification has been received, and the first electronic device can not synchronize with the second electronic device. If the same identifier is not stored, it means that the same notification has not been received, and the first electronic device can synchronize with the second electronic device. In an example, the method can refer to S809 to S815 in FIG. 8. In this way, the probability of synchronizing the same notification between the devices can be reduced.

[0021] In a possible implementation, the method further includes: when the second application has a third notification, the first electronic device is not in the lock screen state, the second electronic device is in the lock screen state, the first electronic device displays the third notification in the first mode, and the second electronic device does not display the third notification in the first mode or the second mode.

[0022] The first electronic device and the second electronic device establish networking, and the notification of the second application can be displayed on only one device. When the first electronic device is not in the lock screen state and the second electronic device is in the lock screen state, the first electronic device displays the third notification, and the second electronic device does not display the third notification. In this way, the probability of repeatedly reminding on different devices can be reduced.

[0023] In a possible implementation, before the second electronic device does not display the third notification in the first mode or the second mode, the method further includes: the second electronic device receives information from the first electronic device indicating that the third notification has been displayed; the second electronic device does not display the third notification in the first mode, and the second electronic device does not display the third notification in the second mode, including: in response to the information indicating that the third notification has been displayed, the second electronic device does not display the third notification in the first mode, and the second electronic device does not display the third notification in the second mode.

[0024] The first electronic device receives the third notification from the server, detects that the first electronic device is not in the lock screen state and the second electronic device is in the lock screen state, and the first electronic device can display the third notification and send information indicating that the third notification has been displayed to the second electronic device. In response to the information indicating that the third notification has been displayed, the second electronic device does not display the third notification.

[0025] The method can refer to S1007 to S1009 in FIG. 10. In this way, the notification of the second application can be displayed on only one device, which is conducive to reducing the probability of repeated reminders on different devices.

[0026] It can be understood that the second electronic device can synchronize with the first electronic device information that the second electronic device is in the lock screen state or is not in the lock screen state, so that the notification of the second application can be displayed on only one device.

[0027] In a possible implementation, the method further includes: in a case where the second application has a fourth notification, the first electronic device is in the lock screen state, and the second electronic device is not in the lock screen state, the first electronic device does not display the fourth notification in the first mode, and the second electronic device displays the fourth notification in one of the first mode or the second mode.

[0028] The first electronic device receives the third notification from the server, detects that the first electronic device is in the lock screen state and the second electronic device is not in the lock screen state, and the first electronic device can not display the fourth notification. The second electronic device can display the fourth notification in one of the first mode or the second mode based on the method described above.

[0029] In this way, it is conducive to the notification of the second application being displayed on only one device, and it is also conducive to reducing the probability of repeated reminders on the same device.

[0030] In a possible implementation, the method further includes: in a case where the first electronic device detects that the second notification has been read, the first electronic device sends information indicating that the second notification has been read to the second electronic device; and in response to the information indicating that the second notification has been read, the second electronic device does not display the second notification.

[0031] In an example, the method can refer to S1010 and S1011 in FIG. 10.

[0032] In this way, the user only processes once on one device, which is conducive to reducing the probability of the user repeatedly processing the same notification.

[0033] In a possible implementation, the method further includes: in a case where the first application has the fifth notification, the first electronic device does not display the fifth notification, and the second electronic device displays the fifth notification in the second mode, the user using the second electronic device is the target user, and the target user is the owner of the first electronic device.

[0034] The user using the second electronic device is the target user, and the target user is the owner of the first electronic device, which can mean that the user using the second electronic device is only one, that is, the owner. In this way, the second electronic device displays the fifth notification, and the first electronic device does not display the fifth notification, which is beneficial to realizing that one notification is displayed on only one device while the privacy of the owner is protected.

[0035] In a possible implementation, in a case where the first application has the fifth notification, the first electronic device does not display the fifth notification, and the second electronic device displays the fifth notification in the second mode, the method includes: in a case where the first application has the fifth notification, the first electronic device determines whether the target user is using the second electronic device, and if the target user is using the second electronic device, determines whether there is another user in addition to the target user using the second electronic device; in a case where there is no other user in addition to the target user using the second electronic device, the first electronic device does not display the fifth notification, and sends the fifth notification to the second electronic device; and the second electronic device displays the fifth notification in the second mode.

[0036] The method can refer to the method shown in FIG. 9. In this way, it is beneficial to realize that one notification is displayed on only one device while the privacy of the owner is protected.

[0037] In a possible implementation, the method further includes: in a case where there is another user in addition to the target user using the second electronic device, the first electronic device does not send the message content associated with the fifth notification to the second electronic device. In this way, it is beneficial to protect the privacy of the owner.

[0038] In a possible implementation, the first electronic device determining whether the target user is using the second electronic device includes: in a case where the first electronic device detects that face unlocking is successful, obtaining an image at the time of face unlocking; intercepting face information in the image, and sending the face information to the second electronic device; in response to the face information, the second electronic device determines whether the user using the second electronic device is the target user; in a case where the second electronic device determines that the user using the second electronic device is the target user, the second electronic device sends information indicating that the target user is using the second electronic device to the first electronic device; the first electronic device stores the information indicating that the target user is using the second electronic device to a database; and the first electronic device determines whether the target user is using the second electronic device according to whether the information indicating that the target user is using the second electronic device is obtained from the database. The method can refer to S801 to S808 in FIG. 8.

[0039] In this way, the second electronic device can detect whether the user using the second electronic device is the owner.

[0040] In a possible implementation, the method further includes: the second electronic device detecting information of a user change, the information of the user change indicating that the user using the second electronic device is not the target user, or the user using the second electronic device is in addition to the target user; and the second electronic device hiding the fifth notification, or not displaying message content associated with the fifth notification.

[0041] In this way, the second electronic device can change the display state of the notification according to the change of the user using the second electronic device, and the privacy of the owner can be protected.

[0042] In a possible implementation, the method further includes: the second electronic device sending, to the first electronic device, information of a user change; and in a case where the sixth notification exists in the second application, the first electronic device does not send the sixth notification to the second electronic device in response to the information of the user change.

[0043] The second electronic device can determine whether to synchronize the notification of the application according to the information of the user change, and the synchronization of the notification can be implemented while the privacy of the owner is protected.

[0044] In a second aspect, an embodiment of the present application provides a notification processing method, applied to a second electronic device, and the method includes: the second electronic device establishing networking with a first electronic device, the first electronic device and the second electronic device both installing a second application, and a login account of the second application in the first electronic device being the same as a login account of the second application in the second electronic device; in a case where the second application has a second notification, the second electronic device obtaining the second notification from a server; the second electronic device determining whether an identifier same as a first identifier carried by the second notification is stored; in a case where the identifier same as the first identifier is not stored, the second electronic device displaying the second notification in a first mode, and storing the first identifier; the first mode including a notification display mode when a message is obtained from the server; and in a case where the second electronic device obtains the second notification from the first electronic device, the second electronic device determining whether the identifier same as the first identifier carried by the second notification is stored.

[0045] In a case where the identifier same as the first identifier is stored, the second electronic device does not display the second notification in a second mode, the second mode including a notification display mode when a message or a notification is obtained from a device in the networking.

[0046] In a third aspect, the embodiments of the present application provide a notification processing method. The method can be applied to a communication system including a first electronic device and a second electronic device. The method includes: establishing networking between the first electronic device and the second electronic device; the first electronic device is installed with a first application and a second application; the second electronic device is not installed with the first application, or is installed with the first application but the login account of the first application in the second electronic device is different from the login account of the first application in the first electronic device; in the case that the first application has a fifth notification, the first electronic device does not display the fifth notification, and the second electronic device displays the fifth notification; a user using the second electronic device is a target user, and the target user is the owner of the first electronic device.

[0047] In a possible implementation, in the case that the first application has the fifth notification, the first electronic device does not display the fifth notification, and the second electronic device displays the fifth notification, which includes: in the case that the first application has the fifth notification, the first electronic device determines whether the target user is using the second electronic device, and if the target user is using the second electronic device, determines whether there is another user in addition to the target user using the second electronic device; in the case that there is no other user in addition to the target user using the second electronic device, the first electronic device does not display the fifth notification, and sends the fifth notification to the second electronic device; and the second electronic device displays the fifth notification.

[0048] In a possible implementation, the method further includes: in the case that there is another user in addition to the target user using the second electronic device, the first electronic device does not send the message content associated with the fifth notification to the second electronic device.

[0049] In a possible implementation, the first electronic device determining whether the target user is using the second electronic device includes: in the case that the first electronic device detects that face unlocking is successful, obtaining an image at the time of face unlocking; intercepting face information in the image, and sending the face information to the second electronic device; in response to the face information, the second electronic device determines whether the user using the second electronic device is the target user; in the case that the second electronic device determines that the user using the second electronic device is the target user, the second electronic device sends information indicating that the target user is using the second electronic device to the first electronic device; the first electronic device stores the information indicating that the target user is using the second electronic device to a database; and the first electronic device determines whether the target user is using the second electronic device according to whether the information indicating that the target user is using the second electronic device is obtained from the database.

[0050] In a possible implementation, the method further includes: detecting, by the second electronic device, information of a user change, the information of the user change being used to indicate that a user using the second electronic device is not the target user, or the user using the second electronic device is in addition to the target user; and hiding, by the second electronic device, the fifth notification, or not displaying, by the second electronic device, the message content associated with the fifth notification.

[0051] In a possible implementation, the method further includes: sending, by the second electronic device, information of a user change to the first electronic device; and in response to the information of the user change, not sending, by the first electronic device, the sixth notification to the second electronic device, when the sixth notification exists in the second application.

[0052] In a fourth aspect, an embodiment of the present application provides a notification processing apparatus. The notification processing apparatus can be an electronic device, or a chip or chip system in the electronic device. The notification processing apparatus can include a processing module, a display module, and a transceiver module. When the notification processing apparatus is an electronic device, the processing module can be a processing unit. The processing unit is configured to execute steps of the processing module, so that the electronic device implements the notification processing method in the first aspect or any possible implementation of the first aspect. When the notification processing apparatus is an electronic device, the processing module can be a processor. The notification processing apparatus can further include a storage unit, which can be a memory. The storage unit is configured to store instructions, and the processing module executes the instructions stored in the storage unit, so that the electronic device implements the notification processing method in the first aspect or any possible implementation of the first aspect. When the notification processing apparatus is a chip or chip system in the electronic device, the processing module can be a processor. The processing module executes instructions stored in the storage unit, so that the electronic device implements the notification processing method in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit (for example, a register, a cache, or the like) in the chip, or a storage unit (for example, a read-only memory, a random access memory, or the like) in the electronic device and located outside the chip.

[0053] An example processing module is configured to establish networking with a first electronic device, the first electronic device and a notification processing device are both installed with a second application, and a login account of the second application in the first electronic device is the same as a login account of the second application in the notification processing device; when the second application has a second notification, a transceiving module is configured to obtain the second notification from a server; the processing module is further configured to determine whether an identifier same as a first identifier carried by the second notification is stored; a display module is configured to display the second notification in a first mode when the identifier same as the first identifier is not stored, and the processing module is further configured to store the first identifier; the first mode includes a notification display mode when a message is obtained from the server; when the second notification from the first electronic device is obtained, it is determined whether the identifier same as the first identifier carried by the second notification is stored; and when the identifier same as the first identifier is stored, the second notification is not displayed in a second mode, the second mode including a notification display mode when a message or a notification is obtained from a device in the networking.

[0054] In a fifth aspect, an embodiment of the present application provides an electronic device, including one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is configured to store computer program codes, the computer program codes including computer instructions, and the one or more processors are configured to invoke the computer instructions to enable the electronic device to perform the method described in the second aspect or any possible implementation manner of the second aspect.

[0055] In a sixth aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores computer programs or instructions, and when the computer programs or instructions are run on an electronic device, the electronic device is enabled to perform the method described in the second aspect or any possible implementation manner of the second aspect.

[0056] In a seventh aspect, an embodiment of the present application provides a computer program product, and the computer program product includes computer program codes, and when the computer program codes are run on an electronic device, the electronic device is enabled to perform the method described in the second aspect or any possible implementation manner of the second aspect.

[0057] In an eighth aspect, the present application provides a chip or a chip system, which is applied to an electronic device, and the chip or the chip system includes at least one or more processors, and the one or more processors are configured to invoke computer instructions to perform the method described in the second aspect or any possible implementation manner of the second aspect.

[0058] In a possible implementation, the chip or the chip system described above in the application further includes at least one memory in which instructions are stored. The memory can be a storage unit inside the chip, for example, a register, a cache, etc., or a storage unit of the chip (for example, a read-only memory, a random access memory, etc.).

[0059] It should be understood that the second aspect to the eighth aspect of the application correspond to the technical solution of the first aspect of the application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation are similar, which will not be described again. BRIEF DESCRIPTION OF DRAWINGS

[0060] FIG. 1 is an interface schematic diagram of implementing notification synchronization through a "super desktop" function according to an embodiment of the application;

[0061] FIG. 2 is an interface schematic diagram of implementing notification synchronization through multi-screen cooperation according to an embodiment of the application;

[0062] FIG. 3 is an interface schematic diagram of repeated reminder notification according to an embodiment of the application;

[0063] FIG. 4 is a schematic diagram of a communication system according to an embodiment of the application;

[0064] FIG. 5 is a hardware structure schematic diagram of an electronic device according to an embodiment of the application;

[0065] FIG. 6 is a software architecture schematic diagram of an electronic device according to an embodiment of the application;

[0066] FIG. 7 is a schematic diagram of a communication system according to an embodiment of the application;

[0067] FIG. 8 to FIG. 10 are module interaction diagrams of a notification processing method according to an embodiment of the application;

[0068] FIG. 11 is a schematic flowchart of a notification processing method according to an embodiment of the application;

[0069] FIG. 12 is a structure schematic diagram of a chip according to an embodiment of the application. DETAILED DESCRIPTION

[0070] The technical solution in the application will be described below with reference to the accompanying drawings.

[0071] In order to better understand the embodiments of the application, first, the terms provided by the embodiments of the application are introduced.

[0072] 1. Notification

[0073] A notification refers to a system-level prompt or alert displayed on an electronic device to remind a user of the occurrence of a certain time or state. In some examples, a notification can be used to notify an electronic device that a message has been received for an installed application.

[0074] 2. Notification synchronization

[0075] Notification synchronization can also be referred to as cross-device notification, i.e., reminding the same notification on different devices.

[0076] 3. Cockpit

[0077] A cockpit is a kind of in-vehicle system that can realize intelligent control and management of in-vehicle devices through an operation interface and various human-computer interaction methods such as touch screens, voice control, and gesture recognition.

[0078] 4. Multi-screen collaboration

[0079] Multi-screen collaboration is used to represent that resources can be shared and collaborative operations can be realized between multiple devices. For example, a mobile phone, a tablet, and a computer are connected together, and the mobile phone, the tablet, and the computer can share resources such as files, pictures, and videos, i.e., the resources such as files, pictures, and videos can be seamlessly synchronized or shared among the devices. The mobile phone, the tablet, and the computer can also realize collaborative operations. For example, the keyboard and the mouse of the computer can control the operation of the mobile phone or the tablet, and the display screen of the computer can be used as an extended screen of the mobile phone.

[0080] 5. Super terminal

[0081] A super terminal is used to represent collaborative work between multiple devices. Through the super terminal, a user can connect different devices such as a mobile phone, a tablet, a computer, and a smart screen together to realize seamless interconnection and intercommunication.

[0082] 6. Other terms

[0083] In the embodiments of the present application, the same items or similar items with basically the same functions and effects are distinguished by using "first", "second", and the like. For example, the first notification and the second notification are only used to distinguish different notifications, and do not limit the order. Those skilled in the art can understand that "first", "second", and the like do not limit the number and execution order, and "first", "second", and the like do not necessarily mean different.

[0084] It should be noted that in the embodiments of the present application, "exemplary" or "for example" is used to represent an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, "exemplary" or "for example" is used to present the relevant concept in a specific manner.

[0085] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the front and rear associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b, or c can represent a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.

[0086] 7. Electronic device

[0087] The electronic device of the embodiments of the present application can include a handheld device with a wireless communication function, a vehicle-mounted device, etc. For example, some electronic devices are: a mobile phone, a tablet computer, a palm computer, a notebook computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, an electronic device in a 5G network, or an electronic device in a future evolved public land mobile network (PLMN), etc. The embodiments of the present application are not limited thereto.

[0088] By way of example and not limitation, in embodiments of the present application, the electronic device can also be a wearable device. The wearable device can also be referred to as a wearable smart device, which is a general term for devices that are designed by applying wearable technology to daily wear, such as glasses, gloves, watches, clothing, and shoes. The wearable device is a portable device that is directly worn on the body or integrated into the clothes or accessories of the user. The wearable device is not only a hardware device, but also a device that realizes powerful functions through software support and data interaction and cloud interaction. The wearable device includes a smart watch or smart glasses, which has full functions and a large size and can realize complete or partial functions without relying on a smart phone, and a smart bracelet or smart jewelry, which focuses on a certain application function and needs to be used in cooperation with other devices such as a smart phone.

[0089] The electronic device in embodiments of the present application can also be referred to as a terminal device, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile terminal, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user apparatus.

[0090] With the development of terminal technology, notification synchronization can be realized between multiple electronic devices. In different scenarios, the method of realizing notification synchronization can be different. Two methods of realizing notification synchronization in different scenarios are introduced below.

[0091] In some scenarios, notification synchronization can be realized between different electronic devices through a "super desktop" function. By way of example, FIG. 1 shows a schematic diagram of realizing notification synchronization through a "super desktop" function. As shown in FIG. 1, the communication system includes a mobile phone 110 and a vehicle 120. The vehicle 120 includes a cabin. The mobile phone 110 can include a "super desktop" function. The mobile phone 110 can be connected to the cabin in the vehicle 120 through the "super desktop" function.

[0092] When the mobile phone 110 and the vehicle 120 are paired through the "super desktop" function, the vehicle 120 can include part of the applications in the mobile phone 110. The part of the applications are applications in the mobile phone 110 that are allowed to realize notification synchronization, such as a chat application, a music application, and a memo application. When the mobile phone 110 receives a notification of these applications, the mobile phone 110 can send the notification to the vehicle 120, and the vehicle 120 can display the notification in the cabin or remind the notification through a reminding manner (such as a pop-up window, a sound, or a vibration).

[0093] In some examples, the cockpit can display the notification in the notification center, as shown in interface a in FIG. 1. As can be seen in FIG. 1, the notification center includes vehicle notifications and application notifications. The vehicle notifications are notifications for the cockpit itself. The application notifications are notifications received by the cockpit from the mobile phone 110.

[0094] In another example, as shown in FIG. 1, the mobile phone 110 receives a notification of a chat application, and the mobile phone 110 reminds the user of the notification through a pop-up window. The content of the notification is “Meeting tomorrow at 3:00”. The mobile phone 110 can send the notification to the cockpit in the vehicle 120 through the super desktop function. The cockpit in the vehicle 120 can display the notification and remind the user of the notification through a pop-up window, as shown in interface b in FIG. 1. The cockpit in the vehicle 120 can display the notification in a different way from the way the mobile phone 110 displays the notification.

[0095] In this way, the cockpit in the vehicle 120 can receive the notification of the mobile phone 110, so that the user can see the notification while driving.

[0096] In another scenario, the notifications can be synchronized between different electronic devices through multi-screen collaboration. FIG. 2 shows a schematic diagram of synchronizing notifications through multi-screen collaboration. As shown in FIG. 2, the communication system includes a mobile phone 210 and a pad 220. The mobile phone 210 and the pad 220 can implement multi-screen collaboration.

[0097] After the mobile phone 210 and the pad 220 implement multi-screen collaboration, the display interface of the pad 220 can be as shown in FIG. 2. The pad 220 can display the interface of the mobile phone 210.

[0098] After the mobile phone 210 receives a notification of a chat application, the mobile phone 210 can send the notification to the pad 220 through the function of multi-screen collaboration, and the pad 220 can display the notification in the notification center of the pad 220.

[0099] In some examples, the mobile phone 210 and the pad 220 are both deployed with a PCAssistant module. After the mobile phone 210 receives a notification of a chat application, the PCAssistant module in the mobile phone 210 can send the notification to the PCAssistant module in the pad 220, and the pad 220 can display the notification in the notification center of the pad 220. The PCAssistant module is used to synchronize notifications between devices, and this name is only an example, and the embodiments of the present application are not limited thereto.

[0100] Synchronizing notifications between multiple electronic devices can have the following problems:

[0101] 1) If multiple electronic devices are deployed with the same application, and the account logged in by the application in each electronic device is the same, the application in each electronic device will receive the notification. If the electronic devices are synchronized again, the same device may receive the notification twice, which may cause repeated display or reminders, affecting user experience.

[0102] For example, in the scenario shown in FIG. 2, if the tablet 220 includes a chat application, and the account logged in by the chat application in the tablet 220 and the chat application in the mobile phone 210 is the same, the chat application in the tablet 220 and the chat application in the mobile phone 210 will both receive the notification. If the mobile phone 210 sends the notification to the control center of the tablet 220, the control center of the tablet 220 will have two identical notifications. For example, the control center of the tablet 220 can be as shown in FIG. 3. As can be seen in FIG. 3, the control center of the tablet 220 has two identical notifications, and the content of the notifications is both "Meeting at 3:00 tomorrow".

[0103] 2) There are personal devices and shared devices in multiple electronic devices. If the personal device synchronizes the notification to the shared device, there is a risk of privacy leakage. The personal device is generally used by one person, for example, a mobile phone. The shared device can be shared by multiple people, for example, a tablet and a computer. In the embodiments of the present application, the user using the personal device is referred to as the owner. This name is only an example, and the embodiments of the present application do not limit this.

[0104] For example, notification synchronization can be achieved between a mobile phone, a tablet and a computer, for example, the application notification of the mobile phone is synchronized to the tablet and the computer. In a family, the owner uses a mobile phone, the owner's son uses a tablet, and the owner's partner uses a computer. If the application notification of the mobile phone is synchronized to the tablet and the computer, the owner's son and partner will both see the notification, resulting in the owner's privacy leakage.

[0105] Therefore, the embodiments of the present application provide a notification processing method and a processing device, which can solve the above problems by the following technical means:

[0106] 1) The same notification of the same application corresponds to the same identifier. After the first electronic device receives the notification of the application from the second electronic device, it is determined whether the first electronic device includes a notification with the same identifier. If there is a notification with the same identifier, the notification is not reminded or displayed. In this way, it is beneficial to reduce the probability of repeated reminders, thereby improving user experience.

[0107] 2) The first electronic device can receive information about whether the owner of the second electronic device is using the device and the number of people using the second electronic device, and in a case where it is determined that the owner is using the second electronic device and the number of people using the second electronic device is one, synchronously notifying the second electronic device used by the owner. In this way, the owner's privacy is protected when synchronously notifying, and the risk of privacy leakage is reduced.

[0108] The method provided by the embodiments of the present application can be applied to an electronic device supporting wireless communication. For example, a device such as a mobile phone or a tablet. To facilitate understanding, first, the electronic device provided by the embodiments of the present application is introduced.

[0109] To better understand the embodiments of the present application, first, the communication system to which the embodiments of the present application are applicable is introduced.

[0110] Exemplarily, FIG. 4 shows a schematic diagram of a communication system provided by the embodiments of the present application. As shown in FIG. 4, the communication system can include a server 400, a mobile phone 410, a tablet 420, smart glasses 430, a Bluetooth headset 440, a smart watch 450, a smart screen 460, a cabin in a vehicle 470, Bluetooth speakers 480, and a notebook computer 490.

[0111] The mobile phone 410 and one or more of the tablet 420, the smart glasses 430, the Bluetooth headset 440, the smart watch 450, the smart screen 460, the cabin in the vehicle 470, the Bluetooth speakers 480, and the notebook computer 490 can form a trusted relationship and can perform data transmission through short distance. In an example, different devices can form a trusted relationship by connecting to the same network and / or by logging in to the same account, which is not limited by the embodiments of the present application.

[0112] The communication system can include more or fewer devices shown in FIG. 4, for example, the communication system can include 2 or more devices. The embodiments of the present application do not limit the specific number of devices included in the communication system.

[0113] The devices forming the trusted relationship can implement notification synchronization. The server 400 is configured to receive a notification of an application and transmit the notification of the application to a device on which the application is deployed. If the device has the function of synchronously notifying, the device can synchronize the notification of the application to other devices forming the trusted relationship.

[0114] For example, the phone 410, the tablet 420 and the smart watch 450 form a trusted relationship, and the phone 410 has the function of synchronously notifying the tablet 420 and the smart watch 450. The server 400 receives the notification of the application sent by the server of the application, and sends the notification of the application to the phone 410. The phone 410 receives the notification of the application, and can synchronize the notification to the tablet 420 and the smart watch 450. The user can view the notification on the smart watch 450 or the tablet 420.

[0115] If the tablet 420 also includes the application, the tablet 420 can receive the notification of the application from the server 400, and can also receive the notification from the phone 410. The tablet 420 can display the first received notification, and does not display the same notification received later.

[0116] For example, the tablet 420 receives the notification of the application from the phone 410, can store the identifier of the notification, and determine whether there is an identifier same as the identifier of the notification. If there is not, it indicates that the notification from the server 400 has not been received. The tablet 420 can display the notification.

[0117] When receiving the notification from the server 400, the identifier of the notification can be stored, and it can be determined whether there is an identifier same as the identifier of the notification. Since the same identifier has been stored before, there is an identifier same as the identifier of the notification in the tablet 420. The tablet 420 can not display the notification received from the phone 410. For example, in the interface shown in FIG. 3, the notification about the chat application received through the multi-screen cooperation function can not be included in the interface.

[0118] The tablet 420 is a shared device, and the smart watch 450 is a personal device. The phone 410 receives the notification of the application, and can synchronize the notification to the personal device, such as the smart watch 450. The phone 410 receives the notification of the application, and can determine whether the owner is using the shared device. If the owner is using the shared device, and the person using the shared device is only the owner, the notification can be synchronized to the shared device, such as the tablet 420. In this way, it is beneficial to protect the privacy of the owner when synchronizing the notification.

[0119] It should be noted that the tablet 420 is taken as an example to be described in the embodiments of the present application, and other devices are similar, which will not be described here.

[0120] In order to better understand the embodiments of the present application, the electronic device to which the embodiments of the present application are applicable is described below.

[0121] Exemplarily, FIG. 5 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application. As shown in FIG. 5, the electronic device can include a processor 510, an external memory interface 520, an internal memory 521, a universal serial bus (USB) interface 530, a charging management module 540, a power management module 541, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a speaker 570A, a receiver 570B, a microphone 570C, a headset jack 570D, a sensor module 580, a key 590, a motor 591, an indicator 592, a camera 593, and a display screen 594, etc.

[0122] Optionally, the sensor module 580 can include a pressure sensor 580A, a gyroscope sensor 580B, a barometric pressure sensor 580C, a magnetic sensor 580D, an acceleration sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, etc.

[0123] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0124] The camera 593 can include one or more of a low-power camera, a standard camera, a long-focus camera, or an ultra-wide-angle camera. If the camera 593 includes a low-power camera, the low-power camera is used to represent that the camera works in a low-power mode. The low-power camera can be kept on, and in some scenarios, the image captured by the low-power camera can be used to determine the number of people in front of the device and determine whether the people in front of the device include the device owner. In other scenarios, the image captured by the low-power camera can also be used to determine whether the person in front of the device is the device owner in a face unlocking scenario.

[0125] The wireless communication module 560 can implement wireless communication with other devices.

[0126] In the unlocking scenario, the processor 510 can collect an image through the camera 593. If the face in the image matches the face of the owner, the unlocking is successful. If the electronic device and other electronic devices form a trusted relationship, after the face unlocking is successful, the processor 510 can instruct the wireless communication module 560 to transmit the face information for successful face unlocking to the other electronic devices, so as to determine whether the user using the device is the owner.

[0127] In a possible implementation, the processor 510 has the function of synchronously notifying other devices through the wireless communication module 560.

[0128] For example, the processor 510 receives a notification of an application from a server through the wireless communication module 560, and can determine whether there is an identifier identical to the identifier of the notification. If there is, the processor 510 can not display and remind the notification. In this way, the probability of repeatedly displaying the notification can be reduced.

[0129] Optionally, if there is no identifier identical to the identifier of the notification, the processor 510 can determine whether the device is in a locked state. If the device is in the locked state, it means that the device is in an unused state, and the processor 510 can send the notification to other electronic devices through the wireless communication module 560, so that the user can view the notification on the other electronic devices.

[0130] It can be understood that if the processor 510 is not in the locked state, it means that the device is being used, and the processor 510 can not send the notification to other electronic devices through the wireless communication module 560. In this way, the user does not need to process the notification on the other electronic devices again, and the probability of disturbing the user is reduced.

[0131] Optionally, in order to avoid leaking the privacy of the owner, the processor 510 can determine whether the owner is using the other electronic devices and the number of people using the other electronic devices. If the owner is using the other electronic devices and the number of people using the other electronic devices is only one, the processor 510 can synchronously notify the other electronic devices through the wireless communication module 560.

[0132] The electronic device provided in the embodiments of the present application can be deployed with a distributed system, for example, a Harmony system or an IOS system. The embodiments of the present application take the electronic device deployed with the Harmony system as an example to exemplarily illustrate the software architecture of the electronic device.

[0133] Exemplarily, FIG. 6 shows a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application. As shown in FIG. 6, the Harmony system is a layered architecture, which divides the Harmony system into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Harmony system can be divided into four layers, from top to bottom, applications, application framework, system foundation service, and kernel.

[0134] The application layer can include system applications and third-party applications. For example, the application layer can include applications such as memo, camera, gallery, calendar, phone, map, WLAN, Bluetooth, music, video, and short message. The application layer can also include a notification center and a lock screen module. The notification center is used to display notifications, responsible for notification reminders, display, and reading. The lock screen module is responsible for human face authentication.

[0135] The application framework layer can provide a user program framework and meta-capability framework in multiple languages such as Java / C / C++ / JavaScript for applications of the Harmony system, and a multi-language framework application programming interface (API) opened by various software and hardware services. The application framework layer includes some pre-defined functions. As shown in FIG. 6, the application framework layer can include a face recognition module (swing), a notification management system (NMS), and a device manager (DM), etc. The face recognition module can be used to take a face screenshot of a successfully unlocked image. The NMS is responsible for the life management cycle of notifications. For example, the NMS is responsible for notification reception, notification reminders, notification deduplication, notification subscription, setting information storage, and notification deletion. The DM is responsible for device state information processing. For example, the DM is responsible for listening to the device unlocking state, writing the unlocking state into a distributed database, and synchronizing notifications to other devices.

[0136] The system foundation service layer is a core capability set of the Harmony system, which supports the Harmony system to provide services to application services through the framework layer in a multi-device deployment scenario. As shown in FIG. 6, this layer can include a system basic capability subsystem set, a basic software service subsystem set, a basic software service subsystem set, a Harmony driver framework (HDF) and a hardware abstraction adaptation layer (HAL), and a proprietary hardware service subsystem.

[0137] Among them, the system basic capability subsystem set: provides basic capabilities for the operation, scheduling, migration, etc. of distributed applications on the Harmony system multi-device, which is composed of a distributed software bus, distributed data management and file management, distributed task scheduling, Arks runtime, distributed security and privacy protection, etc.

[0138] Among them, the basic software service subsystem set: provides common and universal software services for the Harmony system, which is composed of graphic images, distributed media, distributed artificial intelligence (AI), multi-modal input, multicast source discovery protocol (MSDP) & digital video (DV), event notification, telephone service, design for X (DFX) of distributed face, etc. The basic software service subsystem set can be trimmed according to the deployment environment of different device forms, and each subsystem can be trimmed according to the functional granularity. In the embodiment of the present application, the basic software service subsystem set can also include a distributed database. The distributed database can also be referred to as distributed storage & data management, which is not limited in the embodiment of the present application. The distributed database can be used to synchronize to other electronic devices when the data in the database changes. The data in the database can include: notification data, notification setting data, notification state data, device lock state information, notification identifier, etc.

[0139] Among them, the enhanced software service subsystem set: provides differentiated capability-enhanced software services for different devices for the Harmony system, which is composed of tablet business software, smart screen business software, car machine business software, internet of things (IoT) business software, etc. The enhanced software service subsystem set can be trimmed according to the deployment environment of different device forms, and each subsystem can be trimmed according to the functional granularity.

[0140] Among them, HDF and HAL: are the basis of the hardware ecological openness of the Harmony system, which provides hardware capability abstraction to the hardware and provides various peripheral driver development frameworks and runtime environments.

[0141] Among them, the hardware service subsystem set: provides common and adaptive hardware services for the Harmony system, which is composed of generic Sensor, location, power, USB, biometric identification, etc. The hardware service subsystem set can be trimmed according to the deployment environment of different device forms, and each subsystem can be trimmed according to the functional granularity.

[0142] The proprietary hardware service subsystems provide different hardware services for different devices for the Harmony system, and can include a tablet proprietary hardware service subsystem, a car machine proprietary hardware service subsystem, a wearable proprietary hardware service subsystem, an IoT proprietary hardware service subsystem, and the like. The proprietary hardware service subsystems can be tailored at a subsystem granularity, and each subsystem can be tailored at a function granularity.

[0143] The Harmony system adopts a multi-kernel design, so that the kernel layer can include a Linux kernel, a Harmony micro-kernel, and a LiteOS. Through this design, devices with different device capabilities can select a suitable system kernel. The kernel layer can also include a kernel abstract layer that provides basic kernel capabilities, such as process management, thread management, memory management, file system management, network management, and peripheral management, to other Harmony layers.

[0144] To better understand the embodiments of the present application, the method provided by the embodiments of the present application will be specifically described below in conjunction with specific scenarios.

[0145] Exemplarily, FIG. 7 shows a schematic diagram of a communication system. The communication system includes an electronic device 710, an electronic device 720, a server 730 of the electronic device, and a server 740 of a chat application. The electronic device 710 is located in a living room, the electronic device 720 is located in a room, and a user 750 works using the electronic device 720. The user 750 can also be referred to as a host, and the embodiments of the present application do not limit this. In some examples, the server 730 can be referred to as a PUSH cloud.

[0146] The electronic device 710 and the electronic device 720 form a trusted relationship and can communicate in near field communication. The server 730 is configured to receive a notification transmitted to the electronic device 710 and / or the electronic device 720, and send the notification to the electronic device 710 and / or the electronic device 720. The server 740 can send a notification to a device on which a chat application is installed. The electronic device 710 and the electronic device 720 both install the chat application and both log in to an account of the user 750.

[0147] After the electronic device 710 and the electronic device 720 form a trusted relationship, the electronic device 710 can send face information of the user 750 to the electronic device 720 after face unlocking is successful. After receiving the face information, the electronic device 720 can detect whether the user using the electronic device 720 is the user 750 in an unlocked state.

[0148] The electronic device 710 can consider the user who can successfully perform face unlocking as the user 750. To prevent the case where there are two or more users who can successfully perform face unlocking, the electronic device 710 can send face information to the electronic device 720 after each successful face unlocking.

[0149] After the electronic device 710 and the electronic device 720 form a trusted relationship, the electronic device 720 can send the electronic device 710 whether it is in a locked state. For example, if it is not in a locked state, the electronic device 720 can send the electronic device 710 information indicating that it is not in a locked state. In a locked state, the electronic device 720 can send the electronic device 710 information indicating that it is in a locked state.

[0150] If it is not in a locked state, the electronic device 720 can capture an image in front of the device through a camera, determine whether the face information in the image is that of the user 750, and if it is the user 750, the electronic device 720 can transmit information about the user 750 using the electronic device 720 to the electronic device 710.

[0151] When the user 750 has a notification, the server 740 can send the notification to the server 730, which can include device information of the electronic device 710 and the electronic device 720. The server 730 can send the notification to the electronic device 710 and the electronic device 720 according to the device information of the electronic device 710 and the electronic device 720, respectively, and the notification carries the same identifier. In some examples, the identifier can be represented as AppMessageId. It can be understood that the identifier is only an example, and the embodiments of the present application are not limited thereto.

[0152] In some examples, the server 740 can send the notification to the server 730, which can include device information of the electronic device 710 and the electronic device 720 and AppMessageId. The server 730 can send the notification to the electronic device 710 and the electronic device 720 according to the device information of the electronic device 710 and the electronic device 720, respectively, and the notification carries the AppMessageId.

[0153] In this way, the server 730 receives an AppMessageId and directly forwards it, which is beneficial to save the computing power of the server 730 compared to the method of generating an AppMessageId based on two AppMessageIds.

[0154] In some examples, the server 740 can send a notification to the server 730, which can include the device information of the electronic device 710 and AppMessageId 1, and the device information of the electronic device 720 and AppMessageId 2. Wherein, the device information of the electronic device 710 and AppMessageId 1 correspond, and the device information of the electronic device 720 and AppMessageId 2 correspond.

[0155] The server 730 can generate AppMessageId 3 based on AppMessageId 1 and AppMessageId 2, and send a notification to the electronic device 710 and the electronic device 720 respectively, which carries AppMessageId 3.

[0156] In this way, the server 740 receives two AppMessageIds, generates an AppMessageId based on the two AppMessageIds, and sends it to the electronic device 710 and the electronic device 720, without the server 730 changing the sending rule, not relying on the manufacturer of the developed application, and being more conducive to implementation.

[0157] After the electronic device 710 receives the notification of the chat application, it can determine whether there is an identifier that is the same as the identifier of the notification. If there is an identifier that is the same as the identifier of the notification, the electronic device 710 can display the notification. In this way, the same notification is not displayed, which is conducive to improving the user experience.

[0158] If there is no same identifier, the electronic device 710 can determine whether the electronic device 710 is in a locked state. Since the user 750 is using the electronic device 720 in the room, the electronic device 710 can be in a locked state. If the electronic device 710 is in a locked state, it is determined whether the user 750 is using the electronic device 720. If the user 750 is using the electronic device 720, the electronic device 710 can transmit the notification to the electronic device 720. In this way, the notification is synchronized to the device used by the user 750, which is conducive to the user 750 checking the notification in time.

[0159] Optionally, in order to protect the privacy of the user 750, the electronic device 710 can also determine whether there is another user using the electronic device 720 in addition to the user 750. If there is another user using the electronic device 720, the electronic device 710 can not synchronize the specific content of the notification to the electronic device 720.

[0160] In order to better understand the method shown in FIG. 7, the method provided by the embodiment of the present application is described below in combination with the hardware structure of the electronic device.

[0161] Exemplarily, FIG. 8 shows a module interaction diagram of a processing method of a notification provided by an embodiment of the present application. The method can be applied to the scenario shown in FIG. 7. As shown in FIG. 8, the electronic device 710 can include a lock screen module, an NMS, a distributed database, and a face recognition module. The electronic device 720 can include an NMS, a distributed database, and a face recognition module. The electronic device 710 can be a personal device with a camera, generally used by one person, for example, a mobile phone. The electronic device 720 can be a shared device with a camera, which can be shared by multiple people, for example, a tablet computer and a computer.

[0162] As shown in FIG. 8, the method can include the following steps:

[0163] 801. The lock screen module of the electronic device 710 instructs the face recognition module of the electronic device 710 to perform face recognition in the case of face unlocking.

[0164] S802. In the case of successful face recognition, the face recognition module of the electronic device 710 can store the face information of the owner to the distributed database of the electronic device 710.

[0165] If the face recognition is successful, it can be indicated that the user currently using the device is the owner. The face recognition module of the electronic device 710 can perform an owner face screenshot and store the face information of the owner to the distributed database.

[0166] S803. The distributed database of the electronic device 710 can synchronize the face information of the owner to the distributed database in the electronic device 720.

[0167] The electronic device 710 and the electronic device 720 form a trusted relationship, and the electronic device 710 can synchronize the owner information with the electronic device 720. If the electronic device 710 also forms a trusted relationship with other devices, the electronic device 710 can also transmit the owner information to the other devices.

[0168] S804. In the case of an unlocked state, the face recognition module of the electronic device 720 can determine whether the owner is in front of the device.

[0169] The electronic device 720 detects that it is in an unlocked state, which indicates that there is a user using the device. The electronic device 720 can collect an image in front of the device through the camera in the electronic device 720, read the face information of the owner from the distributed database, and determine whether the image includes the face information of the owner. If the image includes the face information of the owner, the face recognition module of the electronic device 720 can determine that the owner is in front of the device.

[0170] Optionally, the electronic device 720 can determine whether the owner is in front of the device when the electronic device 710 is in the locked state and the electronic device 720 is in the unlocked state. The electronic device 710 being in the locked state can indicate that the owner does not use the device, and in this case, the probability that the owner uses the electronic device 720 is relatively high. Therefore, the electronic device 720 determines whether the owner is in front of the device, which is conducive to reducing the power consumption of the electronic device 720.

[0171] In an example, the electronic device 720 determines that the electronic device 710 is in the locked state, which can include that the electronic device 710 can store the lock screen information in the distributed database of the electronic device 710 when the electronic device 710 is in the locked state, and the distributed database of the electronic device 710 can synchronize the lock screen information to the distributed database of the electronic device 720. The electronic device 720 can read the lock screen information from the distributed database of the electronic device 720 when the electronic device 720 is in the unlocked state, and if the lock screen information is read, it indicates that the electronic device 710 is in the locked state, and the electronic device 720 can determine whether the owner is in front of the device. In this way, the electronic device 720 can determine the lock screen state of the electronic device 710. S805, when the owner is in front of the device, the face recognition module of the electronic device 720 can store information that the owner is using the device in the distributed database of the electronic device 720.

[0172] S806, when the owner is in front of the device, the face recognition module of the electronic device 720 can further identify the number of people in front of the device.

[0173] If the number of people in front of the device is greater than or equal to 2, it indicates that there is a user in addition to the owner in front of the device. If the number of people in front of the device is only one, the user can be the owner. In this way, the environment in which the owner is located can be determined to protect the privacy of the owner.

[0174] S807, the face recognition module of the electronic device 720 can store the number of people in front of the device in the distributed database of the electronic device 720.

[0175] S808, in response to S805 and S806, the distributed database of the electronic device 720 can synchronize the information that the owner is using the device and the number of people in front of the device to the distributed database of the electronic device 710.

[0176] The electronic device 720 synchronizes the information that the owner uses the device and the number of people in front of the device to the electronic device 710, which is conducive to subsequent notification reminders based on the information that the owner uses the device, and meets the needs of the owner.

[0177] It can be understood that when the owner is in front of the device, the electronic device 720 can perform the above S805 and S808. In another example, if the owner is not in front of the device, the electronic device 720 can perform a plurality of methods.

[0178] In one possible scenario, if the device is not in front of the owner, the face recognition module of the electronic device 720 can store the information that the owner does not use the device to the distributed database of the electronic device 720. The distributed database of the electronic device 720 can synchronize the information that the owner does not use the device to the distributed database of the electronic device 710.

[0179] In this way, whether the owner is using the device or not, the information that the device is used is synchronized to the electronic device 710, so that the electronic device 710 obtains the information that each device is used.

[0180] In another possible scenario, if the device is not in front of the owner, the face recognition module of the electronic device 720 can not perform any operation. The electronic device 710 can default that the device that does not receive any information is the device that is not used by the owner. In this way, the electronic device 710 and the electronic device 720 do not need to interact too much.

[0181] S809, in response to the notification of the chat application from the server 740, the server 730 can send the notification of the chat application to the electronic device 710 and the electronic device 720 respectively, and the notification of the chat application carries the same identifier.

[0182] In the scenario shown in FIG. 7, the electronic device 710 and the electronic device 720 both include the notification of the chat application. Therefore, the server 730 can send the notification of the chat application to the electronic device 710 and the electronic device 720 respectively.

[0183] S810, the NMS of the electronic device 720 receives the notification of the chat application, and can store the identifier of the notification to the distributed database of the electronic device 720.

[0184] S811, the NMS of the electronic device 720 receiving the notification of the chat application can also determine whether the same identifier exists in the distributed database of the electronic device 720.

[0185] If the same identifier exists, it can be indicated that the notification has been received. If the same identifier does not exist, it can be indicated that the notification has not been received.

[0186] S812, if the same identifier does not exist, the NMS of the electronic device 720 can instruct the notification center to display the notification of the chat application.

[0187] If the same identifier does not exist, it can be indicated that the notification has not been received. The NMS of the electronic device 720 can instruct the notification center to display the notification of the chat application. In this way, the un-received notification is displayed, which is beneficial for the owner to view.

[0188] Optionally, when the electronic device 720 displays the notification of the chat application, the face recognition module of the electronic device 720 can detect the number of people using the electronic device 720 in real time and determine whether the owner is included. If the owner is not included, the electronic device 720 can hide the notification. If the owner is included and there are other users in addition to the owner, the electronic device 720 can not display the message content corresponding to the notification. If the owner is included and there are no other users in addition to the owner, the electronic device 720 can continuously display the notification.

[0189] In this way, the privacy of the owner is continuously protected, and the flexibility is higher.

[0190] S813, if there is the same identifier, the NMS of the electronic device 720 can delete the notification of the chat application.

[0191] If there is the same identifier, it can be indicated that the notification has been received, and the NMS of the electronic device 720 can delete the notification of the chat application. In this way, the notification that has been received is deleted, which is beneficial to realize that a notification is displayed only once.

[0192] S814, the NMS of the electronic device 710 receives the notification of the chat application, and can store the identifier of the notification to the distributed database of the electronic device 710.

[0193] S815, the NMS of the electronic device 710 receiving the notification of the chat application can also determine whether there is the same identifier in the distributed database of the electronic device 720.

[0194] If there is the same identifier, it can be indicated that the notification has been received, and the NMS of the electronic device 710 can delete the notification of the chat application, as shown in FIG. 7. In this way, the notification that has been received is deleted, which is beneficial to realize that a notification is displayed only once.

[0195] If there is no same identifier, it can be indicated that the notification has not been received, and the electronic device 710 can determine whether it needs to be displayed and / or whether it needs to be synchronized to other devices through subsequent processes.

[0196] S816, if there is no same identifier, the NMS of the electronic device 710 can determine whether the electronic device 710 is in a locked state.

[0197] If the electronic device 710 is not in a locked state, it indicates that the owner is using the device, and the NMS of the electronic device 710 can instruct the notification center of the electronic device 710 to display the notification of the chat application, as shown in FIG. 7.

[0198] If the electronic device 710 is in a locked state, it indicates that the owner is not using the device, and the NMS of the electronic device 710 can determine whether the notification needs to be synchronized to other devices through subsequent processes.

[0199] S817, if the electronic device 710 is in the lock screen state, the NMS of the electronic device 710 can determine whether the user is using other devices according to the information in the distributed database in the electronic device 710.

[0200] If the user is using other devices, the NMS of the electronic device 710 can obtain the information that the user is using other devices from the distributed database in the electronic device 710. If the user is not using other devices, there is no information that the user is using other devices in the distributed database in the electronic device 710.

[0201] If the electronic device 710 is in the lock screen state and the user is not using other devices, it means that the user is not using the device. Thus, the electronic device 710 can instruct the notification center to display the notification of the chat application and can send the notification of the chat application to each device that constitutes a trusted relationship, such as the electronic device 720. The NMS of the electronic device 720 that receives the notification can perform S810 to S813 described above, which will not be described here.

[0202] In this way, the user can view the notification on each device.

[0203] Optionally, when the user views the notification on any device, any device can synchronize the information that the notification has been viewed to other devices. Other devices can delete the notification. In this way, it is beneficial to reduce the probability that the user repeatedly processes the same notification.

[0204] If the electronic device 710 is in the lock screen state and the user is using other devices, the NMS of the electronic device 710 can synchronize the notification to other devices. The specific notification method can refer to S818, S819 and S822.

[0205] S818, if the user is using other devices, the NMS of the electronic device 710 can determine whether there are multiple people in front of the other devices.

[0206] It can be understood that if the number of people in front of the other devices is greater than or equal to 2, it means that there are multiple people in front of the other devices. If there are no multiple people in front of the other devices, it means that there is only the user in front of the other devices.

[0207] S819, if there are no multiple people in front of the other devices, the NMS of the electronic device 710 can send the notification of the chat application to other devices, such as the electronic device 720.

[0208] If there are no multiple people in front of the other devices, such as the electronic device 720, it can mean that the probability of the environment of the user leaking privacy is low. The NMS of the electronic device 710 can send the notification of the chat application to the electronic device 720 so that the user can view it on the electronic device 720.

[0209] S820, the NMS of the electronic device 720 receives the notification of the chat application, and can store an identifier of the notification to a distributed database of the electronic device 720.

[0210] S821, the NMS of the electronic device 720 receives the notification of the chat application, and can further determine whether there is an identical identifier in the distributed database of the electronic device 720.

[0211] If there is the identical identifier, it can be indicated that the notification has been received, and the NMS of the electronic device 720 can delete the notification of the chat application, that is, S813 is executed. If there is no identical identifier, it can be indicated that the notification has not been received, and the NMS of the electronic device 720 can instruct the notification center to display the notification of the chat application, that is, S812 is executed.

[0212] S822, if there are multiple people in front of other devices such as the electronic device 720, the NMS of the electronic device 710 can send the notification of the chat application to the other devices such as the electronic device 720, but does not include the message content.

[0213] If there are no multiple people in front of other devices such as the electronic device 720, it can be indicated that the probability of the environment where the owner is located leaking privacy is high, and the NMS of the electronic device 710 can send the notification of the chat application to the electronic device 720, but does not include the message content. In this way, it is beneficial to enable the owner to receive the notification, and to protect the privacy of the owner.

[0214] S823, the NMS of the electronic device 720 receives the notification of the chat application, and can store an identifier of the notification to a distributed database of the electronic device 720.

[0215] S824, the NMS of the electronic device 720 receives the notification of the chat application, and can further determine whether there is an identical identifier in the distributed database of the electronic device 720.

[0216] If there is the identical identifier, it can be indicated that the notification has been received, and the NMS of the electronic device 720 can delete the notification of the chat application, that is, S813 is executed. If there is no identical identifier, it can be indicated that the notification has not been received, and the NMS of the electronic device 720 can instruct the notification center to display the notification of the chat application, but does not display the message content, that is, S825 is executed.

[0217] As can be seen from the above FIG. 8, the electronic device 710 can share the owner information to the device electronic device 720 which constitutes a trusted relationship, so as to obtain the information of which devices used by the owner.

[0218] The NMS in the electronic device 710 receives the notification of the chat application, and instructs the notification center to display the notification in any of the following cases:

[0219] 1) the same identifier does not exist in the distributed database in the electronic device 710, and the electronic device is not in a lock screen state;

[0220] 2) the same identifier does not exist in the distributed database in the electronic device 710, the electronic device is in a lock screen state, and the owner does not use other devices.

[0221] In this way, the notification is displayed in the case that the same identifier does not exist in the distributed database in the electronic device 710, which helps to reduce the probability of repeated display of the notification. The electronic device 710 displays the notification in the case that the owner does not use the device, which helps the user to view.

[0222] The NMS in the electronic device 710 receives the notification of the chat application. In the case that the same identifier does not exist in the distributed database in the electronic device 710, the electronic device is in a lock screen state, the owner uses other devices, and there is one person in front of the other device, the notification can be synchronized to the other device, and the notification includes message content.

[0223] In this way, the electronic device 710 synchronizes the notification to the device used by the owner, which helps the owner to view the notification in time and improves the user experience of the owner.

[0224] The NMS in the electronic device 710 receives the notification of the chat application. In the case that the same identifier does not exist in the distributed database in the electronic device 710, the electronic device is not in a lock screen state, the owner uses other devices, and there are multiple people in front of the other device, the notification can be synchronized to the other device, but the notification does not include message content.

[0225] In this way, the electronic device 710 synchronizes the notification to the device used by the owner, which helps the owner to view the notification in time and improves the user experience of the owner, and does not display specific message content, which helps to protect the privacy of the owner.

[0226] The NMS of the electronic device 720 receives the notification of the chat application, and can instruct the notification center to display the notification of the chat application in the case that the same identifier does not exist in the distributed database in the electronic device 720.

[0227] The NMS of the electronic device 720 receives the notification of the chat application, and can delete the notification of the chat application in the case that the same identifier exists in the distributed database in the electronic device 720.

[0228] In this way, the notification is displayed in the case that the same identifier does not exist in the distributed database in the electronic device 710, and the notification of the chat application is deleted in the case that the same identifier exists in the distributed database in the electronic device 720, which helps to reduce the probability of repeated display of the notification.

[0229] Optionally, in the method shown in FIG. 8, after detecting that the notification has been read, the electronic device 710 or the electronic device 720 can send information that the notification has been read to other devices if there is an identifier same as the notification in the distributed database. The other devices can delete the display of the notification in the notification center after detecting the message of the notification.

[0230] The above describes an example provided by an embodiment of the present application by means of FIG. 8. Other examples provided by an embodiment of the present application are described below by means of FIG. 9 and FIG. 10.

[0231] In a possible case, in the scenario shown in FIG. 7, the electronic device 720 can include a chat application or can not include a chat application, which is not limited by the embodiment of the present application. The electronic device 710 has the function of synchronizing notifications of the chat application to the electronic device 720. In order to protect the privacy of the owner, the electronic device 710 can synchronize the notifications of the chat application to the electronic device 720 when the owner uses the electronic device 720 and the users using the electronic device 720 only include the owner. Alternatively, the electronic device 710 can synchronize the notifications of the chat application to the electronic device 720 when the owner uses the electronic device 720 and the users using the electronic device 720 include the owner and other users, but not synchronize the specific message content.

[0232] The following describes an example in which the electronic device 720 does not include a chat application.

[0233] Exemplarily, FIG. 9 shows a module interaction diagram of a method for processing notifications provided by an embodiment of the present application. The method can be applied to the scenario shown in FIG. 7. As shown in FIG. 9, the method can include S801 to S808 described above, that is, the electronic device 710 can synchronize the face information of the owner to the electronic device 720, and the electronic device 720 can determine whether the user using the electronic device 720 includes the owner based on the face information of the owner. In the case where the user using the electronic device 720 includes the owner, the electronic device 720 determines the number of users using the electronic device 720 and synchronizes the number of users and the owner using the electronic device 720 to the electronic device 710. For specific implementation, reference can be made to S801 to S808 described above, which will not be described herein again.

[0234] In addition to including S801 to S808, the method further includes the following steps:

[0235] S901, the server 730 responds to the notification of the chat application from the server 740, the electronic device 710 includes the chat application, and the electronic device 720 does not include the chat application, so the server 730 can send the notification of the chat application to the electronic device 710.

[0236] S902, the NMS of the electronic device 710 receives the notification of the chat application. The NMS of the electronic device 710 can determine whether the machine owner is using other devices according to information in the distributed database in the electronic device 710.

[0237] If the machine owner is using other devices, the NMS of the electronic device 710 can obtain information that the machine owner is using other devices from the distributed database in the electronic device 710. If the machine owner is not using other devices, there is no information that the machine owner is using other devices in the distributed database in the electronic device 710.

[0238] If the machine owner is not using other devices, the NMS of the electronic device 710 can instruct the notification center to display the notification of the chat application.

[0239] S903, if the machine owner is using other devices, the NMS of the electronic device 710 can determine whether there are multiple people in front of the other devices.

[0240] If there are multiple people in front of the other devices, it means that the user using the other devices is not only the machine owner, and the environment where the machine owner is located has a higher risk of leaking the privacy of the machine owner. If there are no multiple people in front of the other devices, it means that the only person in front of the other devices is the machine owner, and the environment where the machine owner is located has a lower risk of leaking the privacy of the machine owner.

[0241] If there are multiple people in front of the other devices, the NMS of the electronic device 710 can synchronize the notification of the chat application to the electronic device 720, but not synchronize the message content.

[0242] S904, if there are no multiple people in front of the other devices, the NMS of the electronic device 710 can send the notification of the chat application to the NMS of the electronic device 720.

[0243] After the NMS of the electronic device 720 receives the notification of the chat application, it can determine whether there is an identifier identical to the identifier in the distributed database. In the case where there is no identifier identical to the identifier, the notification of the chat application is displayed, or the notification of the chat application can be directly displayed. The embodiments of the present application do not make any limitation in this regard.

[0244] In this way, the electronic device 710 synchronizes the notification of the chat application to the electronic device 720 in the case where the machine owner uses the electronic device 720 and the user using the electronic device 720 only includes the machine owner. Alternatively, the electronic device 710 synchronizes the notification of the chat application to the electronic device 720 in the case where the machine owner uses the electronic device 720 and the user using the electronic device 720 includes other users in addition to the machine owner, but does not synchronize the specific message content, which is conducive to reducing the risk of leaking the privacy of the machine owner when synchronizing the notification.

[0245] Optionally, when the electronic device 720 displays the notification of the chat application, the face recognition module of the electronic device 720 can detect the number of people using the electronic device 720 in real time and determine whether the owner is included. If the owner is not included, the electronic device 720 can hide the notification. If the owner is included and there are other users in addition to the owner, the electronic device 720 can not display the message content corresponding to the notification. If the owner is included and there are no other users in addition to the owner, the electronic device 720 can continuously display the notification.

[0246] In this way, the privacy of the owner is continuously protected, and the flexibility is higher.

[0247] In another possible case, in the scenario shown in FIG. 7, the electronic device 720 can include a chat application. The electronic device 710 has the function of synchronizing the notification of the chat application to the electronic device 720, and can also have the function of receiving the notification synchronized by other devices. The electronic device 710 and the electronic device 720 can synchronize the lock screen or the unlocked screen state, so that the electronic device 710 determines the device that displays the notification according to the lock screen state of each device, and reduces the probability that the user processes the same notification on different devices.

[0248] Exemplarily, FIG. 10 shows a module interaction diagram of a notification processing method provided by an embodiment of the present application. The method can be applied to the scenario shown in FIG. 7. As shown in FIG. 10, the method further includes the following steps:

[0249] S1001, the lock screen module of the electronic device 720 can detect whether the electronic device 720 is in a lock screen state. In the case where the electronic device 720 detects that the electronic device 720 is not in a lock screen state, the lock screen module of the electronic device 720 can store the unlocked state in the distributed database of the electronic device 720.

[0250] S1002, the distributed database of the electronic device 720 can synchronize the unlocked state to the distributed database of the electronic device 710.

[0251] S1003, the server 730 can send the notification of the chat application to the electronic device 710 and the electronic device 720 respectively in response to the notification of the chat application from the server 740, and the notification of the chat application carries the same identifier.

[0252] The NMS of the electronic device 720 can receive the notification of the chat application from the server 730, and the NMS of the electronic device 710 can perform S810 to S813 in FIG. 8, which will not be described herein again.

[0253] S1004, The NMS of the electronic device 710 can receive the notification of the chat application from the server 730, and the NMS of the electronic device 710 can store the identification of the notification to the distributed database of the electronic device 710.

[0254] S1005, The NMS of the electronic device 710 receives the notification of the chat application, and can also determine whether the same identification exists in the distributed database of the electronic device 720.

[0255] If the same identification exists, it can be indicated that the notification has been received, and the NMS of the electronic device 710 can delete the notification of the chat application, or in other words, not display the notification of the chat application.

[0256] S1006, If the same identification does not exist, the NMS of the electronic device 710 can synchronize the notification of the chat application to the electronic device 720.

[0257] If the same identification does not exist, it can be indicated that the other device has not synchronized the notification with the electronic device 710, and the electronic device 710 can synchronize the notification to the electronic device 720.

[0258] S1007, If the same identification does not exist, the NMS of the electronic device 710 can also determine whether the electronic device 710 is in a locked state.

[0259] If the electronic device 710 is not in a locked state, it can be indicated that the user is using the electronic device 710. If the electronic device 710 is in a locked state, it can be indicated that the user is not using the electronic device 710.

[0260] S1008, If the electronic device 710 is not in a locked state, the NMS of the electronic device 710 can instruct the notification center to display the notification of the chat application.

[0261] If the electronic device 710 is not in a locked state, it can be indicated that the user is using the electronic device 710, and the electronic device 710 can display the notification of the chat application so as to be viewed by the user.

[0262] S1009, The NMS of the electronic device 710 can also synchronize the displayed notification of the chat application to the electronic device 720.

[0263] In the case that the electronic device 710 has displayed the notification of the chat application, the NMS of the electronic device 710 synchronizes the displayed notification of the chat application to the electronic device 720, so as to determine the state of the notification of the chat application by the electronic device 720.

[0264] S1010, The NMS of the electronic device 710 detects that the notification of the chat application has been read.

[0265] The notification of the chat application is viewed, and the NMS of the electronic device 710 can detect that the notification of the chat application has been read.

[0266] S1011, the NMS of the electronic device 710 can synchronize the notification of the chat application has been read to the electronic device 720.

[0267] In the case that the notification of the chat application has been read, the NMS of the electronic device 710 synchronizes the notification of the chat application has been read to the electronic device 720, so as to cancel the display of the chat application by the electronic device 720, which is conducive to reducing the probability of repeated reminders of the user.

[0268] S1012, if the electronic device 710 is in a locked state, the NMS of the electronic device 710 can also determine whether other devices are in a locked state.

[0269] If the electronic device 710 is in a locked state, it can be indicated that the user does not use the electronic device 710, and the NMS of the electronic device 710 can also determine whether other devices are in a locked state to determine the device used by the user.

[0270] If the other devices are in a locked state, it can be indicated that the user does not use any device. If the other devices are in an unlocked state, it can be indicated that the user is using.

[0271] The NMS of the electronic device 710 can obtain information about whether other devices are in a locked state from a distributed database.

[0272] S1013, in the case that the electronic device 720 is not in a locked state, the electronic device 710 can not display the notification of the chat application.

[0273] If the electronic device 720 is not in a locked state, the electronic device 710 has synchronized the notification to the electronic device 720, so the electronic device 710 can not display the notification of the chat application, so as to enable the user to view the notification on the electronic device 720, which is conducive to reducing the probability of repeated processing of the user.

[0274] If the electronic device 720 is in a locked state and the electronic device 710 is also in a locked state, the electronic device 710 can display the notification so as to enable the user to view.

[0275] In the method shown in the above FIG. 10, the electronic device 710 can synchronize the notification to the electronic device 720, which is conducive to enabling the user to view the notification on different devices. When the electronic device 710 is in an unlocked state, the electronic device 710 can display the notification so as to enable the user to view, and can transmit the display state to the electronic device 720 so as to enable the electronic device 720 to determine the display state of the notification by the electronic device 710.

[0276] The electronic device 710 is in a lock screen state, and the electronic device 720 is not in a lock screen state, and the electronic device 710 does not display the notification, so that the user can view the notification on the electronic device 720.

[0277] In this way, the electronic device 710 and the electronic device 720 can cooperatively remind and cooperatively interact with the same notification, and the probability of repeated reminding of the same notification can be reduced.

[0278] Based on the method provided in FIGS. 1 to 10, the embodiments of the present application can construct the following scenarios.

[0279] Exemplarily, FIG. 11 is a schematic flowchart of a notification processing method provided by an embodiment of the present application. The method can be applied to a communication system including a first electronic device and a second electronic device. The method can include the following steps:

[0280] S1101, the first electronic device and the second electronic device establish networking, the first electronic device is installed with a first application and a second application, the second electronic device is not installed with the first application, or is installed with the first application, but the login account of the first application in the second electronic device is different from the login account of the first application in the first electronic device, and the second electronic device is installed with the second application, and the login account of the second application in the first electronic device is the same as the login account of the second application in the second electronic device.

[0281] S1102, in the case that the first application has a first notification, the first electronic device displays the first notification in a first mode, and the second electronic device displays the first notification in a second mode, the first mode includes a notification display mode when a message is obtained from a server, and the second mode includes a notification display mode when a message or notification is obtained from a device in the networking.

[0282] S1103, in the case that the second application has a second notification, the first electronic device displays the second notification in the first mode, and the second electronic device displays the second notification in one of the first mode or the second mode.

[0283] The first application has a second notification, the first electronic device can obtain the second notification from the server, so the first electronic device can display the second notification in the first mode. The first electronic device has a notification synchronization function, and can send the second notification to the second electronic device. The second electronic device can obtain the second notification from the first electronic device, or can obtain the second notification from the server, but the second electronic device can display the second notification in one of the first mode or the second mode. In this way, the probability of repeated display of the notification can be reduced.

[0284] Optionally, the second electronic device displays the second notification in one of the first mode or the second mode in a case where the second application has the second notification, including: in a case where the second application has the second notification, the second electronic device obtains the second notification from the server; the second electronic device judges whether the same identifier as the first identifier carried by the second notification is stored; in a case where the same identifier as the first identifier is not stored, the second electronic device displays the second notification in the first mode and stores the first identifier; in a case where the second electronic device obtains the second notification from the first electronic device, the second electronic device judges whether the same identifier as the first identifier carried by the second notification is stored; in a case where the same identifier as the first identifier is stored, the second electronic device does not display the second notification in the second mode. In this way, it is favorable to reduce the probability of repeatedly displaying the notification.

[0285] Optionally, the second electronic device displays the second notification in one of the first mode or the second mode in a case where the second application has the second notification, including: in a case where the second application has the second notification, the second electronic device obtains the second notification from the server; the second electronic device judges whether the same identifier as the first identifier carried by the second notification is stored; in a case where the same identifier as the first identifier is not stored, the second electronic device displays the second notification in the first mode and stores the first identifier; in a case where the second electronic device obtains the second notification from the server, the second electronic device judges whether the same identifier as the first identifier carried by the second notification is stored; in a case where the same identifier as the first identifier is stored, the second electronic device does not display the second notification in the first mode. In this way, it is favorable to reduce the probability of repeatedly displaying the notification.

[0286] Optionally, the first electronic device displays the second notification in the first mode in a case where the second application has the second notification, including: in a case where the second application has the second notification, the first electronic device judges whether the same identifier as the first identifier carried by the second notification is stored; in a case where the same identifier as the first identifier is not stored, the first electronic device sends the second notification to the second electronic device and displays the second notification in the first mode. In this way, it is favorable to reduce the probability of synchronizing the same notification between the devices.

[0287] Optionally, the method further includes: in a case where the second application has a third notification, the first electronic device is not in the lock screen state, the second electronic device is in the lock screen state, the first electronic device displays the third notification in the first mode, and the second electronic device does not display the third notification in the first mode or in the second mode. In this way, it is favorable to reduce the probability of repeatedly reminding on different devices.

[0288] Optionally, before the second electronic device displays the third notification in the first mode or in the second mode, the method further comprises: the second electronic device receiving information from the first electronic device indicating that the third notification has been displayed; the second electronic device not displaying the third notification in the first mode and the second electronic device not displaying the third notification in the second mode comprising: in response to the information indicating that the third notification has been displayed, the second electronic device not displaying the third notification in the first mode and the second electronic device not displaying the third notification in the second mode.

[0289] In this way, the notification of the second application can be displayed on only one device, which is conducive to reducing the probability of repeated reminders on different devices.

[0290] Optionally, the method further comprises: in the case that the second application has a fourth notification, the first electronic device is in a lock screen state, the second electronic device is not in a lock screen state, the first electronic device does not display the fourth notification in the first mode, and the second electronic device displays the fourth notification in one of the first mode or the second mode. In this way, it is conducive to the notification of the second application being displayed on only one device, and it is also conducive to reducing the probability of repeated reminders on the same device.

[0291] Optionally, the method further comprises: in the case that the first electronic device detects that the second notification has been read, the first electronic device sends information to the second electronic device indicating that the second notification has been read; and in response to the information that the second notification has been read, the second electronic device does not display the second notification. In this way, the user only handles it once on one device, which is conducive to reducing the probability of the user repeatedly handling the same notification.

[0292] Optionally, the method further comprises: in the case that the first application has a fifth notification, the first electronic device does not display the fifth notification, the second electronic device displays the fifth notification in the second mode, the user using the second electronic device is a target user, and the target user is the owner of the first electronic device. In this way, the second electronic device displays the fifth notification, and the first electronic device does not display the fifth notification, which is conducive to realizing that one notification is displayed on only one device while protecting the privacy of the owner.

[0293] Optionally, in the case that the first application has the fifth notification, the first electronic device does not display the fifth notification, and the second electronic device displays the fifth notification in the second mode, including: in the case that the first application has the fifth notification, the first electronic device determines whether the target user is using the second electronic device, and if the target user is using the second electronic device, determines whether there is another user in addition to the target user using the second electronic device; in the case that there is no other user in addition to the target user using the second electronic device, the first electronic device does not display the fifth notification, and sends the fifth notification to the second electronic device; and the second electronic device displays the fifth notification in the second mode. In this way, it is beneficial to display one notification on one device while protecting the privacy of the machine owner.

[0294] Optionally, the method further includes: in the case that there is another user in addition to the target user using the second electronic device, the first electronic device does not send the message content associated with the fifth notification to the second electronic device. In this way, it is beneficial to protect the privacy of the machine owner.

[0295] Optionally, the first electronic device determining whether the target user is using the second electronic device includes: in the case that the first electronic device detects that the face unlocking is successful, obtaining an image at the time of face unlocking; intercepting the face information in the image, and sending the face information to the second electronic device; in response to the face information, the second electronic device determines whether the user using the second electronic device is the target user; in the case that the second electronic device determines that the user using the second electronic device is the target user, the second electronic device sends information indicating that the target user is using the second electronic device to the first electronic device; the first electronic device stores the information indicating that the target user is using the second electronic device to the database; and the first electronic device determines whether the target user is using the second electronic device according to whether the information indicating that the target user is using the second electronic device is obtained from the database. In this way, it is beneficial for the second electronic device to detect whether the user using the second electronic device is the machine owner.

[0296] Optionally, the method further includes: the second electronic device detecting information of a user change, the information of the user change indicating that the user using the second electronic device is not the target user, or the user using the second electronic device is another user in addition to the target user; and the second electronic device hides the fifth notification, or does not display the message content associated with the fifth notification. In this way, the second electronic device can change the display state of the notification according to the change of the user using the second electronic device, and it is beneficial to protect the privacy of the machine owner.

[0297] Optionally, the method further includes: the second electronic device sending information of the user change to the first electronic device; in the case that the sixth notification exists in the second application, the first electronic device does not send the sixth notification to the second electronic device in response to the information of the user change. The second electronic device can determine whether to synchronize the notification of the application according to the information of the user change, which is beneficial to realizing the notification synchronization while protecting the privacy of the master.

[0298] It should be noted that the module names involved in the embodiments of the present application can be defined as other names, as long as the functions of the modules can be realized, and the names of the modules are not limited specifically.

[0299] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for the user to select authorization or refusal.

[0300] The processing method of the notification has been described above, and the device provided by the embodiments of the present application for executing the above method will be described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the related device provided by the embodiments of the present application can execute the steps in the method of the above list sorting.

[0301] FIG. 12 is a structural schematic diagram of a chip provided by the embodiments of the present application. As shown in FIG. 12, the chip 120 includes one or more than two (including two) processors 1201, a communication line 1202, a communication interface 1203 and a memory 1204.

[0302] In some embodiments, the memory 1204 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

[0303] The notification processing method described in the embodiments of the present application can be applied to the processor 1201 or implemented by the processor 1201. The processor 1201 can be an integrated circuit chip having a signal processing capability. In the implementation process, each step of the notification processing method described above can be completed by an integrated logic circuit or an instruction in the form of software in the processor 1201. The processor 1201 described above can be a general processor (for example, a microprocessor or a conventional processor), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, a discrete gate or transistor logic device, or a discrete hardware component, and the processor 1201 can implement or execute the various processing-related methods, steps and logic block diagrams disclosed in the embodiments of the present application.

[0304] The steps of the notification processing method disclosed in the embodiments of the present application can be directly embodied as a hardware coding processor for execution, or a combination of hardware and software modules in the coding processor for execution. Among them, the software module can be located in a mature storage medium in the art such as random access memory, read-only memory, programmable read-only memory or electrically erasable programmable read-only memory (EEPROM). The storage medium is located in the memory 1204, and the processor 1201 reads the information in the memory 1204 and combines the hardware to complete the steps of the above method.

[0305] The processor 1201, the memory 1204 and the communication interface 1203 can communicate through the communication line 1202.

[0306] In the above embodiments, the instructions stored in the memory for the processor to execute can be implemented in the form of a computer program product. Among them, the computer program product can be written in the memory in advance, or downloaded and installed in the memory in the form of software.

[0307] The notification processing method provided by the embodiments of the present application can be applied to an electronic device. The electronic device includes a terminal device, and the specific device form of the terminal device can refer to the above related description, which will not be described here.

[0308] The embodiment of the present application provides a terminal device, which comprises one or more processors and a memory; the memory is coupled with the one or more processors, and the memory is used for storing computer program codes, the computer program codes comprise computer instructions, and the one or more processors invoke the computer instructions to enable the terminal device to execute the method.

[0309] The embodiment of the present application provides a chip or a chip system, which is applied to an electronic device, and the chip or the chip system comprises at least one or more processors, and the one or more processors are used for invoking computer instructions to execute the technical solutions in the above embodiment. The implementation principle and technical effects are similar to those of the above-mentioned related embodiments, and will not be described here.

[0310] The embodiment of the present application further provides a computer readable storage medium. The computer readable storage medium stores computer programs or instructions. The computer programs or instructions are executed by the electronic device to implement the above method. The method described in the above embodiment can be implemented by software, hardware, firmware or any combination thereof in whole or in part. If implemented in software, the functions can be stored as one or more instructions or codes on a computer readable medium or transmitted on a computer readable medium. The computer readable medium can include a computer storage medium and a communication medium, and can also include any medium that can carry computer programs from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0311] In a possible implementation, the computer readable medium can include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is targeted to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately called a computer readable medium. For example, if software is transmitted from a website, server or other remote source using a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. As used herein, the disk and the optical disk include compact discs, laser discs, optical discs, digital versatile discs (DVD), floppy disks and Blu-ray discs, in which the disk usually reproduces data in a magnetic manner, and the optical disk reproduces data optically with a laser. The combination of the above should also be included in the scope of the computer readable medium.

[0312] The embodiment of the present application provides a computer program product, the computer program product comprises a computer program, when the computer program code runs on the electronic device, the electronic device executes the above method.

[0313] The embodiment of the present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be realized by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flows in the flowcharts and / or one or more blocks in the block diagrams.

[0314] The above detailed description of the specific implementation, the purpose, technical solutions and beneficial effects of the present application are further described in detail, and it should be understood that the above is only a specific implementation of the present application, and is not used to limit the protection scope of the present application, and any modification, equivalent replacement, improvement, etc. made on the basis of the technical solutions of the present application should be included in the protection scope of the present application.

Claims

1. A method of processing a notification, characterized by, Applied to a communication system comprising a first electronic device and a second electronic device, the method comprises: The first electronic device establishes networking with the second electronic device, the first electronic device is installed with a first application and a second application, the second electronic device is not installed with the first application, or is installed with the first application but the login account of the first application in the second electronic device is different from the login account of the first application in the first electronic device, the second electronic device is installed with the second application, the login account of the second application in the first electronic device is the same as the login account of the second application in the second electronic device; In the case that the first application has a first notification, the first electronic device displays the first notification in a first mode, the second electronic device displays the first notification in a second mode, the first mode comprises a notification display mode when a message is obtained from a server, and the second mode comprises a notification display mode when a message or notification is obtained from a device in networking; In the case that the second application has a second notification, the first electronic device displays the second notification in the first mode, and the second electronic device displays the second notification in one of the first mode or the second mode.

2. The method of claim 1, wherein, The case that the second electronic device displays the second notification in one of the first mode or the second mode in the case that the second application has a second notification, comprises: In the case that the second application has a second notification, the second electronic device obtains the second notification from a server; The second electronic device judges whether an identifier same as a first identifier carried by the second notification is stored or not; In the case that an identifier same as the first identifier is not stored, the second electronic device displays the second notification in the first mode and stores the first identifier; In the case that the second electronic device obtains the second notification from the first electronic device, the second electronic device judges whether an identifier same as a first identifier carried by the second notification is stored or not; In the case that an identifier same as the first identifier is stored, the second electronic device does not display the second notification in the second mode.

3. The method according to claim 1 or 2, characterized in that, The method further comprises: In the case that the second application has a third notification, the first electronic device is not in a lock screen state, the second electronic device is in a lock screen state, the first electronic device displays the third notification in the first mode, the second electronic device does not display the third notification in the first mode, and the second electronic device does not display the third notification in the second mode.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: In the case that the second application has a fourth notification, the first electronic device is in a lock screen state, the second electronic device is not in a lock screen state, the first electronic device does not display the fourth notification in the first mode, and the second electronic device displays the fourth notification in one of the first mode or the second mode.

5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: In a case where the first application exists with a fifth notification, the first electronic device does not display the fifth notification, the second electronic device displays the fifth notification in the second mode, and a user using the second electronic device is a target user, and the target user is an owner of the first electronic device.

6. The method of claim 5, wherein, The method further includes: The second electronic device detects user change information, and the user change information includes that a user using the second electronic device is not the target user or that the user using the second electronic device is in addition to the target user. The second electronic device hides the fifth notification or does not display message content associated with the fifth notification.

7. The method of claim 6, wherein, The method further includes: The second electronic device sends the user change information to the first electronic device. In a case where the second application exists with a sixth notification, in response to the user change information, the first electronic device does not send the sixth notification to the second electronic device.

8. A method of processing a notification, characterized by, The method applied to a second electronic device includes: The second electronic device establishes networking with a first electronic device, the first electronic device and the second electronic device both install a second application, and a login account of the second application in the first electronic device is the same as a login account of the second application in the second electronic device; In a case where the second application exists with a second notification, the second electronic device obtains the second notification from a server; The second electronic device determines whether an identifier same as a first identifier carried by the second notification is stored; In a case where the identifier same as the first identifier is not stored, the second electronic device displays the second notification in a first mode and stores the first identifier, and the first mode includes a notification display mode when a message is obtained from the server; In a case where the second electronic device obtains the second notification from the first electronic device, the second electronic device determines whether an identifier same as a first identifier carried by the second notification is stored; In a case where the identifier same as the first identifier is stored, the second electronic device does not display the second notification in a second mode, and the second mode includes a notification display mode when a message or a notification is obtained from a device in the networking.

9. An electronic device, comprising: The electronic device includes one or more processors and a memory, the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to enable the electronic device to perform the method in any one of claims 1 to 7 or perform the method in claim 8.

10. A chip system, characterized by The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to invoke computer instructions to enable the electronic device to perform the method in any one of claims 1 to 6 or perform the method in claim 8.