Notification message prompting method, electronic device and readable storage medium

By determining the display mode of notification messages according to the usage context of the second electronic device, the problem of user privacy leakage caused by synchronization of notification messages between electronic devices is solved, and more intelligent notification message prompts and useless operations are reduced.

CN117527957BActive Publication Date: 2024-09-13HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210912816.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-31
Publication Date
2024-09-13
Estimated Expiration
2042-07-31

AI Technical Summary

Technical Problem

In the existing technology, synchronization of notification messages between electronic devices may lead to leakage of user privacy, especially in scenarios where multiple people use or share desktops.

Method used

By determining the usage context of the second electronic device, if multiple people are using it or the user cannot be identified, a banner notification is used to display part of the notification message to avoid leaking the user's privacy, and it is not synchronized in the non-use state or do not disturb mode. notification message.

Benefits of technology

It effectively avoids the leakage of user privacy, improves the intelligent prompts of notification messages, ensures that users receive timely notifications at the right time, and reduces useless operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117527957B
    Figure CN117527957B
Patent Text Reader

Abstract

The present application discloses a notification message prompt method, an electronic device and a readable storage medium, and belongs to the field of terminal technology. It includes: a first electronic device receives a first message; when a second electronic device is in use, if the number of current users of the second electronic device is multiple and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, then a first notification message related to the first message is sent to the second electronic device, so that the second electronic device displays part of the information of the first notification message in the form of a banner notification after receiving the first notification message; display the first notification message. The present application determines the usage scenario of the second electronic device, and when the usage scenario may leak user privacy, sends the first notification message to the second electronic device, so that the second electronic device only displays part of the information in the first notification message, thereby avoiding user privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a notification message prompting method, an electronic device and a readable storage medium. Background Art

[0002] With the rapid development of terminal technology, a user may have multiple electronic devices at the same time, such as multiple electronic devices including mobile phones, computers, tablet computers, smart watches, etc. In one case, in order to avoid missing some important notification messages, the electronic device provides a notification flow function, so that notifications can be synchronized between multiple electronic devices. For example, when there is a new notification message in one of the electronic devices, the electronic device will send the notification message to other electronic devices, so that the user can see the notification message on any electronic device.

[0003] However, if other electronic devices are used by other users, share desktops or project screens, etc., the notification message will be seen by other users on other electronic devices. If the notification message involves the user's privacy, it will lead to the leakage of user privacy. Summary of the invention

[0004] The present application provides a notification message prompt method, an electronic device and a readable storage medium, which can solve the problem that the notification message prompt method in the related art easily leads to the leakage of user privacy. The technical solution is as follows:

[0005] In a first aspect, a notification message prompting method is provided, which is applied to a first electronic device, and the first electronic device and a second electronic device can synchronize notifications, and the method includes:

[0006] receiving a first message;

[0007] When the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending a first notification message related to the first message to the second electronic device, so that the second electronic device displays part of the information of the first notification message in the form of a banner notification after receiving the first notification message;

[0008] The first notification message is displayed.

[0009] In this way, by determining the usage context of the second electronic device, when it is determined based on the usage context that there may be a leakage of user privacy, the first notification message is sent to the second electronic device, so that the second electronic device displays part of the information in the first notification message in the form of a banner notification to avoid leakage of user privacy.

[0010] As an example of the present application, after receiving the first message, the method further includes:

[0011] When the second electronic device is not in use, not forwarding the first notification message to the second electronic device; or,

[0012] When the second electronic device is in use, if the current user of the second electronic device does not include the target user, the first notification message is not forwarded to the second electronic device.

[0013] In this way, if the second electronic device is not in use, or the user using the second electronic device does not include the target user, it means that the target user is not using the second electronic device, so there is no need to synchronize the first notification message to the second electronic device. In this way, the first electronic device is prevented from performing useless operations, and the intelligence of the prompt is improved.

[0014] As an example of the present application, when the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending a first notification message related to the first message to the second electronic device includes:

[0015] When the second electronic device is in use and the use state is not the first use state, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending the first notification message related to the first message to the second electronic device;

[0016] The first usage state refers to a usage state in which the prompt message is not allowed to be displayed in the form of a banner notification.

[0017] In this way, by determining the usage status of the second electronic device, the first notification message is sent to the second electronic device only when the second electronic device is not in the first usage status, so that the second electronic device displays part of the information in the first notification message in the form of a banner notification, thereby avoiding interference to the user in the first usage status.

[0018] As an example of the present application, after receiving the first message, the method further includes:

[0019] When the second electronic device is in the first usage state, the display state data of the first notification message is sent to the second electronic device, so that the second electronic device displays the first notification message in a notification bar after receiving the display state data, and the display state data is data without performing key information hiding processing on the first notification message.

[0020] In this way, by determining the usage status of the second electronic device, when the second electronic device is in the first usage status, the display state data of the first notification message is sent to the second electronic device, so that the second electronic device can display all the information of the first notification message in the notification bar.

[0021] As an example of the present application, the first usage status includes the screen projection status, the screen projection status, the shared desktop status, and the status of turning on the do not disturb mode.

[0022] In the above-mentioned states, since the user usually concentrates on the desktop of the second electronic device, displaying the first notification message in the notification bar can avoid visual interference to the user.

[0023] As an example of the present application, when the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending a first notification message related to the first message to the second electronic device includes:

[0024] When the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, hidden state data and displayed state data of the first notification message are sent to the second electronic device, wherein the hidden state data is data after key information hiding processing is performed on the first notification message, and the displayed state data is data without key information hiding processing being performed on the first notification message.

[0025] In this way, by sending the display state data of the first notification message to the second electronic device, the second electronic device can construct a second notification message related to the first notification message based on the display state data. In addition, the hidden state data of the first notification message is also sent to the second electronic device, so that the second electronic device hides the key information in the constructed second notification message, thereby achieving the purpose of hiding the notification message.

[0026] As an example of the present application, the first electronic device includes a first cross-device notification center, a first application connection framework, and a first transmission module; when the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending a first notification message related to the first message to the second electronic device includes:

[0027] When the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, the first cross-device notification center encapsulates the first notification message into the hidden state data;

[0028] The first cross-device notification center sends the hidden state data, the displayed state data and the address information of the second electronic device to the first application connection framework;

[0029] The first application connection framework encapsulates the hidden state data and the display state data according to the encapsulation format of the specified transmission protocol to obtain encapsulated data;

[0030] The first application connection framework sends the encapsulation data and the address information to the first transmission module;

[0031] The first transmission module sends the packaged data to the second electronic device based on the address information.

[0032] In this way, the hidden state data and the displayed state data are encapsulated according to the encapsulation format of the specified transmission protocol through the first application connection framework, so that the first inter-bank device notification center does not need to pay attention to the underlying transmission protocol.

[0033] As an example of the present application, the packaged data also includes user information of the second electronic device.

[0034] In this way, by sending the user information of the second electronic device to the second electronic device, the second electronic device does not need to query again, thereby improving the prompting efficiency of the notification message.

[0035] As an example of the present application, when the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, before sending the first notification message related to the first message to the second electronic device, the method further includes:

[0036] Determining the state of the second electronic device according to device state information in stored query data of the second electronic device, wherein the query data is periodically obtained from the second electronic device;

[0037] When the device status information indicates that the second electronic device is in use, the current user status of the second electronic device is determined according to the user information in the query data.

[0038] In this way, by obtaining the query data in advance, when it is necessary to determine whether to forward the first notification message, a judgment can be made based on the query data. Compared with real-time query, the efficiency of notification message flow is improved.

[0039] As an example of the present application, when the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, after sending the first notification message related to the first message to the second electronic device, the method further includes:

[0040] When the display state of the first notification message changes, state update indication information is sent to the second electronic device, where the state update indication information is used to instruct to synchronously update the state of the first notification message.

[0041] In this way, when the display state of the first notification message changes, by sending the state update indication information to the second electronic device, the second electronic device can synchronously update the display state of the first notification message, thereby ensuring the effectiveness of the prompt.

[0042] In a second aspect, a notification message prompting method is provided, which is applied to a second electronic device, where the second electronic device can synchronize notifications with a first electronic device, and the method includes:

[0043] Receiving a first notification message sent by the first electronic device;

[0044] When there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, part of the information in the first notification message is displayed in the form of a banner notification based on the first notification message.

[0045] In this way, when the first notification message is received, by determining the usage context of the second electronic device, and when it is determined that user privacy may be leaked based on the usage context, part of the information in the first notification message is displayed in the form of a banner notification to avoid leaking user privacy.

[0046] As an example of the present application, when there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, based on the first notification message, displaying part of the information in the first notification message in the form of a banner notification includes:

[0047] In the case where the usage state of the second electronic device is not the first usage state, if there are multiple current users of the second electronic device and the multiple users include the target user, or the current user of the second electronic device cannot be determined, based on the first notification message, displaying part of the information in the first notification message in the form of a banner notification;

[0048] The first usage state refers to a usage state in which the prompt message is not allowed to be displayed in the form of a banner notification.

[0049] In this way, when the second electronic device is not in the first usage state, the second electronic device displays part of the information in the first notification message in the form of a banner notification, thereby avoiding interference to the user in the first usage state.

[0050] As an example of the present application, the method further includes:

[0051] When the usage status of the second electronic device is the first usage status, the first notification message is displayed in a notification bar.

[0052] In this way, when the second electronic device is in the first usage state, the second electronic device displays the first notification message in the notification bar, thereby avoiding interference to the user in the first usage state.

[0053] As an example of the present application, the first usage status includes the screen projection status, the screen projection status, the shared desktop status, and the status of turning on the do not disturb mode.

[0054] In the above-mentioned states, since the user usually concentrates on the desktop of the second electronic device, displaying the first notification message in the notification bar can avoid visual interference to the user.

[0055] As an example of the present application, the receiving a first notification message sent by the first electronic device includes:

[0056] receiving packaged data sent by the first electronic device, the packaged data including hidden state data and displayed state data of the first notification message, the hidden state data being data after key information in the first notification message is hidden, and the displayed state data being data without key information hiding processing being performed on the first notification message;

[0057] In the case that there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, based on the first notification message, part of the information in the first notification message is displayed in a banner notification manner, including:

[0058] When there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or when the current user of the second electronic device cannot be determined, part of the information in the first notification message is displayed in the form of a banner notification based on the hidden state data and the display state data.

[0059] In this way, the first electronic device sends the display state data of the first notification message to the second electronic device, so that the second electronic device can construct a second notification message related to the first notification message based on the display state data. In addition, the first electronic device also sends the hidden state data of the first notification message to the second electronic device, so that the second electronic device hides the key information in the constructed second notification message, thereby achieving the purpose of hiding the notification message.

[0060] As an example of the present application, the second electronic device includes a second cross-device notification center and a second notification management service framework;

[0061] The method of displaying part of the information in the first notification message in a banner notification manner based on the hidden state data and the displayed state data when there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or when the current user of the second electronic device cannot be determined, includes:

[0062] The second cross-device notification center constructs a second notification message based on the display state data, and the second notification message carries the hidden state data;

[0063] The second cross-device notification center sends the second notification message to the second cross-device notification center;

[0064] The second notification management service framework reports the second notification message to the second cross-device notification center;

[0065] When there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or when the current user of the second electronic device cannot be determined, the second cross-device notification center displays the second notification message in the form of the banner notification, and the displayed second notification message includes the hidden state data.

[0066] In this way, it can be achieved without changing the original notification reporting process of the Andorid system, thus avoiding affecting the stability of the system.

[0067] As an example of the present application, the method further includes:

[0068] receiving status update indication information sent by the second electronic device, where the status update indication information is used to indicate to synchronously update the status of the first notification message;

[0069] The display status of the first notification message is updated according to the status update indication information.

[0070] In this way, when the display state of the first notification message changes, by sending the state update indication information to the second electronic device, the second electronic device can synchronously update the display state of the first notification message, thereby ensuring the effectiveness of the prompt.

[0071] In a third aspect, a first electronic device is provided, wherein the structure of the first electronic device includes a processor and a memory, wherein the memory is used to store a program that supports the first electronic device to execute the notification message prompting method provided in the first aspect, and to store data involved in implementing the notification message prompting method provided in the first aspect. The processor is configured to:

[0072] receiving a first message;

[0073] When the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending a first notification message related to the first message to the second electronic device, so that the second electronic device displays part of the information of the first notification message in the form of a banner notification after receiving the first notification message;

[0074] The first notification message is displayed.

[0075] As an example of the present application, the processor is further configured to:

[0076] When the second electronic device is not in use, not forwarding the first notification message to the second electronic device; or,

[0077] When the second electronic device is in use, if the current user of the second electronic device does not include the target user, the first notification message is not forwarded to the second electronic device.

[0078] As an example of the present application, the processor is configured to:

[0079] When the second electronic device is in the first use state, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending the first notification message related to the first message to the second electronic device;

[0080] The first usage state refers to a usage state in which the prompt message is not allowed to be displayed in the form of a banner notification.

[0081] As an example of the present application, the process is further configured as:

[0082] When the second electronic device is in the first usage state, the display state data of the first notification message is sent to the second electronic device, so that the second electronic device displays the first notification message in a notification bar after receiving the display state data, and the display state data is data without performing key information hiding processing on the first notification message.

