CN116719649A - Session notification prompting method, electronic equipment and readable storage medium - Google Patents

Session notification prompting method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116719649A
CN116719649A CN202211065011.9A CN202211065011A CN116719649A CN 116719649 A CN116719649 A CN 116719649A CN 202211065011 A CN202211065011 A CN 202211065011A CN 116719649 A CN116719649 A CN 116719649A
Authority
CN
China
Prior art keywords
notification
picture
session
data
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211065011.9A
Other languages
Chinese (zh)
Inventor
陈沁雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211065011.9A priority Critical patent/CN116719649A/en
Publication of CN116719649A publication Critical patent/CN116719649A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The application discloses a prompting method of session notification, electronic equipment and a readable storage medium, and belongs to the technical field of terminals. The method comprises the following steps: receiving a session message, wherein the session message comprises a picture, and compressing the picture to obtain picture compression data. And encapsulating the picture compression data and notification association data to obtain encapsulated data, wherein the notification association data is other notification data except for the address information of the picture in the session notification related to the session message. And sending the encapsulated data to the second electronic device for the second electronic device to display the session notification. A session notification is displayed. According to the application, before the conversation notification related to the conversation message is synchronized to the tablet personal computer, the picture is compressed, and then the conversation notification with the compression is sent to the tablet personal computer, so that the resources required by transmission can be reduced, and the transmission efficiency is improved.

Description

