Application message processing method and electronic equipment
The electronic device obtains and processes message status information between different applications, which solves the problem of users repeatedly processing the same message when processing the same reminder event, and realizes the synchronization management of application messages and the improvement of user experience.
Patent Information
- Application Number
- CN202311781195.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2025-06-24
AI Technical Summary
Different applications may repeatedly display the same notification message when users handle the same reminder event, affecting the user experience.
The status information sent by the first application is obtained by the electronic device, and it is determined that the notification message of the second application includes a message related to the first application message, and the status of the second application is set to processed.
It realizes synchronous management of related messages in different applications, prevents users from repeatedly processing the same messages, and improves the user experience.
Smart Images

Figure CN120196458A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of terminals, and in particular, to an application message processing method and an electronic device. Background Art
[0002] Various applications installed on an electronic device can provide various services for users. Each application will generate a large number of notification messages, and different applications may display notification messages for the same reminder event.
[0003] For example, when a user purchases a commodity using a shopping application, the shopping application, the payment application, and the short message may all display a logistics notification message about the commodity. For example, when the express delivery arrives at the designated location of the user, the shopping application, the payment information, and the short message will all display a notification message indicating that the express delivery is waiting to be picked up. After the user picks up the item, the user still needs to manually operate and click the notification messages of each application to eliminate the unread message reminders of each application. It can be seen that the user needs to repeatedly process the same message, which affects the user experience. Summary of the Invention
[0004] This application provides an application message processing method and an electronic device, which are used to provide a processing or reminder method for the same or similar information of multiple applications to improve the user experience.
[0005] In a first aspect, this application provides an application message processing method, which can be executed by an electronic device. The method includes: the electronic device obtains first status information sent by a first application, where the first status information is used to indicate that the user has processed a first application message in the first application; the electronic device determines that a second application message related to the first application message is included in a notification message of a second application; the electronic device sets the status of the second application message to processed.
[0006] In the above method, the electronic device can synchronously manage the application messages related in different applications. After the user processes the first application message in the first application, the electronic device can set the status of the second application message related to the first application message in the second application to processed, thereby reminding the user that the application message has been processed and preventing the user from repeatedly processing the same message, improving the user experience.
[0007] In a possible design, the determining that a second application message related to the first application message is included in the notification message of the second application includes: matching at least one notification message in the second application according to the first status information, and determining that the second application message in the at least one notification message matches the first application message successfully.
[0008] With this design, after the electronic device determines that the first application message has been processed, it can search for application messages related to the first application message in other applications to determine messages for reminding the user of the same event in different applications.
[0009] In a possible design, before matching the first application message with the notification message of the second application according to the first status information, the method further includes: in response to a first operation of the user, displaying an interface of the second application; performing image recognition on the interface of the second application to obtain the notification message displayed in the interface of the second application.
[0010] With this design, the electronic device can perform image recognition on the interface of the second application to obtain the content of the notification message displayed in the second application, so as to obtain the notification message in the second application without modifying the message reporting mechanism of the second application.
[0011] In a possible design, before performing image recognition on the interface of the second application, the method further includes: determining that the second application belongs to a preset application set.
[0012] Optionally, the preset application set includes applications that need to be monitored, and applications in the preset application set will generate application messages for reminding the user of the same event.
[0013] In a possible design, setting the status of the second application message to processed includes: when the second application message is an unread message, setting the second application message to a read message.
[0014] With this design, the electronic device can cancel the unread reminder of the second application message, so that the user does not need to repeatedly process the same application notification message.
[0015] In a possible design, setting the status of the second application message to processed includes: when the second application message is displayed in the interface of the second application, displaying a first icon in the display area of the second application message, where the first icon is used to remind the user that the second application message has been processed.
[0016] With this design, the electronic device can display an icon indicating that the second application message has been processed in the display area of the second application message, so that when the user views the second application message, they can timely learn that the application message has been processed without repeated operations.
[0017] In a possible design, the first status information includes the type, message parameters, and status of the first application message.
[0018] With this design, the first application can report the status of the first application message to the electronic device in a timely manner, facilitating the electronic device to manage the status of the application message.
[0019] In a possible design, after obtaining the first status information sent by the first application and before determining that the notification message of the second application includes a second application message related to the first application message, the method further includes: performing data quality verification on the first status information to determine that the first status information meets a preset data format.
[0020] With this design, the electronic device can perform data quality on the received first status information to ensure that the electronic device can obtain correct information about the first application message from the first status information.
[0021] In a possible design, the first application message and the second application message are pick-up notification messages for the same express delivery.
[0022] With this design, when the user completes the pick-up of the express delivery through the first application message in the first application, the electronic device can set the second application message used to notify the pick-up of the same express delivery in the second application to the processed state, thereby preventing the user from mistakenly thinking that the express delivery has not been picked up and repeating the operation when viewing the second application message, improving the user experience.
[0023] In a possible design, the electronic device includes the first application and the second application; before obtaining the first status information sent by the first application, the method further includes: the first application obtains the first application message; the second application obtains the second application message, the second application message is related to the first application message, and the status of the second application message is unprocessed.
[0024] In a possible design, the electronic device includes the first application, the second application, and a middleware service module; the method further includes: the first application sends the first status information to the middleware service module through the application message status reporting interface of the middleware service module; the middleware service module broadcasts the first status information; the second application obtains the first status information through the application message status monitoring interface of the middleware service module; the second application determines that the notification message of the second application includes the second application message related to the first application message according to the first status information, and sets the status of the second application message to processed.
[0025] With this design, the middleware service module in the electronic device can be used to manage the status of the application messages of each application and notify the second application in a timely manner that the first application message has been processed, facilitating the second application to set the second application message to the processed state.
[0026] In a second aspect, the present application provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact with each other to implement the methods executed by the electronic device in the first aspect and its various embodiments. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementations.
[0027] In a third aspect, the present application provides an electronic device, including at least one processor and at least one memory, wherein computer program instructions are stored in the at least one memory. When the electronic device runs, the at least one processor executes the methods executed by the electronic device in the first aspect and its various embodiments.
[0028] In a fourth aspect, the present application further provides a computer program product containing instructions. When the computer program product runs on a computer, the computer is caused to execute the methods executed by the electronic device in any of the above aspects and their various embodiments.
[0029] In a fifth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer is caused to execute the methods executed by the electronic device in any of the above aspects and their various embodiments.
[0030] In a sixth aspect, the present application further provides a chip, which is used to read the computer program stored in a memory and execute the methods executed by the electronic device in any of the above aspects and their various embodiments.
[0031] In a seventh aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the methods executed by the electronic device in any of the above aspects and their various embodiments. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system can be composed of chips or can include chips and other discrete devices. Description of the Drawings
[0032] Figure 1 It is a schematic diagram of an application interface provided by an embodiment of the present application;
[0033] Figure 2 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0034] Figure 3 It is a software structure block diagram of an electronic device provided by an embodiment of the present application;
[0035] Figure 4A flowchart of an application message processing method provided by an embodiment of the present application;
[0036] Figure 5 A flowchart of an application message processing method provided by an embodiment of the present application;
[0037] Figure 6 A schematic diagram of an application interface provided by an embodiment of the present application;
[0038] Figure 7 A schematic diagram of the interface of a second application provided by an embodiment of the present application;
[0039] Figure 8 A schematic diagram of the interface of a second application provided by an embodiment of the present application;
[0040] Figure 9 A schematic diagram of the interface of a second application provided by an embodiment of the present application;
[0041] Figure 10 A flowchart of an application message processing method provided by an embodiment of the present application. Detailed implementation manners
[0042] In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of the present application, hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features.
[0043] It should be understood that "at least one" in the embodiments of the present application means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B may be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item) of the following" or a similar expression refers to any combination of these items, including any combination of single (item) or plural items (items). For example, at least one (item) of a, b, or c may represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be single or multiple.
[0044] Various applications installed on an electronic device can provide various services for users. Each application will generate a large number of notification messages, and different applications may display notification messages for the same reminder event.
[0045] For example, after a user purchases a product using a shopping app, the shopping app, payment app, and text messages may all display logistics notification messages regarding the product. For instance, when the express delivery arrives at the location designated by the user, the shopping app, payment app, and text messages will all display a notification message indicating that the express delivery is ready to be picked up. However, after the user picks up the package, the user still needs to manually click on the notification messages of each app to eliminate the unread message reminders of each app. Evidently, the user needs to repeatedly handle the same message, which affects the user experience.
[0046] In some embodiments, after the user picks up the package, the app generates a new notification message to remind the user that the express delivery has been picked up, such as Figure 1 which is a schematic diagram of an application interface provided by an embodiment of the present application. Referring to Figure 1 , the number of unread messages of the user is displayed on the main interface of the app. After the user clicks to jump to the message interface, a notification message indicating that the express delivery has been picked up can be displayed. However, referring to Figure 1 it can be seen that when the user has not clicked to view the message, the notification message reminding the user to pick up the package and the reminder message generated by the app after the user picks up the package both display unread reminders, and these messages still need to be manually processed by the user.
[0047] Based on the above problems, an embodiment of the present application provides an application message processing method to provide a way to process or remind the same or similar information of multiple apps, so as to improve the user experience. In the application message processing method provided by an embodiment of the present application, an electronic device obtains first status information sent by a first app, and the first status information is used to indicate that the user has processed a first app message. The electronic device determines that a second app message related to the first app message is included in the unread messages of the second app, and the electronic device sets the status of the second app message to processed. In this way, the electronic device can synchronously manage related application messages in different apps. After the user processes the first app message in the first app, the electronic device can set the status of the second app message related to the first app message in the second app to processed, thereby reminding the user that the app message has been processed, preventing the user from repeatedly processing the same message, and improving the user experience.
[0048] The following describes an electronic device and embodiments for using such an electronic device. The electronic device according to the embodiments of the present application can be a tablet computer, a mobile phone, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, etc. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.
[0049] In some embodiments of the present application, the electronic device may also be a portable terminal device that further includes other functions such as a personal digital assistant and / or a music player function. Exemplary embodiments of the portable terminal device include, but are not limited to, portable terminal devices equipped with or other operating systems.
[0050] Figure 2 FIG. is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application. As Figure 2 shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0051] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions. 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. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use this instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0052] The USB interface 130 is an interface that complies with the USB standard specification. Specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive the charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc.
[0053] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc. The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: The antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0054] The mobile communication module 150 may provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves through the antenna 1 and radiate it out. In some embodiments, at least some functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be provided in the same device.
[0055] The wireless communication module 160 may provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied to the electronic device 100. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves through the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be transmitted from the processor 110, perform frequency modulation and amplification on it, and convert it into electromagnetic waves through the antenna 2 and radiate it out.
[0056] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, such that electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0057] The display screen 194 is used to display the display interface of the application, such as the display page of the application installed on the electronic device 100, etc. The display screen 194 includes a display panel. The display panel can adopt 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 Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0058] The camera 193 is used to capture still images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB, YUV, etc. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0059] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store the operating system and the software code of at least one application program, etc. The data storage area can store the data generated during the use of the electronic device 100 (such as the captured images, recorded videos, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0060] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as pictures and videos are saved in the external memory card.
[0061] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc.
[0062] Among them, the sensor module 180 can include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
[0063] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194.
[0064] The touch sensor 180C, also known as the "touch panel". The touch sensor 180C can be disposed on the display screen 194. The touch sensor 180C and the display screen 194 form a touch screen, also known as the "touch screen". The touch sensor 180C is used to detect touch operations acting thereon or nearby. The touch sensor 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 the display screen 194. In other embodiments, the touch sensor 180C can also be disposed on the surface of the electronic device 100, at a different position from the display screen 194.
[0065] The keys 190 include a power-on key, a volume key, etc. The keys 190 can be mechanical keys or touch keys. The electronic device 100 can receive key inputs and generate key signal inputs related to the user settings and function controls of the electronic device 100. The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback. For example, touch operations on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light and can be used to indicate the charging state, the change in battery level, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation from the electronic device 100.
[0066] It can be understood that Figure 2The components shown do not specifically limit the electronic device 100. The electronic device may also include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. In addition, Figure 2 the combination / connection relationships between the components in
[0067] Figure 3 is also adjustable and modifiable. Figure 3 This is a software structure block diagram of an electronic device provided by an embodiment of the present application. As
[0068] shown, the software structure of the electronic device may be a layered architecture. For example, the software can be divided into several layers, and each layer has a clear role and division of labor. Communication between layers is through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom are the application layer, the application framework layer (framework, FWK), the runtime, and the system library, and the kernel layer. Figure 3 The application layer may include a series of application packages. As
[0069] shown, the application layer may include a camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include a gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In the embodiments of the present application, the application layer may include a target installation package of a target application downloaded by the electronic device from the server, and the function files and layout files in the target installation package are adapted to the electronic device. Figure 3 The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer may include some predefined functions. As
[0070] shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager. In the embodiments of the present application, the application framework layer may also include a middle platform service module.
[0071] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0072] The phone manager is used to provide the communication functions of the electronic device. For example, the management of call states (including answering, hanging up, etc.).
[0073] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on.
[0074] The notification manager enables applications to display notification information in the status bar. It can be used to convey informative messages, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background running application, and can also be a notification that appears on the screen in the form of a dialogue window. For example, it can prompt text information in the status bar, emit a prompt sound, vibrate the electronic device, blink the indicator light, etc.
[0075] The middle platform service module can be used to provide middle platform service call interfaces and middle platform service capabilities. Among them, the middle platform service capabilities include a monitoring mechanism for the application message status, a storage capability for the application message status, and a middle platform broadcast mechanism for the application message status. Applications installed in the electronic device can call the middle platform service interface and send status information to the middle platform service module after the user processes the application message. The middle platform service module can save the status information of the received application message. The middle platform service capabilities provided by the middle platform service module can determine whether the application message is in a processed or unprocessed state according to the status information sent by the application. The middle platform service module can set the status of the application messages related to the processed application message in other applications to processed. For example, the middle platform service module can send an indication message to other applications, and this indication message is used to indicate that the application message is in a processed state. Other applications can search for relevant application messages and set them to the processed state. Another example is that the middle platform service module can detect the application messages related to the processed application message in other applications and add an "already processed" icon to the relevant application message.
[0076] The runtime includes a core library and a virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0077] The core library consists of two parts: one is the functional functions that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files in the application layer and the 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.
[0078] The system library can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing library (e.g., OpenGL ES), 2D graphics engine (e.g., SGL), image processing library, etc.
[0079] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0080] The media library supports the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0081] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0082] The 2D graphics engine is a drawing engine for 2D drawing.
[0083] The kernel layer is the layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0084] The hardware layer can include various sensors, such as an acceleration sensor, a gyroscope sensor, a touch sensor, etc.
[0085] It should be noted that Figure 2 and Figure 3 The structure shown is only an example of the electronic device provided in the embodiments of the present application and cannot limit the electronic device provided in the embodiments of the present application. In specific implementations, the electronic device may have more or fewer devices or modules than Figure 2 or Figure 3 the structure shown.
[0086] Next, the application message processing method provided in the embodiments of the present application will be introduced.
[0087] Embodiment 1
[0088] Figure 4The flowchart of an application message processing method provided by an embodiment of this application. This method can be executed by an electronic device, and the electronic device can have the structure shown in Figure 2 and / or Figure 3 . Referring to Figure 4 , this method includes the following steps:
[0089] S401: The electronic device obtains first status information sent by a first application.
[0090] Optionally, the first status information is used to indicate that the user has processed a first application message. The first application message belongs to the first application, and the first application message can be a notification message for reminding the user in the first application. For example, the first application message can be a courier pickup reminder message, a payment due reminder message, etc.
[0091] After the user processes the first application message, the first application can send the first status information to the electronic device. The first status information can include the type, message parameters, and status of the first application message. The status of the first application message can include processed and unprocessed, for example. When the user has processed the first application message, the status of the first application message in the first status information is processed.
[0092] Optionally, referring to the structure of the electronic device shown in Figure 3 , in an embodiment of this application, the electronic device can include a middleware service module. The first application can call the application message status reporting interface of the middleware service module to send the first status information to the middleware service module.
[0093] After the electronic device obtains the first status information, it can perform data quality verification on the first status information. In practice, the electronic device can extract information such as the type, message parameters, and status of the first application message in the first status information, and perform data quality verification on the extracted information to determine whether it meets a preset data format. When the first status information meets the preset data format, the electronic device determines that the data quality verification of the first status information passes and stores the first status information. For example, assume that in the status information of the application message stored by the electronic device, a status value of 1 indicates processed, and a status value of 0 indicates unprocessed. When the first application message is a courier pickup message and the status value of the first application message in the first status information obtained by the electronic device is 1, it means that the courier has been picked up, and the electronic device determines that the data quality verification of the first status information passes; when the status value of the first application message is neither 0 nor 1, the electronic device determines that the data quality verification of the first status information fails.
[0094] S402: The electronic device determines that a second application message related to the first application message is included in the notification message of the second application.
[0095] In an alternative embodiment, the electronic device may match the first status information with the unread messages in the second application to determine that the unread messages in the second application include second application messages related to the first application messages. Wherein, the first application message and the second application message being related may mean that the content of the first application message is the same as the content of the second application message. Optionally, this embodiment may be executed by the middleware service module and the second application in the electronic device. For example, the middleware service module may send first indication information to the second application, and the first indication information may be used to indicate that the first application message is in a processed state. After receiving the first indication information, the second application may match the first indication information with the unread messages in the second application to determine that the second application message is an application message related to the first application message.
[0096] In another alternative embodiment, after the user operates the electronic device to start the second application, the electronic device may perform image recognition on the interface of the second application displayed on the screen to obtain the notification messages displayed in the interface of the second application. The electronic device may match the first status information with the notification messages in the second application to determine that the notification messages in the second application include second application messages related to the first application messages. Optionally, this embodiment may be executed by the middleware service module in the electronic device.
[0097] S403: The electronic device sets the status of the second application message to processed.
[0098] In an alternative embodiment, the electronic device may set the second application message as read. Optionally, after the second application in the electronic device receives the first indication information and determines that the unread messages in the second application include second application messages related to the first application messages, the second application may set the second application message from the unread state to the read state.
[0099] In another alternative embodiment, when the electronic device displays the second application message in the application interface of the second application, an icon of "processed" may be displayed in the display area of the second application message to remind the user that the second application message has been processed and the user does not need to process the second application message again.
[0100] In yet another alternative embodiment, the electronic device may no longer display the second application message in the interface of the second application, so as not to remind the user through the second application message anymore.
[0101] Through the application message processing method provided by the embodiments of this application, an electronic device can synchronously manage relevant application messages in different applications. After the user processes the first application message in the first application, the electronic device can set the status of the second application message related to the first application message in the second application to processed, thereby reminding the user that the application message has been processed and preventing the user from processing the same message repeatedly, improving the user experience.
[0102] Taking the express delivery pick-up message as an example, the application message processing method provided by the embodiments of this application will be further introduced below:
[0103] Embodiment 2
[0104] In Embodiment 2 of this application, taking the case where both the first application and the second application display the express delivery pick-up notification message as an example, Figure 5 is a flowchart of an application message processing method provided by the embodiments of this application. This method can be executed by the first application, the second application, and the middleware service module in the electronic device. Among them, there can be one or more second applications. Refer to Figure 5 , this method can include the following steps:
[0105] S501: The first application determines that the express delivery corresponding to the first application message has been picked up, and the first application sends the first status information to the middleware service module.
[0106] Optionally, the user can start the first application and view the first application message in the first application. The user can pick up the express delivery according to the pick-up information of the express delivery in the first application message. The process of the user completing the express delivery pick-up can be called the user realizing the express delivery pick-up through the first application. In implementation, multiple applications installed in the electronic device can generate application messages for reminding the user of the express delivery pick-up, and the user can realize the express delivery pick-up through any application. For example, Figure 6 is a schematic diagram of an application interface provided by the embodiments of this application. Refer to Figure 6 , Application 1, Application 2, and Application 3 in the electronic device can all generate and display application messages for reminding the user of the express delivery pick-up. The first application can be any one of Application 1, Application 2, and Application 3. For example, when the first application is Application 1, the second applications can be Application 2 and Application 3.
[0107] After the user picks up the express delivery, the express delivery management personnel can send a message to the server indicating that the express delivery has been picked up. The server can send a message indicating that the express delivery has been picked up to the first application in the electronic device. Then, the first application can determine that the express delivery corresponding to the first application message has been picked up. The first application can send the first status information to the middleware service module. The first status information can be used to indicate that the express delivery corresponding to the first application message has been picked up. Optionally, the first status information can include, for example, the application message type, message parameters, and status value. For example, Table 1 below is an example of the status information of an express delivery pickup notification message provided by an embodiment of the present application.
[0108] Table 1 Status Information of Express Delivery Pickup Notification Message
[0109]
[0110] Among them, a status value of 1 indicates that the express delivery has been picked up, and a status value of 0 indicates that the express delivery has not been picked up.
[0111] S502: The middleware service module parses and stores the first status information.
[0112] In an alternative implementation, the middleware service module can parse the first status information according to a preset data format, obtain the type, parameters, and status value of the first application message, and store the parsed first status information.
[0113] Optionally, before parsing the first status information, the middleware service module can also perform data quality verification on the first status information according to a preset data format. After the data quality verification of the first status information passes, S502 is then executed.
[0114] S503: The middleware service module sends the first indication information to the second application.
[0115] Among them, the first indication information can be used to indicate that the express delivery corresponding to the first application message has been picked up. For example, the first indication information can include express delivery related information and an express delivery status value. Among them, the express delivery related information can include at least one of the logistics company, express delivery number, and pickup code.
[0116] In an alternative implementation, the middleware service module can broadcast and send the first indication information. For example, the first indication information can include express delivery related information: Express Company XX, Express Delivery Number YY11223344545667, Pickup Code 7788-1233. The first indication information can also include an express delivery status value of 1, indicating that the express delivery has been picked up. The second application in the electronic device can monitor the first indication information through the application message status monitoring interface of the middleware service module. Among them, the second application can be an application in the electronic device that generates an express delivery pickup notification message.
[0117] S504: The second application sets the second application message related to the first application message to the read state.
[0118] Optionally, after receiving the first status information, the second application can determine the second application message related to the first application message among the unread messages of the second application. In implementation, the second application can match the express-related information corresponding to the first application message in the first status information with the express pickup notice message in the unread messages of the second application to determine the second application message. For example, assume that the first status information includes: express company XX, express order number YY11223344545667, pickup code 7788 - 1233, and the express status value is 1. The unread message of the second application can be, for example, "Your XX express with the last four digits 5667 has arrived at the express self-service cabinet. Please pick it up with the pickup code 7788 - 1233". The second application can determine that "5667" in the unread message of the second application matches "express order number YY11223344545667" in the first status information, "XX express" in the unread message of the second application matches "express company XX" in the first status information, and "pickup code 7788 - 1233" in the unread message of the second application matches "pickup code 7788 - 1233" in the first status information. Then the second application can determine that this unread message is the second application message related to the first application message.
[0119] After the second application determines the second application message and determines that the express status value in the first status information is 1, indicating that the express has been picked up, the second application can set the second application message to the read state. In implementation, the second application setting the second application message to the read state can be that the second application cancels the new message reminder of the second application message, or the second application can display a "picked up" icon in the display area of the second application message, or the second application can not display the second application message.
[0120] For example, Figure 7 is an interface schematic diagram of a second application provided by an embodiment of this application. Refer to Figure 7 , both the unread messages of the first application and the second application include express pickup notice messages. After the user picks up the express through the first application, the first application sends the first status information to the middle platform service module. After the second application receives the first indication information sent by the middle platform service module and determines that the express has been picked up according to the first indication information, it can cancel the unread reminder of the express pickup notice message, so that the user does not need to repeatedly process the same application notification message.
[0121] Another example, Figure 8 is an interface schematic diagram of a second application provided by an embodiment of this application. Refer to Figure 8, the unread messages of the first application and the second application both include express delivery pick-up notice messages. After the user picks up the express delivery through the first application, when the user clicks to view the messages of the second application, the second application can display a "picked up" icon in the display area of the second application messages, so that the user can timely obtain that the express delivery has been picked up.
[0122] For another example, Figure 9 This is a schematic diagram of the interface of a second application provided by an embodiment of the present application. Refer to Figure 9 , the unread messages of the first application and the second application both include express delivery pick-up notice messages. After the user picks up the express delivery through the first application, the second application can stop displaying the reminder of the second application messages, so that the user does not need to repeatedly process the pick-up notice of the same express delivery in different applications.
[0123] Embodiment 3
[0124] In Embodiment 3 of the present application, taking the case where both the first application and the second application display express delivery pick-up notice messages as an example, Figure 10 This is a flowchart of a method for processing application messages provided by an embodiment of the present application. This method can be executed by the first application and the middle platform service module in an electronic device. There can be one or more second applications in the embodiments of the present application. Refer to Figure 10 , this method can include the following steps:
[0125] S1001: The first application determines that the express delivery corresponding to the first application message has been picked up, and the first application sends the first status information to the middle platform service module.
[0126] Optionally, the user can start the first application and view the first application messages in the first application. The user can pick up the express delivery according to the pick-up information of the express delivery in the first application messages. The process of the user completing the express delivery pick-up can be regarded as the user picking up the express delivery through the first application.
[0127] After the user picks up the item, the first application can determine that the express delivery corresponding to the first application message has been picked up. The first application can send the first status information to the middle platform service module. The first status information can be used to indicate that the express delivery corresponding to the first application message has been picked up. Optionally, the first status information can include, for example, the application message type, message parameters, and status value.
[0128] S1002: The middle platform service module parses and stores the first status information.
[0129] In an alternative implementation, the middle platform service module can parse the first status information according to a preset data format, obtain the type, parameters, and status value of the first application message, and store the parsed first status information.
[0130] Optionally, before parsing the first status information, the middleware service module may also perform data quality verification on the first status information according to a preset data format. After the data quality verification of the first status information passes, S1002 is then executed.
[0131] S1003: The middleware service module determines that the second application has been started, performs image recognition on the interface of the second application, obtains the notification message displayed in the interface of the second application, and determines that the notification message of the second application includes a second application message related to the first application message.
[0132] In an optional implementation manner, the middleware service module may store a preset application set, and the preset application set includes applications that the middleware service module needs to monitor. Optionally, the preset application set may be an application determined by the electronic device to notify the user that there is an express delivery to be picked up, or may be user-defined.
[0133] Optionally, when the middleware service module monitors that a second application in the preset application set is running in the foreground, the middleware service module may perform image recognition on the interface of the second application, obtain the notification message displayed in the interface of the second application, and the middleware service module may determine a second application message that matches the first application message from the notification message of the second application according to the first status information. In Embodiment 3 of this application, the first application message and the second application message are messages indicating the same express delivery to be picked up.
[0134] S1004: The middleware service module displays an "already picked up" icon in the display area of the second application message.
[0135] In an optional implementation manner, after the middleware service module determines that the notification message of the second application includes a second application message, it may display an "already picked up" icon in the display area of the second application message. In implementation, the middleware service module may render a new layer on the interface layer of the second application, and the new layer includes the above-mentioned "already picked up" icon.
[0136] For example, referring to Figure 8 , both the unread messages of the first application and the second application include express delivery pick-up notification messages. After the user picks up the express delivery through the first application, the first application sends the first status information to the middleware service module. After the user clicks to run the second application, the middleware service module determines that the notification message of the second application includes an express delivery pick-up notification message, and the middleware service module displays an "already picked up" icon in the upper right corner of the display area of the express delivery pick-up notification message of the second application. Thus, when the user views the second application message, they can timely learn that the express delivery has been picked up without repeated operations.
[0137] Based on the above embodiments, the present application further provides an electronic device, which includes a plurality of functional modules; the plurality of functional modules interact with each other to implement the functions performed by the electronic device in the methods described in the embodiments of the present application, such as executing Figure 4 the embodiments shown. The plurality of functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules can be arbitrarily combined or divided based on specific implementations.
[0138] Based on the above embodiments, the present application further provides an electronic device, which includes at least one processor and at least one memory. A computer program is stored in the at least one memory. When the at least one processor executes and calls the computer program, the electronic device is caused to execute the functions performed by the electronic device in the methods described in the embodiments of the present application. Such as executing Figure 4 the embodiments shown.
[0139] Based on the above embodiments, the present application further provides a computer program product containing instructions. When the computer program product runs on a computer, the computer is caused to execute the methods described in the embodiments of the present application.
[0140] Based on the above embodiments, the present application further provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, the computer is caused to execute the methods described in the embodiments of the present application.
[0141] Based on the above embodiments, the present application further provides a chip, which is used to read the computer program stored in a memory to implement the methods described in the embodiments of the present application.
[0142] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In a possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. The chip system can be composed of chips or can include chips and other discrete devices.
[0143] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0144] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to the application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate a means for implementing the functions specified in the Figure 1 one or more flows and / or blocks Figure 1 means for implementing the functions specified in one or more blocks or multiple blocks.
[0145] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including instruction means that implement the functions specified in the Figure 1 one or more flows and / or blocks Figure 1 means for implementing the functions specified in one or more blocks or multiple blocks.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in the Figure 1 one or more flows and / or blocks Figure 1 means for implementing the functions specified in one or more blocks or multiple blocks.
[0147] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the scope of protection of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these changes and variations.
Claims
1. A method for processing application messages, characterized in that, Applied to an electronic device, the method includes: Obtaining first status information sent by a first application, where the first status information is used to indicate that the user has processed a first application message in the first application; Determining that a notification message of a second application includes a second application message related to the first application message; Setting the status of the second application message to processed.
2. The method according to claim 1, wherein The determining that the notification message of the second application includes a second application message related to the first application message includes: Matching at least one notification message in the second application according to the first status information, and determining that the second application message in the at least one notification message matches the first application message successfully.
3. The method according to claim 2, wherein Before matching the first application message with the notification messages of the second application according to the first status information, the method further includes: In response to a first operation of the user, displaying an interface of the second application; Performing image recognition on the interface of the second application to obtain the notification messages displayed in the interface of the second application.
4. The method according to claim 3, wherein Before performing image recognition on the interface of the second application, the method further includes: Determining that the second application belongs to a preset application set.
5. The method according to any one of claims 1 to 4, characterized in that, The setting the status of the second application message to processed includes: When the second application message is an unread message, setting the second application message to a read message.
6. The method according to any one of claims 1-5, characterized in that The setting the status of the second application message to processed includes: When the second application message is displayed in the interface of the second application, displaying a first icon in the display area of the second application message, where the first icon is used to remind the user that the second application message has been processed.
7. The method according to any one of claims 1-6, characterized in that, The first status information includes the type, message parameters, and status of the first application message.
8. The method according to any one of claims 1-7, characterized in that, After obtaining the first status information sent by the first application and before determining that the notification message of the second application includes a second application message related to the first application message, the method further includes: Performing data quality verification on the first status information to determine that the first status information meets a preset data format.
9. The method according to any one of claims 1-8, characterized in that, The first application message and the second application message are pick-up notification messages for the same express delivery.
10. The method according to any one of claims 1-9, characterized in that, The electronic device includes the first application and the second application; Before obtaining the first status information sent by the first application, the method further includes: The first application obtains the first application message; The second application obtains the second application message, where the second application message is related to the first application message and the status of the second application message is unprocessed.
11. The method according to any one of claims 1-10, characterized in that, The electronic device includes the first application, the second application, and a middleware service module; The method further includes: The first application sends the first status information to the middleware service module through an application message status reporting interface of the middleware service module; The middleware service module broadcasts the first status information; The second application obtains the first status information through an application message status monitoring interface of the middleware service module; The second application determines that the notification message of the second application includes the second application message related to the first application message according to the first status information, and sets the status of the second application message to processed.
12. An electronic device, characterized in that, The electronic device includes a memory and a processor; wherein, the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the electronic device executes the method according to any one of claims 1-11.
13. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium, and when it runs on a computer, the computer is caused to execute the method according to any one of claims 1-11.