[0083] As an example of the present application, the first usage status includes the screen projection status, the screen projection status, the shared desktop status, and the status of turning on the do not disturb mode.

[0084] As an example of the present application, the processor is configured to:

[0085] When the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, hidden state data and displayed state data of the first notification message are sent to the second electronic device, wherein the hidden state data is data after key information hiding processing is performed on the first notification message, and the displayed state data is data without key information hiding processing being performed on the first notification message.

[0086] As an example of the present application, the first electronic device includes a first cross-device notification center, a first application connection framework, and a first transmission module; the processor is configured to:

[0087] When the second electronic device is in use, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, encapsulating the first notification message into the hidden state data through the first cross-device notification center;

[0088] Sending the hidden state data, the displayed state data and the address information of the second electronic device to the first application connection framework through the first cross-device notification center;

[0089] Encapsulating the hidden state data and the display state data according to the encapsulation format of the specified transmission protocol through the first application connection framework to obtain encapsulated data;

[0090] Sending the encapsulated data and the address information to the first transmission module through the first application connection framework;

[0091] The encapsulated data is sent to a second electronic device based on the address information by the first transmission module.

[0092] As an example of the present application, the packaged data also includes user information of the second electronic device.

[0093] As an example of the present application, the processor is further configured to:

[0094] Determining the state of the second electronic device according to device state information in stored query data of the second electronic device, wherein the query data is periodically obtained from the second electronic device;

[0095] When the device status information indicates that the second electronic device is in use, the current user status of the second electronic device is determined according to the user information in the query data.

[0096] As an example of the present application, the processor is further configured to:

[0097] When the display state of the first notification message changes, state update indication information is sent to the second electronic device, where the state update indication information is used to instruct to synchronously update the state of the first notification message.

[0098] In a fourth aspect, a second electronic device is provided, wherein the structure of the second electronic device includes a processor and a memory, wherein the memory is used to store a program that supports the second electronic device to execute the notification message prompting method provided in the second aspect, and to store data involved in implementing the notification message prompting method provided in the second aspect. The processor is configured to:

[0099] Receiving a first notification message sent by the first electronic device;

[0100] When there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, part of the information in the first notification message is displayed in the form of a banner notification based on the first notification message.

[0101] As an example of the present application, the processor is configured to:

[0102] In the case where the usage state of the second electronic device is not the first usage state, if there are multiple current users of the second electronic device and the multiple users include the target user, or the current user of the second electronic device cannot be determined, based on the first notification message, displaying part of the information in the first notification message in the form of a banner notification;

[0103] The first usage state refers to a usage state in which the prompt message is not allowed to be displayed in the form of a banner notification.

[0104] As an example of the present application, the processor is further configured to:

[0105] When the usage status of the second electronic device is the first usage status, the first notification message is displayed in a notification bar.

[0106] As an example of the present application, the first usage status includes the screen projection status, the screen projection status, the shared desktop status, and the status of turning on the do not disturb mode.

[0107] As an example of the present application, the processor is configured to:

[0108] receiving packaged data sent by the first electronic device, the packaged data including hidden state data and displayed state data of the first notification message, the hidden state data being data after key information in the first notification message is hidden, and the displayed state data being data without key information hiding processing being performed on the first notification message;

[0109] In the case that there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, based on the first notification message, part of the information in the first notification message is displayed in a banner notification manner, including:

[0110] When there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or when the current user of the second electronic device cannot be determined, part of the information in the first notification message is displayed in the form of a banner notification based on the hidden state data and the display state data.

[0111] As an example of the present application, the second electronic device includes a second cross-device notification center and a second notification management service framework;

[0112] The processor is configured to:

[0113] constructing, by the second cross-device notification center, a second notification message based on the display state data, wherein the second notification message carries the hidden state data;

[0114] Sending the second notification message to the second cross-device notification center through the second cross-device notification center;

[0115] Reporting the second notification message to the second cross-device notification center through the second notification management service framework;

[0116] When there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or when the current user of the second electronic device cannot be determined, the second notification message is displayed in the form of the banner notification through the second cross-device notification center, and the displayed second notification message includes the hidden state data.

[0117] As an example of the present application, the processor is further configured to:

[0118] receiving status update indication information sent by the second electronic device, where the status update indication information is used to indicate to synchronously update the status of the first notification message;

[0119] The display status of the first notification message is updated according to the status update indication information.

[0120] In a fifth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer executes the notification message prompting method described in the first aspect.

[0121] In a sixth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer executes the notification message prompting method described in the second aspect above.

[0122] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the notification message prompting method described in the first aspect.

[0123] In an eighth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the notification message prompting method described in the second aspect.

[0124] The technical effects obtained by the third, fifth and seventh aspects are similar to those obtained by the corresponding technical means in the first aspect. In addition, the technical effects obtained by the fourth, sixth and eighth aspects are similar to those obtained by the corresponding technical means in the second aspect, and they will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0125] Figure 1 is a schematic diagram showing an application scenario according to an exemplary embodiment;

[0126] Figure 2 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0127] Figure 3 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0128] Figure 4 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0129] Figure 5 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0130] Figure 6 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0131] Figure 7 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0132] Figure 8 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0133] Fig. 9 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0134] Fig.10 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0135] Fig.11 is a schematic diagram of a software architecture of an electronic device according to an exemplary embodiment;

[0136] Fig.12 is a schematic diagram showing a first face information synchronization process according to an exemplary embodiment;

[0137] Fig.13 is a schematic diagram of a process of collecting face information according to an exemplary embodiment;

[0138] Fig.14 is a schematic diagram of a process of storing query data of a second electronic device according to an exemplary embodiment;

[0139] Fig.15 is a schematic diagram showing a switch setting process according to an exemplary embodiment;

[0140] Fig.16 is a schematic diagram of a process of storing query data of a second electronic device according to another exemplary embodiment;

[0141] Fig.17 is a schematic diagram showing several situations of determining whether to transfer a notification message according to an exemplary embodiment;

[0142] Fig.18 This is a flowchart of a notification message prompting method according to an exemplary embodiment;

[0143] Fig.19 is a schematic diagram showing a switch setting process according to an exemplary embodiment;

[0144] Fig. 20 is a flowchart of a notification message prompting method according to another exemplary embodiment;

[0145] Fig.21 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0146] Fig. 22 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0147] Fig.23 is a schematic diagram of an application scenario according to another exemplary embodiment;

[0148] Fig.24is a flowchart of a notification message prompting method according to another exemplary embodiment;

[0149] Fig.25 is a flowchart of a notification message prompting method according to another exemplary embodiment;

[0150] Fig.26 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0151] In order to make the objectives, technical solutions and advantages of the present application more clear, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0152] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.

[0153] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0154] With the rapid development of terminal technology, various electronic devices have been widely promoted, such as mobile phones, tablet computers (also known as PADs), smart watches, laptops, etc. In one possible case, the same user (such as user A) may have multiple electronic devices, and multiple electronic devices can constitute a super terminal. For example, please refer to Figure 1 In Figure (a), a mobile phone, a tablet computer, and a laptop computer constitute a super terminal; for example, please refer to Figure 1In Figure (b), a mobile phone, a laptop, a large screen, a tablet computer, and a smart watch constitute a super terminal. When multiple electronic devices constitute a super terminal, notification synchronization can be achieved between the multiple electronic devices, that is, when a new notification message is received in one of the electronic devices, the notification message can be synchronized to each other electronic device in the multiple electronic devices, and correspondingly, each other electronic device can display the notification message in the form of a banner notification.

[0155] Next, the multiple electronic devices including a mobile phone 1 and a tablet computer 2 are used as an example for explanation. Figure 2 After mobile phone 1 receives a message through the instant messaging application, mobile phone 1 displays a notification message related to the message. In addition, mobile phone 1 also sends the notification message to tablet computer 2, and tablet computer 2 displays the notification message in the form of a banner notification, so that user A can see the notification message on mobile phone 1 or tablet computer 2.

[0156] However, in one possible scenario, user A may lend tablet computer 2 to other users (such as user B) for use. In this way, when there is a new notification message on mobile phone 1 and the notification message is synchronized to tablet computer 2, user B will see the notification message on tablet computer 2. In another possible scenario, tablet computer 2 sends the desktop to user B's electronic device for display. In this way, when there is a new notification message on mobile phone 1 and the notification message is synchronized to tablet computer 2, user B will see the notification message on the electronic device used. In another possible scenario, tablet computer 2 is projected onto user B's electronic device. In this way, when there is a new notification message on mobile phone 1 and the notification message is synchronized to tablet computer 2, user B will see the notification message on the electronic device used. In another possible scenario, the electronic devices of user B and user C are both projected onto tablet computer 2, and user B and user C are both watching the screen of tablet computer 2. In this way, when there is a new notification message on mobile phone 1 and the notification message is synchronized to tablet computer 2, the notification message will be seen by user B and user C.

[0157] It can be seen that in the above possible scenarios, after the notification message in user A's mobile phone 1 is synchronized to user A's tablet computer 2, the notification message for user A is easily seen by other users, which may lead to the disclosure of user A's privacy.

[0158] To this end, an embodiment of the present application provides a notification message prompt method, which can automatically select a notification message prompt method according to the usage context of the electronic device. The prompt method includes hiding key information in the notification message (such as preview content, contact information, etc.) or displaying the notification message normally, thereby ensuring that user A can see the notification message in a timely manner as much as possible while avoiding the disclosure of user A's privacy in some situations.

[0159] For ease of understanding, the application scenarios of the notification message prompt method provided in the embodiments of the present application are introduced through the following examples.

[0160] For an example, see Figure 3 , user A lends tablet computer 2 to user B, and user B uses tablet computer 2 to watch videos and user B's face is facing tablet computer 2, that is, the camera of tablet computer 2 can capture most or even all of user B's facial images within the shooting range. The dotted line in the figure represents the shooting range of the camera. In this case, if an instant messaging application in mobile phone 1 generates a new notification message, mobile phone 1 will display the notification message. In addition, since tablet computer 2 is in the state of playing videos and it can be determined that the current user is not user A himself, mobile phone 1 will not send the notification message to tablet computer 2. Therefore, Figure 3 As shown, the notification message will not be displayed in the tablet computer 2.

[0161] In another example, see Figure 4 , only user A is using tablet computer 2, for example, using tablet computer 2 to watch videos, and user A's face is facing tablet computer 2, that is, the camera of tablet computer 2 can capture most or even all of user A's facial images within the shooting range. In this case, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message, and on the other hand, because tablet computer 2 is in the state of playing a video and it can be determined that the current user is user A himself, mobile phone 1 sends the notification message to tablet computer 2, and then tablet computer 2 displays the notification message in the form of a banner notification. In addition to basic information, the banner notification also includes key information in the notification message. In one example, the basic information includes notification source information, etc. The notification source information may include device information for indicating which electronic device it comes from, and further, the notification source information may also include application information for indicating which application it comes from. Exemplarily, the banner notification is as follows: Figure 4 As shown in 41, the key information includes "Notification title: basic notification" and "Notification details: notification with ringing, vibration and flashing light parameters".

[0162] In another example, see Figure 5 , user A is using tablet computer 2, for example, watching videos on tablet computer 2, but user A's face is not facing tablet computer 2, that is, the camera of tablet computer 2 cannot capture user A's facial image within the shooting range, or can only capture a very small part of the facial image but cannot determine the identity of the user of tablet computer 2 based on the facial image. In this case, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message, and on the other hand, because tablet computer 2 is in the state of playing a video, it cannot be determined whether the current user is user A himself. In this case, mobile phone 1 sends the notification message to tablet computer 2, and then tablet computer 2 displays the notification message in the form of a banner notification, hides the key information in the notification message, and only displays some basic information of the notification message. For example, the notification message is a demo in mobile phone 1. TM For example, the banner notification displayed on Tablet 2 is as follows: Figure 5 As shown in 51, it is not difficult to see that the banner notification does not display the key information in the notification message, but only displays the above basic information and the prompt content of "1 notification". The device information in the basic information is "Honor Magic3 Pro" and the application information is "Notification Test".

[0163] In another example, see Figure 6 , user A and user B are watching a video on tablet computer 2 together, and both user A and user B are facing tablet computer 2, that is, the camera of tablet computer 2 can capture the facial images of user A and user B. In this case, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message, and on the other hand, since tablet computer 2 is in the video playing state and it can be determined that the current user of tablet computer 2 includes user A himself, mobile phone 1 sends the notification message to tablet computer 2, and then tablet computer 2 displays the banner notification so that user A can know that there is a new notification message in mobile phone 1 while watching tablet computer 2. In addition, since the current users of tablet computer 2 include user B in addition to user A, in order to prevent the key information in the notification message from being seen by user B, the banner notification displayed in tablet computer 2 only displays the basic information in the notification message, excluding the key information. For example, the banner notification displayed on tablet computer 2 is as follows Figure 6 As shown in 61.

[0164] In another example, see Figure 7, user A lends tablet computer 2 to user B, and user B and user C use tablet computer 2 to watch videos together. Tablet computer 2 can collect facial images of user B and user C, and the identities of user B and user C can be determined based on the collected facial images. In this case, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message, and on the other hand, although tablet computer 2 is in the video playing state, it can be determined that the current user of tablet computer 2 does not include user A himself, so mobile phone 1 does not send the notification message to tablet computer 2. Therefore, Figure 7 As shown, the notification message will not be displayed in the tablet computer 2.