Session notification prompting method, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for prompting session notification, an electronic device, and a readable storage medium.
Background
Currently, with the popularity of electronic devices, users have different demands for different electronic devices, and a user may simultaneously have multiple electronic devices, such as a mobile phone, a computer, a tablet computer, etc. In one case, to avoid missing some important notifications, the electronic device provides a super notification function so that notification synchronization can be achieved among multiple electronic devices. For session notification with pictures, how to improve transmission efficiency during notification synchronization is a problem to be solved.
Disclosure of Invention
The application provides a prompting method of session notification, electronic equipment and a readable storage medium, which can solve the problem of how to improve transmission efficiency in the process of synchronizing the session notification with pictures in the related technology. The technical scheme is as follows:
in a first aspect, a method for prompting a session notification is provided, and the method is applied to a first electronic device, wherein notification synchronization can be realized between the first electronic device and a second electronic device, and the method includes:
receiving a session message, wherein the session message comprises a picture;
compressing the picture to obtain picture compression data;
Encapsulating the picture compression data and notification association data to obtain encapsulated data, wherein the notification association data is other notification data except for the address information of the picture in the session notification related to the session message;
the encapsulated data is sent to the second electronic equipment and is used for displaying the session notification by the second electronic equipment;
and displaying the session notification.
Therefore, under the condition that the conversation information with the picture is received, before the conversation notification related to the conversation information is synchronized to the second electronic equipment, the picture is compressed, and then the conversation notification with the compressed picture is sent to the second electronic equipment, so that resources required for transmission can be reduced, and the transmission efficiency is improved.
As an example of the present application, the compressing the picture to obtain the picture compressed data includes:
compressing the size of the picture to the size of the size threshold under the condition that the size of the picture is larger than or equal to the size threshold, so as to obtain a first compressed picture;
compressing the first compressed picture through 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 character string corresponding to the picture;
and converting the character string corresponding to the picture into json format to obtain the picture compression data.
Thus, the data transmission efficiency can be improved by processing the picture into the character string in json format.
As one example of the present application, the first electronic device includes an application, a first notification management service framework, a first system interface notification service framework;
the compressing the picture to obtain picture compression data comprises the following steps:
the application program sends the session notification to the first notification management service framework, wherein the session notification is generated after the application program receives the session message;
the first notification management service framework sends the session notification to the first system interface notification service framework;
and the first system interface informs a service framework to compress the picture to obtain the picture compressed data.
In this way, the session notification is sent to the first system interface notification service framework through the first notification management service framework, so that the compression processing is performed through the first system interface notification service framework, and the data transmission amount is reduced.
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, where the first system interface notification service framework performs compression processing on the picture to obtain the picture compression data, and includes:
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;
and the first notification synchronous processing module compresses the picture to obtain the picture compressed data.
In this way, in the interaction process between the modules, the first notification synchronization processing module obtains the picture based on the address information after receiving the session notification by carrying the address information of the picture in the session notification, so that the data transmission quantity between the modules can be reduced while the first notification synchronization processing module is ensured to be capable of obtaining the picture.
As an example of the present application, the first electronic device further includes a first application connection framework, and the encapsulating the picture compression data and the notification association data to obtain encapsulated data includes:
The first system interface notification service framework sends the picture compression data and the notification association data to the first application connection framework;
and the first application connection framework encapsulates the picture compression data and the notification associated data according to an encapsulation format of a designated transmission protocol to obtain the encapsulation data.
In this way, the first application connection frame performs encapsulation according to the encapsulation format of the designated transmission protocol, so that the encapsulated data meets the data transmission requirement, and further the encapsulated data notified by the session can be ensured to be successfully synchronized to the second electronic device.
As an example of the present application, after the displaying the session notification, the method further includes:
the first application connection framework receives a deleting instruction sent by the second electronic equipment, wherein the deleting instruction is sent by the second electronic equipment after detecting a deleting operation of the notification session;
the first application connection framework sends a deleting 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 delete instruction, the first system interface notification service framework deletes the displayed session notification.
When the second electronic device receives the deleting operation of the session notification, a deleting instruction is sent to the first electronic device in addition to deleting the displayed session notification, so that the first electronic device also synchronously deletes the session notification, and the notification prompt states in the first electronic device and the second electronic device are kept synchronous.
In a second aspect, a method for prompting a session notification is provided, and the method is applied to a second electronic device, where the second electronic device and the first electronic device can realize notification synchronization, and the method includes:
receiving package data sent by the first electronic device, wherein the package data comprises picture compression data and notification associated data, the picture compression data is data obtained by compressing pictures in session information received by the first electronic device, and the notification associated data is other notification data except address information of the pictures in session notification related to the session information;
constructing the session notification based on the encapsulated data;
And displaying the session notification.
In this way, the second electronic device can reconstruct the session notification based on the encapsulated data and display the session notification, and thus the data transmission efficiency is improved while the session notification is successfully synchronized, because the encapsulated data includes the picture compression data and the notification association data.
As an example of the present application, said constructing said session notification based on said encapsulated data comprises:
performing anti-coding processing on the picture compression data in the package data to obtain a character string corresponding to the picture;
generating the picture based on the character string corresponding to the picture;
storing the picture in the second electronic equipment, and determining address information of the picture in the second electronic equipment according to the stored path;
and constructing the session notification based on the address information of the picture in the second electronic equipment and the notification association data.
In this way, in the interaction process between the modules, after the picture is generated, the picture is stored locally to generate the corresponding address information, and then the session notification is reconstructed according to the address information and the notification associated data, so that the data volume of the session notification transmitted between the subsequent modules can be reduced.
As an example of the present application, the second electronic device includes a second application connection framework, a second notification management service framework, and a second system interface notification service framework;
the receiving the encapsulation data sent by the first electronic device includes:
the second application connection framework receives the encapsulation data sent by the first electronic equipment;
the second application connection framework analyzes the encapsulation data according to a specified transmission protocol to obtain the picture compression data and the notification association data;
the constructing the session notification based on the encapsulated data includes:
the second application connection framework sends the picture compression data and the notification association data to the second system interface notification service framework;
the second system interface notification service framework constructs the session notification based on the picture compression data and the notification association data.
In this way, the received encapsulated data is unpacked through the second application connection frame, the obtained picture compression data and notification association data are sent to the second system interface notification service frame, and the second system interface notification service frame reconstructs the session notification so as to be capable of synchronously displaying the session notification in the second electronic device.
As an example of the present application, after the displaying of the session notification, the method includes:
the second system interface notification service framework receives a deleting operation of the session notification;
the second system interface informs a service framework to generate a deleting instruction corresponding to the deleting operation;
the second system interface notification service framework sends the deleting instruction to the second notification management service framework;
the second notification management service framework sends the deleting instruction to the second system interface notification service framework;
and the second system interface notification service framework sends the deleting instruction to the first electronic equipment, and the deleting instruction is used for indicating the first electronic equipment to delete the session notification.
When the second electronic device receives the deleting operation of the session notification, a deleting instruction is sent to the first electronic device in addition to deleting the displayed session notification, so that the first electronic device also synchronously deletes the session notification, and the notification prompt states in the first electronic device and the second electronic device are kept synchronous.
In a third aspect, a device for prompting a session notification is provided, and the device is applied to a first electronic device, where the first electronic device and a second electronic device can realize notification synchronization, and the device for prompting a session notification has a function of realizing the method behavior of the session notification in the first aspect. The apparatus of session notification comprises at least one module comprising:
The receiving module is used for receiving a session message, wherein the session message comprises pictures;
the first system interface notification service framework is used for compressing the picture to obtain picture compression data;
the first application connection frame is used for packaging the picture compression data and notification association data to obtain packaging data, wherein the notification association data is other notification data except for the address information of the picture in the session notification related to the session message;
the first application connection framework is used for sending the encapsulation data to the second electronic equipment and displaying the session notification by the second electronic equipment;
the first system interface notification service framework is configured to display the session notification.
As an example of the present application, the first system interface notification service framework is configured to:
compressing the size of the picture to the size of the size threshold under the condition that the size of the picture is larger than or equal to the size threshold, so as to obtain a first compressed picture;
compressing the first compressed picture through 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 character string corresponding to the picture;
and converting the character string corresponding to the picture into json format to obtain the picture compression data.
As one example of the present application, the first electronic device includes a first notification management service framework;
an application program in the first electronic device sends the session notification to the first notification management service framework, wherein the session notification is generated after the application program receives the session message;
the first notification management service framework is used for sending the session notification to the first system interface notification service framework;
the first system interface notification service framework is used for compressing the picture to obtain the picture compressed data.
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, where the first system interface notification service framework performs compression processing on the picture to obtain the picture compression data, and includes:
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;
and the first notification synchronous processing module compresses the picture to obtain the picture compressed data.
As an example of the present application, the first application connection framework is configured to encapsulate the picture compression data and notification association data to obtain encapsulated data, and includes:
the first system interface notification service framework is used for sending the picture compression data and the notification association data to the first application connection framework;
the first application connection framework is used for packaging the picture compression data and the notification associated data according to a packaging format of a designated transmission protocol to obtain the packaging data.
As an example of the present application;
the first application connection framework is further configured to receive a deletion instruction sent by 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 connection framework is further used for sending a deletion instruction to the first notification management service framework;
The first notification management service framework is further configured to send the deletion instruction to the first system interface notification service framework;
the first system interface notification service framework is further configured to delete the displayed session notification in response to the deletion instruction.
In a fourth aspect, a device for prompting a session notification is provided, and the device is applied to a second electronic device, where the second electronic device and the first electronic device can realize notification synchronization, and the device for prompting a session notification has a function of realizing the method behavior of the session notification in the second aspect. The apparatus of session notification comprises at least one module comprising:
the second application connection framework is used for receiving package data sent by the first electronic equipment, wherein the package data comprises picture compression data and notification association data, the picture compression data is data obtained after the picture in the session message received by the first electronic equipment is compressed, and the notification association data is other notification data except for address information of the picture in a session notification related to the session message;
a second system interface notification service framework for constructing the session notification based on the encapsulation data;
A second system interface notification service framework 1420 for displaying the session notification.
As an example of the present application, the second system interface notification service framework is configured to:
performing anti-coding processing on the picture compression data in the package data to obtain a character string corresponding to the picture;
generating the picture based on the character string corresponding to the picture;
storing the picture in the second electronic equipment, and determining address information of the picture in the second electronic equipment according to the stored path;
and constructing the session notification based on the address information of the picture in the second electronic equipment and the notification association data.
As an example of the present application;
the second application connection framework is used for receiving the encapsulation data sent by the first electronic equipment;
the second application connection framework is used for analyzing the encapsulation data according to a specified transmission protocol to obtain the picture compression data and the notification association data;
the second application connection framework is used for sending the picture compression data and the notification association data to the second system interface notification service framework;
The second system interface notification service framework is configured to construct the session notification based on the picture compression data and the notification association data.
As an example of the present application, the second electronic device further includes a second notification management service framework:
the second system interface notification service framework is used for receiving a deleting operation of the session notification;
the second system interface notification service framework is used for generating a deletion instruction corresponding to the deletion operation;
the second system interface notification service framework is used for sending the deleting instruction to the second notification management service framework;
the second notification management service framework is used for sending the deleting instruction to the second system interface notification service framework;
the second system interface notification service framework is configured to send the deletion instruction to the first electronic device, and is configured to instruct the first electronic device to delete the session notification.
In a fifth aspect, a first electronic device is provided, where the first electronic device includes a processor and a memory, where the memory is configured to store a program for supporting the first electronic device to execute the method for prompting the session notification provided in the first aspect, and store data related to implementing the method for prompting the session notification in the first aspect. The processor is configured to execute a program stored in the memory. The first electronic device may further comprise a communication bus for establishing a connection between the processor and the memory.
In a sixth aspect, a second electronic device is provided, where the second electronic device includes a processor and a memory, and the memory is configured to store a program for supporting the second electronic device to execute the method for prompting the session notification provided in the second aspect, and store data related to implementing the method for prompting the session notification described in the second aspect. The processor is configured to execute a program stored in the memory. The second electronic device may further comprise a communication bus for establishing a connection between the processor and the memory.
In a seventh aspect, there is provided a computer readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the prompting method of session notification described in the first aspect above.
In an eighth aspect, there is provided a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform the prompting method of session notification described in the second aspect above.
In a ninth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of prompting a session notification as described in the first aspect above.
In a tenth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of prompting a session notification as described in the second aspect above.
The technical effects obtained by the third, fifth, seventh and ninth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not described in detail herein.
The technical effects obtained by the fourth, sixth, eighth and tenth aspects are similar to the technical effects obtained by the corresponding technical means in the second aspect, and are not described in detail herein.
Drawings
FIG. 1 is a schematic diagram of an application scenario shown in accordance with an exemplary embodiment;
FIG. 2 is a schematic diagram of an application scenario illustrated in accordance with another exemplary embodiment;
FIG. 3 is a schematic diagram of an application scenario illustrated in accordance with another exemplary embodiment;
FIG. 4 is a schematic architecture diagram of a software system of an electronic device, shown according to an example embodiment;
FIG. 5 is a flow chart illustrating a method of prompting a session notification according to an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating a picture compression process according to an example embodiment;
FIG. 7 is a schematic diagram illustrating a picture restoration process according to an exemplary embodiment;
FIG. 8 is a flow chart illustrating a method of prompting for a session notification according to another exemplary embodiment;
FIG. 9 is a schematic diagram of an application scenario illustrated in accordance with another exemplary embodiment;
FIG. 10 is a schematic diagram of an application scenario illustrated in accordance with another exemplary embodiment;
FIG. 11 is a flowchart illustrating a method of prompting a session notification according to another exemplary embodiment;
FIG. 12 is a flowchart illustrating a method of prompting a session notification according to another exemplary embodiment;
FIG. 13 is a schematic diagram of a prompting device for session notification, according to an example embodiment;
fig. 14 is a schematic structural view of a prompting device for session notification according to another exemplary embodiment;
fig. 15 is a schematic structural view of an electronic device according to an exemplary embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that references to "a plurality" in this disclosure refer to two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
With the rapid development of terminal technology, various electronic devices are widely used, such as mobile phones, tablet computers (i.e., PAD), smart watches, notebook computers, etc. In one possible scenario, multiple electronic devices may form an ultra-terminal when connected to the same lan, such as the mobile phone, notebook computer, large screen, tablet computer, etc. referring to fig. 1. As an example of the present application, in the case that a plurality of electronic devices form a super terminal, notification synchronization may be implemented between the plurality of electronic devices, for example, as shown in fig. 1, when a certain electronic device (such as a mobile phone) receives a new session message, in addition to displaying a session notification related to the session message in a notification bar, the session notification may be synchronized to other electronic devices in the plurality of electronic devices, and accordingly, other electronic devices may display the session notification in respective notification bars.
The session notification refers to a notification that can support the user to reply to the message in the notification, for example, please refer to fig. 2, in which the mobile phone receives the session message, and after the mobile phone receives the session message, the session notification is displayed in the notification column, as shown in fig. 1 of (a) in fig. 2. In this way, the user can reply based on the session notification 1, for example, the user can click on the reply option "RELAY" in the session notification 1, and in response to the triggering operation of the reply option "RELAY" by the user, the mobile phone displays an information input box in the session notification 1, as shown in fig. 2 (b) of fig. 2. Thus, the user can input the content to be replied to, for example, after the user inputs "received" and clicks to send, the session notification 1 in the notification bar of the mobile phone can be displayed as shown in the diagram (c) in fig. 2, and it is easy to see that the user can continue to reply to the message in the session notification 1.
It can be seen that the session notification can be provided with not only text information but also pictures. In this way, in the notification synchronization process, for example, the mobile phone and the tablet computer are used to perform notification synchronization, please refer to fig. 3, when the mobile phone receives the session message with the picture, the mobile phone displays the session notification related to the session message in the notification bar, as shown by 1 in fig. 3, and the mobile phone also sends the session notification with the picture to the tablet computer. Accordingly, after the tablet receives the session notification, the session notification is displayed, for example, as shown in 3 in fig. 3, and the tablet displays the session notification in the notification bar.
However, since the session notification includes the picture, a certain transmission resource is required to be occupied in the notification synchronization process, so that the transmission efficiency is low. Therefore, the embodiment of the application provides a prompting method of session notification, which can compress pictures in the session notification before notification synchronization so as to reduce occupation of transmission resources and improve transmission efficiency. For its specific implementation, reference may be made to the following embodiments.
As can be seen from the above description, at least two electronic devices are involved in the notification synchronization process, one is an electronic device (such as a mobile phone in fig. 3) for sending a session notification, and for convenience of description, hereinafter referred to as a first electronic device; the other is an electronic device (such as a tablet in fig. 3) for receiving a session notification synchronized by the first electronic device, hereinafter referred to as a second electronic device for convenience of description. Before describing the method provided by the embodiment of the present application in detail, a software system architecture of the first electronic device related to the embodiment of the present application is described.
The software system of the first electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android (Android) system with a layered architecture is taken as an example, and a software system of a first electronic device is illustrated. Referring to fig. 4, fig. 4 is a block diagram of a software system of a first electronic device according to an embodiment of the present application, where a layered architecture divides software into several layers, each layer having a distinct role and division. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run time) and system layer, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 4, the application package may include a session application or the like for conducting session communications. Of course, applications (not shown in the figures) such as cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc. may also be included, which are not limited by the embodiments of the present application.
As an example of the present application, the application layer further includes a first system interface notification service framework. The first system interface notification service framework is used for displaying the session notification and is also used for compressing the pictures in the session notification before synchronizing the session notification with the pictures to other electronic devices. In some examples, the first system interface notification service framework may also be referred to as a systemUI notification service framework.
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 for sorting, filtering and other processes of the session notifications, the first notification synchronization processing module may be used for compressing and other processes of the pictures in the session notifications, and the first notification display module may be used for displaying the session notifications.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer also includes some predefined functions. As one example of the present application, the application framework layer includes a first notification management service framework, a first application connectivity framework, and a decision engine.
The first notification management service framework is configured to perform a management process on all notifications in the first electronic device, for example, a process of ordering, filtering, and so on, for session notifications sent by the session application. The first notification management service framework may be understood as a notification management and control center in the first electronic device, through which all the processing flows of the notifications need to be managed and controlled. Illustratively, when a notification sent by an application is received, if a no-disturb mode is set in the application, the first notification management service framework filters the notification out.
The first application connection framework is used for packaging the data to be sent to the second electronic equipment according to a transmission protocol defined by the bottom layer, so that the packaged data can meet the transmission requirement of the system layer.
The decision engine is used to sense the device status, e.g. it can sense whether there is currently a second electronic device that can be notification synchronized with the first electronic device, and if so, can be used to determine address information of the second electronic device.
Further, as shown in FIG. 4, 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 for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data, which may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc., and make such data accessible to the application. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to construct a display interface for an application, which may be comprised of one or more views, such as a view that includes displaying a text notification icon, a view that includes displaying text, and a view that includes displaying a picture. The telephony manager is configured to provide communication functions of the first electronic device, such as management of call status (including on, off, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. For example, a notification manager is used to inform that the download is complete, a message alert, etc. The notification manager may also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as a notification of a background running application. The notification manager may also be a notification that appears on the screen in the form of a dialog window, such as a text message being prompted in a status bar, a notification sound being emitted, the first electronic device vibrating, a flashing indicator light, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system layer may include a data transmission module, configured to send data of the first electronic device to other electronic devices, and receive data sent by the other electronic devices to the first electronic device, and transmit the data to an upper layer for processing.
The system layer may include a plurality of functional modules such as: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the first electronic device software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the original input event. Taking the touch operation as a click operation, the control corresponding to the click operation is a control of a camera application icon as an example, the camera application calls an interface of an application program framework layer, starts the camera application, calls a kernel layer to start a camera driver, and captures a still image or video through a camera 193.
In one example of the present application, the second electronic device may have the same software system architecture as the first electronic device, and the second electronic device includes, by way of example and not limitation, a second system interface notification service framework, a second notification management service framework, and a second application connection framework. The second system interface notification service framework is located at an application layer of a software system of the second electronic device, and the second notification management service framework and the second application connection framework are located at an application framework layer of the software system of the second electronic device.
The second application connection framework can be used for deblocking data sent to the second electronic device by other electronic devices according to a transmission protocol of the bottom layer, and sending the deblocking data to a corresponding module for processing. The second application connection framework may be used to decapsulate the data sent by the first electronic device according to the underlying transmission protocol, and send the data related to the session notification obtained after the decapsulation to the second system interface notification service framework for processing.
In one example of the application, the second system interface notification service framework may be configured to reconstruct the session notification based on the data related to the session notification and display the reconstructed session notification. Further, in the case that the session notification includes a picture, the method is further used for restoring the picture and displaying the session notification with the picture.
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 for reconstructing the session notification with the picture; the second notification service module may be configured to sort, filter, etc. the session notifications; the second notification display module may be configured to display a session notification.
The second notification management service framework is used for performing management and control processing, such as filtering, sorting and the like, on the notification according to a preset strategy. The second notification management service framework is a notification management center of the second electronic device, and in one example, when a notification sent by an application program is received, if a no-disturbance mode is set in the application program, the second notification management service framework filters out the notification.
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, configured to receive data sent from other electronic devices, and transmit the data to an upper layer for processing, and further configured to send the data to the other electronic devices.
On the basis of the above embodiments, a method provided by the embodiments of the present application will be described in detail. Referring to fig. 5, fig. 5 is a flow chart illustrating a method for prompting a session notification according to an exemplary embodiment, where the method is implemented by a first electronic device interacting with a second electronic device through a plurality of modules as shown in fig. 4, and the second electronic device also interacts with the first electronic device through a plurality of modules inside. Next, taking the example that the first electronic device is a mobile phone and the second electronic device is a tablet computer as an example, the method may include the following part or all of the following contents:
Step 501: the session application receives a session message including a picture.
In one example, a conversation application for a conversation is installed in a cell phone. It will be appreciated that in communicating with other electronic devices via the conversation application, the conversation application may send conversation messages to other electronic devices, or may receive conversation messages sent from other electronic devices. In one possible scenario, a picture is included in the session message.
Step 502: the conversation application generates conversation notifications related to conversation messages.
In one example, the conversation application stores the picture locally on the cell phone, such as under a first designated storage path, which may be set according to actual requirements. Address information of the picture is then generated from the storage path of the picture, and is illustratively a uniform resource identifier (uniform resource identifier, uri) 1. Then, the session application program constructs a session notification related to the session message based on the address information of the picture, that is, the address information of the picture is included in the session notification.
Step 503: the session application sends a session notification to the first notification management service framework.
The first notification management service framework is used for managing all notifications in the mobile phone, so that after the session application program generates the session notification, the session notification is sent to the first notification management service framework.
Step 504: the first notification management service framework sends a session notification to the first notification service module.
The first notification management service framework may send the session notification to the first notification service module by calling a run () function.
In one example, the first notification management service framework checks the session notification to determine whether the session notification meets the display condition, and if it is determined that the session notification meets the display condition, sends the session notification to the first system interface notification service framework, which receives the session notification through the first notification service module.
Wherein, the display condition can be set according to the actual requirement. By way of example and not limitation, the display conditions include notification formats belonging to a whitelist and/or the notification formats satisfying a preset.
In one example, if the first notification management service framework receives multiple notifications (including session notifications), the multiple notifications may be ordered according to the type of each notification to determine a display priority of each session notification, where the display priority is used to determine a display order of the corresponding session notifications, and the higher the display priority, the more forward in the notification bar. Wherein the types of notifications include, but are not limited to, resident notifications, banner notifications, and the like.
Further, in the case where a plurality of session notifications are included in the plurality of notifications, if the plurality of session notifications each satisfy the display condition, the first notification management service framework transmits the sorting result of the plurality of session notifications to the first system interface notification service framework in addition to transmitting each of the plurality of session notifications to the first system interface notification service framework.
Step 505: the first notification service module sends a session notification to the first notification display module.
That is, the first notification service module sends the session notification to the first notification display module after receiving the session notification, so as to display the session notification in the mobile phone. Accordingly, the first notification display module performs the operations of step 506 as follows.
In one example, if the first notification service module receives the plurality of session notifications and the ordering result, the plurality of session notifications may also be grouped based on the ordering result and the grouping result and the plurality of session notifications sent to the first notification display module.
Step 506: the first notification display module displays a session notification.
In an implementation, the first notification display module obtains address information of a picture from the session notification, reads the picture from a corresponding storage path according to the address information of the picture, and then displays the session notification based on the picture and other notification data in the session notification. For example, as shown at 1 in fig. 3, the first notification display module displays a session notification in a notification bar of the mobile phone.
In one example, if the first notification display module receives a plurality of session notifications and a grouping result, the plurality of session notifications are displayed according to the grouping result, wherein the session notifications of the same group are displayed together.
Step 507: the first notification service module sends a device query request to the decision engine.
The device query request is for requesting query for address information of an electronic device that is being notification-synchronized with the mobile phone.
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 may receive the session notification through the first notification service module. To facilitate knowing to which electronic device a session notification is to be synchronized, the first notification service module may send a device query request to the decision engine.
It should be noted that, there is no strict order of execution between the step 505 and the step 507, and in one example, the steps may be executed in parallel.
Step 508: the decision engine feeds back a device query response to the first notification service module, wherein the device query response carries device address information.
As described above, the decision engine may sense the device status, that is, may know which electronic device or devices can be notified and synchronized with the mobile phone, in one example, the decision engine may store device address information of the electronic device that can be notified and synchronized with the mobile phone, so, when the decision engine receives the device query request, it may generate a device query response based on the stored device address information, and feedback the device query response to the first notification service module.
In another example, the decision engine may not store the device address information of the electronic device capable of performing notification synchronization with the mobile phone, but may query the device address information of the electronic device capable of performing notification synchronization with the mobile phone in real time after receiving the device query request, and generate a device query response according to the queried device address information.
As an example of the present application, an electronic device capable of notification synchronization with a mobile phone may refer to a device that accesses the same lan and logs in the same account (such as a glory account) as the mobile phone. In another example, the electronic device capable of performing notification synchronization with the mobile phone may refer to a device that accesses the same lan as the mobile phone, that is, may not log into the same account.
It should be noted that, in the embodiment of the present application, an electronic device capable of synchronizing with a mobile phone notification is taken as an example for explanation, that is, the device query response carries device address information. In another embodiment, if there is no electronic device capable of notification synchronization with the mobile phone, the mobile phone determines that notification synchronization is not required, and at this time, only the session notification may be displayed in the mobile phone, and the following synchronization operation is not performed.
Step 509: the first notification service module determines that the session notification belongs to a picture notification type.
The picture notification type refers to a session notification related to a session message with a picture.
In one example, if the session notification carries address information of a picture, it is indicated that the session notification is associated with a picture in a session message, and in this case, it is determined that the session notification belongs to a picture notification type.
Step 510: the first notification service module sends a session notification and device address information to the first notification synchronization processing module.
In the case that the session notification belongs to the picture notification type, the first notification service module transmits the session notification and the device address information to the first notification synchronization processing module in order to be able to process the picture. Accordingly, the first notification synchronization processing module proceeds to step 511 as follows.
As an example of the present application, the first notification service module may further maintain a notification queue, and after receiving the session notification, may further store the session notification in the notification queue, so as to perform operations such as status update on the session notification according to the maintained notification queue.
Step 511: the first notification synchronization processing module compresses the picture based on the session notification to obtain picture compression data.
In order to improve the subsequent transmission efficiency, the first notification synchronization processing module compresses the pictures. As an example of the present application, referring to fig. 6, the specific implementation of step 511 may include the following sub-steps:
a1: the first notification synchronization processing module reads address information of the picture from the session notification.
In order to be able to process the picture, the first notification synchronization processing module obtains address information of the picture from the session notification, i.e. reads Uri1 from the session notification.
A2: and the first notification synchronization processing module acquires the picture based on the address information of the picture.
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, a picture is read from a first designated storage path. In one example, the first notification synchronization processing module reads the picture in bitmap format.
A3: the first notification synchronization processing module judges whether the size of the picture is larger than or equal to a size threshold.
The size threshold may be set according to actual requirements. In one example, the size threshold may be 160dp.
In one example, the size threshold may be determined according to the size of the picture presentation area of the tablet computer and pre-stored in the cell phone.
In order to enable the tablet personal computer to reasonably display the picture in the picture display area, the mobile phone can adjust the size of the picture, and therefore, the mobile phone judges whether the size of the picture is larger than or equal to a size threshold value. If the size of the picture is greater than or equal to the size threshold, it is indicated that the picture display area of the tablet computer is insufficient to display the picture, so that the picture is easy to be displayed unreasonably in the picture display area of the tablet computer, and the step A4 is performed, otherwise, if the size of the picture is less than the size threshold, it is indicated that the picture display area is sufficient to display the picture, and the step A5 is performed.
A4: and the first notification synchronization processing module performs size compression processing on the picture.
For the purpose of description and understanding, a picture subjected to size compression processing is referred to as a first compressed picture.
It should be noted that, step A3 and step A4 are optional, that is, the first notification synchronization processing module performs the size compression processing on the picture is an optional implementation manner, in another embodiment, the size compression processing may not be performed, and the tablet computer may adjust the size by itself, which is not limited in the embodiment of the present application.
A5: the first notification synchronization processing module compresses the picture through an image data compression algorithm to obtain a second compressed picture.
The image data compression algorithm can be set according to actual requirements. By way of example and not limitation, the image data compression algorithm may be a webp compression algorithm.
In order to reduce the data transmission amount, the first notification synchronization processing module may perform compression processing on the picture through an image data compression algorithm, for example, compression processing through a webp compression algorithm.
A6: the first notification synchronization processing module converts the second compressed picture into bytes to obtain byte data of the picture.
A7: the first notification synchronization processing module performs coding processing on the byte data of the picture to obtain a character string corresponding to the picture.
In one example, the first notification synchronization processing module encodes the byte data in a Base64 encoding manner, encoding the byte data of the picture into a string form.
A8: the first notification synchronization processing module converts the character strings corresponding to the pictures into json format to obtain picture compression data.
As an example of the present application, data transmission may be performed in json format, so the first notification synchronization processing module converts the encoded character string into json format. It is worth mentioning that the data transmission using json format can improve the transmission efficiency.
It should be noted that, the above steps A3 to A8 are an alternative implementation manner of compressing the picture in the session notification, but the specific implementation process of compressing the picture is not limited.
Step 512: the first notification synchronization processing module sends the picture compression data, the notification association data and the device address information to the first application connection frame.
The notification association data is notification data other than address information of the picture in a session notification related to the session message.
In order to be able to send the session notification to the tablet computer, the first notification synchronization processing module invokes a data transmission interface provided by the first application connection framework to send the session notification (including the picture compression data and the notification association data) and the device address information to the first application connection framework.
In one example, the first notification synchronization data module packages the picture compression data and the notification association data to obtain a data packet including the picture compression data and the notification association data, and then the first notification synchronization data module sends the data packet and the device address information to the first application connection frame.
Step 513: and the first application connection frame encapsulates the picture compression data and the notification associated data to obtain encapsulated data.
As an example of the present application, the first application connection framework encapsulates the image compression data and the notification association data according to the encapsulation format of the designated transmission protocol adopted by the underlying transmission data, so that the encapsulated data obtained after encapsulation can meet the transmission requirement of the underlying layer.
In one example, in the case that the first notification synchronization data module packages the picture compression data and the notification association data, the first application connection framework encapsulates the data packet according to an encapsulation format of a specified transmission protocol adopted by the underlying transmission data, to obtain encapsulated data.
Among them, the specified transmission protocol may be set according to actual demands, and illustratively, the specified transmission protocol may be a transmission control protocol (transmission control protocol, TCP) or the like.
Step 514: the first application connection framework sends the encapsulation data to the tablet computer based on the device address information.
In one example, the first application connectivity framework sends the device address information and the encapsulated data to a data transmission module underlying for transmitting the data, such that the data transmission module sends the encapsulated data to a corresponding tablet computer based on the device address information.
So far, the mobile phone has successfully synchronized the session notification to the tablet computer, and the tablet computer needs to display the session notification after receiving the session notification, so that the tablet computer can execute the following operations.
Step 515: the second application connection framework receives the encapsulated data.
In one example, the tablet computer may receive the encapsulated data sent by the mobile phone through the underlying data transmission module, and the data transmission module of the tablet computer sends the encapsulated data to the second application connection frame.
Step 516: and the second application connection framework unpacks the encapsulated data according to the appointed transmission protocol to obtain the picture compression data and the notification associated data.
Because the encapsulation data is encapsulated by the first application connection frame according to the encapsulation format of the appointed transmission protocol, the second application connection frame carries out the deblocking processing on the encapsulation data according to the appointed transmission protocol, so that the picture compression data and the notification associated data contained in the encapsulation data are obtained, and the picture compression data and the notification associated data are the contents contained in the session notification without difficulty.
As can be seen from the foregoing description, the picture compression data and the notification association data may exist in the form of a packet.
Step 517: the second application connection framework sends the picture compression data and notification association data to the second notification synchronization processing module.
The second application connection frame sends the picture compression data and the notification association data to the second system interface notification service frame so as to be convenient for the second system interface notification service frame to display after being processed. Correspondingly, the second system interface notification service framework receives the picture compression data and the notification association data through the second notification synchronization processing module.
Step 518: the second notification synchronization processing module constructs a session notification based on the picture compression data and the notification association data.
As an example of the present application, referring to fig. 7, a specific implementation of step 518 may include the following sub-steps B1 to B4:
b1: and the second notification synchronous processing module performs inverse coding on the picture compression data to obtain byte data of the picture.
In one example, since the first notification synchronization processing module performs encoding processing by using Base64 encoding, the second notification synchronization processing module may perform encoding processing on the picture compression data by using Base64 encoding to obtain byte data corresponding to the picture.
B2: the second notification synchronization processing module generates a picture based on byte data of the picture.
In one example, the second notification synchronization processing module generates a webp format picture based on byte data of the picture.
B3: and the second notification synchronous processing module stores the picture and generates address information of the picture according to the storage path.
And the second notification synchronization processing module stores the generated picture locally in the tablet personal computer. The second notification synchronization processing module may store the generated picture to a second designated storage path of the tablet computer, where the second designated storage path may be set according to actual requirements. Then, the second notification synchronization processing module generates address information of the picture according to the storage path, for example, the address information of the picture in the tablet computer is Uri2.
B4: the second notification synchronization processing module constructs a session notification based on the address information and notification association data of the picture in the tablet computer.
It is easy to understand that the session notification constructed at this time includes address information of the picture in the tablet computer and notification associated data.
It should be noted that when the second notification synchronization processing module builds the session notification again, instead of directly carrying the picture in the session notification, after restoring the picture, the picture is stored locally in the tablet computer, then the address information of the picture is generated according to the storage path, and the address information of the picture is carried in the session notification, so that the efficiency of transmitting the session notification between subsequent modules can be improved.
Step 519: the second notification synchronization processing module sends a session notification to the second notification management service framework.
The second notification management service framework is used for uniformly managing and controlling various notifications in the tablet personal computer, so that the second notification synchronous processing module is used for transmitting the session notification to the second notification management service framework after constructing the session notification so as not to change the original notification circulation framework, and the second notification management service framework is used for processing the session notification.
Step 520: the second notification management service framework sends a session notification to the second notification service module.
In one example, in the case where the second notification management service framework receives a plurality of session notifications, the respective session notifications of the plurality of session notifications may be ranked or the like. And then, sending the session notification and the sequencing result to a second notification service module.
Step 521: the second notification service module sends a session notification to the second notification display module.
In order to display the session notification, the second notification service module sends the session notification to the second notification display module.
In one example, if the second notification management service framework sends the plurality of session notifications and the ordering result to the second notification service module, the second notification service module may group the plurality of session notifications according to the ordering result and send the grouping result and the plurality of session notifications to the second notification display module.
Further, the second notification service module may add the session notification in a notification queue maintained by itself, so as to facilitate subsequent status update, etc.
Step 522: the second notification display module displays a session notification.
In one example, the second notification display module obtains address information of the picture from the session notification, and reads the picture from a corresponding storage path (second designated storage path) according to the address information of the picture. Then, the second notification display module displays a session notification based on the picture and the notification association data. Illustratively, the second notification display module displays the session notification in a notification bar of the tablet, as shown at 3 in fig. 3.
In one example, if the second notification service module sends a plurality of session notifications and a grouping result, the second notification display module displays the plurality of session notifications according to the grouping result, wherein the session notifications of the same group may be displayed together.
In the embodiment of the application, under the condition of receiving the session message with the picture, before synchronizing the session notification related to the session message to the tablet personal computer, the picture is compressed, and then the session notification with the compressed picture is sent to the tablet personal computer, so that the resources required by transmission can be reduced, and the transmission efficiency is improved.
After the mobile phone synchronizes the session notification with the tablet computer, when any one of the electronic devices detects the deletion operation of the displayed session notification, the other electronic device can be instructed to execute the same operation. Next, an operation of the tablet computer receiving the user deletion session notification will be described as an example. Referring to fig. 8, fig. 8 is a flowchart of a method for prompting a session notification according to an exemplary embodiment, where the method may include some or all of the following:
step 801: the second notification display module receives the delete operation.
In one example, when a user wants to delete a displayed session notification from a tablet, the notification bar of the tablet may be opened and then a delete operation is performed on the session notification in the notification bar, such as with reference to FIG. 9, which may be, but is not limited to, a left-slide session notification.
Step 802: the second notification display module deletes the session notification.
As an example of the present application, the second notification display module redetermines the layout of each notification remaining 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 not displayed in the refreshed notification bar.
Step 803: and responding to the deleting operation, and sending a deleting instruction to the second notification management service framework by the second notification display module.
The delete instruction is to instruct to delete the session notification. In one example, the delete instruction may carry a notification identifier of the session notification that is used to uniquely identify the session notification so that the subsequent correlation module can learn which notification needs to be deleted.
Because the second notification management service framework is used for managing and controlling various notifications in the tablet personal computer, when the session notification needs to be deleted, the second notification display module sends a deletion instruction to the second notification management service framework.
It should be noted that, there is no strict order of execution between the step 802 and the step 803, and in one example, the steps may be executed in parallel.
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.
In one example, the delete instruction is a notationremoved.
After receiving the deletion instruction, the second notification service module proceeds to the following operation in step 805. In addition, after receiving the deletion instruction, the second notification synchronization processing module proceeds to operation in step 806.
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 may be executed in parallel, that is, there is no strict sequence of execution between the operations of the two branches.
Step 805: the second notification service module deletes the session notification from the notification queue.
As can be seen from the foregoing description, the second notification service module maintains a notification queue, and the notification queue includes session notifications, and when a deletion instruction for the session notifications is received, it indicates that the session notifications do not need to be displayed any more, so the second notification service module may delete the session notifications from the notification queue.
Step 806: the second notification synchronization processing module deletes the stored picture from the local.
Since the session notification is not required to be displayed in the tablet computer, it is not meaningful to locally store the picture related to the session notification, and therefore, in order to save storage space, the second notification synchronization processing module deletes the stored picture locally, such as deleting the picture from the second designated storage path.
Step 807: the second notification synchronization processing module sends a deletion instruction to the second application connection framework.
In order to keep the session notification prompt state of the mobile phone terminal synchronous with the tablet computer side, the second notification synchronization processing module sends a deletion instruction to the second application connection frame so as to synchronize the deletion instruction to the mobile phone through the second application connection frame.
It should be noted that, there is no strict order of execution between the step 806 and the step 807, and in one example, the steps may be executed in parallel.
Step 808: the second application connection framework synchronously deletes the instruction to the mobile phone.
As an example of the present application, the second application connection framework may encapsulate the deletion instruction according to the encapsulation format of the specified transmission protocol of the bottom layer, and then transmit the encapsulated deletion instruction to the data transmission module of the bottom layer of the tablet computer, so as to send the encapsulated deletion instruction to the mobile phone through the data transmission module.
For a handset, the delete instruction may be responded to by:
step 809: the first application connection framework receives a deleting instruction sent by the tablet personal computer.
In implementation, the mobile phone can receive a deletion instruction sent by the tablet personal computer through the data transmission module at the bottom layer, and then the data transmission module sends the deletion instruction to the first application connection frame.
Step 810: the first application connection framework sends a deletion instruction to the first notification management service framework.
In one example, the deletion instruction is encapsulated by the second application connection frame according to the designated transmission protocol format, at this time, after receiving the encapsulated deletion instruction, the first application connection frame performs decapsulation processing according to the encapsulation format of the designated transmission protocol to obtain the deletion instruction, and then sends the deletion instruction to the first notification management service frame.
Step 811: the first notification management service framework sends a deletion instruction to the first notification service module.
Step 812: the first notification service module deletes the session notification from the notification queue.
As can be seen from the foregoing description, the first notification service module may maintain a notification queue, where the notification queue includes session notifications, and when a deletion instruction for a session notification is received, it indicates that the session notification does not need to be displayed any more, so the first notification service module may delete the session notification from the notification queue.
Step 813: the first notification service module sends a refresh notification to the first notification display module.
It should be noted that, there is no strict order of execution between the step 812 and the step 813.
Step 814: the first notification display module deletes the session notification.
As an example of the present application, the first notification display module redetermines the layout of the notifications remaining in the notification bar of the mobile phone, and refreshes the notification bar of the mobile phone according to the redetermined layout, and the session notification is not displayed in the refreshed notification bar.
For example, referring to fig. 9, after the user slides the session notification left in the tablet, the session notification is no longer displayed in the tablet and the session notification is no longer displayed in the cell phone.
It should be noted that, the foregoing is described by taking the case that the user deletes the session notification from the tablet pc as an example, and in another embodiment, when the user deletes the session notification from the mobile phone, the mobile phone may follow a similar flow, so that the tablet pc also deletes the session notification synchronously, which is not described herein again.
In the embodiment of the application, when the tablet personal computer receives the deleting operation of the session notification, a deleting instruction is sent to the mobile phone in addition to deleting the displayed session notification, so that the mobile phone synchronously deletes the session notification, and the notification prompt states of the mobile phone and the tablet personal computer are kept synchronous.
In another example, if the mobile phone or the tablet computer receives the message reply operation, the display states of the session notification can also be kept synchronous, for example, please refer to fig. 10, and after the user replies the message in the session notification of the mobile phone, the display states of the session messages of the mobile phone and the tablet computer are changed. In the implementation, the method is equivalent to synchronizing a session notification without a picture, that is, the method does not include a process flow of the picture, in this case, after receiving the reply session notification, the first notification service module in the mobile phone directly sends the reply session notification to the first application connection frame so as to send the reply session notification to the tablet computer through the first application connection frame, and correspondingly, after receiving the unpacked data sent by the second application connection frame, the second notification synchronization processing module in the tablet computer sends the unpacked data to the second notification service module, and the second notification service module notifies the second notification display module to update and display the session notification.
Referring to fig. 11, fig. 11 is a schematic diagram illustrating a method for prompting a session notification, which may be performed by a first electronic device, according to an exemplary embodiment, and may include some or all of the following:
1101: and receiving a session message, wherein the session message comprises a picture.
A specific implementation thereof may be seen in step 501 in the embodiment shown in fig. 5.
1102: and compressing the picture to obtain picture compression data.
As an example of the present application, a specific implementation of 1102 may include: and under the condition that the size of the picture is larger than or equal to the size threshold, compressing the size of the picture to the size of the size threshold to obtain a first compressed picture. And compressing the first compressed picture through an image data compression algorithm to obtain a second compressed picture. And converting the second compressed picture into bytes to obtain byte data of the picture. And carrying out coding processing on the byte data of the picture to obtain a character string corresponding to the picture, and converting the character string corresponding to the picture into json format to obtain picture compression data.
The specific implementation can be seen from step 503 to step 511 in the embodiment shown in fig. 5.
1103: and encapsulating the picture compression data and notification association data to obtain encapsulated data, wherein the notification association data is other notification data except for the address information of the picture in the session notification related to the session message.
The specific implementation thereof may be referred to from step 512 to step 513 in the embodiment shown in fig. 5.
1104: and sending the encapsulated data to the second electronic device for the second electronic device to display the session notification.
1105: a session notification is displayed.
As an example of the present application, after displaying the session notification, further comprising: receiving a deleting instruction sent by the second electronic equipment, wherein the deleting instruction is sent by the second electronic equipment after detecting a deleting operation of the notification session; in response to the delete instruction, the displayed session notification is deleted. A specific implementation may be seen in the embodiment shown in fig. 8.
In the embodiment of the application, under the condition that the conversation information with the picture is received, before the conversation notification related to the conversation information is synchronized to the second electronic equipment, the picture is compressed, and then the conversation notification with the compressed picture is sent to the second electronic equipment, so that the resources required by transmission can be reduced, and the transmission efficiency is improved.
Referring to fig. 12, fig. 12 is a prompt method of session notification, which may be performed by a second electronic device, according to another exemplary embodiment, and may include some or all of the following:
1201: receiving package data sent by a first electronic device, wherein the package data comprises picture compression data and notification association data, the picture compression data is data obtained by compressing pictures in session information, and the notification association data is other notification data except for address information of the pictures in session notification related to the session information.
1202: based on the encapsulated data, a session notification is constructed.
As an example of the application, a specific implementation of 1202 may include: and performing anti-coding processing on the picture compression data in the package data to obtain a character string corresponding to the picture. And generating the picture based on the character string corresponding to the picture. And storing the picture in the second electronic equipment, and determining the address information of the picture in the second electronic equipment according to the stored path. And constructing a session notification based on the address information of the picture in the second electronic device and the notification association data.
The specific implementation thereof can be seen from step 517 to step 518 in the embodiment shown in fig. 5.
1203: a session notification is displayed.
Further, after displaying the session notification, the method further comprises the step of receiving a deleting operation of the session notification. And generating a deletion instruction corresponding to the deletion operation, and sending the deletion instruction to the first electronic equipment, wherein the deletion instruction is used for indicating the first electronic equipment to delete the session notification. A specific implementation thereof may be seen in the embodiment shown in fig. 8.
In the embodiment of the application, the encapsulated data comprise the picture compression data and the notification association data, so that the second electronic equipment can reconstruct the session notification based on the encapsulated data and display the session notification, thereby improving the data transmission efficiency while the session notification is successfully synchronized.
Fig. 13 is a schematic structural diagram of a session notification prompting device provided in an embodiment of the present application, where the device may be implemented by software, hardware, or a combination of both as part or all of an electronic device, and the electronic device may be a first electronic device. Referring to fig. 13, the apparatus includes:
a receiving module 1310, configured to receive a session message, where the session message includes a picture;
the first system interface notification service framework 1320 is configured to perform compression processing on the picture to obtain picture compression data;
a first application connection frame 1330, configured to encapsulate the picture compression data and notification association data, to obtain encapsulated data, where the notification association data is notification data of a session notification related to the session message, where the notification association data is notification data of a session related to the session message, and the notification data is other than address information of the picture;
the first application connection frame 1330 is configured to send the encapsulated data to the second electronic device, where the second electronic device is configured to display the session notification;
the first system interface notification service framework 1320 is configured to display the session notification.
As an example of the present application, the receiving module 1310 may be the session application described above.
As an example of the present application, the first system interface notification service framework 1320 is configured to:
compressing the size of the picture to the size of the size threshold under the condition that the size of the picture is larger than or equal to the size threshold, so as to obtain a first compressed picture;
compressing the first compressed picture through 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 character string corresponding to the picture;
and converting the character string corresponding to the picture into json format to obtain the picture compression data.
As an example of the present application, the first electronic device includes a first notification management service framework 1340;
the receiving module 1310 is configured to send the session notification to the first notification management service framework, where the session notification is generated after the receiving module receives the session message;
the first notification management service framework 1340 is configured to send the session notification to the first system interface notification service framework 1320;
the first system interface notification service framework 1320 is configured to perform compression processing on the picture to obtain the compressed picture data.
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, where the first system interface notification service framework performs compression processing on the picture to obtain the picture compression data, and includes:
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;
and the first notification synchronous processing module compresses the picture to obtain the picture compressed data.
As an example of the present application, the first application connection frame 1330 is configured to encapsulate the picture compression data and notification association data to obtain encapsulated data, and includes:
the first system interface notification service framework 1320 is configured to send the picture compression data and the notification association data to the first application connection framework;
the first application connection frame 1330 is configured to encapsulate the picture compression data and the notification association data according to an encapsulation format of a specified transmission protocol, so as to obtain the encapsulated data.
As an example of the present application;
the first application connection frame 1330 is further configured 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;
the first application connection frame 1330 is further configured to send a delete instruction to the first notification management service frame;
the first notification management service framework 1340 is further configured to send the deletion instruction to the first system interface notification service framework 1320;
the first system interface notification service framework 1320 is further configured to delete the session notification displayed in response to the delete instruction.
In the embodiment of the application, under the condition that the conversation information with the picture is received, before the conversation notification related to the conversation information is synchronized to the second electronic equipment, the picture is compressed, and then the conversation notification with the compressed picture is sent to the second electronic equipment, so that the resources required by transmission can be reduced, and the transmission efficiency is improved.
Fig. 14 is a schematic structural diagram of a session notification prompting device provided in an embodiment of the present application, where the device may be implemented by software, hardware, or a combination of both as part or all of an electronic device, and the electronic device may be a second electronic device. Referring to fig. 14, the apparatus includes:
The second application connection frame 1410 is configured to receive package data sent by the first electronic device, where the package data includes picture compression data and notification association data, the picture compression data is data obtained by compressing a picture in a session message received by the first electronic device, and the notification association data is notification data other than address information of the picture in a session notification related to the session message;
a second system interface notification service framework 1420 for constructing the session notification based on the encapsulation data;
a second system interface notification service framework 1420 for displaying the session notification.
As an example of the present application, the second system interface notification service framework 1420 is configured to:
performing anti-coding processing on the picture compression data in the package data to obtain a character string corresponding to the picture;
generating the picture based on the character string corresponding to the picture;
storing the picture in the second electronic equipment, and determining address information of the picture in the second electronic equipment according to the stored path;
and constructing the session notification based on the address information of the picture in the second electronic equipment and the notification association data.
As an example of the present application;
the second application connection frame 1410 is configured to receive the encapsulated data sent by the first electronic device;
the second application connection framework 1410 is configured to parse the encapsulation data according to a specified transmission protocol to obtain the picture compression data and the notification association data;
the second application connection framework 1410 is configured to send the picture compression data and the notification association data to the second system interface notification service framework 1420;
the second system interface notification service framework 1420 is configured to construct the session notification based on the picture compression data and the notification association data.
As an example of the present application, the second electronic device further includes a second notification management service frame 1430:
the second system interface notification service framework 1420 is configured to receive a delete operation for the session notification;
the second system interface notification service framework 1420 is configured to generate a deletion instruction corresponding to the deletion operation;
the second system interface notification service frame 1420 is configured to send the deletion instruction to the second notification management service frame 1430;
The second notification management service frame 1430 is configured to send the deletion instruction to the second system interface notification service frame 1420;
the second system interface notification service framework 1420 is configured to send the deletion instruction to the first electronic device, where the deletion instruction is used to instruct the first electronic device to delete the session notification.
In the embodiment of the application, the encapsulated data comprise the picture compression data and the notification association data, so that the second electronic equipment can reconstruct the session notification based on the encapsulated data and display the session notification, thereby improving the data transmission efficiency while the session notification is successfully synchronized.
Next, a description will be given of a structure of an electronic device according to an embodiment of the present application, where the electronic device may be the first electronic device or the second electronic device.
Referring to fig. 15, fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the application. The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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, keys 190, an isp191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
It should 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 application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces, such as may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device implements display functions via a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device may include 1 or N display screens 194, N being an integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 performs various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created by the electronic device during use (e.g., audio data, phonebook, etc.), and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device may implement audio functions such as music playing, recording, etc. through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and application processor, etc.
It should be noted that: the session notification prompting device provided in the above embodiment only illustrates the division of the above functional modules when performing the session notification prompting, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
The functional units and modules in the above embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
The embodiment of the prompting device for session notification and the prompting method for session notification provided in the foregoing embodiments belong to the same concept, and specific working processes and technical effects brought by units and modules in the foregoing embodiments may be referred to a method embodiment section, which is not repeated herein.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. 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 one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable 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 Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present application should be included in the scope of the present application.

Claims (12)

1. A method for prompting a session notification, which is applied to a first electronic device, wherein the first electronic device and a second electronic device can realize notification synchronization, and the method comprises the following steps:
receiving a session message, wherein the session message comprises a picture;
compressing the picture to obtain picture compression data;
encapsulating the picture compression data and notification association data to obtain encapsulated data, wherein the notification association data is other notification data except for the address information of the picture in the session notification related to the session message;
the encapsulated data is sent to the second electronic equipment and is used for displaying the session notification by the second electronic equipment;
and displaying the session notification.
2. The method of claim 1, wherein the compressing the picture to obtain the picture compression data comprises:
compressing the size of the picture to the size of the size threshold under the condition that the size of the picture is larger than or equal to the size threshold, so as to obtain a first compressed picture;
Compressing the first compressed picture through 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 character string corresponding to the picture;
and converting the character string corresponding to the picture into json format to obtain the picture compression data.
3. The method of claim 1 or 2, wherein the first electronic device comprises a session application, a first notification management service framework, a first system interface notification service framework;
the compressing the picture to obtain picture compression data comprises the following steps:
the session application program sends the session notification to the first notification management service framework, wherein the session notification is generated after the session application program receives the session message;
the first notification management service framework sends the session notification to the first system interface notification service framework;
and the first system interface informs a service framework to compress the picture to obtain the picture compressed data.
4. The method of claim 3, wherein 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 picture to obtain the picture compression 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;
and the first notification synchronous processing module compresses the picture to obtain the picture compressed data.
5. The method of claim 3 or 4, wherein the first electronic device further comprises a first application connection framework, the encapsulating the picture compression data and the notification association data to obtain encapsulated data, comprising:
the first system interface notification service framework sends the picture compression data and the notification association data to the first application connection framework;
and the first application connection framework encapsulates the picture compression data and the notification associated data according to an encapsulation format of a designated transmission protocol to obtain the encapsulation data.
6. The method of claim 5, wherein after displaying the session notification, further comprising:
the first application connection framework receives a deleting instruction sent by the second electronic equipment, wherein the deleting instruction is sent by the second electronic equipment after detecting a deleting operation of the notification session;
the first application connection framework sends the deleting 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 delete instruction, the first system interface notification service framework deletes the displayed session notification.
7. The prompting method of the session notification is characterized by being applied to second electronic equipment, wherein the second electronic equipment and the first electronic equipment can realize notification synchronization, and the method comprises the following steps:
receiving package data sent by the first electronic device, wherein the package data comprises picture compression data and notification associated data, the picture compression data is data obtained by compressing pictures in session information received by the first electronic device, and the notification associated data is other notification data except address information of the pictures in session notification related to the session information;
Constructing the session notification based on the encapsulated data;
and displaying the session notification.
8. The method of claim 7, wherein the constructing the session notification based on the encapsulated data comprises:
performing anti-coding processing on the picture compression data in the package data to obtain a character string corresponding to the picture;
generating the picture based on the character string corresponding to the picture;
storing the picture in the second electronic equipment, and determining address information of the picture in the second electronic equipment according to the stored path;
and constructing the session notification based on the address information of the picture in the second electronic equipment and the notification association data.
9. The method of claim 7 or 8, wherein the second electronic device comprises a second application connectivity framework, a second system interface notification service framework;
the receiving the encapsulation data sent by the first electronic device includes:
the second application connection framework receives the encapsulation data sent by the first electronic equipment;
the second application connection framework analyzes the encapsulation data according to a specified transmission protocol to obtain the picture compression data and the notification association data;
The constructing the session notification based on the encapsulated data includes:
the second application connection framework sends the picture compression data and the notification association data to the second system interface notification service framework;
the second system interface notification service framework constructs the session notification based on the picture compression data and the notification association data.
10. The method of claim 9, wherein the second electronic device further comprises a second notification management service framework; after the session notification is displayed, the method comprises the following steps:
the second system interface notification service framework receives a deleting operation of the session notification;
the second system interface informs a service framework to generate a deleting instruction corresponding to the deleting operation;
the second system interface notification service framework sends the deleting instruction to the second notification management service framework;
the second notification management service framework sends the deleting instruction to the second system interface notification service framework;
and the second system interface notification service framework sends the deleting instruction to the first electronic equipment, and the deleting instruction is used for indicating the first electronic equipment to delete the session notification.
11. An electronic device, wherein the electronic device comprises a processor and a memory in its structure;
the memory is used for storing a program for supporting the electronic device to execute the method according to any one of claims 1-6 and storing data related to the implementation of the method according to any one of claims 1-6; alternatively, the memory is configured to store a program for supporting the electronic device to execute the method according to any one of claims 7 to 10, and to store data related to implementing the method according to any one of claims 7 to 10;
the processor is configured to execute a program stored in the memory.
12. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1-6; alternatively, a method according to any of claims 7-10 is performed.
CN202211065011.9A 2022-09-01 2022-09-01 Session notification prompting method, electronic equipment and readable storage medium Pending CN116719649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211065011.9A CN116719649A (en) 2022-09-01 2022-09-01 Session notification prompting method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211065011.9A CN116719649A (en) 2022-09-01 2022-09-01 Session notification prompting method, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116719649A true CN116719649A (en) 2023-09-08

Family

ID=87873939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211065011.9A Pending CN116719649A (en) 2022-09-01 2022-09-01 Session notification prompting method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116719649A (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1342290A (en) * 1998-10-02 2002-03-27 国际商业机器公司 Conversational browser and conversational systems
CN1556631A (en) * 2004-01-09 2004-12-22 贵阳朗玛信息技术有限公司北京分公司 Method of realizing scene chat between customers in instant communication
CN1913499A (en) * 2005-08-09 2007-02-14 腾讯科技(深圳)有限公司 Method for implementing character multi-type in immediate message
CN101035090A (en) * 2006-03-09 2007-09-12 腾讯科技(深圳)有限公司 Instant communication method
US7769900B1 (en) * 2002-03-29 2010-08-03 Graphics Properties Holdings, Inc. System and method for providing interframe compression in a graphics session
CN102664939A (en) * 2012-04-13 2012-09-12 江苏诚迈科技有限公司 Method and device for mobile terminal of screen mirror image
CN103796013A (en) * 2014-01-17 2014-05-14 五八同城信息技术有限公司 Method for photo compression in mobile terminal instant messaging
CN103997519A (en) * 2014-05-14 2014-08-20 小米科技有限责任公司 Method and device for transmitting image
CN104012062A (en) * 2011-12-20 2014-08-27 高通股份有限公司 Exchanging compressed version of previously communicated session information in commucations system
CN104170317A (en) * 2012-03-16 2014-11-26 株式会社理光 Communication control system and control device
CN105992014A (en) * 2015-02-11 2016-10-05 中国移动通信集团公司 Method of projecting image data and apparatus thereof, sending terminal and receiving terminal
CN108174023A (en) * 2017-12-19 2018-06-15 珠海市魅族科技有限公司 Information displaying method and device, computer installation and computer readable storage medium
CN111193948A (en) * 2020-01-07 2020-05-22 上海步频电子科技有限公司 Picture transmission and display method and system of display terminal
CN112134788A (en) * 2020-09-18 2020-12-25 Oppo广东移动通信有限公司 Event processing method and device, storage medium, mobile terminal and computer
US20210026527A1 (en) * 2018-03-19 2021-01-28 FABIAN Humbert Method for interaction between at least one user and/or a first electronic device and a second electronic device
CN113569037A (en) * 2021-01-18 2021-10-29 腾讯科技(深圳)有限公司 Message processing method and device and readable storage medium
CN113965640A (en) * 2021-10-11 2022-01-21 维沃移动通信有限公司 Message processing method and device
CN114125018A (en) * 2020-08-27 2022-03-01 腾讯科技(深圳)有限公司 Session-based information processing method and device, computer equipment and storage medium
CN114741213A (en) * 2021-10-22 2022-07-12 华为技术有限公司 Notification processing method, chip, electronic device and computer-readable storage medium
CN114764349A (en) * 2021-01-04 2022-07-19 腾讯科技(深圳)有限公司 Control method, device, medium and electronic equipment for cross-application running of sub-applications
CN114915607A (en) * 2022-07-18 2022-08-16 荣耀终端有限公司 Notification message processing method, electronic equipment and system

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1342290A (en) * 1998-10-02 2002-03-27 国际商业机器公司 Conversational browser and conversational systems
US7769900B1 (en) * 2002-03-29 2010-08-03 Graphics Properties Holdings, Inc. System and method for providing interframe compression in a graphics session
CN1556631A (en) * 2004-01-09 2004-12-22 贵阳朗玛信息技术有限公司北京分公司 Method of realizing scene chat between customers in instant communication
CN1913499A (en) * 2005-08-09 2007-02-14 腾讯科技(深圳)有限公司 Method for implementing character multi-type in immediate message
CN101035090A (en) * 2006-03-09 2007-09-12 腾讯科技(深圳)有限公司 Instant communication method
CN104012062A (en) * 2011-12-20 2014-08-27 高通股份有限公司 Exchanging compressed version of previously communicated session information in commucations system
CN104170317A (en) * 2012-03-16 2014-11-26 株式会社理光 Communication control system and control device
CN102664939A (en) * 2012-04-13 2012-09-12 江苏诚迈科技有限公司 Method and device for mobile terminal of screen mirror image
CN103796013A (en) * 2014-01-17 2014-05-14 五八同城信息技术有限公司 Method for photo compression in mobile terminal instant messaging
CN103997519A (en) * 2014-05-14 2014-08-20 小米科技有限责任公司 Method and device for transmitting image
CN105992014A (en) * 2015-02-11 2016-10-05 中国移动通信集团公司 Method of projecting image data and apparatus thereof, sending terminal and receiving terminal
CN108174023A (en) * 2017-12-19 2018-06-15 珠海市魅族科技有限公司 Information displaying method and device, computer installation and computer readable storage medium
US20210026527A1 (en) * 2018-03-19 2021-01-28 FABIAN Humbert Method for interaction between at least one user and/or a first electronic device and a second electronic device
CN111193948A (en) * 2020-01-07 2020-05-22 上海步频电子科技有限公司 Picture transmission and display method and system of display terminal
CN114125018A (en) * 2020-08-27 2022-03-01 腾讯科技(深圳)有限公司 Session-based information processing method and device, computer equipment and storage medium
CN112134788A (en) * 2020-09-18 2020-12-25 Oppo广东移动通信有限公司 Event processing method and device, storage medium, mobile terminal and computer
CN114764349A (en) * 2021-01-04 2022-07-19 腾讯科技(深圳)有限公司 Control method, device, medium and electronic equipment for cross-application running of sub-applications
CN113569037A (en) * 2021-01-18 2021-10-29 腾讯科技(深圳)有限公司 Message processing method and device and readable storage medium
CN113965640A (en) * 2021-10-11 2022-01-21 维沃移动通信有限公司 Message processing method and device
CN114741213A (en) * 2021-10-22 2022-07-12 华为技术有限公司 Notification processing method, chip, electronic device and computer-readable storage medium
CN114915607A (en) * 2022-07-18 2022-08-16 荣耀终端有限公司 Notification message processing method, electronic equipment and system

Similar Documents

Publication Publication Date Title
CN112269527B (en) Application interface generation method and related device
US20220368797A1 (en) Incoming call alert method and terminal
CN110865837B (en) Method and terminal for system upgrade
EP4206864A1 (en) Process scheduling method and terminal device
CN116774809A (en) Method and device for adjusting frequency, electronic equipment and readable storage medium
CN113656490B (en) Data synchronization method, device, terminal and storage medium
CN116048933A (en) Fluency detection method
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
EP4095723B1 (en) Permission reuse method, permission reuse-based resource access method, and related device
WO2023005751A1 (en) Rendering method and electronic device
CN112817610A (en) Cota package installation method and related device
CN116719649A (en) Session notification prompting method, electronic equipment and readable storage medium
CN110704157B (en) Application starting method, related device and medium
CN116055715B (en) Scheduling method of coder and decoder and electronic equipment
CN117216428B (en) Webpage resource request method, terminal equipment and computer readable storage medium
WO2024037346A1 (en) Page management method and electronic device
CN115061758B (en) Application display method, terminal, electronic device and storage medium
EP4296845A1 (en) Screen projection method and system, and related apparatus
CN117270917B (en) Software upgrading method and electronic equipment
CN113938550B (en) Terminal equipment, information feedback method and storage medium
CN113642010B (en) Method for acquiring data of extended storage device and mobile terminal
CN113542315B (en) Communication framework, business event processing method and device
CN111142648B (en) Data processing method and intelligent terminal
CN117707242A (en) Temperature control method and related device
CN117714413A (en) Method for determining device brand information, router and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination