Conversation notification prompt method, electronic device and readable storage medium
By compressing and encapsulating images before synchronizing session notifications between electronic devices, the problem of low transmission efficiency during synchronization is solved and more efficient notification data transmission and status synchronization are achieved.
Patent Information
- Application Number
- CN202211065011.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-01
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-09-01
AI Technical Summary
When synchronizing conversation notifications with pictures between electronic devices, the transmission efficiency is low and a large amount of transmission resources is occupied.
Before synchronization, the image is compressed and converted into compressed image data, and the compressed data and notification-related data are encapsulated and sent to reduce transmission resource usage.
It improves the transmission efficiency of notification synchronization, reduces the amount of data transmission, and ensures the consistency of notification synchronization and deletion operations.
Smart Images

Figure CN116719649B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a prompt method for session notification, an electronic device and a readable storage medium. Background Art
[0002] At present, with the popularity of electronic devices, users have different requirements for the use of different electronic devices. A user may have multiple electronic devices at the same time, such as multiple electronic devices including mobile phones, computers, tablets, etc. In one case, in order to avoid missing some important notifications, electronic devices provide a super notification function, so that notifications can be synchronized between multiple electronic devices. For conversation notifications with pictures, how to improve the transmission efficiency during notification synchronization has become an urgent problem to be solved. Summary of the invention
[0003] The present application provides a method for prompting a session notification, an electronic device and a readable storage medium, which can solve the problem of how to improve the transmission efficiency in the process of synchronizing a session notification with a picture in the related art. The technical solution is as follows:
[0004] In a first aspect, a method for prompting a conversation notification 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:
[0005] receiving a conversation message, wherein the conversation message includes a picture;
[0006] Compressing the image to obtain compressed image data;
[0007] Encapsulating the image compression data and notification-related data to obtain encapsulated data, wherein the notification-related data is other notification data in the session notification related to the session message except for the address information of the image;
[0008] sending the encapsulated data to the second electronic device so that the second electronic device displays the session notification;
[0009] The session notification is displayed.
[0010] In this way, when a conversation message containing a picture is received, the picture is first compressed before the conversation notification related to the conversation message is synchronized to the second electronic device, and then the compressed conversation notification is sent to the second electronic device, thereby reducing the resources required for transmission and improving transmission efficiency.
[0011] As an example of the present application, compressing the image to obtain compressed image data includes:
[0012] When the size of the picture is greater than or equal to the size threshold, compressing the size of the picture to the size threshold to obtain a first compressed picture;
[0013] Compressing the first compressed image by using an image data compression algorithm to obtain a second compressed image;
[0014] Convert the second compressed picture into bytes to obtain byte data of the picture;
[0015] Encoding the byte data of the picture to obtain a character string corresponding to the picture;
[0016] Convert the string corresponding to the image into json format to obtain the compressed data of the image.
[0017] In this way, by processing the image into a string in json format, the data transmission efficiency can be improved.
[0018] As an example of the present application, the first electronic device includes an application, a first notification management service framework, and a first system interface notification service framework;
[0019] The compressing the image to obtain compressed image data includes:
[0020] The application sends the session notification to the first notification management service framework, where the session notification is generated by the application after receiving the session message;
[0021] The first notification management service framework sends the session notification to the first system interface notification service framework;
[0022] The first system interface notifies the service framework to compress the image to obtain the image compression data.
[0023] In this way, the session notification is sent to the first system interface notification service framework through the first notification management service framework, and the first system interface notification service framework performs compression processing to reduce the amount of data transmission.
[0024] As an example of the present application, the first system interface notification service framework includes a first notification service module and a first notification synchronization processing module, and the first system interface notification service framework compresses the image to obtain the image compression data, including:
[0025] The first notification service module sends the session notification to the first notification synchronization processing module;
[0026] The first notification synchronization processing module reads the picture from the first electronic device based on the address information;
[0027] The first notification synchronization processing module compresses the image to obtain the image compression data.
[0028] In this way, during the interaction between modules, by carrying the address information of the picture in the session notification, the first notification synchronization processing module obtains the picture based on the address information after receiving the session notification. This can reduce the amount of data transmission between modules while ensuring that the first notification synchronization processing module can obtain the picture.
[0029] As an example of the present application, the first electronic device further includes a first application connection framework, and the encapsulating the image compression data and the notification associated data to obtain the encapsulated data includes:
[0030] The first system interface notification service framework sends the image compression data and the notification associated data to the first application continuation framework;
[0031] The first application connection framework encapsulates the image compression data and the notification-related data according to the encapsulation format of the specified transmission protocol to obtain the encapsulated data.
[0032] In this way, the first application connection framework performs encapsulation processing according to the encapsulation format of the specified transmission protocol, so that the encapsulated data meets the data transmission requirements, thereby ensuring that the encapsulated data of the session notification can be successfully synchronized to the second electronic device.
[0033] As an example of the present application, after displaying the session notification, the method further includes:
[0034] The first application continuation framework receives a deletion instruction sent from the second electronic device, where the deletion instruction is sent by the second electronic device after detecting a deletion operation on the notification session;
[0035] The first application continuation framework sends a deletion instruction to the first notification management service framework;
[0036] The first notification management service framework sends the deletion instruction to the first system interface notification service framework;
[0037] In response to the deletion instruction, the first system interface notification service framework deletes the displayed session notification.
[0038] In this way, when the second electronic device receives a deletion operation on the session notification, in addition to deleting the displayed session notification, it will also send a deletion instruction to the first electronic device so that the first electronic device also synchronously deletes the session notification, thereby keeping the notification prompt status in the first electronic device and the second electronic device synchronized.
[0039] In a second aspect, a method for prompting a session notification 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:
[0040] receiving encapsulated data sent by the first electronic device, wherein the encapsulated data includes picture compression data and notification-related data, wherein the picture compression data is data obtained by compressing the picture in the session message received by the first electronic device, and the notification-related data is other notification data in the session notification related to the session message except the address information of the picture;
[0041] constructing the session notification based on the encapsulated data;
[0042] The session notification is displayed.
[0043] In this way, since the encapsulated data includes the image compression data and the notification associated data, the second electronic device can reconstruct the session notification based on the encapsulated data and display the session notification, thereby improving data transmission efficiency while the session notification is successfully synchronized.
[0044] As an example of the present application, constructing the session notification based on the encapsulated data includes:
[0045] Performing a reverse encoding process on the compressed image data in the encapsulated data to obtain a character string corresponding to the image;
[0046] Generate the picture based on the character string corresponding to the picture;
[0047] storing the picture in the second electronic device, and determining address information of the picture in the second electronic device according to the stored path;
[0048] The conversation notification is constructed based on the address information of the picture in the second electronic device and the notification association data.
[0049] In this way, during the interaction between modules, after the image is generated, it is first stored locally and the corresponding address information is generated. Then, the session notification is reconstructed based on the address information and notification-related data, thereby reducing the amount of data for subsequent session notification transmissions between modules.
[0050] As an example of the present application, the second electronic device includes a second application continuation framework, a second notification management service framework, and a second system interface notification service framework;
[0051] The receiving the encapsulated data sent by the first electronic device includes:
[0052] The second application connection framework receives the encapsulated data sent by the first electronic device;
[0053] The second application connection framework parses the encapsulated data according to the specified transmission protocol to obtain the image compression data and the notification associated data;
[0054] The step of constructing the session notification based on the encapsulated data includes:
[0055] The second application connection framework sends the image compression data and the notification associated data to the second system interface notification service framework;
[0056] The second system interface notification service framework constructs the session notification based on the image compression data and the notification association data.
[0057] In this way, the received encapsulated data is unpacked by the second application connection framework, and the obtained image compression data and notification associated data are sent to the second system interface notification service framework, and the second system interface notification service framework reconstructs the session notification so that the session notification can be displayed synchronously in the second electronic device.
[0058] As an example of the present application, after displaying the session notification, the method includes:
[0059] The second system interface notification service framework receives a deletion operation on the session notification;
[0060] The second system interface notifies the service framework to generate a deletion instruction corresponding to the deletion operation;
[0061] The second system interface notification service framework sends the deletion instruction to the second notification management service framework;
[0062] The second notification management service framework sends the deletion instruction to the second system interface notification service framework;
[0063] The second system interface notification service framework sends the deletion instruction to the first electronic device, so as to instruct the first electronic device to delete the session notification.
[0064] In this way, when the second electronic device receives a deletion operation on the session notification, in addition to deleting the displayed session notification, it will also send a deletion instruction to the first electronic device so that the first electronic device also synchronously deletes the session notification, thereby keeping the notification prompt status in the first electronic device and the second electronic device synchronized.
[0065] In a third aspect, a session notification prompting device 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 session notification prompting device has the function of implementing the session notification method behavior in the first aspect. The session notification device includes at least one module, and the at least one module includes:
[0066] A receiving module, used for receiving a conversation message, wherein the conversation message includes a picture;
[0067] The first system interface notifies the service framework, and is used to compress the image to obtain compressed image data;
[0068] A first application connection framework is used to encapsulate the image compression data and notification-related data to obtain encapsulated data, wherein the notification-related data is other notification data in the session notification related to the session message except the address information of the image;
[0069] The first application continuation framework is used to send the encapsulated data to the second electronic device so that the second electronic device displays the session notification;
[0070] The first system interface notification service framework is used to display the session notification.
[0071] As an example of the present application, the first system interface notification service framework is used to:
[0072] When the size of the picture is greater than or equal to the size threshold, compressing the size of the picture to the size threshold to obtain a first compressed picture;
[0073] Compressing the first compressed image by using an image data compression algorithm to obtain a second compressed image;
[0074] Convert the second compressed picture into bytes to obtain byte data of the picture;
[0075] Encoding the byte data of the picture to obtain a character string corresponding to the picture;
[0076] Convert the string corresponding to the image into json format to obtain the compressed data of the image.
[0077] As an example of the present application, the first electronic device further includes a first notification management service framework;
[0078] The application in the first electronic device sends the session notification to the first notification management service framework, where the session notification is generated by the application after receiving the session message;
[0079] The first notification management service framework is used to send the session notification to the first system interface notification service framework;
[0080] The first system interface notification service framework is used to compress the image to obtain the image compression data.
[0081] As an example of the present application, the first system interface notification service framework includes a first notification service module and a first notification synchronization processing module, and the first system interface notification service framework compresses the image to obtain the image compression data, including:
[0082] The first notification service module sends the session notification to the first notification synchronization processing module;
[0083] The first notification synchronization processing module reads the picture from the first electronic device based on the address information;
[0084] The first notification synchronization processing module compresses the image to obtain the image compression data.
[0085] As an example of the present application, the first application continuation framework is used to encapsulate the image compression data and the notification associated data to obtain encapsulated data, including:
[0086] The first system interface notification service framework is used to send the image compression data and the notification associated data to the first application continuation framework;
[0087] The first application connection framework is used to encapsulate the image compression data and the notification-related data according to the encapsulation format of the specified transmission protocol to obtain the encapsulated data.
[0088] As an example of this application;
[0089] The first application continuation framework is further used to receive a deletion instruction sent from the second electronic device, where the deletion instruction is sent by the second electronic device after detecting a deletion operation on the notification session;
[0090] The first application continuation framework is further used to send a deletion instruction to the first notification management service framework;
[0091] The first notification management service framework is further used to send the deletion instruction to the first system interface notification service framework;
[0092] The first system interface notification service framework is further configured to delete the displayed session notification in response to the deletion instruction.
[0093] In a fourth aspect, a session notification prompting device is provided, which is applied to a second electronic device, and the second electronic device can synchronize notifications with the first electronic device, and the session notification prompting device has the function of implementing the session notification method behavior in the second aspect. The session notification device includes at least one module, and the at least one module includes:
[0094] a second application connection framework, configured to receive encapsulated data sent by the first electronic device, wherein the encapsulated data includes compressed image data and notification-related data, wherein the compressed image data is data obtained by compressing an image in a session message received by the first electronic device, and the notification-related data is other notification data in a session notification related to the session message except address information of the image;
[0095] A second system interface notification service framework, used for constructing the session notification based on the encapsulated data;
[0096] The second system interface notification service framework 1420 is used to display the session notification.
[0097] As an example of the present application, the second system interface notification service framework is used to:
[0098] Performing a reverse encoding process on the compressed image data in the encapsulated data to obtain a character string corresponding to the image;
[0099] Generate the picture based on the character string corresponding to the picture;
[0100] storing the picture in the second electronic device, and determining address information of the picture in the second electronic device according to the stored path;
[0101] The conversation notification is constructed based on the address information of the picture in the second electronic device and the notification association data.
[0102] As an example of this application;
[0103] The second application connection framework is used to receive the encapsulated data sent by the first electronic device;
[0104] The second application connection framework is used to parse the encapsulated data according to the specified transmission protocol to obtain the image compression data and the notification associated data;
[0105] The second application connection framework is used to send the image compression data and the notification associated data to the second system interface notification service framework;
[0106] The second system interface notification service framework is used to construct the session notification based on the image compression data and the notification association data.
[0107] As an example of the present application, the second electronic device further includes a second notification management service framework:
[0108] The second system interface notification service framework is used to receive a deletion operation on the session notification;
[0109] The second system interface notification service framework is used to generate a deletion instruction corresponding to the deletion operation;
[0110] The second system interface notification service framework is used to send the deletion instruction to the second notification management service framework;
[0111] The second notification management service framework is used to send the deletion instruction to the second system interface notification service framework;
[0112] The second system interface notification service framework is used to send the deletion instruction to the first electronic device, so as to instruct the first electronic device to delete the session notification.
[0113] In a fifth 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 method for prompting a session notification provided in the first aspect, and to store data involved in implementing the method for prompting a session notification in the first aspect. The processor is configured to execute the program stored in the memory. The first electronic device may also include a communication bus, wherein the communication bus is used to establish a connection between the processor and the memory.
[0114] In a sixth 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 method for prompting session notifications provided in the second aspect, and to store data involved in implementing the method for prompting session notifications described in the second aspect. The processor is configured to execute the program stored in the memory. The second electronic device may also include a communication bus, wherein the communication bus is used to establish a connection between the processor and the memory.
[0115] In a seventh 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 method for prompting a conversation notification as described in the first aspect.
[0116] In an eighth 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 method for prompting a conversation notification as described in the second aspect.
[0117] In a ninth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method for prompting a conversation notification as described in the first aspect.
[0118] In a tenth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method for prompting a conversation notification as described in the second aspect.
[0119] The technical effects obtained by the third, fifth, seventh and ninth aspects mentioned above are similar to the technical effects obtained by the corresponding technical means in the first aspect mentioned above, and will not be repeated here.
[0120] The technical effects obtained in the fourth, sixth, eighth and tenth aspects are similar to the technical effects obtained by the corresponding technical means in the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0121] Figure 1 is a schematic diagram showing an application scenario according to an exemplary embodiment;
[0122] Figure 2 is a schematic diagram of an application scenario according to another exemplary embodiment;
[0123] Figure 3 is a schematic diagram of an application scenario according to another exemplary embodiment;
[0124] Figure 4 is a schematic diagram of the architecture of a software system of an electronic device according to an exemplary embodiment;
[0125] Figure 5 is a flow chart of a method for prompting a session notification according to an exemplary embodiment;
[0126] Figure 6 is a schematic diagram showing a picture compression process according to an exemplary embodiment;
[0127] Figure 7 is a schematic diagram showing a picture restoration process according to an exemplary embodiment;
[0128] Figure 8 is a flowchart of a method for prompting a session notification according to another exemplary embodiment;
[0129] Fig. 9 is a schematic diagram of an application scenario according to another exemplary embodiment;
[0130] Fig.10 is a schematic diagram of an application scenario according to another exemplary embodiment;
[0131] Fig.11 is a flowchart of a method for prompting a session notification according to another exemplary embodiment;
[0132] Fig.12 is a flowchart of a method for prompting a session notification according to another exemplary embodiment;
[0133] Fig.13 is a structural diagram of a prompting device for session notification according to an exemplary embodiment;
[0134] Fig.14 is a structural schematic diagram of a prompting device for session notification according to another exemplary embodiment;
[0135] Fig.15 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0136] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0137] 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.
[0138] 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.
[0139] With the rapid development of terminal technology, various electronic devices are widely used, such as mobile phones, tablet computers (also known as PADs), smart watches, laptops, etc. In one possible case, multiple electronic devices can form a super terminal when connected to the same local area network. For example, please refer to Figure 1 As an example of the present application, when multiple electronic devices constitute a hyperterminal, notification synchronization can be achieved between the multiple electronic devices, such as Figure 1 As shown, when one of the electronic devices (such as a mobile phone) receives a new conversation message, in addition to displaying the conversation notification related to the conversation message in the notification bar, the conversation notification can also be synchronized to other electronic devices in the multiple electronic devices. Accordingly, each of the other electronic devices can display the conversation notification in its own notification bar.
[0140] Conversation notifications are notifications that allow users to reply to messages in the notification. For example, please refer to Figure 2 , taking the example of a mobile phone receiving a conversation message, after the mobile phone receives the conversation message, the conversation notification is displayed in the notification bar, such as Figure 2 As shown in FIG. 1 of (a) in FIG. 1, the user can reply based on the conversation notification 1. For example, the user can click the reply option "RELAY" in the conversation notification 1. In response to the user's triggering operation on the reply option "RELAY", the mobile phone displays an information input box in the conversation notification 1, as shown in FIG. Figure 2 As shown in FIG. 2 of (b) in the figure. In this way, the user can enter the content to be replied. For example, after the user enters "received" and clicks send, the conversation notification 1 in the notification bar of the mobile phone can be displayed as follows Figure 2 As shown in Figure (c), it is not difficult to see that the user can continue to reply to the message in conversation notification 1.
[0141] As can be seen, the conversation notification can contain not only text information, but also pictures. In this case, pictures also need to be synchronized during the notification synchronization process. For example, taking the synchronization of notifications between mobile phones and tablets as an example, please refer to Figure 3 ,When the mobile phone receives a conversation message with a picture, such as Figure 3 As shown in 1, the mobile phone displays the conversation notification related to the conversation message in the notification bar, and the mobile phone also sends the conversation notification with the picture to the tablet computer. Correspondingly, after receiving the conversation notification, the tablet computer displays the conversation notification, for example Figure 3 As shown in 3 , the tablet computer displays the session notification in the notification bar.
[0142] However, since the session notification includes pictures, a certain amount of transmission resources need to be occupied during the notification synchronization process, resulting in low transmission efficiency. To this end, an embodiment of the present application provides a session notification prompt method, which can compress the pictures in the session notification before notification synchronization, so as to reduce the occupation of transmission resources and improve transmission efficiency. The specific implementation process can be found in the various embodiments below.
[0143] According to the above description, at least two electronic devices are involved in the notification synchronization process, one of which is an electronic device for sending session notifications (such as Figure 3 The mobile phone in the figure), for the convenience of description, is referred to as the first electronic device below; the other is an electronic device for receiving the session notification synchronized by the first electronic device (such as Figure 3 Before introducing the method provided in the embodiment of the present application in detail, the software system architecture of the first electronic device involved in the embodiment of the present application is first introduced.
[0144] The software system of the first electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. This embodiment of the application takes the Android system of the layered architecture as an example to illustrate the software system of the first electronic device. Figure 4 , Figure 4 It is a block diagram of a software system of a first electronic device provided in an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role 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 Android runtime (Android runtime) and the system layer, and the kernel layer.
[0145] The application layer can include a series of application packages. Figure 4As shown, the application package may include a conversation application, etc., for conversation communication. Of course, it may also include but is not limited to camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications (not shown in the figure), which is not limited in the embodiment of the present application.
[0146] As an example of the present application, the application layer also includes a first system interface notification service framework. The first system interface notification service framework is used to display session notifications, and is also used to compress pictures in session notifications before synchronizing the session notifications with pictures to other electronic devices. In some examples, the first system interface notification service framework can also be called the systemUI notification service framework.
[0147] As an example of the present application, the first system interface notification service framework may include a first notification service module, a first notification synchronization processing module, and a first notification display module. The first notification service module may be used to sort and filter session notifications, the first notification synchronization processing module may be used to compress images in session notifications, and the first notification display module may be used to display session notifications.
[0148] The application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer also includes some predefined functions. As an example of the present application, the application framework layer includes a first notification management service framework, a first application continuation framework, and a decision engine.
[0149] The first notification management service framework is used to manage and process all notifications in the first electronic device, for example, to sort, filter, and process conversation notifications sent by conversation applications. The first notification management service framework can be understood as a notification management center in the first electronic device, and the processing flow of all notifications needs to be managed by it. For example, when a notification sent by an application is received, if the application is set to a do not disturb mode, the first notification management service framework will filter out the notification.
[0150] The first application connection framework is used to encapsulate the data to be sent to the second electronic device according to the transmission protocol defined at the bottom layer, so that the encapsulated data can meet the transmission requirements of the system layer.
[0151] The decision engine is used to sense the device status, for example, it can sense whether there is a second electronic device that can synchronize notifications with the first electronic device, and if so, it can be used to determine the address information of the second electronic device.
[0152] Furthermore, if Figure 4 As shown, the application framework layer may also include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, and the like. The content provider is used to store and obtain data and make these data accessible to applications. These data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, and the like. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like. The view system may be used to construct the display interface of the application, and the display interface may be composed of one or more views, such as a view for displaying a text message notification icon, a view for displaying text, and a view for displaying pictures. The phone manager is used to provide communication functions of the first electronic device, such as management of call status (including connecting, hanging up, and the like). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background. The notification manager can also be a notification that appears on the screen in the form of a dialog window, such as a text message prompt in the status bar, a reminder sound, a vibration of the first electronic device, a flashing indicator light, etc.
[0153] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0154] The system layer may include a data transmission module for sending data from the first electronic device to other electronic devices, and receiving data sent from other electronic devices to the first electronic device, and passing the data to the upper layer for processing.
[0155] The system layer can include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.
[0156] 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.
[0157] The following is an illustrative description of the workflow of the software and hardware of the first electronic device in conjunction with capturing a photo scene.
[0158] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the raw input event. For example, if the touch operation is a single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer, starts the camera application, and then calls the kernel layer to start the camera driver to capture static images or videos through the camera 193.
[0159] In an example of the present application, the second electronic device and the first electronic device may have the same software system architecture. As an example but not a limitation, the second electronic device includes a second system interface notification service framework, a second notification management service framework, and a second application continuation framework. The second system interface notification service framework is located in the application layer of the software system of the second electronic device, and the second notification management service framework and the second application continuation framework are located in the application program framework layer of the software system of the second electronic device.
[0160] The second application continuation framework can be used to unpack data sent from other electronic devices to the second electronic device according to the underlying transmission protocol, and send the unpacked data to the corresponding module for processing. Exemplarily, the second application continuation framework can be used to unpack data sent from the first electronic device according to the underlying transmission protocol, and send the unpacked data related to the session notification to the second system interface notification service framework for processing.
[0161] In one example of the present application, the second system interface notification service framework can be used to reconstruct the session notification based on the data related to the session notification and display the reconstructed session notification. Furthermore, when the session notification includes a picture, it is also used to restore the picture and display the session notification with the picture.
[0162] In one example, the second system interface notification service framework includes a second notification service module, a second notification synchronization processing module, and a second notification display module. The second notification synchronization processing module can be used to reconstruct the conversation notification with the picture; the second notification service module can be used to sort, filter, etc. the conversation notification; the second notification display module can be used to display the conversation notification.
[0163] The second notification management service framework is used to manage and process notifications according to preset policies, such as filtering, sorting, etc. The second notification management service framework is a notification management center of the second electronic device. In one example, when a notification sent by an application is received, if the application is set to a do not disturb mode, the second notification management service framework filters out the notification.
[0164] As an example of the present application, the system layer in the software system of the second electronic device may also include a data transmission module for receiving data sent from other electronic devices and transmitting it to the upper layer for processing, and also for sending data to other electronic devices.
[0165] Based on the above embodiments, the method provided by the embodiments of the present application is described in detail below. Figure 5 , Figure 5 is a flow chart of a method for prompting a session notification according to an exemplary embodiment. The method is implemented by interaction between a first electronic device and a second electronic device. The first electronic device performs the following steps: Figure 4 The multiple modules shown interact with the second electronic device, and the second electronic device also interacts with the first electronic device through the multiple modules inside. Next, take the first electronic device as a mobile phone and the second electronic device as a tablet computer as an example to illustrate that the method may include some or all of the following contents:
[0166] Step 501: The conversation application receives a conversation message, which includes a picture.
[0167] In one example, a conversation application for conversation is installed in a mobile phone. It is not difficult to understand that in the process of communicating with other electronic devices through the conversation application, the conversation application can send conversation messages to other electronic devices, and can also receive conversation messages sent from other electronic devices. In one possible case, the conversation message includes a picture.
[0168] Step 502: The conversation application generates a conversation notification related to the conversation message.
[0169] In one example, the conversation application stores the picture locally on the mobile phone, for example, in a first designated storage path, which can be set according to actual needs. Then, the address information of the picture is generated according to the storage path of the picture. Exemplarily, the address information of the picture is a uniform resource identifier (Uri) 1. Then, the conversation application constructs a conversation notification related to the conversation message based on the address information of the picture, that is, the conversation notification includes the address information of the picture.
[0170] Step 503: The conversation application sends a conversation notification to the first notification management service framework.
[0171] Since the first notification management service framework is used to manage and control all notifications in the mobile phone, after the conversation application generates a conversation notification, the conversation notification is sent to the first notification management service framework.
[0172] Step 504: The first notification management service framework sends a session notification to the first notification service module.
[0173] The first notification management service framework may send the session notification to the first notification service module by calling the run() function.
[0174] In one example, the first notification management service framework checks the session notification to determine whether the session notification meets the display conditions. If it is determined that the session notification meets the display conditions, the session notification is sent to the first system interface notification service framework, and the first system interface notification service framework receives the session notification through the first notification service module.
[0175] The display condition can be set according to actual needs. As an example but not limitation, the display condition includes belonging to a whitelist and / or the notification format meets a preset notification format.
[0176] In one example, if the first notification management service framework receives multiple notifications (including session notifications), the multiple notifications may be sorted according to the type of each notification to determine the display priority of each session notification. The display priority is used to determine the display order of the corresponding session notification. The higher the display priority, the closer it is displayed in the notification bar. The types of notifications include but are not limited to resident notifications, banner notifications, etc.
[0177] Furthermore, in the case where multiple notifications include multiple session notifications, if the multiple session notifications all meet the display conditions, the first notification management service framework, in addition to sending each of the multiple session notifications to the first system interface notification service framework, also sends the sorting results of the multiple session notifications to the first system interface notification service framework.
[0178] Step 505: The first notification service module sends a session notification to the first notification display module.
[0179] That is, after receiving the session notification, the first notification service module sends the session notification to the first notification display module so that the session notification is displayed in the mobile phone. Accordingly, the first notification display module performs the following step 506.
[0180] In one example, if the first notification service module receives multiple session notifications and a sorting result, the multiple session notifications may be grouped based on the sorting result, and the grouping result and the multiple session notifications may be sent to the first notification display module.
[0181] Step 506: The first notification display module displays the session notification.
[0182] In implementation, the first notification display module obtains the address information of the image from the conversation notification, reads the image from the corresponding storage path according to the address information of the image, and then displays the conversation notification based on the image and other notification data in the conversation notification. Figure 3 As shown in 1, the first notification display module displays the conversation notification in the notification bar of the mobile phone.
[0183] In one example, if the first notification display module receives multiple conversation notifications and grouping results, the multiple conversation notifications are displayed according to the grouping results, wherein conversation notifications in the same group are displayed together.
[0184] Step 507: The first notification service module sends a device query request to the decision engine.
[0185] The device query request is used to request to query the address information of the electronic device that is being synchronized with the mobile phone for notification.
[0186] After the first notification management service framework sends the session notification to the first system interface notification service framework, the first system interface notification service framework can receive the session notification through the first notification service module. In order to know which electronic device to synchronize the session notification to, the first notification service module can send a device query request to the decision engine.
[0187] It should be noted that there is no strict execution order between step 505 and step 507 , and in one example, they can be executed in parallel.
[0188] Step 508: the decision engine feeds back a device query response to the first notification service module, where the device query response carries device address information.
[0189] As mentioned above, the decision engine can sense the device status, that is, it can know which electronic device or electronic devices can currently synchronize notifications with the mobile phone. In one example, the decision engine can store the device address information of the electronic devices that can synchronize notifications with the mobile phone. In this way, when the decision engine receives a device query request, it can generate a device query response based on the stored device address information and feedback the device query response to the first notification service module.
[0190] In another example, the decision engine may not store the device address information of the electronic device that can synchronize notifications with the mobile phone, but instead, upon receiving a device query request, query the device address information of the electronic device that can synchronize notifications with the mobile phone in real time, and generate a device query response based on the queried device address information.
[0191] As an example of the present application, an electronic device capable of synchronizing notifications with a mobile phone may refer to a device that is connected to the same local area network as the mobile phone and logged into the same account (such as a Honor account). In another example, an electronic device capable of synchronizing notifications with a mobile phone may refer to a device that is connected to the same local area network as the mobile phone, that is, it may not be logged into the same account.
[0192] It should be noted that the embodiment of the present application is described by taking the existence of an electronic device that can synchronize notifications with a mobile phone as an example, that is, the device query response carries the device address information. In another embodiment, if there is no electronic device that can synchronize notifications with a mobile phone, the mobile phone determines that notification synchronization is not required. At this time, only the session notification can be displayed on the mobile phone without performing the following synchronization operation.
[0193] Step 509: The first notification service module determines that the conversation notification belongs to the picture notification type.
[0194] The picture notification type refers to a conversation notification related to a conversation message with a picture.
[0195] In an example, if the session notification carries the address information of the picture, it means that the session message related to the session notification carries the picture. In this case, it is determined that the session notification belongs to the picture notification type.
[0196] Step 510: The first notification service module sends a session notification and device address information to the first notification synchronization processing module.
[0197] In the case where the session notification is of the image notification type, in order to process the image, the first notification service module sends the session notification and the device address information to the first notification synchronization processing module. Accordingly, the first notification synchronization processing module enters the following step 511.
[0198] As an example of the present application, the first notification service module may also maintain a notification queue. After receiving a session notification, the session notification may be stored in the notification queue to facilitate subsequent status updates and other operations on the session notification according to the maintained notification queue.
[0199] Step 511: The first notification synchronization processing module compresses the image based on the session notification to obtain compressed image data.
[0200] In order to improve the subsequent transmission efficiency, the first notification synchronization processing module compresses the image. As an example of this application, please refer to Figure 6 The specific implementation of step 511 may include the following sub-steps:
[0201] A1: The first notification synchronization processing module reads the address information of the picture from the session notification.
[0202] In order to process the image, the first notification synchronization processing module obtains the address information of the image from the session notification, that is, reads Uri1 from the session notification.
[0203] A2: The first notification synchronization processing module obtains the picture based on the address information of the picture.
[0204] That is, the first notification synchronization processing module reads the picture from the corresponding storage path according to the address information of the picture. For example, according to Uri1, the picture is read from the first specified storage path. In one example, the first notification synchronization processing module reads the picture in bitmap format.
[0205] A3: The first notification synchronization processing module determines whether the size of the image is greater than or equal to the size threshold.
[0206] The size threshold can be set according to actual needs. In one example, the size threshold can be 160dp.
[0207] In one example, the size threshold may be determined according to the size of the image display area of the tablet computer and may be pre-stored in the mobile phone.
[0208] In order to enable the tablet computer to reasonably display the picture in the picture display area, the mobile phone can adjust the size of the picture. To this end, the mobile phone determines whether the size of the picture is greater than or equal to the size threshold. If the size of the picture is greater than or equal to the size threshold, it means that the picture display area of the tablet computer is not large enough to display the picture, which may cause the picture to be displayed unreasonably in the picture display area of the tablet computer. Therefore, the following step A4 is entered. Otherwise, if the size of the picture is less than the size threshold, it means that the picture display area is large enough to display the picture. At this time, the following step A5 is entered.
[0209] A4: First, notify the synchronization processing module to perform size compression on the image.
[0210] For the purpose of description and understanding, the image after the size compression process is called the first compressed image.
[0211] It should be noted that step A3 and step A4 are optional, that is, the first notification synchronization processing module to perform size compression processing on the image is an optional implementation method. In another embodiment, size compression processing may not be performed, and the tablet computer can adjust the size itself. The embodiment of the present application does not limit this.
[0212] A5: The first notification synchronization processing module compresses the image using an image data compression algorithm to obtain a second compressed image.
[0213] The image data compression algorithm can be set according to actual needs. As an example but not limitation, the image data compression algorithm can be a webp compression algorithm.
[0214] In order to reduce the amount of data transmission, the first notification synchronization processing module may compress the image using an image data compression algorithm, such as using a webp compression algorithm.
[0215] A6: The first notification synchronization processing module converts the second compressed image into bytes to obtain byte data of the image.
[0216] A7: The first notification synchronization processing module encodes the byte data of the image to obtain a character string corresponding to the image.
[0217] In one example, the first notification synchronization processing module encodes the byte data in Base64 encoding mode, and encodes the byte data of the image into a string form.
[0218] A8: The first notification synchronization processing module converts the string corresponding to the image into JSON format to obtain compressed image data.
[0219] As an example of the present application, the json format can be used for data transmission, so the first notification synchronization processing module converts the string obtained after encoding into the json format. It is worth mentioning that the use of the json format for data transmission can improve the transmission efficiency.
[0220] It should be noted that the above steps A3 to A8 are an optional implementation method for compressing the images in the conversation notification, but the specific implementation process of compressing the images is not limited.
[0221] Step 512: The first notification synchronization processing module sends the image compression data, notification associated data and device address information to the first application continuation framework.
[0222] The notification-related data is other notification data except the address information of the picture in the conversation notification related to the conversation message.
[0223] In order to send the session notification to the tablet computer, the first notification synchronization processing module calls the data transmission interface provided by the first application continuation framework to send the session notification (including image compression data and notification associated data) and device address information to the first application continuation framework.
[0224] In one example, the first notification synchronization data module packages the image compression data and the notification associated data to obtain a data packet including the image compression data and the notification associated data, and then the first notification synchronization data module sends the data packet and device address information to the first application continuation framework.
[0225] Step 513: The first application connection framework encapsulates the image compression data and the notification associated data to obtain encapsulated data.
[0226] As an example of the present application, the first application connection framework encapsulates the image compression data and notification-related data according to the encapsulation format of the specified transmission protocol used by the underlying transmission data, so that the encapsulated data obtained after encapsulation can meet the underlying transmission requirements.
[0227] In one example, when the first notification synchronization data module packages the image compression data and the notification associated data, the first application continuation framework encapsulates the data packet according to the encapsulation format of the specified transmission protocol adopted by the underlying transmission data to obtain encapsulated data.
[0228] The specified transmission protocol may be set according to actual needs. For example, the specified transmission protocol may be a transmission control protocol (TCP) or the like.
[0229] Step 514: The first application connection framework sends the packaged data to the tablet computer based on the device address information.
[0230] In one example, the first application connection framework sends the device address information and the encapsulated data to an underlying data transmission module for transmitting data, so that the data transmission module sends the encapsulated data to the corresponding tablet computer based on the device address information.
[0231] At this point, the mobile phone has successfully synchronized the session notification to the tablet computer. After receiving the session notification, the tablet computer needs to display the session notification. To this end, the tablet computer can perform the following operations.
[0232] Step 515: The second application continuation framework receives the encapsulated data.
[0233] In one example, the tablet computer may receive the encapsulated data sent by the mobile phone through an underlying data transmission module, and the data transmission module of the tablet computer may send the encapsulated data to the second application connection framework.
[0234] Step 516: The second application connection framework decapsulates the encapsulated data according to the specified transmission protocol to obtain the image compression data and notification-related data.
[0235] Since the encapsulated data is encapsulated by the first application connection framework according to the encapsulation format of the specified transmission protocol, the second application connection framework unpacks the encapsulated data according to the specified transmission protocol, thereby obtaining the image compression data and notification-related data included therein. It is not difficult to understand that the image compression data and notification-related data are the contents included in the session notification.
[0236] According to the foregoing description, the image compression data and notification-related data may exist in the form of data packets.
[0237] Step 517: The second application continuation framework sends the image compression data and notification associated data to the second notification synchronization processing module.
[0238] The second application connection framework sends the image compression data and notification associated data to the second system interface notification service framework so that the second system interface notification service framework processes and displays the data. Accordingly, the second system interface notification service framework receives the image compression data and notification associated data through the second notification synchronization processing module.
[0239] Step 518: The second notification synchronization processing module constructs a session notification based on the image compression data and the notification associated data.
[0240] As an example of this application, please refer to Figure 7 The specific implementation of step 518 may include the following sub-steps B1 to B4:
[0241] B1: The second notification synchronization processing module performs de-encoding on the compressed image data to obtain byte data of the image.
[0242] In an example, since the first notification synchronization processing module uses Base64 encoding for encoding processing, the second notification synchronization processing module can use Base64 inverse encoding to perform inverse encoding processing on the image compression data to obtain byte data corresponding to the image.
[0243] B2: The second notification synchronization processing module generates a picture based on the byte data of the picture.
[0244] In one example, the second notification synchronization processing module generates a picture in webp format based on the byte data of the picture.
[0245] B3: Second, notify the synchronization processing module to store the picture and generate address information of the picture according to the storage path.
[0246] The second notification synchronization processing module stores the generated picture locally on the tablet computer. Exemplarily, the second notification synchronization processing module can store the generated picture in a second designated storage path of the tablet computer, and the second designated storage path can be set according to actual needs. Afterwards, the second notification synchronization processing module generates the address information of the picture according to the storage path, for example, the address information of the picture in the tablet computer is Uri2.
[0247] B4: The second notification synchronization processing module constructs a conversation notification based on the address information of the picture in the tablet computer and the notification associated data.
[0248] It is not difficult to understand that the session notification constructed at this time includes the address information of the picture in the tablet computer and the notification related data.
[0249] It is worth mentioning that when the second notification synchronization processing module constructs the session notification again, it does not carry the picture directly in the session notification. Instead, after restoring the picture, it first stores the picture locally on the tablet computer, and then generates the address information of the picture according to the storage path, and carries the address information of the picture in the session notification. This can improve the efficiency of transmitting session notifications between subsequent modules.
[0250] Step 519: The second notification synchronization processing module sends a session notification to the second notification management service framework.
[0251] Since the second notification management service framework is used to uniformly manage various notifications in the tablet computer, in order not to change the original notification flow framework, after the second notification synchronization processing module constructs the session notification, the session notification is sent to the second notification management service framework for processing.
[0252] Step 520: The second notification management service framework sends a session notification to the second notification service module.
[0253] In one example, when the second notification management service framework receives multiple session notifications, it can sort each of the multiple session notifications, etc. Then, send the session notifications and the sorting results to the second notification service module.
[0254] Step 521: The second notification service module sends a session notification to the second notification display module.
[0255] In order to display the session notification, the second notification service module sends the session notification to the second notification display module.
[0256] In one example, if the second notification management service framework sends multiple session notifications and sorting results to the second notification service module, the second notification service module can group the multiple session notifications according to the sorting results, and send the grouping results and the multiple session notifications to the second notification display module.
[0257] Furthermore, the second notification service module may add the session notification to a notification queue maintained by itself to facilitate subsequent status updates and the like.
[0258] Step 522: The second notification display module displays the session notification.
[0259] In one example, the second notification display module obtains the address information of the picture from the session notification, and reads the picture from the corresponding storage path (the second specified storage path) according to the address information of the picture. Afterwards, the second notification display module displays the session notification based on the picture and the notification associated data. Exemplarily, the second notification display module displays the session notification in the notification bar of the tablet computer, such as Figure 3 As shown in 3.
[0260] In one example, if the second notification service module sends multiple session notifications and grouping results, the second notification display module displays the multiple session notifications according to the grouping results, wherein session notifications of the same group may be displayed together.
[0261] In an embodiment of the present application, when a conversation message containing a picture is received, the picture is first compressed before the conversation notification related to the conversation message is synchronized to the tablet computer, and then the compressed conversation notification is sent to the tablet computer, thereby reducing the resources required for transmission and improving transmission efficiency.
[0262] After the mobile phone and the tablet synchronize the conversation notification, when either electronic device detects the deletion operation of the displayed conversation notification, it can instruct the other electronic device to perform the same operation. The following takes the operation of the tablet receiving the user's deletion conversation notification as an example. Figure 8 , Figure 8 The present invention is a flowchart of a method for prompting a session notification according to an exemplary embodiment based on the above embodiment. The method may include part or all of the following contents:
[0263] Step 801: The second notification display module receives a deletion operation.
[0264] In one example, when a user wants to delete a displayed conversation notification from a tablet computer, the user can open the notification bar of the tablet computer and then perform a deletion operation on the conversation notification in the notification bar. For example, refer to Fig. 9 , the deletion operation may be, but is not limited to, swiping left on the conversation notification.
[0265] Step 802: The second notification display module deletes the session notification.
[0266] As an example of the present application, the second notification display module redetermines the layout of the remaining notifications in the notification bar of the tablet computer, and refreshes the notification bar of the tablet computer according to the redetermined layout, and the session notification is no longer displayed in the refreshed notification bar.
[0267] Step 803: In response to the deletion operation, the second notification display module sends a deletion instruction to the second notification management service framework.
[0268] The delete instruction is used to instruct to delete the session notification. In one example, the delete instruction may carry a notification identifier of the session notification, and the notification identifier is used to uniquely identify the session notification so that subsequent related modules can know which notification needs to be deleted.
[0269] Since the second notification management service framework is used to manage and control various notifications in the tablet computer, when it is necessary to delete the session notification, the second notification display module sends a deletion instruction to the second notification management service framework.
[0270] It should be noted that there is no strict execution order between step 802 and step 803 , and in one example, they can be executed in parallel.
[0271] Step 804: The second notification management service framework sends a deletion instruction to the second notification synchronization processing module, and sends a deletion instruction to the second notification service module.
[0272] In one example, the removal instruction is noNotificationRemoved.
[0273] After the second notification service module receives the deletion instruction, it proceeds to the operation of the following step 805. In addition, after the second notification synchronization processing module receives the deletion instruction, it proceeds to the operation of the following step 806.
[0274] It should be noted that the operation of the second notification service module after receiving the deletion instruction and the operation of the second notification synchronization processing module after receiving the deletion instruction can be executed in parallel, that is, there is no strict execution order between the operations of the two branches.
[0275] Step 805: The second notification service module deletes the session notification from the notification queue.
[0276] According to the foregoing record, the second notification service module maintains a notification queue including session notifications. When a delete instruction for a session notification is received, it indicates that the session notification does not need to be displayed any more, so the second notification service module can delete the session notification from the notification queue.
[0277] Step 806: Second notify the synchronization processing module to delete the locally stored pictures.
[0278] Since the tablet computer no longer needs to display the session notification, it is meaningless to locally store pictures related to the session notification. Therefore, in order to save storage space, the second notification synchronization processing module deletes the stored pictures locally, such as deleting the pictures from the second designated storage path.
[0279] Step 807: The second notification synchronization processing module sends a deletion instruction to the second application continuation framework.
[0280] In order to synchronize the session notification prompt state on the mobile phone with that on the tablet computer, the second notification synchronization processing module sends a deletion instruction to the second application continuation framework, so as to synchronize the deletion instruction to the mobile phone through the second application continuation framework.
[0281] It should be noted that there is no strict execution order between step 806 and step 807 , and in one example, they can be executed in parallel.
[0282] Step 808: The second application connection framework synchronizes the deletion instruction to the mobile phone.
[0283] As an example of the present application, the second application continuation framework can encapsulate the deletion instruction according to the encapsulation format of the underlying specified transmission protocol, and then pass the encapsulated deletion instruction to the underlying data transmission module of the tablet computer, so as to send the encapsulated deletion instruction to the mobile phone through the data transmission module.
[0284] For mobile phones, you can respond to the delete command in the following ways:
[0285] Step 809: The first application connection framework receives a deletion instruction sent from the tablet computer.
[0286] In implementation, the mobile phone can receive the deletion instruction sent by the tablet computer through the underlying data transmission module, and then the data transmission module sends the deletion instruction to the first application continuation framework.
[0287] Step 810: The first application continuation framework sends a deletion instruction to the first notification management service framework.
[0288] In one example, the deletion instruction is encapsulated by the second application continuation framework according to the specified transmission protocol format. At this time, after receiving the encapsulated deletion instruction, the first application continuation framework unpacks it according to the encapsulation format of the specified transmission protocol to obtain the deletion instruction, and then sends the deletion instruction to the first notification management service framework.
[0289] Step 811: The first notification management service framework sends a deletion instruction to the first notification service module.
[0290] Step 812: The first notification service module deletes the session notification from the notification queue.
[0291] According to the foregoing records, the first notification service module can maintain a notification queue, which includes session notifications. When a delete instruction for a session notification is received, it indicates that the session notification does not need to be displayed anymore, so the first notification service module can delete the session notification from the notification queue.
[0292] Step 813: The first notification service module sends a refresh notification to the first notification display module.
[0293] It should be noted that there is no strict execution order between step 812 and step 813.
[0294] Step 814: The first notification display module deletes the session notification.
[0295] As an example of the present application, the first notification display module redetermines the layout of the remaining notifications in the notification bar of the mobile phone, and refreshes the notification bar of the mobile phone according to the redetermined layout, and the conversation notification is no longer displayed in the refreshed notification bar.
[0296] For example, please refer to Fig. 9 After the user swipes left on the conversation notification on the tablet, the conversation notification is no longer displayed on the tablet, and the conversation notification is no longer displayed on the mobile phone.
[0297] It should be noted that the above is described using an example of a user deleting a session notification on a tablet computer. In another embodiment, when a user deletes a session notification on a mobile phone, the mobile phone can follow a similar process to cause the tablet computer to also delete the session notification synchronously, which is not repeated here.
[0298] In an embodiment of the present application, when the tablet computer receives a deletion operation on a session notification, in addition to deleting the displayed session notification, a deletion instruction is also sent to the mobile phone so that the mobile phone also deletes the session notification synchronously, thereby keeping the notification prompt status in the mobile phone and the tablet computer synchronized.
[0299] In another example, if a mobile phone or tablet receives a message reply operation, the display status of the conversation notification on both can also be kept synchronized. For example, please refer to Fig.10 When the user replies to the message in the conversation notification of the mobile phone, the display status of the conversation message of the mobile phone and the tablet computer changes. In practice, this is equivalent to synchronizing a conversation notification without pictures, that is, it does not include the processing flow of pictures. In this case, after receiving the reply conversation notification, the first notification service module in the mobile phone directly sends it to the first application continuation framework, so as to send it to the tablet computer through the first application continuation framework. Correspondingly, after receiving the unsealed data sent by the second application continuation framework, the second notification synchronization processing module in the tablet computer sends it to the second notification service module, and the second notification service module notifies the second notification display module to update and display the conversation notification.
[0300] Please refer to Fig.11 , Fig.11 A method for prompting a session notification according to an exemplary embodiment is shown. The method may be executed by a first electronic device. The method may include part or all of the following contents:
[0301] 1101: receiving a conversation message, where the conversation message includes a picture.
[0302] For its specific implementation, please refer to Figure 5 Step 501 in the illustrated embodiment.
[0303] 1102: compress the image to obtain compressed image data.
[0304] As an example of the present application, the specific implementation of 1102 may include: when the size of the picture is greater than or equal to the size threshold, compressing the size of the picture to the size threshold to obtain a first compressed picture. Compressing the first compressed picture by an image data compression algorithm to obtain a second compressed picture. Converting the second compressed picture into bytes to obtain byte data of the picture. Encoding the byte data of the picture to obtain a string corresponding to the picture, converting the string corresponding to the picture into a json format to obtain compressed picture data.
[0305] For its specific implementation, please refer to Figure 5 Steps 503 to 511 in the illustrated embodiment.
[0306] 1103: Encapsulate the image compression data and notification-related data to obtain encapsulated data, where the notification-related data is other notification data in the session notification related to the session message except for the address information of the image.
[0307] For its specific implementation, please refer to Figure 5 Steps 512 to 513 in the illustrated embodiment.
[0308] 1104: Send the packaged data to the second electronic device, so that the second electronic device displays the session notification.
[0309] 1105: Display session notification.
[0310] As an example of the present application, after displaying the session notification, the method further includes: receiving a deletion instruction sent from the second electronic device, the deletion instruction being sent by the second electronic device after detecting a deletion operation on the notification session; and deleting the displayed session notification in response to the deletion instruction. For specific implementation, see Figure 8 The embodiment shown.
[0311] In an embodiment of the present application, when a conversation message containing a picture is received, the picture is first compressed before the conversation notification related to the conversation message is synchronized to the second electronic device, and then the compressed conversation notification is sent to the second electronic device, thereby reducing the resources required for transmission and improving transmission efficiency.
[0312] Please refer to Fig.12 , Fig.12 A method for prompting a session notification according to another exemplary embodiment is shown. The method may be executed by a second electronic device. The method may include part or all of the following contents:
[0313] 1201: receiving encapsulated data sent by a first electronic device, wherein the encapsulated data includes image compression data and notification associated data, wherein the image compression data is data obtained by compressing an image in a session message, and the notification associated data is other notification data in a session notification related to the session message except for address information of the image.
[0314] 1202: Construct a session notification based on the encapsulated data.
[0315] As an example of the present application, the specific implementation of 1202 may include: performing reverse encoding processing on the compressed image data in the encapsulated data to obtain a string corresponding to the image. Based on the string corresponding to the image, generating the image. Storing the image in the second electronic device, and determining the address information of the image in the second electronic device according to the stored path. Constructing a session notification based on the address information of the image in the second electronic device and the notification association data.
[0316] For its specific implementation, please refer to Figure 5 Steps 517 to 518 in the illustrated embodiment.
[0317] 1203: Display session notification.
[0318] Furthermore, after displaying the session notification, the method further includes receiving a deletion operation for the session notification. A deletion instruction corresponding to the deletion operation is generated, and the deletion instruction is sent to the first electronic device to instruct the first electronic device to delete the session notification. For a specific implementation, see Figure 8 The embodiment shown.
[0319] In an embodiment of the present application, since the encapsulated data includes image compression data and notification associated data, the second electronic device can reconstruct the session notification based on the encapsulated data and display the session notification, thereby improving data transmission efficiency while successfully synchronizing the session notification.
[0320] Fig.13 1 is a schematic diagram of the structure of a session notification prompt device provided in an embodiment of the present application. The device can be implemented by software, hardware or a combination of both to become part or all of an electronic device, and the electronic device can be a first electronic device. Fig.13 , the device comprises:
[0321] The receiving module 1310 is used to receive a conversation message, wherein the conversation message includes a picture;
[0322] The first system interface notification service framework 1320 is used to compress the image to obtain compressed image data;
[0323] The first application connection framework 1330 is used to encapsulate the image compression data and notification-related data to obtain encapsulated data, where the notification-related data is other notification data in the session notification related to the session message except the address information of the image;
[0324] The first application connection framework 1330 is used to send the packaged data to the second electronic device so that the second electronic device displays the session notification;
[0325] The first system interface notification service framework 1320 is used to display the session notification.
[0326] As an example of the present application, the receiving module 1310 may be the above-mentioned conversation application.
[0327] As an example of the present application, the first system interface notification service framework 1320 is used to:
[0328] When the size of the picture is greater than or equal to the size threshold, compressing the size of the picture to the size threshold to obtain a first compressed picture;
[0329] Compressing the first compressed image by using an image data compression algorithm to obtain a second compressed image;
[0330] Convert the second compressed picture into bytes to obtain byte data of the picture;
[0331] Encoding the byte data of the picture to obtain a character string corresponding to the picture;
[0332] Convert the string corresponding to the image into json format to obtain the compressed data of the image.
[0333] As an example of the present application, the first electronic device further includes a first notification management service framework 1340;
[0334] The receiving module 1310 is used to send the session notification to the first notification management service framework, where the session notification is generated by the receiving module after receiving the session message;
[0335] The first notification management service framework 1340 is used to send the session notification to the first system interface notification service framework 1320;
[0336] The first system interface notification service framework 1320 is used to compress the image to obtain the image compression data.
[0337] As an example of the present application, the first system interface notification service framework 1320 includes a first notification service module and a first notification synchronization processing module, and the first system interface notification service framework compresses the image to obtain the image compression data, including:
[0338] The first notification service module sends the session notification to the first notification synchronization processing module;
[0339] The first notification synchronization processing module reads the picture from the first electronic device based on the address information;
[0340] The first notification synchronization processing module compresses the image to obtain the image compression data.
[0341] As an example of the present application, the first application continuation framework 1330 is used to encapsulate the image compression data and the notification associated data to obtain encapsulated data, including:
[0342] The first system interface notification service framework 1320 is used to send the image compression data and the notification associated data to the first application continuation framework;
[0343] The first application connection framework 1330 is used to encapsulate the image compression data and the notification-related data according to the encapsulation format of the specified transmission protocol to obtain the encapsulated data.
[0344] As an example of this application;
[0345] The first application continuation framework 1330 is further configured to receive a deletion instruction sent from the second electronic device, wherein the deletion instruction is sent by the second electronic device after detecting a deletion operation on the notification session;
[0346] The first application continuation framework 1330 is further used to send a deletion instruction to the first notification management service framework;
[0347] The first notification management service framework 1340 is further used to send the deletion instruction to the first system interface notification service framework 1320;
[0348] The first system interface notification service framework 1320 is further configured to delete the displayed session notification in response to the deletion instruction.
[0349] In an embodiment of the present application, when a conversation message containing a picture is received, the picture is first compressed before the conversation notification related to the conversation message is synchronized to the second electronic device, and then the compressed conversation notification is sent to the second electronic device, thereby reducing the resources required for transmission and improving transmission efficiency.
[0350] Fig.14 1 is a schematic diagram of a structure of a conversation notification prompting device provided by an embodiment of the present application. The device can be implemented by software, hardware or a combination of both to become part or all of an electronic device, and the electronic device can be a second electronic device. Fig.14 , the device comprises:
[0351] The second application connection framework 1410 is used to receive encapsulated data sent by the first electronic device, wherein the encapsulated data includes image compression data and notification-related data, wherein the image compression data is data obtained by compressing the image in the session message received by the first electronic device, and the notification-related data is other notification data in the session notification related to the session message except the address information of the image;
[0352] The second system interface notification service framework 1420 is used to construct the session notification based on the encapsulated data;
[0353] The second system interface notification service framework 1420 is used to display the session notification.
[0354] As an example of the present application, the second system interface notification service framework 1420 is used to:
[0355] Performing a reverse encoding process on the compressed image data in the encapsulated data to obtain a character string corresponding to the image;
[0356] Generate the picture based on the character string corresponding to the picture;
[0357] storing the picture in the second electronic device, and determining address information of the picture in the second electronic device according to the stored path;
[0358] The conversation notification is constructed based on the address information of the picture in the second electronic device and the notification association data.
[0359] As an example of this application;
[0360] The second application connection framework 1410 is used to receive the encapsulated data sent by the first electronic device;
[0361] The second application connection framework 1410 is used to parse the encapsulated data according to the specified transmission protocol to obtain the image compression data and the notification associated data;
[0362] The second application connection framework 1410 is used to send the image compression data and the notification associated data to the second system interface notification service framework 1420;
[0363] The second system interface notification service framework 1420 is used to construct the session notification based on the image compression data and the notification associated data.
[0364] As an example of the present application, the second electronic device further includes a second notification management service framework 1430:
[0365] The second system interface notification service framework 1420 is used to receive a deletion operation on the session notification;
[0366] The second system interface notification service framework 1420 is used to generate a deletion instruction corresponding to the deletion operation;
[0367] The second system interface notification service framework 1420 is used to send the deletion instruction to the second notification management service framework 1430;
[0368] The second notification management service framework 1430 is used to send the deletion instruction to the second system interface notification service framework 1420;
[0369] The second system interface notification service framework 1420 is used to send the deletion instruction to the first electronic device, so as to instruct the first electronic device to delete the session notification.
[0370] In an embodiment of the present application, since the encapsulated data includes image compression data and notification associated data, the second electronic device can reconstruct the session notification based on the encapsulated data and display the session notification, thereby improving data transmission efficiency while successfully synchronizing the session notification.
[0371] Next, the structure of an electronic device involved in an embodiment of the present application is introduced. The electronic device may be the first electronic device mentioned above or the second electronic device mentioned above.
[0372] Please refer to Fig.15 , Fig.151 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, an ISP 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0373] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0374] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0375] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0376] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0377] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0378] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0379] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193 and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0380] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0381] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0382] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is an integer greater than 1.
[0383] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0384] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created by the electronic device during use (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0385] The electronic device can implement audio functions, such as music playing and recording, through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D and the application processor.
[0386] It should be noted that: the conversation notification prompt device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when performing the conversation notification prompt. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0387] The functional units and modules in the above embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the above integrated units may be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0388] The conversation notification prompting device and the conversation notification prompting method embodiments provided in the above embodiments belong to the same concept. The specific working process and technical effects brought about by the units and modules in the above embodiments can be found in the method embodiment part and will not be repeated here.
[0389] 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)).
[0390] 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 session notification, 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 conversation message, wherein the conversation message includes a picture; Compressing the image to obtain compressed image data; Encapsulating the image compression data and notification-related data to obtain encapsulated data, wherein the notification-related data is other notification data in the session notification related to the session message except for the address information of the image; sending the encapsulated data to the second electronic device so that the second electronic device displays the session notification; displaying the session notification; The displayed conversation notification includes the picture, the other notification data and a reply option, wherein the reply option is used for the user to reply to a message in the conversation notification after being triggered; The compressing the image to obtain compressed image data includes: When the size of the picture is greater than or equal to the size threshold, compressing the size of the picture to the size threshold to obtain a first compressed picture; Compressing the first compressed image by using an image data compression algorithm to obtain a second compressed image; Convert the second compressed picture into bytes to obtain byte data of the picture; Encoding the byte data of the picture to obtain a character string corresponding to the picture; Convert the string corresponding to the image into json format to obtain the compressed data of the image.
2. The method according to claim 1, It is characterized in that The first electronic device includes a conversation application, a first notification management service framework, and a first system interface notification service framework; The compressing the image to obtain compressed image data includes: The conversation application sends the conversation notification to the first notification management service framework, where the conversation notification is generated by the conversation application after receiving the conversation message; The first notification management service framework sends the session notification to the first system interface notification service framework; The first system interface notifies the service framework to compress the image to obtain the image compression data.
3. The method according to claim 2, It is characterized in that The first system interface notification service framework includes a first notification service module and a first notification synchronization processing module. The first system interface notification service framework compresses the image to obtain the compressed image data, including: The first notification service module sends the session notification to the first notification synchronization processing module; The first notification synchronization processing module reads the picture from the first electronic device based on the address information; The first notification synchronization processing module compresses the image to obtain the image compression data.
4. The method according to claim 2 or 3, It is characterized in that The first electronic device further includes a first application connection framework, and the encapsulating the image compression data and the notification associated data to obtain encapsulated data includes: The first system interface notification service framework sends the image compression data and the notification associated data to the first application continuation framework; The first application connection framework encapsulates the image compression data and the notification-related data according to the encapsulation format of the specified transmission protocol to obtain the encapsulated data.
5. The method according to claim 4, It is characterized in that After displaying the session notification, the method further includes: The first application continuation framework receives a deletion instruction sent from the second electronic device, where the deletion instruction is sent by the second electronic device after detecting a deletion operation on the notification session; The first application continuation framework sends the deletion instruction to the first notification management service framework; The first notification management service framework sends the deletion instruction to the first system interface notification service framework; In response to the deletion instruction, the first system interface notification service framework deletes the displayed session notification.
6. A method for prompting a conversation notification, It is characterized in that Applied in 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, wherein the encapsulated data includes picture compression data and notification-related data, wherein the picture compression data is data obtained by compressing the picture in the session message received by the first electronic device, and the notification-related data is other notification data in the session notification related to the session message except the address information of the picture; constructing the session notification based on the encapsulated data; displaying the session notification; The displayed conversation notification includes the picture, the other notification data and a reply option, wherein the reply option is used for the user to reply to a message in the conversation notification after being triggered; The first electronic device compresses the image to obtain compressed image data, including: when the size of the image is greater than or equal to a size threshold, compressing the size of the image to the size threshold to obtain a first compressed image; compressing the first compressed image by an image data compression algorithm to obtain a second compressed image; converting the second compressed image into bytes to obtain byte data of the image; encoding the byte data of the image to obtain a character string corresponding to the image; converting the character string corresponding to the image into a json format to obtain compressed image data.
7. The method according to claim 6, It is characterized in that The step of constructing the session notification based on the encapsulated data includes: De-encode the compressed image data in the encapsulated data to obtain a character string corresponding to the image; Generate the picture based on the character string corresponding to the picture; storing the picture in the second electronic device, and determining address information of the picture in the second electronic device according to the stored path; The conversation notification is constructed based on the address information of the picture in the second electronic device and the notification association data.
8. The method according to claim 6 or 7, It is characterized in that The second electronic device includes a second application connection framework and a second system interface notification service framework; The receiving the encapsulated data sent by the first electronic device includes: The second application connection framework receives the encapsulated data sent by the first electronic device; The second application connection framework parses the encapsulated data according to the specified transmission protocol to obtain the image compression data and the notification associated data; The step of constructing the session notification based on the encapsulated data includes: The second application connection framework sends the image compression data and the notification associated data to the second system interface notification service framework; The second system interface notification service framework constructs the session notification based on the image compression data and the notification association data.
9. The method according to claim 8, It is characterized in that The second electronic device further includes a second notification management service framework; after displaying the session notification, the method includes: The second system interface notification service framework receives a deletion operation on the session notification; The second system interface notifies the service framework to generate a deletion instruction corresponding to the deletion operation; The second system interface notification service framework sends the deletion instruction to the second notification management service framework; The second notification management service framework sends the deletion instruction to the second system interface notification service framework; The second system interface notification service framework sends the deletion instruction to the first electronic device, so as to instruct the first electronic device to delete the session notification.
10. 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 5, and to store data involved in implementing the method according to any one of claims 1 to 5; or, the memory is used to store a program that supports the electronic device to execute the method according to any one of claims 6 to 9, and to store data involved in implementing the method according to any one of claims 6 to 9; The processor is configured to execute the program stored in the memory.
11. 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 5; or, to execute the method according to any one of claims 6 to 9.