[0165] In another example, see Figure 8 , user A lends tablet computer 2 to user B for use. User B is watching a video on tablet computer 2 with user C, but the faces of user B and user C are not facing tablet computer 2. The camera of tablet computer 2 can only capture partial facial images of user B and user C. The identities of user B and user C cannot be determined based on the captured partial facial images. In this case, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message. On the other hand, since tablet computer 2 is in the video playing state and the identity of the current user of tablet computer 2 cannot be determined, in order to avoid the situation where user A may be included in the users of tablet computer 2, mobile phone 1 will send the notification message to tablet computer 2. After that, tablet computer 2 displays a banner notification, but the banner notification only displays basic information of the notification message, and does not display key information of the notification message. For example, the banner notification is as follows: Figure 8 As shown in 81.

[0166] For an example, see Fig. 9 In Figure (a), other electronic devices are projected onto the tablet computer 2. In this case, if an instant messaging application in the mobile phone 1 generates a new notification message, on the one hand, the mobile phone 1 displays the notification message, and on the other hand, since the tablet computer 2 is in the projected state, the mobile phone 1 sends the notification message to the tablet computer 2, but the tablet computer 2 may not display the notification message as a banner notification, but may display the notification message in the notification bar in a traditional way, that is, the notification message displayed in the notification bar includes basic information and key information. In this way, the user cannot see the notification message in the current display interface of the tablet computer 2, but can see the notification message by pulling down the notification bar. Exemplarily, the notification message displayed in the notification bar is as follows: Fig. 9 As shown in 91 in Figure (b).

[0167] It should be noted that the above is based on the example of projecting the screen of other electronic devices into the tablet computer 2. In another example, when the tablet computer 2 is projecting the screen onto other electronic devices, if an instant messaging application in the mobile phone 1 generates a new notification message, the mobile phone 1 will send the notification message to the tablet computer 2. At this time, the tablet computer 2 may not display the notification message as a banner notification, but may display the notification message in the notification bar in a traditional way. In this way, the user cannot see the notification message in the current display interface of the tablet computer 2, but can view the notification message by pulling down the notification bar.

[0168] In another example, see Fig.10 In Figure (a), the desktop of other electronic devices is displayed on tablet computer 2, that is, other electronic devices share their desktops on tablet computer 2. At this time, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message, and on the other hand, since tablet computer 2 is in the shared desktop state, mobile phone 1 sends the notification message to tablet computer 2, but tablet computer 2 does not display the notification message as a banner notification, but displays the notification message in the notification bar in a traditional way. In this way, the user cannot see the notification message in the current display interface of tablet computer 2, but can view the notification message by pulling down the notification bar. For example, the notification message displayed in the notification bar is as follows: Fig.10 As shown in 101 in Figure (b).

[0169] It should be noted that the above is based on an example of the desktop of other electronic devices displayed on the tablet computer 2. In another example, when the tablet computer 2 sends its own desktop to other electronic devices for display, when an instant messaging application in the mobile phone 1 generates a new notification message, the mobile phone 1 sends the notification message to the tablet computer 2. The tablet computer 2 does not display the notification message in the form of a banner notification, but displays the notification message in the notification bar in a traditional way.

[0170] In another example, when tablet computer 2 is in do not disturb mode, if mobile phone 1 is in the state of playing a video, when an instant messaging application in mobile phone 1 generates a new notification message, on the one hand, mobile phone 1 displays the notification message, and on the other hand, since tablet computer 2 is in the state of playing a video, mobile phone 1 sends the notification message to tablet computer 2, but since tablet computer 2 is in the state of do not disturb mode, tablet computer 2 does not display the notification message as a banner notification, but displays the notification message in the notification bar, so that the user can view the notification message by pulling down the notification bar.

[0171] In another example, if the tablet computer 2 is in a locked screen state or a black screen state, that is, the tablet computer 2 is not in use, then when a certain instant messaging application in the mobile phone generates a new notification message, the notification message will not be sent to the tablet computer 2, and accordingly, no notification related to the notification message will be displayed in the tablet computer 2. That is, when any electronic device among multiple electronic devices has a new notification message, it can be determined whether the other electronic devices are in use. If the other electronic devices are not in use, the notification message will not be sent to the other electronic devices.

[0172] It can be seen that the notification message prompt method provided in the embodiment of the present application can automatically determine the usage context of the tablet computer 2 when there is a new notification message in the mobile phone 1 of user A. Therefore, for some scenarios, the mobile phone 1 does not synchronize the notification message to the tablet computer 2, or hides the notification message in the tablet computer 2 after synchronization, thereby avoiding leakage of user privacy.

[0173] It should be noted that the above-mentioned application scenarios are merely exemplary. In another example, other application scenarios that can achieve notification synchronization may also be involved, and the embodiments of the present application are not limited to this.

[0174] The method provided in the embodiment of the present application can be implemented by the interaction between the first electronic device and the second electronic device. Among them, the first electronic device is an electronic device that generates a notification message, such as the first electronic device is the above-mentioned mobile phone 1; the second electronic device is an electronic device that can synchronize notifications with the first electronic device, such as the second electronic device is the above-mentioned tablet computer 2. It is not difficult to understand that the number of second electronic devices may be one or more. As an example and not a limitation, the second electronic device and the first electronic device are connected to the same local area network and log in to the same account (generally refers to the account of the electronic device, such as a Honor account); or, the second electronic device and the first electronic device are connected to the same local area network, that is, they may not log in to the same account.

[0175] Next, the software system of the electronic device is described. As an example of this application, please refer to Fig.11 , Fig.11 This is a schematic diagram of a software architecture of an electronic device according to an exemplary embodiment. The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software system of the electronic device.

[0176] Its reference Fig.11The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system layer, and the kernel layer.

[0177] As an example of the present application, the application layer of the first electronic device may include a first notification sending module, a first cross-device notification center, a first notification configuration center, and a first security center.

[0178] The first notification sending module is used to generate a notification message after receiving a new message. Exemplarily, the first notification sending module can be, but is not limited to, an application such as short message, instant messaging, and call. The instant messaging application includes, but is not limited to, WeChat. TM ,QQ TM For example, when the first notification sending module is a short message application, the short message application generates a notification message when a short message is received.

[0179] The first cross-device notification center is used to display the notification message generated by the first notification sending module. In addition, it is also used to determine whether to forward the notification message to the second electronic device, and if it is determined that the notification message is to be forwarded to the second electronic device, send it through the bottom layer.

[0180] In some embodiments, the first cross-device notification center is a SystemUI module. In one example, the first cross-device notification center is started during the boot process.

[0181] Optionally, the first cross-device notification center may include a first notification display submodule and a first cross-device notification management submodule. The first notification display submodule is used to display notification messages, and can also sort notification messages according to certain strategies, such as sorting according to the type of notification messages; the first cross-device notification management submodule is used to determine whether to send the notification message to the second electronic device, and if it is determined that the notification message needs to be sent, send the notification message to the application framework layer so as to be sent through the bottom layer.

[0182] The first security center is used to receive the first facial information entered by the target user of the first electronic device, and synchronize the first facial information to the second electronic device through the system layer, so that the second electronic device can determine the user status of the second electronic device based on the first facial information.

[0183] The first notification configuration center is used to monitor the switch status in the first electronic device. For example, the switch includes a switch for the function of intelligently hiding and displaying notifications (hereinafter referred to as the intelligent flow switch), and the function of intelligently hiding and displaying notifications is to automatically select the prompting method of notification messages according to the device usage scenario. In this way, the first cross-device notification center can query the status of the intelligent flow switch after startup to determine whether to execute the prompting method of notification messages provided in the embodiment of the present application.

[0184] Furthermore, the application layer may include a series of application packages. For example, an application package may include applications such as screen projection, calling, video, short messaging, etc. ( Fig.11 The screen projection application is used to implement the screen projection function.

[0185] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As an example of this application, Fig.11 As shown, the application framework layer may include a first notification management service framework, a first application connection framework, and a first decision engine.

[0186] As an example of the present application, the first notification management service framework is used to manage notification messages, for example, to receive notification messages sent by the first notification sending module and report the notification messages to the first cross-device notification center. Of course, the first notification management service framework can also be used to manage and process some notification messages according to preset policies. For example, when a notification message sent by an application is received, if the application is set to a do not disturb mode, the first notification management service framework will not forward the notification message to the first cross-device notification center for display.

[0187] In one example, the first application continuation framework is used to encapsulate the metadata to be sent by the first cross-device notification center according to the underlying transmission protocol, so that the encapsulated data can meet the transmission requirements of the system layer. Furthermore, when the first cross-device notification center sends an update to the notification status, such as deleting a notification message, a status update indication message is sent to the first application continuation framework, which is sent to the system layer by the first application continuation framework. The status update indication message is used to instruct the second electronic device to perform a synchronous update.

[0188] The first decision engine is used to request the second electronic device to obtain the terminal status information when the first cross-device notification center needs to know the usage of the second electronic device, and when receiving feedback from the second electronic device, send the feedback terminal status information to the first cross-device notification center for storage. In addition, the first decision engine can also be used to sense the device status, for example, it can sense the status of the first electronic device, and it can also sense whether there is a second electronic device that can synchronize notifications with the first electronic device.

[0189] The system layer may include multiple functional modules, such as a first transmission module. The first transmission module is used to establish a data transmission channel for data exchange between the first electronic device and the second electronic device, such as establishing a session connection to perform data exchange through the session connection.

[0190] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0191] As an example of the present application, the second electronic device also has the same structure as the first electronic device. Fig.11 The second electronic device includes a second cross-device notification center, a second notification configuration center, a second security center, a second notification management service framework, a second application connection framework, a second decision engine, and a second transmission module. Each functional module included in the second electronic device has the same or similar function as the corresponding functional module in the electronic device 100, exemplarily:

[0192] The second notification configuration center is used to monitor the switch status in the second electronic device. For example, it monitors the status of the intelligent flow switch. Furthermore, the second notification configuration center is also used to provide a notification flow switch, so that the user can enable or disable the notification flow function of the application program of the second electronic device by triggering the notification flow switch.

[0193] The second security center is used to store the first face information from the first security center. Further, the second security center is also used to load a camera driver when it is necessary to determine the user information of the second electronic device, so as to start the camera to collect images through the camera driver, and determine the face recognition result according to the stored first face information and the collected image. Afterwards, the face recognition result can be sent to the second decision engine.

[0194] The second decision engine is used to determine the user information of the second electronic device based on the face recognition result, and is also used to sense the device status, such as determining the device status information of the second electronic device.

[0195] The second cross-device notification center is used to receive the encapsulated data sent from the first electronic device, reconstruct the notification message according to the encapsulated data, and send the reconstructed notification message to the second notification management service framework. Accordingly, the second notification management service framework is used to report the reconstructed notification message to the second cross-device notification center.

[0196] The second cross-device notification center is further used to determine a notification display mode according to the device state and user information of the second electronic device, and display the notification message according to the determined display mode.

[0197] The second application continuation framework is used to transfer encapsulated data including notification messages. Further, after receiving the status update indication information sent by the first electronic device, it is also used to send the status update indication information to the second cross-device notification center, so that the second cross-device notification center can update the status of the notification message, such as deleting the notification message.

[0198] The second transmission module is used to establish a data transmission channel with the first transmission module, such as establishing a session connection, so that data can be exchanged between the second electronic device and the first electronic device.

[0199] In addition, the second electronic device also includes a kernel layer, and the kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.

[0200] In the above Fig.11 Based on the first electronic device and the second electronic device shown, the method provided in the embodiment of the present application is described in detail by taking the example of the first electronic device interacting with the second electronic device through multiple internal functional modules and the second electronic device interacting with the first electronic device through multiple internal functional modules.

[0201] A communication connection is established between the first electronic device and the second electronic device, so the address information of the second electronic device can be stored in the first electronic device. For example, the first electronic device can store the address information of the second electronic device through the first decision engine. Of course, in the case where there are multiple second electronic devices, the address information of each second electronic device in the multiple second electronic devices can be stored in the first electronic device. In one example, before executing the prompt method of the notification message provided in the embodiment of the present application, the first electronic device can synchronize the first facial information of the target user to the second electronic device, so that the second electronic device can subsequently determine whether the users of the second electronic device include the target user based on the first facial information. The target user refers to a user who can authorize the first electronic device. As an example and not a limitation, the target user can be the owner of the first electronic device. For example, in the above application scenario, the target user is user A. Please refer to Fig.12 , Fig.12This is a flowchart of a facial information synchronization process according to an exemplary embodiment. Specifically, it may include the following contents:

[0202] Step A1: The first security center receives the face information entry operation of the target user.

[0203] In one example, the face information entry operation can be performed by the target user after purchasing the device. The first electronic device can provide a face information entry function, so that the target user can enter the face information in the first electronic device according to the prompts based on the face information entry function. Exemplarily, when the target user wants to enter the face information, he can click on the setting option in the first electronic device. In response to the target user's triggering operation on the setting option, the first electronic device displays a setting interface, such as Fig.13 The setting interface includes a "biometric identification and password" option, and the target user can trigger the "biometric identification and password" option. In response to the triggering operation of the target user, the first electronic device displays the biometric identification and password setting interface, such as Fig.13 The biometric identification and password setting interface includes a "face recognition" option. When the target user triggers the "face recognition" option, in response to the triggering operation of the target user, the first electronic device displays the face recognition setting interface, such as Fig.13 As shown in Figure (c) of FIG. 1 . The face recognition setting interface includes a “start recording” option. When the target user can trigger the “start recording” option, in response to the triggering operation of the target user, the first electronic device starts the camera and starts to collect face images, such as Fig.13 As shown in Figure (d).

[0204] Step A2: The first security center receives the first facial information.

[0205] In response to the facial information entry operation, the first electronic device receives the entered facial information through the first security center to obtain the first facial information.

[0206] Typically, the number of first facial information in the first electronic device is one. Of course, in a possible example, the number of first facial information may include multiple ones, that is, the number of target users who can authorize the first electronic device may include multiple ones, such as the owner of the first electronic device and family members, which is not limited in the present embodiment of the application.

[0207] Step A3: The first security center stores the first facial information.

[0208] In order to facilitate the first electronic device to use the first facial information for facial authentication and other operations in the future, the first electronic device may store the first facial information through the first security center.

[0209] Step A4: the first security center sends a query instruction to the first decision engine, where the query instruction is used to request to query the address information of the second electronic device.

[0210] As described above, the first decision engine can sense which electronic device or electronic devices are currently synchronizing notifications with the first electronic device, so the first decision engine can determine a second electronic device that can synchronize notifications with the first electronic device, and illustratively, an electronic device that meets the specified conditions is determined as the second electronic device. The specified conditions can be set according to actual business needs. For example, in an embodiment of the present application, the specified conditions may refer to being connected to the same local area network and logging into the same account.

[0211] In one example, the first decision engine may pre-store the address information of the second electronic device, so that the first security center can query the address information of the second electronic device from the first decision engine.

[0212] In another example, the first decision engine may not store the address information of the second electronic device, but instead determine in real time which second electronic devices exist when receiving a query instruction sent by the first security center, and then determine the address information of the existing second electronic devices.

[0213] It should be noted that there is no strict execution order between step A4 and step A3, that is, step A4 can be executed after step A3, or before step A3, or in parallel with step A3.

[0214] Step A5: The first decision engine feeds back the address information of the second electronic device to the first security center.

[0215] The first decision engine may return the address information of the electronic device (ie, the second electronic device) that meets the specified condition to the first security center. It is not difficult to understand that the number of the second electronic device may be one or more.

[0216] Step A6: The first security center sends the first facial information and the address information of the second electronic device to the first transmission module.

[0217] Please refer to Fig.11 Since a data transmission channel is established between the first electronic device and the second electronic device through the first transmission module and the second transmission module, in order to send the first facial information to the second electronic device, the first security center sends the first facial information and the address information of the second electronic device to the first transmission module.

[0218] In one example, when there are multiple second electronic devices, the first security center sends the first facial information and address information of each of the multiple second electronic devices to the first transmission module.

[0219] Step A7: The first transmission module sends the first facial information to the second electronic device based on the address information.

[0220] The first transmission module sends the first facial information to the second electronic device based on the address information of the second electronic device.

[0221] In one example, when there are multiple second electronic devices, the first transmission module sends the first facial information to each second electronic device according to address information of each second electronic device in the multiple second electronic devices.

[0222] It should be noted that the above is explained by taking the existence of a second electronic device when the first security center queries the first decision engine as an example. As an example, if the first security center does not query the second electronic device from the first decision engine after receiving the first facial information, only the first facial information can be stored. Afterwards, when the first decision engine senses the existence of the second electronic device, it can notify the first security center so that the first security center can synchronize the first facial information to the corresponding second electronic device through the first transmission module according to the above process.

[0223] Step A8: The second transmission module receives the first face information.

[0224] That is, the second electronic device receives the first facial information sent by the first electronic device through the second transmission module.

[0225] Step A9: The second transmission module sends the first facial information to the second security center.

[0226] After receiving the first facial information, the second transmission module transmits the first facial information to the second security center.

[0227] Step A10: The second security center stores the first facial information.

[0228] In one example, the second security center stores the first facial information in a database so that it can subsequently determine whether the users of the second electronic device include the target user based on the first facial information.

[0229] It should be noted that the above-mentioned operation of storing the first facial information in the second electronic device is an optional operation and can be performed before the notification message prompt is sent. In another example, the second electronic device can also obtain the first facial information through the facial information entry operation of the target user, and store the first facial information through the second security center, which is not limited in the embodiments of the present application.

[0230] Further, in order to support the implementation of the notification message prompt method provided in the embodiment of the present application, when the first face information is stored in the second electronic device, after the first electronic device establishes a communication connection with the second electronic device, the first electronic device can query the usage of the second electronic device. For details, see Fig.14 , the first electronic device and the second electronic device interact as follows:

[0231] Step B1: After powering on, the first cross-device notification center sends a registration request to the first decision engine, where the registration request is used to request to obtain address information of the second electronic device.

[0232] As an example of the present application, after being turned on, the first cross-device notification center can send a registration request to the first decision engine to register the device monitoring function, so that the first decision engine, when determining that there is an electronic device (i.e., the second electronic device) that meets the specified conditions, sends the address information of the second electronic device to the first cross-device notification center.

[0233] Step B2: the first decision engine feeds back the address information of the second electronic device to the first cross-device notification center.

[0234] As an example of the present application, since a communication connection is established between the first electronic device and the second electronic device, the first electronic device may store the address information of the second electronic device, for example, the second electronic device stores the address information through the first decision engine. In this way, when the first cross-device notification center queries, the first decision engine may feedback the address information of the second electronic device to the first cross-device notification center by way of callback.

[0235] Furthermore, when there are multiple second electronic devices, when the state of a second electronic device changes, for example, when a second electronic device goes offline, the first decision engine can notify the first cross-device notification center by callback. In this way, the first cross-device notification center can know which second electronic device or devices are currently there.

[0236] Step B3: The first cross-device notification center sends a query request to the first notification configuration center to query the status of the smart flow switch.

[0237] The smart flow switch is used to turn on or off the function of intelligently hiding and displaying notifications.

[0238] As an example of the present application, the first notification configuration center may provide an intelligent flow switch, and the user may enable the function of intelligently hiding and displaying notifications by turning on the intelligent flow switch. Fig.15In (a) of FIG. 1 , when the user wants to turn on the smart flow switch, the user can click on the setting option in the first electronic device. In response to the user's triggering operation on the setting option, the first electronic device opens the setting interface, such as Fig.15 The setting interface includes a "HyperTerminal" option. The user can trigger the "HyperTerminal" option. In response to the user's triggering operation, the first electronic device displays the HyperTerminal setting interface, such as Fig.15 The hyperterminal setting interface includes a service extension option 151. The user can click on the service extension option 151. In response to the user's triggering operation on the service extension option 151, the first electronic device displays an extended service setting interface, such as Fig.15 The extended service setting interface includes a smart flow switch, such as Fig.15 As shown in 152 in (d) of the figure, it is the switch of "machine owner identification". In this way, the user can turn on the switch of "machine owner identification" to enable the electronic device to turn on the function of intelligently hiding the display of notifications. Fig.15 As shown in Figure (d), the extended business device interface also includes introductory information about the notification intelligent hiding and display function provided in the embodiment of the present application, etc., which will not be described in detail here.

[0239] Of course, for the second electronic device, the user can also follow the above Fig.15 The process shown is to turn on the "owner identification" switch, thereby turning on the function of intelligently hiding the display of notifications of the second electronic device.

[0240] As an example of the present application, after obtaining the address information of the second electronic device, the first cross-device notification center can query the status of the smart flow switch from the first notification configuration center.

[0241] Step B4: The first notification configuration center feeds back the status of the smart flow switch to the first cross-device notification center.

[0242] If the smart flow switch is in the on state, it means that the function of intelligent hiding and displaying notifications is turned on. In this case, the first cross-device notification center enters the following step B5; if the smart flow switch is in the off state, it means that the function of intelligent hiding and displaying notifications is turned off. In this case, the first cross-device notification center can forward and display the notification message in a traditional way.

[0243] In one example, after the first cross-device notification center queries the status of the smart flow switch, if the first notification configuration center detects that the status of the smart flow switch has changed, such as the user turns off the smart flow switch, the first notification configuration center will notify the first cross-device notification center so that the first cross-device notification center can know the status of the smart flow switch in real time and accurately.

[0244] Step B5: When the smart transfer switch is turned on, the first cross-device notification center sends a device query request and address information of the second electronic device to the first decision engine.

[0245] The device query request is used to request the usage of the second electronic device. In one example, the first cross-device notification center also sends the address information of the second electronic device to the first decision engine, and the address information is used to determine which electronic device needs to be requested to obtain information indicating its usage. Exemplarily, the address information can be Internet protocol (IP) address information or media access control (MAC) address information, etc.

[0246] In one example, when the smart transfer switch remains on, the first cross-device notification center may subsequently periodically send a device query request and the address information of the second electronic device to the first decision engine. The cycle duration may be set according to actual needs. Exemplarily, the cycle duration may be 3 minutes. In another example, the first cross-device notification center may also send a device query request and the address information of the second electronic device to the first decision engine in real time.

[0247] It should be noted that the implementation of the above steps B1 to B5 is optional. In another embodiment, the first cross-device notification center may not send a registration request to the first decision engine after startup, but directly query the status of the smart transfer switch. When the smart transfer switch is on, the first cross-device notification center periodically sends a device query request to the first decision engine. Accordingly, each time the first decision engine receives a device query request, it queries the currently existing second electronic device in real time to determine the address information of the second electronic device, and then performs the following step B6.

[0248] It should also be noted that the embodiment of the present application is described by taking the first electronic device provided with an intelligent transfer switch as an example. In another embodiment, the first electronic device may not provide an intelligent transfer switch, that is, the function of intelligently hiding and displaying notifications may be provided by default. In this case, the first cross-device notification center may directly send a device query request and the address information of the second electronic device to the first decision engine after receiving the address information of the second electronic device fed back by the first decision center.

[0249] Step B6: The first decision engine sends a device query request and address information to the first transmission module.

[0250] In order to send the query request to the second electronic device, the first decision engine sends the device query request and address information to the first transmission module.

[0251] It should be noted that this embodiment is described by taking the first cross-device notification center sending a device query request and address information to the first transmission module through the first decision engine as an example. In another embodiment, the first cross-device notification center can also directly send a device query request and address information to the first transmission module, which is not limited in this embodiment of the present application.

[0252] Step B7: the first transmission module sends a device query request to the second electronic device based on the address information.

[0253] Step B8: The second transmission module receives the device query request.

[0254] That is, the second electronic device receives the device query request sent by the first electronic device through the second transmission module.

[0255] Step B9: The second transmission module sends a device query request to the second decision engine.

[0256] After receiving the device query request, the second transmission module forwards the device query request to the second decision engine, and the second decision engine responds to the device query request.

[0257] Step B10: The second decision engine determines device status information of the second electronic device.

[0258] The device status information is used to indicate the status of the second electronic device. When not in use, the status of the second electronic device may include a locked screen status, a black screen status, etc. When in use, the status of the second electronic device generally includes a first usage status and a second usage status. The first usage status generally refers to a usage status in which notification messages are not allowed to be displayed in the form of banner notifications. The first usage status can be set according to actual needs. For example, the first usage status includes but is not limited to a screen projection status, a screen projection status, a shared desktop status, and a status in which the do not disturb mode is turned on. The shared desktop status refers to the first electronic device sending the display interface to other electronic devices for display, or to other electronic devices sending the display interface to the first electronic device for display. The second usage status refers to other usage statuses except the first usage status.

[0259] Since the second decision engine can sense the device status of the second electronic device, it is able to determine the device status information of the second electronic device. Different states correspond to different device status information. In one example, different device status information can be indicated by different identifiers. As an example of the present application, when the second electronic device is in a first usage state, the determined device status information can be used to indicate what the specific usage state is, such as a screen projection state or a shared desktop state. When the second electronic device is in a second usage state, the determined device status information can use the same identifier to indicate that the second electronic device is in a second usage state, that is, not a screen projection state, a screen projection state, a shared desktop state, or a state where the do not disturb mode is turned on. For example, when the second electronic device is in a game state, a video playback state, or a web browsing state, the determined device status information is all "G", which is used to indicate that the second electronic device is in a second usage state.

[0260] Of course, the above is explained by taking the case where the second electronic device is in the first use state and the determined device state information is used to indicate the specific use state as an example. In another example, when the second electronic device is in the first use state, the device state information may also use the same identifier to indicate that the second electronic device is currently in the first use state.

[0261] If it is determined that the second electronic device is currently in use, the process may proceed to step B11. Otherwise, if the second electronic device is currently not in use, the process may proceed to step B12. Fig.16 The embodiment shown.

[0262] Step B11: When in use, the second decision engine sends a user identification request to the second security center.

[0263] If the second electronic device is in use, the current user status can be further determined, and for this purpose, the second decision engine can send the user identification request to the second security center. The user identification request is used to request the second security center to identify the current user of the second electronic device.

[0264] Step B12: The second security center collects images through a camera.

[0265] After receiving the user identification request sent by the second decision engine, the second security center can load the camera driver. After the camera driver is loaded, the camera is driven, so that the second security center can collect images through the camera. Usually, the second security center starts the front camera of the second electronic device by default and collects images through the front camera.

[0266] In one possible case, the captured image includes only one user's face, which means that the number of users currently viewing the screen of the second electronic device is one. In another possible case, the captured image includes multiple users' faces, which means that the number of users currently viewing the screen of the second electronic device is multiple. In yet another possible case, the captured image may not include a face. For example, if the face of the user viewing the second electronic device is not within the shooting range of the camera, the image captured by the camera does not include a face.

[0267] Step B13: When the image is successfully recognized, a face recognition result is determined based on the first face information and the image; when the recognition is unsuccessful, failure indication information is determined as the face recognition result.

[0268] The failure indication information is used to indicate the reason why the face recognition failed.

[0269] The second security center identifies the image to determine the face recognition result. In practice, face recognition may include the following situations:

[0270] The first case: The second security center successfully recognizes the face of the image.

[0271] If the collected image is clear enough and the area of ​​the face region included in the image is greater than or equal to the area threshold, the second security center can identify the face information in the image (referred to as the second face information) and can determine the user's identity based on the second face information. In this case, face recognition is successful. The area threshold can be set according to actual needs.

[0272] When face recognition is successful, the face recognition result determined by the second security center includes the number of users and the identity recognition result. Specifically, there may be two possible situations as follows (1) and (2):

[0273] (1) If it is determined through face recognition that the image includes only one face, it means that only one user is using the second electronic device. The second security center can match the second face information in the image with the pre-stored first face information to determine whether the current user of the second electronic device is the target user. If the degree of match between the second face information and the first face information is greater than or equal to the matching threshold, it can be determined that the current user of the second electronic device is the target user. At this time, the number of users is determined to be 1, and the identity recognition result is the target user. Otherwise, if the degree of match between the second face information and the first face information is less than the matching threshold, it can be determined that the current user of the second electronic device is not the target user. At this time, the number of users is determined to be 1, and the identity recognition result is not the target user. The matching threshold can be set according to actual needs, for example, the matching threshold is 95%.

[0274] (2) If it is determined through face recognition that the image includes multiple faces, it means that there are multiple users on the second electronic device, and the number of second face information is multiple. The second security center can compare each of the multiple second face information with the first face information to determine whether the image includes second face information whose matching degree with the first face information is greater than or equal to the matching degree threshold. If the image includes second face information whose matching degree with the first face information is greater than or equal to the matching degree threshold, it means that the current users of the second electronic device include the target user. At this time, it is determined that the number of users is multiple, and the identity recognition result is that the target user is included; otherwise, if the image does not include second face information whose matching degree with the first face information is greater than or equal to the matching degree threshold, it means that the current users of the second electronic device do not include the target user. At this time, it is determined that the number of users is multiple, and the identity recognition result is that the target user is not included.

[0275] The second situation: The second security center fails to perform facial recognition on the image.

[0276] If the captured image is blurry and / or the area of ​​the facial region in the image is smaller than the area threshold, the second security center cannot recognize the second facial information in the image, or the image does not include the second facial information, or the second security center can recognize the second facial information in the image but cannot determine the identity of the user based on the recognized second facial information due to the small area of ​​the facial region. In this case, facial recognition fails.

[0277] In the event of a facial recognition failure, the facial recognition results determined by the second security center include the following possible situations (3) and (4):

[0278] (3) When the captured image is clear enough, if the second security center determines through face recognition that the image does not include a face area, or the image includes a face area but the area of ​​the face area is smaller than the area threshold, for example, when the face of the current user of the second electronic device is not facing the camera of the second electronic device, the image may only include a small part of the user's face area, such as only half of the user's face area, which results in the second security center determining that the second face information has less information, and thus cannot determine the current user identity of the second electronic device based on the second face information, which is a face recognition failure. In this case, the face recognition result determined by the second security center is: the identity of the user of the second electronic device cannot be determined. Exemplarily, at this time, the first preset identifier can be used as the face recognition result, and the first preset identifier is used to indicate that the identity of the user of the second electronic device cannot be determined. The first preset identifier can be set according to actual needs, for example, the first preset identifier is "00".

[0279] (4) When the captured image is blurry, the second security center cannot determine whether the image includes a face area through face recognition, so face recognition fails. In this case, the face recognition result determined by the second security center is: face recognition cannot be performed due to blurry image. Exemplarily, at this time, the second preset identifier can be used as the face recognition result, and the second preset identifier is used to indicate that recognition cannot be performed due to blurry image. The second preset identifier can be set according to actual needs, for example, the second preset identifier can be "01".

[0280] It should be noted that the above-mentioned face recognition situations are only exemplary. In another embodiment, there may be other situations, which are not limited in the embodiments of the present application.

[0281] It should also be noted that when the second security center performs face recognition on an image, it can use a pre-trained model for recognition, and the embodiments of the present application are not limited to this.

[0282] Step B14: The second security center sends the face recognition result to the second decision engine.

[0283] In order to facilitate the second decision engine to feedback the user information of the second electronic device to the first decision engine, the second security center sends the facial recognition result to the second decision engine for processing after determining the facial recognition result.

[0284] Step B15: The second decision engine determines the user information based on the face recognition result.

[0285] According to different face recognition results, the second decision engine determines that the user information of the second electronic device includes one of the following possible situations:

[0286] The first case: when the face recognition result includes the number of users and the identity recognition result, and the number of users is 1, and the identity recognition result is the target user, the second decision engine determines that the user information may be: first indication information, and the first indication information is used to indicate that a single person is using the second electronic device and the user is the target user.

[0287] The second situation: when the face recognition result includes the number of users and the identity recognition result, and the number of users is 1, and the identity recognition result is not the target user, the second decision engine determines that the user information may be: the second indication information, and the second indication information is used to indicate that a single person is using the second electronic device and the user is not the target user.

[0288] The third case: when the face recognition result includes the number of users and the identity recognition result, and the number of users is multiple, and the identity recognition result includes the target user, the second decision engine determines that the user information can be the third indication information, and the third indication information is used to indicate that multiple people are using the second electronic device and the target user is included in the multiple people.

[0289] The fourth situation: when the face recognition result includes the number of users and the identity recognition result, and the number of users is multiple, and the identity recognition result does not include the target user, the second decision engine determines that the user information can be the fourth indication information, and the fourth indication information is used to indicate that multiple people are using the second electronic device and the target user is not included in the multiple people.

[0290] The fifth situation: when the face recognition result includes the first preset identifier, the second decision engine determines that the user information may be the fifth indication information, and the fifth indication information is used to indicate that the identity of the user cannot be determined.

[0291] The sixth case: when the face recognition result includes the second preset identifier, the second decision engine determines that the user information is the fifth indication information.

[0292] Step B16: The second decision engine sends query data to the first transmission module, where the query data includes device usage status information and user information.

[0293] That is, if the second electronic device is in use, the query data includes not only the device status information of the second electronic device but also the user information of the second electronic device.

[0294] For example, the device status information indicates that the second electronic device is projecting the screen, sharing the screen, or is in a do not disturb state, and the user information includes one of the first indication information, the second indication information, the third indication information, the fourth indication information, or the fifth indication information.

[0295] As an example of the present application, the second decision engine sends the query data to the second transmission module, so as to send it to the first electronic device through the second transmission module.

[0296] Step B17: the second transmission module feeds back the query data to the first electronic device.

[0297] The second transmission module feeds back the query data to the first electronic device through the data channel established between the second transmission module and the first transmission module.

[0298] Step B18: The first transmission module receives the query data.

[0299] That is, the first electronic device receives the query data through the first transmission module.

[0300] Step B19: The first transmission module sends the query data to the first decision engine.

[0301] Step B20: The first decision engine sends query data to the first cross-device notification center.

[0302] In order to facilitate the first cross-device notification center to determine whether to forward the notification message according to the state of the second electronic device and the user's situation, the first decision engine sends the query data to the first cross-device notification center.

[0303] Step B21: The first cross-device notification center stores the query data.

[0304] As an example of the present application, if the first cross-device notification center periodically sends a device query request to the first decision engine, then according to the above process, the first notification center module can periodically obtain the query data fed back by the second electronic device and store the latest query data, so that the status of the second electronic device and the user situation can be known in a timely manner.

[0305] It should be noted that the process of storing the query data of the second electronic device on the first electronic device is an optional implementation method of the present application embodiment, which is executed before the prompt process of the notification message. In another embodiment, the first electronic device can also obtain and store the query data in other ways.

[0306] In the embodiment of the present application, the first electronic device pre-acquires and stores the device status information and user information of the second electronic device, so that when there is a new notification message a later, it can determine whether to forward the notification message a to the second electronic device according to the stored query data, thereby ensuring the efficiency of notification flow. In addition, determining the user information on the second electronic device side avoids the need to send the first face information to a device such as a server for determination, thereby ensuring the security of the information and improving the security of device use.

[0307] Please refer to Fig.16 , Fig.16 The flowchart of a first electronic device querying a usage status of a second electronic device according to another embodiment specifically includes:

[0308] Steps C1 to C10 can be found at Fig.14 Steps B1 to B10 in the embodiment will not be repeated here.

[0309] Step C11: When the device is not in use, the second decision engine sends query data to the second transmission module, where the query data includes device status information.

[0310] In one example, when the second electronic device is provided with a lock screen password, the non-use state refers to that the second electronic device is in a lock screen state; when the second electronic device is not provided with a lock screen password, the non-use state refers to that the second electronic device is in a black screen state.

[0311] That is, if the second electronic device is not in use, the query data only includes the device status information of the second electronic device, for example, the device status information is used to indicate a black screen state or a locked screen state.

[0312] Step C12: the second transmission module feeds back the query data to the first electronic device.

[0313] Step C13: The first transmission module receives the query data.

[0314] Step C14: The first transmission module sends the query data to the first decision engine.

[0315] Step C15: The first decision engine sends query data to the first cross-device notification center.

[0316] Step C16: The first cross-device notification center stores the query data.

[0317] The specific implementation of steps C12 to C16 can be found in Fig.14 Step B17 to Step B21 in the embodiment.

[0318] In the case where the query data is stored in the first electronic device, when there is a new notification message a in the first electronic device, it can be determined whether to forward the notification message a to the second electronic device according to the query data, and whether to hide and display the notification message a when it is necessary to forward the notification message a. As an example of this application, please refer to Fig.17 , including the following possible situations:

[0319] The first case: If the query data includes device status information and user information, it means that the second electronic device is currently in use. In this case, if the device status information indicates that the second electronic device is in a first use state, and the first use state is one of the following states: screen projection state, screen projection state, shared desktop state, and do not disturb mode on state, then the first cross-device notification center determines that the notification message a needs to be forwarded to the second electronic device, and determines that the notification message a does not need to be hidden and displayed at this time.

[0320] The second case: if the query data includes device status information and user information, it means that the second electronic device is currently in use. In this case, if the device status information indicates that the second electronic device is in the second use state, the first cross-device notification center determines whether to forward notification message a and whether to hide notification message a based on the user information. Specifically, the following cases may be included:

[0321] 1. When it is determined according to the user information that the current users of the second electronic device only include the target user, it is determined that the notification message a needs to be forwarded, and the notification message a does not need to be hidden and displayed.

[0322] In one example, when the user information includes the first indication information, it means that a single person is currently using the second electronic device and the user is the target user. In this case, since the target user is using the second electronic device, notification message a needs to be displayed in the second electronic device to prompt the target user, and there is no need to hide the notification message a. Therefore, the first cross-device notification center determines that the notification message a needs to be forwarded to the second electronic device, and determines that there is no need to hide the notification message a.

[0323] 2. When it is determined according to the user information that the current user of the second electronic device includes the target user and other users, it is determined that the notification message a needs to be forwarded and the notification message a needs to be hidden and displayed.

[0324] In one example, when the user information includes the third indication information, it means that there are multiple people currently using the second electronic device and the users include the target user. In this case, since the target user is using the second device, it is necessary to display the notification message a in the second electronic device to prompt the target user. Therefore, the first cross-device notification center determines that the notification message a needs to be forwarded to the second electronic device. In addition, since the current users of the second electronic device also include other users, it is determined that the notification message a needs to be hidden and displayed.

[0325] 3. When it is not possible to determine whether the current user of the second electronic device includes the target user based on the user information, it is determined that the notification message a needs to be forwarded, and the notification message a needs to be hidden and displayed.

[0326] In one example, when the user information includes the fifth indication information, it indicates that the identity of the current user of the second electronic device cannot be determined. In one possible case, the current user of the second electronic device may include the target user. Therefore, in order to avoid the target user from missing notification message a in this case, the first cross-device notification center determines that notification message a needs to be forwarded to the second electronic device. In order to avoid the current user of the second electronic device being another user, the first electronic device determines that notification message a needs to be hidden and displayed.

[0327] 4. When it is determined based on the user information that the current user of the second electronic device does not include the target user, it is determined that there is no need to forward the notification message a.

[0328] In one example, when the user information includes the second indication information, it indicates that a single person is currently using the second electronic device and the user is not the target user. In this case, since the target user is not using the second electronic device, there is no need to display notification message a in the second electronic device. Therefore, the first cross-device notification center determines that there is no need to forward notification message a to the second electronic device. In another example, when the user information includes the fourth indication information, it indicates that multiple people are currently using the second electronic device and the target user is not among the users. In this case, since the target user is not using the second electronic device, there is no need to display notification message a in the second electronic device. Therefore, the first cross-device notification center determines that there is no need to forward notification message a to the second electronic device.

