Method and apparatus for displaying instant messaging messages
By displaying summaries of new messages from instant messaging apps on the desktop of the terminal device, the problem of inconvenience for users to read new messages in certain scenarios is solved, achieving both convenience and space saving.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2026-03-17
AI Technical Summary
In certain scenarios (such as when taking notes in a meeting room), it is inconvenient for users to open the instant messaging app by clicking or using a voice assistant to read new messages, resulting in poor convenience for reading new messages.
When the icon of the instant messaging app is displayed on the desktop of the terminal device, it is displayed in a small area when no new messages have been received, and a new message summary is displayed in a larger area when a new message is received. New messages are obtained by listening to the notification center or the new message callback interface, and the summary is shown or hidden according to the user's operation.
It saves desktop space while improving the convenience of users reading new messages, reduces development costs and push notification interference, avoids interference from read messages, and displays complete information when necessary.
Smart Images

Figure CN115904142B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminals, and specifically to a method and apparatus for displaying instant messaging messages. Background Technology
[0002] Instant messaging (IM) is a function that enables the sending and receiving of information instantly. Applications (APPs) with instant messaging capabilities can be called instant messaging APPs. When an instant messaging APP receives a new message, it will notify the user to read the message via a red dot in the upper right corner of the IM app icon. Users can open the IM app by clicking the icon or by using a voice assistant, thus completing the reading of the new message.
[0003] In some situations, it's inconvenient for users to read new messages using the methods described above. For example, when a user is in a meeting room taking notes, it's inconvenient to tap the screen to open the instant messaging app, nor is it convenient to open the app via voice assistant. Improving the ease with which users can read new messages is a problem that needs to be addressed. Summary of the Invention
[0004] This application provides a method, apparatus, computer-readable storage medium, and computer program product for displaying instant messaging messages, which can improve the convenience for users to read new messages.
[0005] In a first aspect, a method for instant messaging is provided, comprising: displaying an icon of an instant messaging app in a first area of a desktop; obtaining a new message from the instant messaging app; obtaining a summary from the new message; and displaying the summary in a second area of the desktop, wherein the area of the second area is larger than the area of the first area, and the summary covers the icon of the instant messaging app.
[0006] Before the instant messaging app receives a new message, its icon is displayed in a small area (the first area) on the desktop, saving desktop space. After the instant messaging app receives a new message, a summary of the message is displayed in a larger area (the second area), allowing the user to access the new message without interacting with the app. Therefore, this embodiment improves the convenience of reading new messages while saving desktop space.
[0007] In one implementation, when the push function is enabled, obtaining new messages from the instant messaging app includes: listening to the notification center; when the status of the notification center changes, determining whether the source of the push message received by the notification center is the instant messaging app; when the source of the push message is the instant messaging app, obtaining the push message from the notification center, wherein the push message is a new message from the instant messaging app.
[0008] When push notifications are enabled, the desktop app can directly receive new messages from the instant messaging app from the notification center without calling the instant messaging app's API. Therefore, it does not need to obtain API call authorization from the instant messaging app, thus reducing development costs.
[0009] In one implementation, when push notifications are not enabled, obtaining new messages from the instant messaging app includes: obtaining new messages from the instant messaging app through the instant messaging app's new message callback interface.
[0010] Desktop apps can obtain new messages through the new message callback interface of instant messaging apps, allowing users to receive important messages (i.e., new messages from instant messaging apps) without push notifications, thus improving the user experience.
[0011] In one implementation, displaying a summary in a second area of the desktop includes: determining the status of a new message; and when the status of the new message is unread, displaying a summary of the new message in the second area of the desktop.
[0012] In some situations, users may read new messages through other means. For example, if a user is logged into both the desktop and mobile versions of the instant messaging app, and views a new message on the desktop, the phone can determine that the message is read and will not display it in the second area of the screen. However, if the user is only logged into the mobile app, or if the user does not view the message on the desktop, the phone can display a summary of the message in the second area of the screen. This embodiment avoids interference from read messages for the user.
[0013] In one implementation, before displaying the summary in the second area of the desktop, the method further includes: determining the information content of the summary of the new message; and determining the area of the second area based on the information content of the summary, wherein the area of the second area is positively correlated with the information content of the summary.
[0014] When a new message contains a large amount of information, the desktop app can display a summary of the new message in a larger second area; when a new message contains a small amount of information, the desktop app can display a summary of the new message in a smaller second area. In this way, users can obtain as much summary information as possible while reducing the interference of the summary on the user.
[0015] In one implementation, the method further includes: receiving a first operation from the user, the first operation being used to view the next or previous message of the new message; and displaying the next or previous message of the new message according to the first operation.
[0016] The first action can be a left or right swipe, or any other action; this application does not limit this. The desktop app displays summaries of multiple new messages based on the user's first action, minimizing the risk of the user missing new messages.
[0017] In one implementation, the method further includes: receiving a second operation from the user, the second operation being used to set the status of the new message to a read status; and setting the status of the new message to a read status according to the second operation.
[0018] The second operation can be a vertical swipe or other operations; this application does not limit this. After the user sets the status of a new message to "read," the new message notification indicates that the user's task has been completed. The desktop app can turn off the new message summary displayed in the second area and restore the instant messaging app icon to avoid interference from the new message summary.
[0019] In one implementation, the method further includes: receiving a third operation from the user, the third operation being used to read the complete information of the new message; and displaying the complete information of the new message based on the third operation.
[0020] The third operation can be a single click or other operations, which are not limited in this application. In some cases, the content of a new message is too long, or the playback effect of the new message in the second area is poor. Users can open the instant messaging app by clicking on the summary of the new message to obtain the complete information of the new message, or play the new message in a more suitable scenario, thereby improving the user experience.
[0021] One implementation also includes: turning off the new message summary when the display time of the new message summary is greater than or equal to a time threshold.
[0022] When the display time of a new message summary is greater than or equal to a time threshold, the desktop app can assume that the user has read the summary. Subsequently, the terminal device can close the summary to reduce its interference with the user.
[0023] In one implementation, the method further includes: when the summary is displayed in the second area, icons of other apps are displayed in the third area of the desktop, the second area and the third area do not overlap, and the other apps are: apps other than instant messaging apps that are covered by the summary.
[0024] Since the area of the second region is larger than that of the first region, when the desktop app displays a summary of a new message in the second region, it may obscure the icons of other apps. In this embodiment, when the desktop app displays a summary of a new message in the second region, it displays the icons of other apps in the third region, which can prevent the icons of other apps from being obscured by the summary and improve the user experience.
[0025] In one implementation, the method further includes: after the summary is closed, displaying icons of other apps in the second area, and closing icons of other apps in the third area.
[0026] This embodiment can restore the desktop to the state before the summary of new messages is displayed, improving the user experience.
[0027] In one implementation, the new message is a message that conforms to preset rules.
[0028] Users can pre-set filtering rules for new messages. When a new message received by the desktop app does not meet the filtering rules, the desktop app will not display a summary of the new message; when a new message received by the desktop app meets the filtering rules, the desktop app will display a summary of the new message. This can avoid interference from unimportant information such as group messages.
[0029] In a second aspect, an apparatus for displaying instant messaging messages is provided, including a unit for performing any of the methods in the first aspect. The apparatus may be a terminal device or a chip within a terminal device. The apparatus may include an input unit, a display unit, and a processing unit.
[0030] When the device is a terminal device, the processing unit may be a processor, the input unit may be a communication interface, and the display unit may be a graphics processing module and a screen; the terminal device may also include a memory for storing computer program code, which, when the processor executes the computer program code stored in the memory, causes the terminal device to perform any of the methods in the first aspect.
[0031] When the device is a chip within a terminal device, the processing unit can be a logic processing unit inside the chip, the input unit can be an output interface, pin, or circuit, and the display unit can be a graphics processing unit inside the chip. The chip may also include a memory, which can be memory within the chip (e.g., registers, caches, etc.) or memory located outside the chip (e.g., read-only memory, random access memory, etc.). The memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes any of the methods in the first aspect.
[0032] Thirdly, a computer-readable storage medium is provided that stores computer program code, which, when executed by displaying an instant messaging message, causes the device to perform any of the methods in the first aspect.
[0033] Fourthly, a computer program product is provided, the computer program product comprising: computer program code, which, when the computer program code is displayed and executed as an instant messaging message, causes the device to perform any of the methods in the first aspect. Attached Figure Description
[0034] Figure 1 This is a schematic diagram of a hardware system applicable to the apparatus of this application;
[0035] Figure 2 This is a schematic diagram of a software system applicable to the apparatus of this application;
[0036] Figure 3 This is a schematic diagram illustrating a scenario applicable to this application;
[0037] Figure 4 This is a schematic diagram of a method for displaying instant messaging messages provided in this application;
[0038] Figure 5 This is a schematic diagram illustrating two methods for obtaining new messages provided in this application;
[0039] Figure 6 This is a schematic diagram of a method for obtaining new messages provided in this application;
[0040] Figure 7 This is a schematic diagram of another method for obtaining new messages provided in this application;
[0041] Figure 8 This is a schematic diagram of a text message interface provided in this application;
[0042] Figure 9 This is a schematic diagram of an image message interface provided in this application;
[0043] Figure 10 This is a schematic diagram of a voice messaging interface provided in this application;
[0044] Figure 11 This is a schematic diagram of another text message interface provided in this application;
[0045] Figure 12 This is a schematic diagram illustrating a method for viewing the summary of the next new message provided in this application;
[0046] Figure 13 This is a schematic diagram of an interface for displaying the next new message, as provided in this application.
[0047] Figure 14 This is a schematic diagram illustrating a method for closing new message digests provided in this application. Detailed Implementation
[0048] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0049] Figure 1 A hardware system suitable for the apparatus of this application is shown.
[0050] Device 100 may be a mobile phone, smart screen, tablet computer, wearable electronic device, in-vehicle electronic device, augmented reality (AR) device, virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), projector, etc. This application embodiment does not limit the specific type of device 100.
[0051] Device 100 may include a processor 110, internal memory 121, sensor module 180, display screen 194, etc. Sensor module 180 may include a touch sensor 180K, etc.
[0052] It should be noted that, Figure 1 The structure shown does not constitute a specific limitation on device 100. In other embodiments of this application, device 100 may include a... Figure 1 The components shown may include more or fewer components, or the device 100 may include... Figure 1 The components shown may be a combination of certain components, or the device 100 may include... Figure 1 Sub-components of some of the components shown. Figure 1 The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0053] Processor 110 may include one or more processing units. For example, processor 110 may include at least one of the following processing units: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and neural network processing unit (NPU). These different processing units may be independent devices or integrated devices.
[0054] An NPU (Neural Processing Unit) is a processor that borrows from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, to quickly process input information and continuously learn. Through an NPU, device 100 can achieve intelligent cognitive functions, such as image recognition, facial recognition, speech recognition, and text understanding.
[0055] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0056] In some embodiments, processor 110 may include one or more interfaces. For example, processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, a mobile industry processor interface (MIPI), or a general-purpose input / output (GPIO) interface.
[0057] The I2C interface is a bidirectional synchronous serial bus, consisting of a serial data line (SDA) and a serial clock line (SCL). For example, processor 110 can couple touch sensor 180K through the I2C interface, enabling processor 110 and touch sensor 180K to communicate via the I2C bus interface, thus realizing the touch function of device 100.
[0058] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194. The MIPI interface includes a display serial interface (DSI). In some embodiments, the processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the device 100.
[0059] The GPIO interface can be configured via software. It can be configured as a control signal interface or a data signal interface. In some embodiments, the GPIO interface can be used to connect the processor 110 to the display screen 194 and the sensor module 180. The GPIO interface can also be configured as an I2C interface or a MIPI interface.
[0060] Figure 1 The connection relationships between the modules shown are merely illustrative and do not constitute a limitation on the connection relationships between the modules of device 100. Optionally, the modules of device 100 may also adopt a combination of various connection methods described in the above embodiments.
[0061] Device 100 can implement display functions via a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 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, which execute program instructions to generate or modify display information.
[0062] The display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, the device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0063] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function (e.g., sound playback and image playback). The data storage area may store data created during the use of device 100 (e.g., audio data and phonebook). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, and universal flash storage (UFS). Processor 110 executes various processing methods of device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.
[0064] Touch sensor 180K, also known as a touch device, can be disposed on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a touch display. Touch sensor 180K is used to detect touch operations applied to or near it. Touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be disposed on the surface of device 100, and in a different location from display screen 194.
[0065] The hardware system of device 100 has been described in detail above. The software system of device 100 is described below. The software system can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment takes a layered architecture as an example to exemplarily describe the software system of device 100.
[0066] like Figure 2 As shown, a layered architecture software system is divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into four layers, from top to bottom: the application layer, the application framework layer, the Android Runtime and system libraries, and the kernel layer.
[0067] The application layer can include applications such as desktop apps and instant messaging apps.
[0068] The desktop app collects new messages through a data collection module. For example, the data collection module can collect new messages from the notification center and instant messaging apps, and then pass the new messages to the display module, which prepares to display the new messages on the display screen 194.
[0069] The desktop app also includes a status processing module, which is used to obtain the status of new messages. For example, the status processing module obtains the status of new messages from the instant messaging app. When the status of a new message is "read", the status processing module can instruct the display module to close the new message.
[0070] The instant messaging app can retrieve new messages from the server. When the push function is enabled on device 100, the instant messaging app can send the new messages to the notification center for unified processing. When the push function is not enabled on device 100, the instant messaging app can send the new messages to the data collection module of the desktop app through the interface call of the desktop app.
[0071] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer may include some predefined functions.
[0072] For example, the application framework layer includes a window manager, content providers, a view system, a phone manager, a resource manager, and a notification center.
[0073] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture the screen.
[0074] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, and phone books.
[0075] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views; for example, a display interface including a text notification icon can include views for displaying text and views for displaying images.
[0076] The phone manager is used to provide communication functions for device 100, such as the management of call status (connected or disconnected).
[0077] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, and video files.
[0078] The Notification Center allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the Notification Center can be used to notify users of download completions and message alerts. The Notification Center can also manage notifications that appear as icons or scrolling text in the system's top status bar, such as notifications from background applications. Furthermore, the Notification Center can manage notifications that appear on the screen as dialog boxes, such as text messages in the status bar, sound alerts, electronic device vibrations, and indicator light flashing.
[0079] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0080] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0081] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0082] The system library can include multiple functional modules, such as: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES for embedded systems) and 2D graphics engines (e.g., Skia graphics library (SGL)).
[0083] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0084] The media library supports playback and recording of various audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, Moving Picture Experts Group Audio Layer III (MP3), Advanced Audio Coding (AAC), Adaptive Multi-rate (AMR), Joint Photographic Experts Group (JPG), and Portable Network Graphics (PNG).
[0085] The 3D graphics processing library can be used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0086] A 2D graphics engine is a graphics engine for 2D drawing.
[0087] The kernel layer is the layer between hardware and software. It can include driver modules such as display drivers, camera drivers, audio drivers, and sensor drivers.
[0088] The following example, using a display interface scenario, illustrates the workflow of the software and hardware systems of device 100.
[0089] When a user touches the touch sensor 180K, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event, which includes information such as touch coordinates and a timestamp of the touch operation. This raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer, identifies the control corresponding to the raw input event, and notifies the application (APP) corresponding to that control. For example, if the touch operation is a single click and the APP corresponding to the control is an instant messaging APP, the instant messaging APP, after being awakened by the single click, can call the kernel layer's display driver via API. The display driver then controls the display screen 194 to display the new message interface of the instant messaging APP.
[0090] In some situations, it's inconvenient for users to read new messages using the methods described above. For example, when a user is in a meeting room taking notes, it's inconvenient to tap the screen to open an instant messaging app. Therefore, there's a need to provide a method that improves the convenience of reading new messages for users.
[0091] The following are the features Figure 1 and Figure 2Taking a mobile phone with the structure shown as an example, this application introduces a method for displaying instant messaging messages.
[0092] Figure 3 This is one scenario applicable to this application. The mobile phone has an instant messaging app installed. When the instant messaging app has not received any new messages, the desktop app displays its icon in the first area of the desktop, i.e., executes... Figure 4 S410 in the method shown.
[0093] After the instant messaging app receives a new message, the desktop app can execute... Figure 4 S420 to S440 in the method shown.
[0094] S420: Get new messages from instant messaging apps.
[0095] Depending on whether the phone's push notification function is enabled, when an instant messaging app receives a new message, the desktop app receives the new message in two ways: Figure 5 As shown.
[0096] Scenario 1: Push notifications are enabled.
[0097] When push notifications are enabled, there are two transmission paths for new messages:
[0098] Path 1: Instant messaging app server → Push server → Notification center;
[0099] Path 2: Instant Messaging App's Server → Instant Messaging App.
[0100] The desktop app obtains new messages through path one. In this path, the desktop app uses a data collection module to monitor whether the status of the notification center has changed. When the status of the notification center changes, the data collection module determines that a new message has arrived and obtains the new message (including the new message's package name, header, and content) from the notification center.
[0101] The ability to retrieve new messages from the notification center in a desktop app can be achieved by inheriting the NotificationListenerService class and overriding the onNotificationPosted method. For example, the overridden onNotificationPosted method includes the following:
[0102] / / Triggered when a new message is received
[0103] @Override
[0104] public void onNotificationPosted(StatusBarNotification sbn){
[0105] / / TODO Auto-generated method stub
[0106] Bundle extras=sbn.getNotification().extras;
[0107] / / Get the package name of the new messaging app
[0108] String notificationPkg=sbn.getPackageName().extras;
[0109] / / Header for retrieving new messages
[0110] String notificationTitle=extras.getString(Notification.EXTRA_TITLE);
[0111] / / Get new message content
[0112] String notificationText=extras.getString(Notification.EXTRA_TITLE);
[0113] };
[0114] The packet name indicates the APP corresponding to the new message. After the desktop APP determines that the new message comes from the instant messaging APP, it obtains the information required to display the new message from the packet through the data collection module, such as sender information, message type and message content, and prepares the user interface (UI) resources of the instant messaging APP. Then, it displays the summary of the new message on the desktop, that is, it executes S430 and S440.
[0115] In this embodiment, the desktop app can directly obtain new messages from the instant messaging app from the notification center without calling the instant messaging app's interface. Therefore, it is not necessary to obtain the instant messaging app's interface call authorization, thereby reducing development costs.
[0116] Scenario 2: Push notifications are not enabled.
[0117] If push notifications are not enabled, new messages will only be transmitted via path two mentioned above. Desktop apps will need to retrieve new messages from instant messaging apps.
[0118] Instant messaging app developers can open new message callback interfaces, such as onNewMsgRcvd(MSG){}. The parameters of this interface can include information such as the message sender (MSG.sender), message icon (MSG.icon), and message content (MSG.content).
[0119] Desktop apps can implement this interface in the following ways, such as:
[0120] Class Implement Interface→onNewMsgRcvd(MSG){
[0121] MSG.sender;
[0122] MSG.content;
[0123] MSG.icon;
[0124] };
[0125] When an instant messaging app receives a new message, it calls back this interface to pass the new message to the desktop app. In other words, a new message triggers the instant messaging app to call back this interface to pass the new message to the desktop app, which then displays a summary of the new message on the desktop. This allows users to receive new messages from the instant messaging app without the interference of push notifications, thus improving the user experience.
[0126] In one alternative implementation, users can pre-set filtering rules for new messages. If the desktop app determines that a new message does not meet the filtering rules, it will not display the message; conversely, if the desktop app determines that a new message meets the filtering rules, it will display the message. This avoids interference from unimportant information such as group messages.
[0127] For example, a user can set a whitelist, with the filtering rule being that the sender of a new message is on the whitelist. When the sender of a new message is on the whitelist, the new message meets the filtering rule, and the desktop app determines to display the new message, executing steps S430 and S440. When the sender of a new message is not on the whitelist, the new message does not meet the filtering rule, and the desktop app determines not to display the new message, no longer executing steps S430 and S440.
[0128] For example, users can set up a blacklist, with the filtering rule being that the sender of a new message is not on the blacklist. When the sender of a new message is on the blacklist, the new message does not meet the filtering rule, and the desktop app will not display the new message and will not execute S430 and S440. When the sender of a new message is not on the blacklist, the new message meets the filtering rule, and the desktop app will display the new message and execute S430 and S440.
[0129] S430, retrieve summary from new messages.
[0130] The above summary may include information such as the message sender, message icon, and message content. This application does not limit the specific content of the summary.
[0131] S440 displays a summary in a second area of the desktop, where the area of the second area is larger than that of the first area, and the summary covers the icon of the instant messaging app.
[0132] In one alternative implementation, the desktop app determines the status of a new message before executing S440; when the status of the new message is unread, a summary of the new message is displayed in the second area of the desktop.
[0133] In some situations, users may read new messages through other means. For example, if a user is logged into both the desktop and mobile versions of the instant messaging app, and views a new message on the desktop, the phone can determine that the message is read and will not display it in the second area of the screen. However, if the user is only logged into the mobile app, or if the user does not view the message on the desktop, the phone can display a summary of the message in the second area of the screen. This embodiment avoids interference from read messages for the user.
[0134] Figure 6 and Figure 7 The sequence of steps for displaying a new message is shown in different scenarios.
[0135] Figure 6 In the process, after the Notification Service receives a new message, the desktop app's data collection module retrieves the new message from the Notification Service; then, the desktop app's filtering module filters the new message based on preset filtering rules and extracts a summary of the new message that matches the filtering rules; finally, the desktop app's display module displays the summary in a second area according to the scenario.
[0136] Figure 7 In the process, after the instant messaging app receives a new message, the desktop app's data collection module retrieves the new message from the instant messaging app; then, the desktop app's filtering module filters the new message based on preset filtering rules and extracts a summary of the new message that matches the filtering rules; finally, the desktop app's display module displays the summary in a second area according to the scenario.
[0137] The following describes an example of displaying a summary in a second area based on the scenario.
[0138] Scenario 1: New messages are text.
[0139] like Figure 8 As shown, the desktop app can display a summary of a new message within a larger area (i.e., the second area), such as the time the text was received (just now), the sender's identity (Alice), the user's avatar, and the content of the text (I love you), all of which can be obtained from the new message's data packet.
[0140] If the text content is short, the desktop app can display all the text content directly in the second area; if the text content is long, the desktop app can display part of the text content in the second area, and users can open the instant messaging app by clicking on the second area to get the full text content.
[0141] Scenario 2: The new message is an image.
[0142] like Figure 9 As shown, the desktop app can display a summary of new messages within a larger area (i.e., the second area), such as the time the image was received (just now), the sender's identity (Alice), and the image content (heart-shaped image).
[0143] If the image is small, the desktop app can display the entire image in the second area; if the image is large (e.g., a long image), the desktop app can display a portion of the image in the second area, and the user can open the instant messaging app by clicking on the second area to access a portion of the image.
[0144] Scenario 3: The new message is a voice message.
[0145] like Figure 10 As shown, the desktop app can display a summary of new messages within a larger area (i.e., the second area), such as the time the voice message was received (just now), the sender's identity (Alice), and the image of the voice message (speaker image). Users can directly click on the image of the voice message to play it, or they can open the instant messaging app and play the voice message by clicking on the sender's avatar, etc.
[0146] The above scenarios are examples and not limitations, and the applicable scenarios for this application are not limited to these. For example, when the new message is a video, the desktop app can display a screenshot of the video in the second area, prompting the user to open the instant messaging app to play the video.
[0147] As can be seen from the above scenario, before the instant messaging app receives a new message, the app icon is displayed in a small area on the desktop (i.e., the first area), saving desktop space. After the instant messaging app receives a new message, a summary of the new message is displayed in a larger area on the desktop (i.e., the second area), allowing the user to access the new message without interacting with the instant messaging app. Therefore, the method for displaying instant messaging messages provided in this application improves the convenience for users to read new messages while saving desktop space.
[0148] In addition, Figures 8-10 In the interface shown, when the second area of the desktop app displays a summary of a new message, the icons of apps that might be obscured by the summary (such as file management apps, email apps, and weather apps) are processed and displayed in an area that does not overlap with the second area. This avoids the icons of these apps being obscured by the summary of the new message and improves the user experience.
[0149] For app icons that may be obscured by the summary, the desktop app can display these app icons in a blank area, or rearrange all app icons.
[0150] For example, Figure 3 The weather app icon shown is located in the second area. When the desktop app displays a summary of a new message, it can display the weather app icon. Figure 3 The results are displayed in the blank area shown. Figure 8 As shown.
[0151] For example, Figure 3 The icons for the weather app, email app, and file manager app are all located in the second area. When the desktop app displays a summary of a new message, it can rearrange the icons of the weather app, email app, and file manager app with the icons of the calendar app, calculator app, music app, and alarm clock app before displaying them on the desktop, as shown below. Figure 9 As shown.
[0152] This application does not impose any restrictions on how app icons that may be obscured by the abstract are displayed.
[0153] In one alternative implementation, the second region is a region of variable area. The desktop app can determine the amount of information in the summary of the new message before executing S440, and determine the area of the second region based on the amount of information.
[0154] For example, if the new message is text, and the amount of text is small, the desktop app can determine that the area of the second region is twice the area of the first region. Figure 8As shown; when there is a large amount of text, the desktop app can increase the size of the second area, such as... Figure 11 As shown, the area of the second region is positively correlated with the amount of information in the new message. This allows users to obtain as much summary as possible while minimizing the distraction caused by the summary.
[0155] For example, text typically occupies less memory than images. When a new message is text, if the desktop app determines it's a message with limited information, it can set the area of the second region to twice the area of the first region. Figure 8 As shown; when the new message is an image, the desktop app determines that the new message is information-rich and can set the area of the second area to be four times the area of the first area, such as... Figure 9 As shown, the area of the second region is positively correlated with the amount of information in the new message.
[0156] Optionally, the desktop app can set an upper limit on the size of the second area, which can be four times the size of the first area, to avoid the second area being too large and negatively impacting the user experience.
[0157] The second area can be an area that covers the icon of the instant messaging app and is larger than the area of the first area. This application does not limit other features of the second area.
[0158] In another alternative implementation, the area of the second region is a preset value. Users can pre-set the size of the second region, so the desktop app does not need to calculate the area of the second region, thereby reducing the power consumption of displaying new messages. This implementation is suitable for scenarios where the phone is in power-saving mode and displaying new messages.
[0159] In some scenarios, a desktop app may receive multiple new messages from an instant messaging app simultaneously (or within a short period of time). The desktop app can then select one of these messages as the target message and display a summary of it. The target message can be the earliest message received by the desktop app, the latest message received by the desktop app, or a message from a specific contact set by the user. This application does not limit the method of selecting the target message.
[0160] Users can interact with the second area when they need to view summaries of other messages (i.e., messages other than the target message among multiple new messages).
[0161] like Figure 12As shown, the second area currently displays a summary of Alice's new message. Users can swipe left in the second area. Upon receiving this swipe, the desktop app determines that the user wants to view the summary of the next new message and then displays the next message in the second area. The display result of the next message is as follows: Figure 13 As shown. Users can also swipe right to view a summary of the previous new message. The desktop app displays summaries of multiple new messages based on user actions, minimizing the risk of users missing new messages.
[0162] Users can also view the summary of the previous or next new message through other operations. For example, users can view the summary of the next new message by clicking in the second area, and view the summary of the previous new message by double-clicking in the second area. This application does not limit the specific operation method.
[0163] After a user views the new message summary displayed in the second area, the new message summary will indicate that the user's mission has ended. The desktop app can close the new message summary displayed in the second area and restore the instant messaging app icon to avoid interference from the new message summary.
[0164] like Figure 14 As shown, after viewing a new message summary, the user can swipe up in the second area. Upon receiving this swipe, the desktop app confirms the new message summary is read and closes it. If there are no other new message summaries to display, the desktop app can then show... Figure 3 The interface shown; if there are other new message summaries to be displayed, the desktop app can continue to display other new message summaries to be displayed in the second area.
[0165] Users can also close the new message summary displayed in the second area through other operations, such as drawing a circle in the second area. This application does not limit the operation method for closing the new message summary displayed in the second area.
[0166] In one alternative implementation, if the user does not actively close the new message summary, the desktop app can close the new message summary when the display time of the new message summary is greater than or equal to a time threshold.
[0167] When the display time of a new message summary is greater than or equal to a time threshold (such as 30 seconds), the desktop app can assume that the user has read the new message summary. Subsequently, the desktop app can close the new message summary to reduce its interference with the user.
[0168] Optionally, when the desktop app receives multiple new messages from instant messaging, it can display summaries of the multiple new messages sequentially at preset time intervals (such as 10 seconds). Once the summary of the last new message has been displayed, the desktop app closes the summaries of all new messages.
[0169] After the new message summary is closed, the desktop app performs a restore operation, restoring the desktop to its previous state. Figure 3 The state shown.
[0170] For example, closing the desktop app Figure 8 After receiving a new message summary, if no restore operation is performed, a blank area will remain in the second area, disrupting the user's desktop layout. The desktop app can display icons for other apps (such as file management apps, email apps, and weather apps) in the second area, and disable icons for other apps in the third area (the area on the desktop excluding the second area), thus restoring the desktop to its original state. Figure 3 The state shown is as described. This embodiment can restore the desktop to the state before the new message summary was displayed, improving the user experience.
[0171] This application also provides a computer program product that, when executed by a processor, implements the methods described in any of the method embodiments of this application.
[0172] The computer program product can be stored in memory and, after processes such as preprocessing, compilation, assembly, and linking, is finally converted into an executable object file that can be executed by a processor.
[0173] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, implements the methods described in any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.
[0174] The computer-readable storage medium can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0175] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process and technical effects of the above-described apparatus and equipment can be referred to the corresponding processes and technical effects in the foregoing method embodiments, and will not be repeated here.
[0176] In the several embodiments provided in this application, the systems, apparatuses, and methods disclosed can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The apparatus embodiments described above are merely illustrative; the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Multiple units or components can be combined or integrated into another system. Furthermore, the coupling between units or components can be direct coupling or indirect coupling, including electrical, mechanical, or other forms of connection.
[0177] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0178] Furthermore, the terms "system" and "network" are often used interchangeably in this paper. The term "and / or" in this paper merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this paper generally indicates that the preceding and following related objects have an "or" relationship.
[0179] In summary, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method of displaying an instant messaging message, characterized by, The method comprises the following steps: displaying an icon of an instant messaging APP in a first area of a desktop; determining whether a push function is enabled; when a state of the notification center changes, determining whether a source of a push message received by the notification center is the instant messaging APP; when the source of the push message is the instant messaging APP, obtaining the push message from the notification center, wherein the push message is a new message of the instant messaging APP; obtaining the new message from the notification center through a data collection module of the desktop APP; when it is determined by the desktop APP that the new message does not meet a filtering rule, not displaying the new message; when it is determined by the desktop APP that the new message meets the filtering rule, obtaining a summary from the new message; after the desktop APP obtains the summary, determining whether a power saving mode is enabled; if the power saving mode is enabled, displaying the new message in a second area of a preset size through the desktop APP; if the power saving mode is not enabled, determining a size of the second area according to an information amount of the summary through the desktop APP; displaying the summary in the second area of the desktop and displaying icons of other APPs in a third area of the desktop, wherein the size of the second area is greater than the size of the first area, the size of the second area is positively correlated with the information amount, the summary covers the icon of the instant messaging APP, the second area and the third area do not overlap, the third area includes an undistributed icon area, the undistributed icon area is a part of the desktop that has no icons arranged when the icon of the instant messaging APP is displayed in the first area, the other APPs are APPs other than the instant messaging APP that are covered by the summary; if the new message is text, the summary includes a receiving time of the text, an identity of a sender of the text, a user avatar, and content of the text; if the new message is a picture, the summary includes a receiving time of the picture, an identity of a sender of the picture, and content of the picture; if the new message is a voice, the summary includes a receiving time of the voice, an identity of a sender of the voice, and a speaker icon; the second area further includes a number of unread messages of the instant messaging APP, and the unread messages include the new message and unread messages received before the new message; receiving a swiping operation performed by a user in the second area; in response to the swiping operation, displaying a next message or a previous message of the new message in the second area; receiving a circling operation performed by the user in the second area; in response to the circling operation, closing the summary of the new message displayed in the second area; after the summary is closed, performing a restoring operation by the desktop APP to restore the icons on the desktop to a state before the second area is displayed.
2. The method of claim 1, when the push function is not enabled, the obtaining the new message of the instant messaging APP comprises: The new message callback interface of the instant messaging APP is used to obtain a new message of the instant messaging APP.
3. The method according to claim 1 or 2, characterized in that, The displaying of the summary in the second area of the desktop comprises: determining a state of the new message; when the state of the new message is an unread state, displaying the summary in the second area of the desktop.
4. The method according to claim 1 or 2, characterized in that, Further comprising: receiving a second operation of a user, the second operation being used to set the state of the new message as a read state; setting the state of the new message as the read state according to the second operation.
5. The method according to claim 1 or 2, characterized in that, Further comprising: receiving a third operation of a user, the third operation being used to read complete information of the new message; displaying the complete information according to the third operation.
6. An apparatus for displaying an instant messaging message, the apparatus comprising: The apparatus comprises a processor and a memory, the processor and the memory are coupled, the memory is used to store a computer program, when the computer program is executed by the processor, the computer program makes the apparatus execute the method in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, when the computer program is executed by the processor, the computer program makes the processor execute the method in any one of claims 1 to 5.
Citation Information
Patent Citations
Terminal and information display method
CN103067577A
Pushing method and apparatus of desktop notifications
CN106339231A
Application program information display method and device, electronic equipment and storage medium
CN112214142A