[0329] The third case: If the query data only includes device status information, then according to Fig.16 It can be seen that at this time, the device status information is generally used to indicate that the second electronic device is currently in an unused state, such as a black screen state or a locked screen state. This means that the target user is not using the second electronic device, and there is no need to display notification message a in the second electronic device. Therefore, in this case, the first cross-device notification center determines not to forward notification message a to the second electronic device.

[0330] Next, take the example where the first electronic device determines that notification message a needs to be forwarded and does not need to be hidden and displayed. For example, the first cross-device notification center stores device status information and the device status information indicates that the second electronic device is in a first usage state, and the first usage state is one of the following states: screen projection state, screen projection state, shared desktop state, and do not disturb mode on state, that is, the query data includes device status information and user information. Of course, this is only used as an example for explanation. For the other situations mentioned above with the same judgment results, notification message prompts can be performed according to the following process. For details, please refer to Fig.18 , the method may include the following:

[0331] Step D1: The first notification sending module receives the message m.

[0332] Depending on the first notification sending module, the type of message m is different. For example, if the first notification sending module is WeChat TM In the case of an application, message m is a WeChat message. For another example, in the first notification sending module, a call TM In the case of the application, the message m is an incoming call message.

[0333] As an example but not limitation, the message m may also be a text message, a repayment message, a phone bill arrears message, a courier pickup message, a product delivery message, a logistics tracking message, etc.

[0334] Step D2: The first notification sending module generates a notification message a.

[0335] The first notification sending module is WeChat TM For example, the target user uses WeChat in the first electronic device TM When the application is chatting with other users, if other users use their mobile phones to send WeChat messages to the target user, then the target user will be TM After receiving the WeChat message, the application generates a WeChat notification message, that is, at this time, the notification message a is a WeChat notification message. For another example, taking the first notification sending module as a call application, when other users call the target user and the target user does not answer the call within the answering time, that is, there is a missed call, the call application generates a missed call notification message, that is, at this time, the notification message a is a missed call notification message.

[0336] Step D3: The first notification sending module sends a notification message a to the first notification management service framework.

[0337] Step D4: the first notification management service framework reports the notification message a and the application information of the first notification sending module to the first cross-device notification center.

[0338] The application information is used to uniquely indicate an application program.

[0339] In order to display the notification message a and determine whether to send the notification message a to the second electronic device, the first notification management service framework reports the notification message a to the first cross-device notification center for processing.

[0340] As an example of the present application, in order to facilitate the first cross-device notification center to know which application the notification message a comes from, the first notification management service framework can also send the application information of the first notification sending module that sends the notification message a to the first cross-device notification center.

[0341] Step D5: The first cross-device notification center displays notification message a.

[0342] As an example of the present application, the first cross-device notification center receives notification message a through the first cross-device notification management submodule, after which the first cross-device notification management submodule forwards the notification message a to the first notification display submodule of the first cross-device notification center, and the first notification display submodule displays the notification message a so that the target user can view the notification message a in the first electronic device.

[0343] Step D6: When the smart transfer switch is turned on, the first cross-device notification center sends a switch query request to the first notification configuration center, and the switch query request carries the application information.

[0344] The switch query request is used to request whether the notification flow function of the first notification sending module corresponding to the application information is turned on.

[0345] According to the foregoing records, when the first electronic device provides a switch with the function of intelligently hiding and displaying notifications, the first cross-device notification center can query the status of the intelligent flow switch during the process of querying the usage of the second electronic device, and if the status of the intelligent flow switch changes, the first notification configuration center will also notify the first cross-device notification center. Therefore, the first cross-device notification center can know the status of the notification flow switch in real time, that is, the first cross-device notification center can determine whether the function of intelligently hiding and displaying notifications is currently turned on.

[0346] When it is determined that the intelligent hiding and displaying of notifications is turned on, since only one or some applications in the first electronic device may have the notification forwarding function turned on, but some applications do not have the notification forwarding function turned on, the first cross-device notification center can query from the first notification configuration center whether the first notification sending module that sends notification message a has the notification forwarding function turned on based on the application information.

[0347] It should be noted that the above description is based on the example that the first electronic device is provided with a smart transfer switch. In another embodiment, if the first electronic device does not include a smart transfer switch, but has the function of intelligently hiding and displaying notifications by default, then in step D6, the first cross-device notification center directly sends a switch query request to the first notification configuration center.

[0348] It should be noted that there is no strict execution order between step D5 and step D6.

[0349] Step D7: The first notification configuration center queries the corresponding first notification sending module based on the application information to see whether the notification transfer function has been enabled.

[0350] Exemplarily, the first electronic device may provide a notification transfer switch for different applications, and the notification transfer switch is used to turn on or off the notification transfer function of the corresponding application. For example, when a user wants to set the notification transfer function of a certain application, he opens the HyperTerminal setting interface by following the path of "Settings" - "HyperTerminal", such as Fig.19 The user can click on the "Super Notification" option in the Super Terminal setting interface. In response to the user's triggering operation on the "Super Notification" option, the first electronic device opens the application notification flow setting interface, such as Fig.19 As shown in (b) of the figure. In one example, the application notification flow setting interface includes a notification flow master switch (it may not include the notification process master switch), and a notification flow switch is provided for each application. When a user wants to turn on the notification flow function of an application, the user can turn on the notification flow master switch and the notification flow switch corresponding to the application. In response to the user's operation, the first electronic device turns on the notification flow function for the application. Of course, for those applications that do not turn on the corresponding notification process switch, the notification flow function is not turned on for such applications.

[0351] As an example of this application, if there is no setting such as Fig.19 If the notification flow master switch is shown in Figure (b) of the figure, the first notification configuration center only queries the status of the notification flow switch of the first notification sending module corresponding to the application information, and determines whether the first notification sending module has turned on the notification flow function according to the status of the notification flow switch of the first notification sending module. If the notification flow switch corresponding to the first notification sending module that sends notification message a is turned on, it is determined that the notification flow function of the first notification sending module that sends notification message a is turned on; otherwise, if the notification flow switch corresponding to the first notification sending module that sends notification message a is turned off, it is determined that the notification flow function of the first notification sending module that sends notification message a is not turned on.

[0352] As another example of this application, please refer to Fig.19 In the figure (b), the first electronic device also provides a notification flow master switch, that is, the switch of the "super notification" in the figure. In this case, the first notification configuration center not only queries the state of the notification flow switch of the first notification sending module corresponding to the application information, but also queries the state of the notification flow master switch. According to the state of the notification flow switch of the first notification sending module corresponding to the application information, combined with the state of the notification flow master switch, it is determined whether the first notification sending module has turned on the notification flow function. For example, if the target user turns on the notification flow master switch in the application notification flow setting interface, and the notification flow switch corresponding to the first notification sending module that sends notification message a is turned on in advance, the switch query result fed back by the first notification configuration center is used to indicate that the notification flow function of the first notification sending module that sends notification message a is turned on. Otherwise, if the notification flow master switch is turned off, or the notification flow master switch is turned on but the notification flow switch corresponding to the first notification sending module that sends notification message a is turned off, the switch query result fed back by the first notification configuration center is used to indicate that the notification flow function of the first notification sending module that sends notification message a is not turned on.

[0353] Step D8: The first notification configuration center feeds back the query result of the function status to the first cross-device notification center.

[0354] When it is determined that the notification flow function of the first notification sending module that sends notification message a is turned on, the first cross-device notification center performs the following step D9. Of course, if the notification flow function of the first notification sending module that sends notification message a is not turned on, the first cross-device notification center does not perform the following step D9. For example, in this case, the first cross-device notification center can only display notification message a and not forward it to the second electronic device.

[0355] As an example of the present application, the first cross-device notification center can perform the above operations through the first cross-device notification management submodule, that is, the first cross-device notification management submodule can be used to receive notification message a reported by the first notification management service framework, and query whether the first notification sending module that sends notification message a has enabled the notification flow function.

[0356] It should be noted that the above is an example of querying whether the first notification sending module has enabled the notification flow function when the intelligent flow switch is turned on. In another embodiment, when the intelligent flow switch is turned on, it is also possible not to query, but to directly execute the subsequent steps, that is, as long as the intelligent process switch is turned on, the message prompt can be performed in the following manner.

[0357] Step D9: When the notification transfer function is enabled, the first cross-device notification center determines to forward the notification message a to the second electronic device according to the device status information.

[0358] According to the above records, the first cross-device notification center stores the query data of the second electronic device that is periodically queried, so the first cross-device notification center can determine whether to forward the notification message a to the second electronic device based on the query data. When the device status information in the query data indicates that the second electronic device is in the first usage state, it is determined that the notification message a is to be forwarded to the second electronic device.

[0359] Of course, it should be noted that the embodiment of the present application is described by taking the determination of sending notification message a to the second electronic device as an example. If it is determined that notification message a does not need to be forwarded, the first cross-device notification center does not forward notification message a, and the operation ends at this time.

[0360] It should also be noted that the above is based on the example that each application has a corresponding notification flow switch. In another embodiment, if the notification message of each application has the notification flow function by default, the first cross-device notification center does not query whether the notification flow function is turned on after receiving the notification message a, but directly determines whether to forward the notification message a to the second electronic device based on the query data.

[0361] Step D10: When it is determined that hiding the display is not necessary, the first cross-device notification center encapsulates the notification message a into display state data.

[0362] The first cross-device notification center can encapsulate the notification message a according to the user situation of the second electronic device. As an example of the present application, when the usage status of the second electronic device is the first usage status, since the second electronic device will display the notification message a in the notification bar, it can be determined that there is no need to hide and display the notification message a. If it is determined that the second electronic device does not need to hide and display the notification message a, the first cross-device notification center can encapsulate the notification message a in a conventional encapsulation manner, such as first decoding the notification message a to determine the notification content included in the notification message a, and then the notification content can be encoded to obtain the encapsulated data, which can be called display state data.

[0363] Step D11: the first cross-device notification center sends display state data and address information to the first application connection framework.

[0364] The address information is the address information of the second electronic device, and is used to indicate where the display state data needs to be sent.

[0365] In order to send the display state data to the second electronic device, the first cross-device notification center calls the data transmission interface provided by the first application continuation framework to send the display state data to the first application continuation framework.

[0366] Optionally, in order to facilitate the second cross-device notification center in the second electronic device to quickly display notification message a in a corresponding manner according to the user information, the first cross-device notification center can also send the user information of the second electronic device to the first application continuation framework.

[0367] Step D12: The first application connection framework encapsulates the display state data according to the encapsulation format of the specified transmission protocol to obtain encapsulated data.

[0368] In implementation, the first application connection framework encapsulates the display state data according to the encapsulation format of the specified transmission protocol adopted by the first transmission module, so that the encapsulated data obtained after encapsulation can meet the format requirements of the underlying layer. The specified transmission protocol can be set according to actual needs, such as the specified transmission protocol can be a transmission control protocol (TCP).

[0369] Step D13: The first application connection framework sends the encapsulated data and address information to the first transmission module.

[0370] The first application connection framework sends the encapsulated data obtained after encapsulation to the first transmission module, so that the encapsulated data is sent to the second electronic device through the first transmission module.

[0371] It is worth mentioning that a first application connection framework is added between the first cross-device notification center and the first transmission module. In this way, the first cross-device notification center only needs to send the data to be transmitted to the first application connection framework, and the first application connection framework will encapsulate it according to the underlying specified transmission protocol, so that the application layer does not need to pay attention to the underlying transmission logic.

[0372] Step D14: the first transmission module sends the packaged data to the second electronic device based on the address information.

[0373] Step D15: The second transmission module receives the encapsulated data.

[0374] That is, the second electronic device receives the encapsulated data through the second transmission module.

[0375] Step D16: The second transmission module sends the encapsulated data to the second application continuation framework.

[0376] Step D17: The second application connection framework parses the encapsulated data according to the specified transmission protocol to obtain display state data.

[0377] Since the display state data is encapsulated according to the specified transmission protocol, after receiving the encapsulated data, the encapsulated data can be parsed according to the specified transmission protocol to obtain the display state data.

[0378] Step D18: The second application connection framework sends display state data to the second cross-device notification center.

[0379] As an example of the present application, the second cross-device notification center includes a second cross-device notification management submodule and a second notification display submodule. The second application framework sends the display state data to the second cross-device notification management submodule.

[0380] Step D19: The second cross-device notification center constructs a notification message b based on the display state data.

[0381] As an example of the present application, when the function of intelligently hiding the display of notifications of the second electronic device is turned on, the second cross-device notification center constructs a notification message b based on the display state data.

[0382] Since the display state data includes the notification content of the notification message a, in order to facilitate the subsequent display of the notification content in the form of a notification, the second cross-device notification center can construct a notification message b with notification characteristics based on the display state data. In implementation, the second cross-device notification center can parse the encapsulated data through the second cross-device notification management submodule to obtain the notification content of the notification message a, and then construct the notification message b according to the notification content.

[0383] Of course, when the function of intelligently hiding the notification display of the second electronic device is not turned on, the second cross-device notification center does not process the display state data, so the notification message a will not be displayed in the second electronic device.

[0384] It should be noted that if the second electronic device also does not include the function switch for intelligently hiding and displaying notifications, but has the function of intelligently hiding and displaying notifications by default, the second cross-device notification center directly constructs notification message b based on the received display state data.

[0385] Step D20: The second cross-device notification center sends a notification message b to the second notification management service framework.

[0386] Since all notification messages in the second electronic device are managed and reported by the second notification management service framework, in order not to change the notification reporting framework, after constructing notification message b, the second cross-device notification center simulates the process of application reporting notification messages and sends notification message b to the second notification management service framework. In this way, it can be implemented without changing the original notification reporting process of the Android system, thereby avoiding affecting the stability of the system.

[0387] Step D21: the second notification management service framework reports the notification message b to the second cross-device notification center.

[0388] The second notification management service framework sends the notification message b to the second cross-device notification management submodule in the second cross-device notification center according to the notification reporting method. Afterwards, the second cross-device notification management submodule can determine how to display the notification message b in the following manner.

[0389] It should be noted that the above steps D20 and D21 are optional operations, and in another example, the operations may not be performed.

[0390] Step D22: the second cross-device notification center queries and sends a device status query instruction to the second decision engine.

[0391] As mentioned above, the second decision engine can sense the device status, so the second cross-device notification center can query the second decision engine about the current usage status of the second electronic device, for example, the usage status may be a shared desktop status or a screen projection status.

[0392] In one example, the second cross-device notification center may send a device status query instruction to the second decision engine, so that the second decision engine feeds back information indicating the usage status of the second electronic device.

[0393] Step D23: The second decision engine returns the device status information to the second cross-device notification center.

[0394] Step D24: when the device status information indicates that the second electronic device is in the first usage state, the second cross-device notification center displays the notification message b in the notification bar.

[0395] When the usage state of the second electronic device is the first usage state, in order not to interfere with the user viewing the second electronic device, the second cross-device notification center does not display notification message b in the form of a banner notification, but displays notification message b in the notification bar. As an example, since notification message b is no longer displayed in the current display interface, there is no problem of privacy leakage. Therefore, in the notification bar, the second cross-device notification center displays notification message b in a traditional manner, that is, displays key information of notification message b.

[0396] It is not difficult to understand that, since notification message b is constructed based on the notification content of notification message a, displaying notification message b is equivalent to prompting notification message a.

[0397] As an example of the present application, when the usage state of the second electronic device is the second usage state, if it is determined based on the user information that the current users of the second electronic device only include the target user, the second cross-device notification center displays notification message b in the form of a banner notification, and the displayed banner notification includes key information of notification message a. Figure 4 At this time, the banner notification displayed may be as shown in 41 in the figure.

[0398] In an embodiment of the present application, the first electronic device determines whether to forward the notification message a to the second electronic device according to the usage context of the second electronic device, so as to avoid leaking the user's privacy in some contexts.

[0399] It should be noted that the above is explained by taking the case where it is determined that notification message a needs to be forwarded to the second electronic device and there is no need to hide the displayed notification message a as an example. Next, the notification message prompt process is introduced when it is determined that notification message a needs to be forwarded to the second electronic device and there is no need to hide the displayed notification message a. For example, the first cross-device notification center stores device status information and user information (that is, the query data includes device status information and user information), and the device status information indicates that the second electronic device is in a second usage state, and the second usage state is a usage state other than the first usage state; the user information indicates that the current user of the second electronic device cannot be determined, or indicates that the current user of the second electronic device includes the target user and other users except the target user, please refer to Fig. 20 The notification message prompt method may specifically include the following contents:

[0400] Steps E1-E8 please refer to above Fig.18 Steps D1 to D8 in the illustrated embodiment.

[0401] Step E9: When the notification transfer function is enabled, determine to forward the notification message a to the second electronic device according to the device status information and the user information.

[0402] When the notification flow function is turned on, if the device status information indicates that the second electronic device is in the second usage state, and the user information indicates that the current user of the second electronic device cannot be determined, it is determined that notification message a needs to be forwarded to the second electronic device, and notification message a needs to be hidden and displayed.

[0403] Step E10: When it is determined that the display needs to be hidden, the first cross-device notification center encapsulates the notification message a into display state data and hidden state data.

[0404] As an example of the present application, when the usage state of the second electronic device is the second usage state, and the identity of the user of the second electronic device cannot be determined, in order to avoid the target user being included in the users of the second electronic device, the second electronic device usually needs to hide the display of the notification message a. In this case, the first cross-device notification center can be packaged into two copies of data when packaging, one of which is packaged in a conventional manner to obtain display state data; the other copy of the data needs to hide the key information in the notification message a, for example, the key message can be replaced with a specified character to obtain hidden state data. Among them, the specified character can be set according to actual needs.

[0405] According to the above description, when the notification message a is encapsulated in the first cross-device notification, the display state data is always encapsulated, and the hidden state data is determined whether to be encapsulated according to the current user situation of the second electronic device. As an example of the present application, in order to facilitate the other end to distinguish between the display state data and the hidden state data, labels can be added to the display state data and the hidden state data respectively, for example, the display state data can be added with the first label value1, and the hidden state data can be added with the second label value2.

[0406] Step E11: The first cross-device notification center sends display state data, hidden state data, user information, and address information to the first application connection framework.

[0407] That is, at this time, the data sent by the first cross-device notification center to the first application connection framework includes not only display state data but also hidden state data.

[0408] In order to facilitate the second cross-device notification center in the second electronic device to quickly display notification message a in a corresponding manner according to the user information, the first cross-device notification center can also send the user information of the second electronic device to the first application continuation framework.

[0409] Step E12: The first application connection framework encapsulates the display state data, the hidden state data and the user information according to the encapsulation format of the specified transmission protocol to obtain encapsulated data.

[0410] The specific implementation of steps E13 to E16 can be found in Fig.18 Steps D13 to D16 in the illustrated embodiment.

[0411] Step E17: The second application connection framework parses the encapsulated data according to the specified transmission protocol to obtain decapsulated data, which includes display state data, hidden state data, and user information.

[0412] Step E18: The second application continuation framework sends unblocking data to the second cross-device notification center.

[0413] Step E19: the second cross-device call center constructs a notification message b based on the display state data in the unsealed data, and the notification message b carries the hidden state data.

[0414] Steps E20 to E23 can refer to the above Fig.18 Steps D20 to D23 in the illustrated embodiment.

[0415] Step E24: when the device status information indicates that the second electronic device is in a video playing state, display the notification message b in a banner notification manner according to the user information in the unsealed data.

[0416] According to the previous record, the first electronic device can carry user information in the packaged data. In this way, the second cross-device notification center can obtain the user information after unpacking the packaged data. Therefore, here, the second cross-device notification center can display the notification message b in a corresponding manner based on the user information.

[0417] As an example of the present application, if it is determined that the current user identity of the second electronic device cannot be determined based on the user information, the second cross-device notification center replaces the key information in the notification message b with the hidden data, and then displays the replaced notification message b, that is, the second cross-device notification center displays the notification message b in the form of a banner notification, but the banner notification does not include the key information of the notification message a. For example, the key information in the notification message b is replaced with "a notification". For example, see Figure 8 , the banner notification displayed at this time can be Figure 8 As shown in 81.

[0418] As an example of the present application, after determining the display mode through the second cross-device notification management submodule, the second cross-device notification center instructs the second notification display submodule to display the notification message b according to the determined display mode.

[0419] As an example of the present application, after forwarding notification message a to the second electronic device for display, the first cross-device notification center may also delete notification message a on its own end. In this case, the first cross-device notification center can send status update indication information to the second cross-device notification center, such as sending the status update indication information to the first application continuation framework, and the first application continuation framework forwards it to the first transmission module. Afterwards, the first transmission module sends it to the second transmission module, the second transmission module forwards it to the second application continuation framework, and the second application continuation framework transmits it to the second cross-device notification center. Correspondingly, after receiving the status update indication information, the second cross-device notification center deletes the data related to the notification message a, such as deleting notification message b and encapsulated data, thereby achieving synchronization with the first electronic device.

[0420] In the embodiment of the present application, the first electronic device determines whether to forward the notification message a to the second electronic device according to the state of the second electronic device and the user information. When forwarding the notification message a to the second electronic device and determining that the key information in the notification message a needs to be hidden, the key information in the notification message a is hidden and displayed. In this way, by automatically hiding and displaying the notification message, the user's privacy can be avoided from being leaked, and the intelligence of the notification message prompt is improved.

[0421] It should be noted that the above is based on the example that the first electronic device determines that the usage status of the second electronic device is the first usage status, and determines that the notification message a needs to be forwarded to the second electronic device and that the notification message a does not need to be hidden and displayed. In another embodiment, the first electronic device can also determine whether to forward the notification message a to the second electronic device and whether to hide and display the notification message a based on the user information when it is determined that the second electronic device is in use. That is, as long as it is determined to be in use, regardless of whether it is the first usage status, the first electronic device will determine whether to forward and whether to hide based on the user information. Accordingly, after receiving the notification message a, the second electronic device queries the usage status of the second electronic device. When the second electronic device is in the first usage status, the notification message a is displayed in the notification bar. When it is not in the first usage status, the notification message a is displayed based on the user information.

[0422] It should also be noted that the embodiment of the present application is described by taking the case where the usage status of the second electronic device is the first usage status and the notification message a is displayed in the notification bar as an example. In another embodiment, it is also possible not to distinguish whether it is the first usage status, that is, when the working mode of the second electronic device is the first usage status, the first electronic device may choose not to forward the notification message a according to the user situation of the second electronic device, such as when the user of the second electronic device does not include the target user, or forward the notification message to the second electronic device but the second electronic device displays part of the information of the notification message a in the form of a banner notification, such as when the users of the second electronic device include the target user and other users, etc. Correspondingly, the second electronic device selects a corresponding method to display the notification message a according to the user information.

[0423] It should also be noted that the above description is based on the example that the notification message is a communication notification message. In another embodiment, the notification message may also be other types of notification messages, such as taking a mobile phone 1 as the first electronic device and a tablet computer 2 as the second electronic device. When there is a missed call in the mobile phone 1, the call application in the mobile phone 1 will generate a notification message, and at this time the notification message is a missed call notification. The mobile phone 1 displays the missed call notification. In addition, the mobile phone 1 can determine whether to forward the missed call notification to the tablet computer 2 according to the above process. In the case of determining to forward, the tablet computer 2 displays the missed call notification in a corresponding manner according to the usage scenario. For example, in the case where the mobile phone 1 determines to forward the notification message, please refer to Fig.21 In (a) of FIG. 1 , when the tablet computer 2 displays the missed call notification in the form of a banner notification and does not display key information, the banner notification hides key information such as contact information and ringing duration. For another example, please refer to Fig.21 As shown in FIG. 5( b ) , when the tablet computer 2 displays the missed call notification in the notification bar, the tablet computer 2 may display the missed call notification in a conventional manner.

[0424] It should also be noted that the above is a schematic diagram of the display effect of the tablet computer 2 in the horizontal screen mode. When the tablet computer 2 is in the vertical screen mode, when it is necessary to hide the notification message in the form of a banner notification, the content of the notification message can be displayed in lines in the banner notification, for example Fig. 22 As shown, "1 notification" can be displayed in the second line of the banner notification. Furthermore, the basic information displayed in the notification message can also include time information, which is used to indicate the generation time of the notification message, such as Fig. 22 As shown, the time information is "just now".

[0425] It should also be noted that the above description is based on the example that the electronic device that can synchronize notifications with mobile phone 1 is a tablet computer. In another embodiment, the electronic device that can synchronize notifications with mobile phone 1 may also be a mobile phone or a computer. In this case, the notification message in mobile phone 1 can also be prompted according to the above situation, but the display format or display position of the notification message may be different. For example, taking the example that the electronic device that can synchronize notifications with mobile phone 1 is a computer, in this case, when it is necessary to hide and display the notification message (such as WeChat notification message) in the form of a banner notification on the computer, the display effect can be as follows: Fig.23 As shown, the banner notification is displayed in the lower right corner of the computer. Furthermore, the banner notification also includes "Content is hidden, move the mouse here to view", which prompts the user to move the mouse to the display position of the banner notification to view the notification details.

[0426] For ease of understanding, the following describes the operation process performed by the first electronic device in the notification message prompt method provided in the embodiment of the present application. Fig.24 , the method may include the following:

[0427] Step 2401: Receive a first message through application A.

[0428] Exemplarily, application A is an instant messaging application, and the first message is the above-mentioned message m.

[0429] Step 2402: Generate a first notification message related to the first message through application A.

[0430] That is, when the first electronic device receives a new first message through application A, a first notification message is generated through application A. Exemplarily, the first notification message is a WeChat notification message.

[0431] Step 2403: Determine whether the notification intelligent hiding display function is turned on.

[0432] The function of intelligently hiding and displaying notifications is to automatically select the prompt method of notification messages based on the device usage context.

[0433] As an example of the present application, the first electronic device notifies the first cross-device notification center to determine whether the function of intelligently hiding and displaying notifications is turned on.

[0434] When the function of intelligently hiding and displaying notifications is turned on, proceed to step 2403 as follows; otherwise, when the function of intelligently hiding and displaying notifications is not turned on, proceed to step 2408 as follows.

[0435] Step 2404: Check whether the notification flow function of application A is enabled.

[0436] The first electronic device can query the first notification configuration center through the first cross-device notification center whether the notification flow function of application A is turned on. The specific determination process can be found in Fig.18 Step D6 in the illustrated embodiment.

[0437] If the notification flow function of application A is turned on, proceed to step 2405 as follows; otherwise, if the notification flow function of application A is not turned on, proceed to step 2408 as follows.

[0438] It should be noted that both step 2403 and step 2404 are optional operations. In one embodiment, after the first electronic device generates the first notification message through application A, the following step 2405 can be directly executed.

[0439] Step 2405: Determine whether to forward the first notification message to the second electronic device based on pre-stored query data.

[0440] In one possible case, the query data includes device status information of the second electronic device. In another possible case, the query data includes device status information of the second electronic device and current user information of the second electronic device.

[0441] The query data may be periodically acquired and stored through the first cross-device notification center. For a specific implementation process, see Fig.14 and Fig.16 The embodiment shown.

[0442] The first electronic device determines whether to forward the first notification message to the second electronic device through the first cross-device notification center according to the pre-stored query data. For specific situations, please refer to Fig.17 In the case where it is determined that the first notification message is forwarded to the second electronic device, the process proceeds to step 2406 , otherwise, if it is determined that the first notification message is not forwarded to the second electronic device, the process proceeds to step 2408 .

[0443] Step 2406: Encapsulate the first notification message to obtain encapsulated data.

[0444] The first electronic device encapsulates the first notification message through the first cross-device notification center. For specific implementation, please refer to Fig.18 and Fig. 20 The embodiment shown.

[0445] Step 2407: Send the packaged data to the second electronic device.

[0446] For its specific implementation, please refer to Fig.18 Step D13 to step D14 in the illustrated embodiment.

[0447] Step 2408: End the prompt process.

[0448] It should be noted that ending the prompt process means that the first electronic device no longer prompts the notification message according to the method provided in the embodiment of the present application.

[0449] As an example of the present application, when the first electronic device deletes the first notification message, it sends status update indication information to the second electronic device so that the second electronic device deletes the first notification message, thereby keeping the prompt for the first notification message synchronized with the first electronic device.

[0450] In an embodiment of the present application, when there is a new first notification message in the first electronic device, it is determined whether to forward the first notification message to the second electronic device based on the pre-acquired state of the second electronic device and the user situation, thereby avoiding the leakage of user privacy in some scenarios and improving the intelligence of the notification message prompt.

[0451] Next, the operation process performed by the second electronic device in the notification message prompt method provided in the embodiment of the present application is introduced. Fig.25 , the method may include the following:

[0452] Step 2501: Receive encapsulation data.

[0453] In one possible case, the encapsulated data includes display state data of the first notification message. In another possible case, the encapsulated data includes display state data and hidden state data of the first notification message. Fig.18 and Fig. 20 The embodiment shown.

[0454] In one example, the packaged data also includes user information of the second electronic device. Thus, when the first notification message needs to be displayed according to the user information later, the second electronic device no longer needs to query the user information, thereby improving the display efficiency of the notification message.

[0455] As an example of the present application, the second electronic device receives the encapsulated data through the second cross-device notification center. For specific implementation, please refer to Fig.18 Steps D15 to D18 in the illustrated embodiment.

[0456] Step 2502: Determine whether the notification intelligent hiding display function of the second electronic device is turned on.

[0457] If the function of intelligently hiding and displaying notifications of the second electronic device is turned on, proceed to step 2503. Otherwise, if the function of intelligently hiding and displaying notifications of the second electronic device is not turned on, proceed to step 2507.

[0458] It should be noted that step 2502 is an optional operation. In another embodiment, after receiving the encapsulated data, the second electronic device may directly execute the following step 2503.

[0459] Step 2503: Construct a second notification message based on the encapsulation data.

[0460] The second electronic device constructs a second notification message based on the encapsulated data through the second cross-device notification center. Specifically, the second electronic device constructs the second notification message based on the encapsulated data through the second cross-device notification management submodule. For specific implementation, see Fig.18 Step D19 in the illustrated embodiment.

[0461] Step 2504: Query whether the usage status of the second electronic device is the first usage status.

[0462] As an example but not limitation, the first usage state includes a shared desktop state, a screen projection state, a projected screen state, and a state in which the do not disturb mode is turned on.

[0463] As an example of the present application, the second electronic device queries the current usage status from the second decision engine through the second cross-device notification center, thereby determining whether the current usage status is the first usage status according to the query result.

[0464] When the current usage state is the first usage state, proceed to step 2505 ; otherwise, if the current usage state is not the first usage state (for example, the second usage state), proceed to step 2506 .

[0465] Step 2505: Display the second notification message in the notification bar.

[0466] For its specific implementation, please refer to Fig.18 Steps D21 to D24 in the illustrated embodiment.

[0467] Step 2506: Display a second notification message according to the user information of the second electronic device.

[0468] For its specific implementation, please refer to Fig. 20 Steps E21 to E24 in the illustrated embodiment.

[0469] Step 2507: End display.

[0470] In step 2507, the second electronic device does not display the second notification message.

[0471] In the embodiment of the present application, the second electronic device automatically selects the display mode of the prompt message a according to its current usage scenario, that is, when it is determined that key information needs to be hidden, the key information is hidden, and in some first usage states, the first notification message is not displayed in a banner, but in the notification bar. In this way, not only can privacy leakage be intelligently avoided, but also the problem of visual interference to users caused by displaying notification messages in banners can be avoided.

[0472] Fig.26 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device may be the first electronic device or the second electronic device in each of the above embodiments. Fig.26 The electronic device includes at least one processor 2601, a communication bus 2602, a memory 2603, and at least one communication interface 2604.

[0473] Processor 2601 may be a microprocessor (including a central processing unit (CPU), etc.), an application-specific integrated circuit (ASIC), or may be one or more integrated circuits for controlling the execution of the program of the present application.

[0474] Communication bus 2602 may include a pathway for transmitting information between the above-mentioned components.

[0475] The memory 2603 may be a read-only memory (ROM), a random access memory (RAM), an electrically erasable programmable read-only memory (EEPROM), an optical disc (including a compact disc read-only memory (CD-ROM), a compressed optical disc, a laser disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2603 may exist independently and be connected to the processor 2601 via the communication bus 2602. The memory 2603 may also be integrated with the processor 2601.

[0476] The communication interface 2604 uses any transceiver or other device to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0477] In a specific implementation, as an embodiment, the processor 2601 may include one or more CPUs, such as Fig.26 CPU0 and CPU1 are shown in the figure.

[0478] In a specific implementation, as an embodiment, the electronic device may include multiple processors, such as Fig.26 2601 and processor 2605 shown in FIG. Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0479] As an embodiment, the electronic device may further include an output device 2606 and an input device 2607. The output device 2606 communicates with the processor 2601 and may display information in a variety of ways. For example, the output device 2606 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 2607 communicates with the processor 2601 and may receive user input in a variety of ways. For example, the input device 2607 may be a mouse, a keyboard, a touch screen device, or a sensor device.

[0480] As an example, the electronic device may further include a camera 2608 for capturing images, such as at least a front camera.

[0481] The electronic device may be a general electronic device or a dedicated electronic device. In a specific implementation, the electronic device may be a desktop computer, a portable computer, a network server, a palm computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of the electronic device.

[0482] The memory 2603 is used to store the program code 2610 for executing the solution of the present application, and the processor 2601 is used to execute the program code 2610 stored in the memory 2603. The electronic device can implement the methods provided in the above embodiments through the processor 2601 and the program code 2610 in the memory 2603.

[0483] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (such as: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).

[0484] The above are optional embodiments provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the technical scope disclosed in the present application shall be included in the protection scope of the present application.

Claims

1. A method for prompting a notification message, It is characterized in that Applied to a first electronic device, the first electronic device and a second electronic device can synchronize notifications, and the method includes: receiving a first message; When the second electronic device is in use and the use state is not the first use state, if the number of current users of the second electronic device is multiple and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, hidden state data and displayed state data of a first notification message related to the first message are sent to the second electronic device, so that the second electronic device can display part of the information of the first notification message in the form of a banner notification, wherein the hidden state data is data after key information hiding processing is performed on the first notification message, and the displayed state data is data without key information hiding processing being performed on the first notification message, wherein the first use state refers to a use state in which the prompt message is not allowed to be displayed in the form of a banner notification; When the second electronic device is in the first use state, the display state data is sent to the second electronic device, so that the second electronic device displays the first notification message in a notification bar after receiving the display state data, wherein the use state and user situation of the second electronic device are obtained by the first electronic device periodically inquiring from the second electronic device; The first notification message is displayed.

2. The method according to claim 1, It is characterized in that After receiving the first message, the method further includes: When the second electronic device is not in use, not forwarding the first notification message to the second electronic device; or, When the second electronic device is in use, if the current user of the second electronic device does not include the target user, the first notification message is not forwarded to the second electronic device.

3. The method according to claim 1, It is characterized in that The first usage status includes the screen projection status, the screen projection status, the desktop sharing status, and the status of turning on the do not disturb mode.

4. The method according to claim 1, It is characterized in that The first electronic device includes a first cross-device notification center, a first application connection framework, and a first transmission module; when the second electronic device is in use and the use state is not the first use state, if there are multiple current users of the second electronic device and the multiple users include a target user of the first electronic device, or the current user of the second electronic device cannot be determined, sending hidden state data and displayed state data of a first notification message related to the first message to the second electronic device, including: When the second electronic device is in use and the use state is not the first use state, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, the first cross-device notification center encapsulates the first notification message into the hidden state data; The first cross-device notification center sends the hidden state data, the displayed state data and the address information of the second electronic device to the first application connection framework; The first application connection framework encapsulates the hidden state data and the display state data according to the encapsulation format of the specified transmission protocol to obtain encapsulated data; The first application connection framework sends the encapsulated data and the address information to the first transmission module; The first transmission module sends the packaged data to the second electronic device based on the address information.

5. The method according to claim 4, It is characterized in that The packaged data also includes user information of the second electronic device.

6. The method according to any one of claims 1 to 5, It is characterized in that In the case where the second electronic device is in use and the use state is not the first use state, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, before sending the hidden state data and the displayed state data of the first notification message related to the first message to the second electronic device, the method further includes: Determining the state of the second electronic device according to device state information in stored query data of the second electronic device, wherein the query data is periodically obtained from the second electronic device; When the device status information indicates that the second electronic device is in use, the current user status of the second electronic device is determined according to the user information in the query data.

7. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: When the display state of the first notification message changes, state update indication information is sent to the second electronic device, where the state update indication information is used to indicate a state synchronization update of the first notification message.

8. A method for prompting a notification message, It is characterized in that Applied to a second electronic device, the second electronic device can synchronize notifications with a first electronic device, and the method includes: receiving encapsulated data sent by the first electronic device, where the encapsulated data includes data related to the first notification message; In the case where the usage state of the second electronic device is not the first usage state, if the number of current users of the second electronic device is multiple and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, based on the hidden state data and the displayed state data included in the encapsulated data, part of the information in the first notification message is displayed in the form of a banner notification, wherein the first usage state refers to a usage state in which the prompt message is not allowed to be displayed in the form of a banner notification, the hidden state data is data after key information in the first notification message is hidden, and the displayed state data is data without key information hiding processing of the first notification message; When the usage state of the second electronic device is the first usage state, displaying the first notification message in a notification bar based on the display state data included in the packaging data; The usage status and user situation of the second electronic device are obtained by the first electronic device periodically querying from the second electronic device.

9. The method according to claim 8, It is characterized in that The first usage status includes the screen projection status, the screen projection status, the desktop sharing status, and the status of turning on the do not disturb mode.

10. The method according to claim 8, It is characterized in that The second electronic device includes a second cross-device notification center and a second notification management service framework; In the case where the usage state of the second electronic device is not the first usage state, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, based on the hidden state data and the display state data included in the encapsulated data, displaying part of the information in the first notification message in the form of a banner notification, including: In the case where the usage state of the second electronic device is not the first usage state, if there are multiple current users of the second electronic device and the multiple users include the target user of the first electronic device, or the current user of the second electronic device cannot be determined, the second cross-device notification center constructs a second notification message based on the display state data, and the second notification message carries the hidden state data; The second cross-device notification center sends the second notification message to the second cross-device notification center; The second notification management service framework reports the second notification message to the second cross-device notification center; The second cross-device notification center displays the second notification message in the form of the banner notification.

11. The method according to any one of claims 8 to 10, It is characterized in that The method further comprises: receiving status update indication information sent by the second electronic device, where the status update indication information is used to indicate to synchronously update the status of the first notification message; The display status of the first notification message is updated according to the status update indication information.

12. An electronic device, It is characterized in that The structure of the electronic device includes a processor and a memory; The memory is used to store a program that supports the electronic device to execute the method according to any one of claims 1 to 7, and to store data involved in implementing the method according to any one of claims 1 to 7; or, The memory is used to store a program that supports the electronic device to execute the method as described in any one of claims 8 to 11, and to store data involved in implementing the method as described in any one of claims 8 to 11.

13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 7, or to execute the method according to any one of claims 8 to 11.