Notification management method, electronic equipment, computer readable storage medium and chip
By pushing only notifications to the device currently used by the user in the notification management method and synchronizing the notification status between devices, the problem of notification redundancy between multiple devices is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202311422885.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2025-05-02
AI Technical Summary
In the case where the user has multiple electronic devices, the same notification message is sent to all devices at the same time, resulting in message redundancy and user experience degradation.
In the notification management method, only the notification is pushed to the electronic device currently used by the user, and the notification status is synchronized between the devices, ensuring that the notification is only displayed on the devices used by the user.
Reduces redundancy in notifications, improves user experience, and makes it easier for users to browse unread notifications on different devices.
Smart Images

Figure CN119922261A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a notification management method, an electronic device, a computer-readable storage medium and a chip. Background Art
[0002] Notification is the ability of an application to send instant messages or communication messages, mainly used to remind users that there is information from the application. When a user has multiple electronic devices, the user's multiple electronic devices will receive the same notification message at the same time, resulting in message redundancy on the electronic devices. Summary of the invention
[0003] The present application provides a notification management method, an electronic device, a computer-readable storage medium and a chip, which reduce message redundancy and improve user experience by pushing notifications to specific electronic devices or displaying notifications on specific electronic devices.
[0004] In a first aspect, the present application provides a notification management method, which is applied to a first electronic device, wherein a first notification is pushed to the first electronic device, and the first electronic device displays the first notification; when the user uses a second electronic device, the first electronic device cancels the display of the first notification, and the second electronic device displays the first notification. Since the notification of the application is only displayed on the electronic device used by the user, the redundancy of the notification can be reduced, which facilitates the user to browse unread notifications on different electronic devices, and improves the efficiency of the user's use of the electronic device.
[0005] In combination with the first aspect, in an embodiment of the present application, before the second electronic device displays the first notification, the method further includes: the first electronic device sends the first notification to the second electronic device.
[0006] In some embodiments, the first electronic device sends the first notification to the second electronic device, including: the first electronic device and the second electronic device establish a communication connection; the first electronic device includes a first storage area, and the first notification is stored in the first storage area; the second electronic device includes a second storage area, and the first storage area synchronizes the first notification to the second storage area.
[0007] In some embodiments, before the first electronic device sends the first notification to the second electronic device, the method further includes: determining whether the user is using the first electronic device; when the user is not using the first electronic device, the first electronic device sends the first notification to the second electronic device.
[0008] In some embodiments, before the first electronic device sends the first notification to the second electronic device, the method also includes: determining whether the user performs a first operation on the first notification; when the user does not perform the first operation on the first notification, the first electronic device sends the first notification to the second electronic device.
[0009] In combination with the first aspect, before the first electronic device displays the first notification, the method further includes: pushing the first notification to the second electronic device.
[0010] In some embodiments, before the first electronic device cancels display of the first notification, the method includes: determining whether the user is using the first electronic device; when the user is not using the first electronic device, the first electronic device cancels display of the first notification.
[0011] In some embodiments, before the first electronic device cancels display of the first notification, the method includes: determining whether the user performs a first operation on the first notification; when the user does not perform the first operation on the first notification, the first electronic device cancels display of the first notification.
[0012] In combination with the first aspect, the user using the second electronic device includes: the second electronic device is in a screen-on state, or the user touches the second electronic device.
[0013] In some embodiments, the first operation includes any one or more of the following operations: an operation of a user deleting the first notification; or an operation of a user clearing the notification; or an operation of a user viewing the first notification.
[0014] In a second aspect, the present application provides an electronic device, comprising: one or more processors; one or more memories; one or more memories storing one or more computer programs, wherein the one or more computer programs include instructions. When the instructions are executed by the one or more processors, the electronic device executes any possible implementation method of the first aspect.
[0015] In a third aspect, the present application provides a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes any possible implementation method as described in the first aspect above.
[0016] In a fourth aspect, the present application provides a chip coupled to a memory in an electronic device, the chip being used to control the electronic device to execute any possible implementation method as described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application
[0018] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application
[0019] Figure 3 A schematic diagram of a notification push architecture provided in an embodiment of the present application
[0020] Figure 4 A set of graphical user interfaces provided for embodiments of the present application
[0021] Figure 5 Another set of graphical user interfaces provided in the embodiment of the present application
[0022] Figure 6 Another set of graphical user interfaces provided in the embodiment of the present application
[0023] Figure 7 Another set of graphical user interfaces provided in the embodiment of the present application
[0024] Figure 8 Another set of graphical user interfaces provided in the embodiment of the present application
[0025] Fig. 9 A schematic flow chart of a notification management method provided in an embodiment of the present application
[0026] Fig.10 A schematic flow chart of another notification management method provided in an embodiment of the present application
[0027] Fig.11 A schematic flow chart of another notification management method provided in an embodiment of the present application DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0029] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0030] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0031] In the prior art, when a user has multiple electronic devices, the same notification is often sent to all of the user's devices at the same time, resulting in cumbersome and redundant messages. An embodiment of the present application provides a notification management method, which can be applied to a system consisting of a first electronic device and a second electronic device. In this method, the user's processing result of the notification on the first electronic device can be synchronously applied to the second electronic device, and the server can only push notifications to the device used by the user when pushing notifications to the electronic device. The notification can also be transferred according to the device used by the user. The notification management method provided by the embodiment of the present application can reduce the user's repeated operations on the same notification and reduce the problem of cumbersome and redundant messages between the user's multiple electronic devices.
[0032] The following first introduces the structure of the electronic device involved in the embodiments of the present application.
[0033] The first electronic device may be an electronic device equipped with iOS, Android, Microsoft or other operating systems, and may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a PDA (Personal Digital Assistant), an AR device, a VR device, an artificial intelligence device, a wearable device, a vehicle-mounted device, a smart home device, and a smart city device. The embodiment of the present application does not impose any special restrictions on the type of the first electronic device.
[0034] like Figure 1The figure shows a schematic diagram of the structure of an electronic device. The first electronic device may include a processor 110, an internal memory 121, a USB connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone connector 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a memory card connector 120, and a SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0035] The structure illustrated in the embodiment of the present application does not constitute a limitation on the first electronic device. In other embodiments of the present application, the first electronic device may include more or fewer components than those illustrated. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0036] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0037] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0038] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. The memory may store instructions or data that the processor 110 has used or that are used frequently.
[0039] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit I2C interface, an I2S interface, a PCM interface, a UART interface, a MIPI, a GPIO interface, a SIM interface, and / or a USB interface, etc. The processor 110 may be connected to a touch sensor, an audio module, a wireless communication module, a display screen, or a camera module through at least one of the above interfaces.
[0040] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a limitation on the first electronic device. In other embodiments of the present application, the first electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0041] The USB connector 130 is a connector that complies with the USB standard specification and can be used to connect the first electronic device and the peripheral device. The USB connector 130 can be a Mini-USB connector, a Micro-USB connector, a USB Type-C connector, etc. The USB connector 130 can be used to connect a charger to charge the first electronic device. It can also be used to connect other electronic devices to achieve data transmission between the first electronic device and other electronic devices. It can also be used to connect headphones to output audio stored in the electronic device through the headphones. The connector can also be used to connect other electronic devices, such as VR devices, etc.
[0042] The charging management module 140 is used to receive the charging input of the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive the charging input of the wired charger through the USB connector 130. In some wireless charging embodiments, the charging management module 140 can receive the wireless charging input through the wireless charging coil. While the charging management module 140 charges the battery 142, it can also power the first electronic device through the power management module 141. The battery 142 may include at least one set of electrode terminals, each set of electrode terminals including at least one positive terminal. In one embodiment, when the battery includes two sets of electrode terminals, the electronic device can set two wired charging paths or two wireless charging paths, each wired or wireless charging path connects at least one set of electrode terminals, and charges the battery 142 simultaneously through multiple charging paths, thereby increasing the charging power and reducing the temperature rise. In another embodiment, when the battery includes two sets of electrode terminals, one set of electrode terminals is used for wired charging, and the other set of electrode terminals is used for wireless charging, and the charging circuit layout is more flexible. Based on the same design concept, those skilled in the art can set more than two sets of electrode terminals and more than two charging paths according to design needs.
[0043] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display screen 194, the camera 193, etc. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0044] The wireless communication function of the first electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and the like.
[0045] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0046] The mobile communication module 150 can provide a solution for at least one of 2G, 3G, 4G, 5G, or 6G wireless communications applied to the first electronic device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier, etc. The mobile communication module 150 can filter, amplify, and process the electromagnetic waves received by the antenna 1, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0047] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0048] The wireless communication module 160 may provide a wireless local area network module, a Bluetooth module, a BLE module, an ultra wide band (UWB) module, a global navigation satellite system (GNSS) module, an FM module, a near field communication (NFC) module, or an infrared module, etc., which may be applied to the first electronic device. 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 via the antenna 2, modulates and filters 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 sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation via the antenna 2.
[0049] In some embodiments, the antenna 1 of the first electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the first electronic device can communicate with other electronic devices through wireless communication technology. The wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include GPS, global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).
[0050] The first electronic device can realize the display function through 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 and graphic rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0051] The display screen 194 is used to display images, videos, etc. In some embodiments, the first electronic device may include one or more display screens 194. The display screen 194 may be at least one of an LCD, an OLED display screen, an AMOLED display screen, a FLED display screen, a Miniled display screen, a MicroLed display screen, a Micro-oLed display screen, a quantum dot light-emitting diode (QLED) display screen, etc.
[0052] The first electronic device can realize the camera function through the camera module 193, ISP, video codec, GPU, display screen 194, application processor AP, neural network processor NPU, etc.
[0053] The camera module 193 can be used to collect color image data and depth data of the photographed object. The ISP can be used to process the color image data collected by the camera module 193. For example, when taking a photo, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
[0054] In some embodiments, the ISP may be provided in the camera module 193 .
[0055] In some embodiments, the camera module 193 may be composed of a color camera module and a 3D sensing module.
[0056] In some embodiments, the photosensitive element of the camera of the color camera module may include a CCD or a CMOS phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing.
[0057] In some embodiments, the 3D sensing module may be a structured light 3D sensing module. The structured light 3D sensing module may include an infrared emitter, an infrared camera module, etc. The structured light 3D sensing module first emits a light spot of a specific pattern to the object being photographed, then receives the light spot pattern code on the surface of the object, and then compares the similarities and differences with the original projected light spot to determine the three-dimensional coordinates of the object. The three-dimensional coordinates may include the distance between the first electronic device and the object being photographed. The 3D sensing module can obtain the distance (i.e., depth) between the 3D sensing module and the object being photographed by the time it takes for the infrared light to return to obtain a 3D depth map.
[0058] The structured light 3D sensing module can also be applied to face recognition, somatosensory game consoles, industrial machine vision detection and other fields. The 3D sensing module can also be applied to game consoles, AR, VR and other fields.
[0059] In other embodiments, the camera module 193 may also be composed of two or more cameras. The two or more cameras may include a color camera, which can be used to collect color image data of the object being photographed. The two or more cameras may use stereo vision technology to collect depth data of the object being photographed.
[0060] In some embodiments, the first electronic device may include one or more camera modules 193. The first electronic device may include one front camera module 193 and one rear camera module 193. The front camera module 193 may be used to collect color image data and depth data of the photographer, and the rear camera module may be used to collect color image data and depth data of the subject (such as a person, scenery, etc.) facing the photographer.
[0061] In some embodiments, the CPU or GPU or NPU in the processor 110 can process the color image data and depth data collected by the camera module 193. In some embodiments, the NPU can identify the color image data collected by the camera module 193 through a neural network algorithm based on the skeleton point recognition technology, such as a convolutional neural network algorithm (CNN), to determine the skeleton points of the photographed person. The CPU or GPU can also be used to run a neural network algorithm to determine the skeleton points of the photographed person according to the color image data. In some embodiments, the CPU or GPU or NPU can also be used to confirm the figure of the photographed person (such as body proportions, fatness and thinness of body parts between skeleton points) according to the depth data collected by the camera module 193 (which can be a 3D sensing module) and the identified skeleton points, and can further determine the beautification parameters for the photographed person, and finally process the photographed image of the photographed person according to the body beautification parameters, so that the body shape of the photographed person in the photographed image is beautified.
[0062] The video codec is used to compress or decompress digital video. The first electronic device may support one or more video codecs. In this way, the first electronic device can play or record videos in multiple encoding formats, such as MPEG1, MPEG2, MPEG3, MPEG4, etc.
[0063] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. NPU can realize applications such as intelligent cognition of the first electronic device, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0064] The memory card connector 120 can be used to connect a memory card, such as a Micro SD card or a Nano SD card, to expand the storage capacity of the first electronic device. The memory card communicates with the processor 110 through the memory card connector 120 to implement a data storage function. In some embodiments, the memory card and the SIM card can share the same connector in a time-sharing manner, and the electronic device can identify whether the card set in the connector is a memory card or a SIM card to implement the corresponding function. Alternatively, the memory card and the SIM card can be set in the same connector at the same time, and are electrically connected to different springs of the first electronic device respectively, to implement the storage function and the SIM function respectively.
[0065] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the first electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional methods or data processing of the first electronic device by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0066] The first electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone connector 170D, and the application processor.
[0067] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0068] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The first electronic device can listen to music or output an audio signal for a hands-free call through the speaker 170A.
[0069] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the first electronic device receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0070] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to microphone 170C to input the sound signal into microphone 170C. The first electronic device can be provided with at least one microphone 170C. In other embodiments, the first electronic device can be provided with two or more microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the first electronic device can also use the microphone to identify the source of the sound and realize directional recording function, etc.
[0071] The earphone connector 170D is used to connect a wired earphone and can be a USB connector 130 or a 3.5 mm connector that complies with the open mobile terminal platform (OMTP) standard or the cellular telecommunications industry association of the USA (CTIA) standard.
[0072] 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 set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The first electronic device determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the first electronic device detects the touch operation intensity according to the pressure sensor 180A. The first electronic device can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0073] The gyro sensor 180B can be used to determine the motion posture of the first electronic device. In some embodiments, the angular velocity of the first electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle of the first electronic device shaking, calculates the distance that the lens module needs to compensate based on the angle, controls the reverse movement of the lens to offset the shaking of the first electronic device, and achieves anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0074] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the first electronic device calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0075] The magnetic sensor 180D includes a Hall sensor. The first electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. When the electronic device is a foldable electronic device, the magnetic sensor 180D can be used to detect the folding or unfolding of the electronic device, or the folding angle. In some embodiments, when the first electronic device is a flip phone, the first electronic device can detect the opening and closing of the flip according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip, the flip can be automatically unlocked and other features can be set.
[0076] The acceleration sensor 180E can detect the magnitude of the acceleration of the first electronic device in all directions (generally three axes). When the first electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and applied to applications such as horizontal and vertical screen switching and pedometers.
[0077] The distance sensor 180F is used to measure the distance. The first electronic device can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the first electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0078] The proximity light sensor 180G may include, for example, a light emitting diode and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The first electronic device emits infrared light outward through the light emitting diode. The first electronic device uses a photodiode to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than a threshold, it can be determined that an object is close to the first electronic device. When the intensity of the detected reflected light is less than a threshold, the first electronic device can determine that no object is close to the first electronic device. The first electronic device can use the proximity light sensor 180G to detect that the user holds the first electronic device close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and pocket mode to automatically unlock and lock the screen.
[0079] The ambient light sensor 180L can be used to sense the ambient light brightness. The first electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the first electronic device is blocked, for example, the electronic device is in a pocket. When it is detected that the electronic device is blocked or in a pocket, some functions (such as touch functions) can be disabled to prevent misoperation.
[0080] The fingerprint sensor 180H is used to collect fingerprints. The first electronic device can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0081] The temperature sensor 180J is used to detect temperature. In some embodiments, the first electronic device uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature detected by the temperature sensor 180J exceeds a threshold, the first electronic device performs a reduction in processor performance to reduce the power consumption of the electronic device to implement thermal protection. In other embodiments, when the temperature detected by the temperature sensor 180J is lower than another threshold, the first electronic device heats the battery 142. In other embodiments, when the temperature is lower than another threshold, the first electronic device can boost the output voltage of the battery 142.
[0082] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass 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 180K can also be set on the surface of the first electronic device, which is different from the position of the display screen 194.
[0083] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0084] The key 190 may include a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The first electronic device may receive the key input and generate a key signal input related to the user setting and function control of the first electronic device.
[0085] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0086] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0087] The SIM card interface 195 may be a hardware module for connecting a SIM card. The SIM card can be connected to and separated from the first electronic device by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The first electronic device may support one or more SIM card interfaces. The SIM card interface 195 may support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards may be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with memory cards. The first electronic device interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the first electronic device uses an eSIM, i.e., an embedded SIM card. The eSIM card may be embedded in the first electronic device and cannot be separated from the first electronic device.
[0088] The software system of the first electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the first electronic device includes but is not limited to Or other operating systems. The embodiment of the present application takes the Android system with a layered architecture as an example to exemplify the software structure of the first electronic device.
[0089] like Figure 2 The figure shows a software system architecture of a first electronic device provided in an embodiment of the present application.
[0090] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (ART) and native C / C++ library, hardware abstraction layer and kernel layer.
[0091] The application layer can include a series of application packages.
[0092] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0093] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0094] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, and the like.
[0095] The window manager provides window management services (WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
[0096] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. Content providers provide support for data access between applications.
[0097] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0098] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0099] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0100] The activity manager can provide activity management services (AMS), which can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers) as well as manage and schedule application processes.
[0101] The input manager can provide input management services (IMS), which can be used to manage system input, such as touch screen input, key input, sensor input, etc. IMS takes events from input device nodes and distributes them to appropriate windows through interaction with WMS.
[0102] The Android runtime includes the core library and the Android runtime. The Android runtime is responsible for converting source code into bytecode, converting bytecode into machine code, and running machine code. In terms of compilation technology, the Android runtime supports ahead-of-time (AOT) compilation technology and just-in-time (JIT) compilation technology. AOT converts bytecode into machine code and stores it in the memory during application installation; JIT converts part of the bytecode into machine code in real time when the application is running.
[0103] The core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc. The core library provides an API for users to develop Android applications.
[0104] The native C / C++ library can include multiple functional modules. For example: surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc. Among them, the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. libc provides a standard C function library. OpenGL ES provides drawing and operation of 2D and 3D graphics in applications. SQLite provides a lightweight relational database for applications. Webkit provides support for the browser kernel.
[0105] The modules in the application framework layer are written in Java, and the modules in the native C / C++ library are written in C / C++. The communication between the two can be achieved through the Java native interface (JNI).
[0106] The hardware abstraction layer runs in user space, encapsulates the kernel layer drivers, and provides a calling interface to the upper layer. It can include display modules, camera modules, audio modules, and Bluetooth modules.
[0107] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, camera drivers, audio drivers, Bluetooth drivers, and other sensor drivers. In addition to providing hardware drivers, the kernel layer also supports memory management, system process management, file system management, power management and other functions.
[0108] The following is an example of the workflow of the software and hardware of the electronic device 100 in combination with the capture and photography scene. When the touch sensor 180K receives a touch operation, the kernel layer receives a hardware interrupt. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation, and other information). The kernel layer stores the original input event. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch single-click operation, and the control corresponding to the single-click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer, starts the camera application, and then starts the camera driver by calling the kernel layer, and captures a static image or video through the camera 193.
[0109] In the prior art, when a user has multiple devices, the same notification message will be sent to multiple devices of the user, resulting in message redundancy of the devices. The embodiment of the present application provides a notification management method, which can reduce the user's repeated operations and notification redundancy in deleting the same notification on multiple devices when the user has multiple electronic devices, and avoid the electronic devices from sending invalid notifications.
[0110] The following takes the application notification push scenario as an example to further introduce the notification management method provided in the embodiment of the present application.
[0111] S1. First, an example of how to push notifications to electronic devices is given:
[0112] like Figure 3 What is shown is a schematic diagram of a notification push architecture provided in an embodiment of the present application. The notification push architecture may include a first electronic device. The notification of the first electronic device may be a local push notification. The local push notification may refer to a notification pushed by an application (APP) installed in the first electronic device.
[0113] Exemplarily, the first electronic device may include an application, a notification push agent (Push Agent), and a system interface (System UI) for displaying notifications, etc. Among them, Push Agent is a message push mechanism that can push application notifications, system update notifications, etc., and System UI may include a status bar (Status Bar) above the system, a navigation bar (Navigation Bar) below the system, a lock screen interface (Keyguard), a power interface (PowerUI), a recent task interface (Recents Screen), a volume adjustment dialog box (VolumeUI), etc. The first electronic device may also include a notification processing service for performing notification-related processing. When an application has a notification that needs to be pushed, the application can push the notification to the notification processing service, and the notification processing service can send the notification to the System UI for display, so that the notification is displayed on the first electronic device. The display of the notification on the first electronic device does not depend on whether the first electronic device has installed the application.
[0114] In the present application embodiment, Figure 3 As shown, the notification push architecture may further include a cloud server, which may include a cloud server and a notification push service module. The notification of the first electronic device may also be a remote push notification. The remote push notification may refer to a notification pushed by the cloud server of the APP, which does not depend on whether the first electronic device has the APP turned on. For example, the first electronic device has a communication APP installed. The cloud server of the communication APP may push the notification to be sent to the notification push service. The notification push service may search for an electronic device with a corresponding identifier in its own list of electronic devices that have registered for the push service, and may push the notification to the notification push agent of the electronic device. The notification push agent of the electronic device may pass the notification to the notification processing service of the electronic device. The notification processing service may send the notification to the System UI for display, thereby displaying the notification on the first electronic device.
[0115] In an embodiment of the present application, the notification push architecture may further include a second electronic device, wherein the notification of the second electronic device may be a local push notification and a remote push notification. For the specific notification push method, please refer to the relevant description of the notification push method of the first electronic device, which will not be repeated here.
[0116] In the embodiment of the present application, the cloud server can push the same notification to the first electronic device and the second electronic device, and the first electronic device and the second electronic device can display the notification. Exemplarily, the cloud server can push the same notification to electronic devices logged in to the same account. When the first electronic device and the second electronic device log in to the same account, the cloud server can push the same notification to the first electronic device and the second electronic device.
[0117] In the embodiment of the present application, when the first electronic device and the second electronic device install the same application, the application can push the same notification to the first electronic device and the second electronic device, and the first electronic device and the second electronic device can display the notification. Exemplarily, the same application in the first electronic device and the second electronic device can log in to the same application account, and the application can push the same local application notification to the electronic device logged in to the same application account.
[0118] In an embodiment of the present application, each notification may have a corresponding notification identifier. When the same notification is stored in different electronic devices, the notification identifiers corresponding to the notification may be stored in the different electronic devices.
[0119] S2. Next, taking the notification push architecture including the first electronic device and the second electronic device as an example, the notification synchronization method between the electronic devices is introduced as an example:
[0120] In some embodiments, the first electronic device and the second electronic device may also exchange data. When the first electronic device receives a notification, the first electronic device may send the notification to the second electronic device, and the second electronic device may also display the notification on the interface of the second electronic device.
[0121] In some embodiments, the first electronic device and the second electronic device can exchange data by establishing a communication connection. For example, the first electronic device and the second electronic device can establish a near field communication connection, which can be a wired connection or a wireless connection. The wireless connection can be a wireless fidelity (Wi-Fi) connection, and the first electronic device and / or the second electronic device can be configured with a WLAN module, wherein the WLAN module can provide a solution including one or more WLAN communications in wireless fidelity peer-to-peer (Wi-Fi P2P), wireless fidelity local area networks (Wi-Fi LAN) or wireless fidelity software access point (Wi-Fi softAP). The wireless connection can also be a Bluetooth connection, and the first electronic device and / or the second electronic device can be configured with a Bluetooth module, wherein the Bluetooth module can provide a solution including one or more Bluetooth communications in classic Bluetooth (Bluetooth 2.1) or Bluetooth low energy (Bluetooth lowenergy, BLE). The first electronic device and the second electronic device may also establish a far-field communication connection, and the first electronic device and the second electronic device may be connected via the Internet; the first electronic device and the second electronic device may also be connected to a server to perform data transmission and interaction through the server.
[0122] In some embodiments, Figure 3 As shown, the first electronic device may include a first storage area, and the first storage area may be a storage area on the memory of the first electronic device. When the first electronic device receives a notification, the first electronic device may store the notification in the first storage area, and when the first electronic device and the second electronic device establish a communication connection, the notification stored in the first electronic device may be synchronized to the second storage area of the second electronic device. When the notification stored in the first electronic device is synchronized to the second storage area of the second electronic device, the second electronic device may send the notification to a notification processing service, and the notification processing service may send the notification to the System UI for display, thereby displaying the notification on the second electronic device. The display of the notification on the second electronic device may not depend on whether the second electronic device has the application installed.
[0123] In some embodiments, the notification stored by the first electronic device includes the specific content of the notification and a notification identifier. Exemplarily, the notification identifier may include one or more items such as the package name of the App that sends the notification or a keyword of the notification.
[0124] In some embodiments, the first electronic device and the second electronic device can log in to the same account, and the first electronic device and the second electronic device can exchange data through the cloud server. When the first electronic device receives a notification, the first electronic device can upload the notification of the first storage area to the cloud server. When the first electronic device and the second electronic device log in to the same account, the cloud server can synchronize the notification to the second storage area of the second electronic device. When the notification received by the first electronic device is synchronized to the second storage area of the second electronic device, the second electronic device can send the notification to the notification processing service, and the notification processing service can send the notification to the System UI for display, so that the notification is displayed on the second electronic device. The display of the notification on the second electronic device can be independent of whether the second electronic device has the application installed.
[0125] For example, Figure 4 The figure shows a set of GUIs provided in an embodiment of the present application, including a display interface 110 of a first electronic device and a display interface 210 of a second electronic device. The first electronic device and the second electronic device can respectively receive a first notification 111 of a first application (e.g., a video APP), and the first electronic device and the second electronic device can respectively display the first notification 111 on the display interface 110 and the display interface 210. It should be noted that the manner in which the first electronic device and / or the second electronic device displays the first notification 111 of the first application can be specifically referred to the relevant description of displaying notifications in the embodiment of the present application, which will not be repeated here.
[0126] In some embodiments, the notifications of applications received by the first electronic device and the second electronic device may be different. For example, notifications of a music app may be sent only to the first electronic device, and notifications of a weather app may be sent only to the second electronic device.
[0127] It should be noted that in the embodiments of the present application, the electronic device may receive notifications in a manner including but not limited to the above-mentioned local push, remote push, or synchronization through other electronic devices, and the embodiments of the present application do not impose specific restrictions on this. The number of electronic devices in the notification push architecture may also be more than two, and the embodiments of the present application do not impose specific restrictions on this.
[0128] Next, taking the notification push architecture including the first electronic device and the second electronic device as an example, the notification management scenario between multiple devices in the embodiment of the present application is introduced as an example:
[0129] In an embodiment of the present application, the electronic device may detect a first operation of the user, and in response to the first operation of the user, the first electronic device may perform a first process on the first notification 111. When the first electronic device performs the first process on the first notification 111, the first electronic device may also make corresponding changes to the display state of the first notification 111. Exemplarily, the first operation may be an operation of the user on the first notification 111 in the System UI, and in response to the first operation of the user, the System UI of the first electronic device may send the first operation to the notification processing service, and the notification processing service may perform the first process on the first notification 111. When the notification processing service performs the first process on the first notification 111, the notification processing service may also send an indication message to the System UI, and the indication message is used to instruct the System UI to make corresponding changes to the display state of the first notification 111.
[0130] For example, Figure 5 Another set of GUIs provided by an embodiment of the present application is shown. The first operation may be an operation for a user to view the first notification 111. For example, the user may pull down the notification center interface and view the first notification 111 through a touch operation (e.g., a click operation). The first operation may be an operation for a user to delete the first notification 111. For example, the user may pull down the notification center interface and delete the first notification 111 through a touch operation (e.g., a slide-to-delete operation). The first operation may also be an operation for clearing notifications of the first electronic device (e.g., the user touches a control 120 for clearing notifications). When the first electronic device detects the first operation of the user, in response to the first operation, the first electronic device may perform a first process on the first notification 111. For example, the first process may include updating the display state of the first notification 111. For example, the display state of the first notification 111 may be updated to not be displayed. At this time, the first electronic device may cancel the display of the first notification 111 on the display interface 110. The first process may also include the first electronic device deleting the first notification 111 in the notification center.
[0131] In some embodiments, when the first operation is an operation in which the user deletes or clears the first notification 111, and the first electronic device has the first application installed, the first electronic device may also set the status of the first notification 111 to unread in the first application, and the first electronic device may also synchronously delete the first notification 111 in the first application. Exemplarily, the first electronic device may set the status of the first notification 111 to unread in the message center of the first application, and the first electronic device may delete the first notification 111 in the message center of the first application.
[0132] In some embodiments, when the first operation is an operation in which the user views the first notification 111, and the first electronic device has the first application installed, the first electronic device may also download and install the first application to set the status of the first notification 111 to be read, and the first electronic device may also retain the first notification 111 in the first application. Exemplarily, the first electronic device may set the status of the first notification 111 to be read in the message center of the first application, and retain the first notification 111 in the message center of the first application.
[0133] In some embodiments, when the first operation is an operation of the user viewing the first notification 111 , and the first electronic device has not installed the first application, the first electronic device may also download and install the first application to open the first notification 111 .
[0134] In some embodiments, the first operation may also be an operation of adding the first notification 111 to the favorites of the first electronic device and / or generating a card for the first notification 111 on the display interface of the first electronic device. When the first electronic device detects the user's first operation, in response to the first operation, the first processing may be to add the first notification 111 to the favorites of the first electronic device and / or generate a card for the first notification 111 on the display interface of the first electronic device, so that the user can open the first notification 111 to continue reading when needed.
[0135] In the embodiment of the present application, when a user performs a first operation on a first notification 111 of a first electronic device, the first electronic device may perform a first process on the first notification 111. When the first electronic device performs the first process on the first notification 111, the second electronic device may also perform the first process on the first notification 111. Taking the first process as an example in which the first electronic device cancels the display of the first notification 111 on the display interface 110, when the first electronic device cancels the display of the first notification 111 on the display interface 110, Figure 6 Another set of GUIs provided in an embodiment of the present application is shown, and the second electronic device can also synchronously cancel the display of the first notification 111 on the display interface 210. The second electronic device can also delete the first notification 111 in the notification center.
[0136] In some embodiments, when the first electronic device performs the first processing on the first notification 111 , the first electronic device may send a first message to the second electronic device, where the first message is used to request the second electronic device to perform the first processing on the first notification 111 . Exemplarily, when the first operation is an operation in which the user deletes the first notification 111 on the first electronic device, the first processing is that the first electronic device cancels the display of the first notification 111 on the display interface 110 and deletes the first notification 111. In response to the user's operation in which the first notification 111 is deleted on the first electronic device, the first electronic device may send a first message to the second electronic device. The first message may include one or more contents such as a notification identifier of the first notification 111 (for example, the package name of the App that sends the first notification 111, keywords of the first notification 111, etc.), an instruction to delete the first notification 111, or a display status of the first notification 111. In response to the first message, the second electronic device may search for the first notification 111 based on the notification identifier of the first notification 111. The second electronic device may delete the first notification 111. The second electronic device may also cancel the display of the first notification 111 on the display interface. For example, the second electronic device may send the updated display status of the first notification 111 to the notification processing service. The notification processing service may also send an indication message to the System UI. The indication message is used to instruct the System UI to make corresponding changes to the display status of the first notification 111.
[0137] In some embodiments, the first electronic device can search for an electronic device with which it has established a communication connection or a device with which it has logged into the same user account. When the first electronic device performs a first processing on the first notification 111, the first electronic device can send a first message to the electronic device with which it has established a communication connection. The first message is used to request the electronic device to perform the first processing on the first notification 111.
[0138] In some embodiments, the first electronic device may synchronize the processing of the first notification 111 to a cloud server, and then synchronize the cloud to other electronic devices that have logged into the same account as the first electronic device. Exemplarily, when the first electronic device performs the first processing on the first notification 111, the first electronic device may send a first message to the cloud server, the first message being used to indicate that the first processing is performed on the first notification 111, when the second electronic device and the first electronic device have logged into the same account, the cloud server may send the first message to the second electronic device, and when the second electronic device receives the first message, the second electronic device may perform the first processing on the first notification 111.
[0139] In an embodiment of the present application, when a user processes a notification on one electronic device, the status of the notification can be synchronized on multiple electronic devices of the user, so that the user does not need to repeatedly process the same notification message on multiple devices, but only needs to process the notification message on one electronic device, and the processing result can be synchronized to multiple electronic devices of the user, so that the status of the same notification message on multiple devices of the user can be kept consistent, thereby improving the user experience.
[0140] In the embodiment of the present application, when a notification is to be pushed, whether to push the notification can be determined based on the usage status of the electronic device. Exemplarily, the usage status of the electronic device can include: the user is using the electronic device and the user is not using the electronic device.
[0141] In an embodiment of the present application, a user using an electronic device may refer to the electronic device being in a screen-on state and / or the user performing a touch operation on the electronic device (e.g., a click operation, a double-click operation, a long press operation, a sliding operation, etc.), and a user not using the electronic device may refer to the screen being in an off state and / or the user not performing a touch operation on the electronic device.
[0142] In some embodiments, whether the user is using the electronic device can be judged based on the time interval between the current time and the last time the user used the electronic device. When the time interval is greater than a first time threshold, the user is not using the electronic device; when the time interval is less than or equal to the first time threshold, the user is using the electronic device.
[0143] In some embodiments, a user using an electronic device may also refer to the electronic device being in any one or more of a power-on state, a normal power state, or a charging state, and the embodiments of the present application do not impose specific limitations on this.
[0144] In some embodiments, the user not using the electronic device may also mean that the electronic device is in any one or more of a shutdown state and a low-battery state, and the embodiments of the present application do not impose specific limitations on this.
[0145] In the embodiments of the present application, the electronic device can obtain the usage status of the electronic device, the electronic device can record the usage status of the electronic device, and the electronic device can also send the usage status to the cloud server.
[0146] In the embodiment of the present application, the cloud server can obtain the usage status of the electronic device. When the cloud server wants to push a notification, the cloud server can push the notification to one or more of the electronic devices according to the usage status of the user's multiple electronic devices. The cloud server can select the electronic device to push the notification in any one or more of the following ways:
[0147] Method 1: The cloud server can push notifications to one or more electronic devices used by the user.
[0148] Method 2: When none of the electronic devices are in use by the user, the notification is pushed to one or more electronic devices among the electronic devices that are default push notification devices.
[0149] Method 3: When a user uses one or more electronic devices, the cloud server can push a notification to the electronic device that the user last used among the one or more electronic devices used by the user. For example, the electronic device that the user last used can be the electronic device that the user last lit up and / or touched before the preset time period when the user did not use any electronic device within the preset time period.
[0150] Method 4: The cloud server can push notifications to the electronic devices that are used most frequently or for the longest time by the user. For example, the electronic device that is used most frequently by the user may be the electronic device that the user touches the most times within a predetermined period of time; the time the user uses the electronic device may be the time interval between the first and last time the user touches the electronic device, and the electronic device that the user uses for the longest time may be the electronic device with the longest time interval.
[0151] Method 5: The cloud server can push notifications to one or more electronic devices of the user who logs in to the same account.
[0152] It should be noted that the method of selecting an electronic device to push notifications is not limited to the above-mentioned push method. The above-mentioned method of selecting an electronic device to push notifications can also be used alone or in combination, and the embodiments of the present application do not impose specific restrictions on this.
[0153] In an embodiment of the present application, when the first notification 111 is a local push notification, the above-mentioned method can also be used to select the electronic device to which the notification is to be pushed when the application pushes the notification. For example, when the application that pushes the first notification 111 is an application installed on the first electronic device, and the first notification 111 needs to be pushed to electronic devices other than the first electronic device, the specific description of the notification synchronization method between electronic devices in S2 above can be referred to, and will not be repeated here.
[0154] Take the above push notification method 1 as an example. Figure 7 Another set of GUIs provided by an embodiment of the present application is shown, including a first electronic device and a second electronic device. When the user is using the first electronic device and not using the second electronic device, the first notification 111 is only pushed to the first electronic device.
[0155] In an embodiment of the present application, when a cloud server or application needs to push a notification, it may not be pushed to all electronic devices of the user, but only to the electronic devices that need to be pushed, such as the electronic device that the user is currently using, the electronic device that is pushed by default, the electronic device that the user last used, or the electronic device that the user uses most frequently, etc., thereby avoiding redundant notifications of the user's electronic devices.
[0156] In the embodiment of the present application, when a user uses one or more electronic devices, the notification may be pushed only to the one or more electronic devices used by the user, such as Figure 7 As shown, when the one or more electronic devices used by the user include the first electronic device but not the second electronic device, the first notification 111 can be pushed to the first electronic device but not to the second electronic device. The first electronic device can also display the first notification 111 on the display interface 110. The notification can flow between multiple electronic devices. When the user uses the second electronic device, such as Figure 8 As shown, another set of GUIs is provided in an embodiment of the present application. The first electronic device can send the first notification 111 to the second electronic device. For example, the first electronic device can send the content of the first notification 111 and the notification identifier corresponding to the first notification 111 to the second electronic device, and the second electronic device can also display the first notification 111 on the display interface 210. For determining whether the user uses the electronic device, please refer to the relevant description of other embodiments of the present application, which will not be repeated here.
[0157] In some embodiments, before the first notification 111 flows from the first electronic device to the second electronic device, it can be determined whether the user performs an operation on the first notification 111. When the user does not perform any operation on the first notification 111 of the first electronic device, the user does not use the first electronic device, and the user is using the second electronic device, the first electronic device can send the first notification 111 to the second electronic device. Exemplarily, the electronic device can synchronize its own usage status to the cloud server, and the cloud server can synchronize the usage status of the user's electronic device between various electronic devices. When the user does not perform any operation on the first notification 111 of the first electronic device, and the user does not use the first electronic device, the first electronic device can search for the electronic device used by the user (such as the second electronic device), and send the content of the first notification 111 and the notification identifier of the first notification 111 to the electronic device that the user is using, so that the first notification 111 can be displayed on the electronic device that the user is using. Among them, the determination of whether the user performs an operation on the first notification 111 can refer to the relevant description of other embodiments of the present application, which will not be repeated here.
[0158] In some embodiments, when the first notification 111 is transferred from the first electronic device to the second electronic device, the first electronic device may delete the first notification 111 .
[0159] In an embodiment of the present application, notifications can be transferred between electronic devices used by users, making it convenient for users to browse unread notifications on different electronic devices, thereby improving the efficiency of users in using electronic devices.
[0160] In the embodiment of the present application, the first notification 111 can be pushed to one or more electronic devices of the user, and the one or more electronic devices can be electronic devices logged in to the same account, and the multiple electronic devices include a first electronic device and a second electronic device, and the first notification 111 can be displayed only in the first electronic device. When the user does not perform any operation on the first notification 111 of the first electronic device and uses the second electronic device, the second electronic device can display the first notification 111 on the display interface 210, the first electronic device can cancel the display of the first notification 111, and the first electronic device can also delete the first notification 111. Exemplarily, when the user does not perform any operation on the first notification 111 of the first electronic device and uses the second electronic device, the first electronic device can send the notification identifier of the first notification 111 to the second electronic device, and based on the notification identifier of the first notification 111, the second electronic device can search for the first notification 111 and display the first notification 111 on the display interface 210. Among them, the determination of whether the user uses the second electronic device can refer to the relevant description of other embodiments of the present application, which will not be repeated here.
[0161] In some embodiments, before the first electronic device sends the notification identifier of the first notification 111 to the second electronic device, it can also determine the usage status of the first electronic device and the second electronic device. For example, the electronic device can synchronize its own usage status to the cloud server, and the cloud server can synchronize the usage status of the user's electronic device among various electronic devices. When the user does not perform any operation on the first notification 111 of the first electronic device and the user is not using the first electronic device, the first electronic device can search for the electronic device used by the user and send the notification identifier of the first notification 111 to the electronic device used by the user, so that the first notification 111 can be displayed on the electronic device used by the user.
[0162] In the embodiment of the present application, notifications can be displayed only on electronic devices used by the user, which can avoid redundant display of notifications on electronic devices not used by the user, thereby improving the efficiency of the user in using the electronic device.
[0163] Next, the notification management method provided by the embodiment of the present application is introduced. Fig. 9 A notification management method provided in an embodiment of the present application is shown, which may specifically include the following steps:
[0164] S101: A first electronic device and a second electronic device receive a first notification respectively.
[0165] In the embodiment of the present application, the manner in which the first electronic device and / or the second electronic device receives the first notification can be specifically referred to the relevant description of notification push in the embodiment of the present application, which will not be repeated here.
[0166] In an embodiment of the present application, when the first electronic device and / or the second electronic device receives a first notification of a first application, the first electronic device and / or the second electronic device may display the first notification on a display interface of the electronic device. Exemplarily, the display interface may be any one or more of a main interface, a notification center interface, a lock screen interface, an off-screen interface, or a negative-one-screen interface.
[0167] S102: In response to a first operation of the user, the first electronic device performs a first process on the first notification.
[0168] In the embodiment of the present application, the first operation and the first processing can be specifically referred to the relevant descriptions in other embodiments of the present application, and will not be repeated here.
[0169] S103: In response to the first electronic device performing the first processing on the first notification, the second electronic device performs the first processing on the first notification.
[0170] The specific implementation of step S103 can be found in the relevant descriptions in other embodiments of the present application and will not be repeated here.
[0171] Through the notification management method provided in the embodiment of the present application, when a user processes a notification on an electronic device, the status of the notification can be synchronized on multiple electronic devices of the user, so that the user does not need to repeatedly process the same notification message on multiple devices. The status of the same notification message on multiple devices of the user can be kept consistent, thereby improving the user experience.
[0172] like Fig.10 Another notification management method provided by an embodiment of the present application is shown, which may specifically include the following steps:
[0173] S201: Push a first notification to a first electronic device, and the first electronic device displays the first notification.
[0174] In the embodiment of the present application, the first electronic device may be an electronic device currently being used by the user, and the first notification may also be pushed to one or more electronic devices currently being used by the user. The method for determining whether the user is currently using the first electronic device may be specifically referred to in the relevant description of other embodiments of the present application, and will not be repeated here.
[0175] In an embodiment of the present application, the first electronic device may be an electronic device for default push notifications. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0176] In the embodiment of the present application, the first electronic device may be the electronic device used by the user for the last time. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0177] In the embodiment of the present application, the first electronic device may be the electronic device that is used most frequently or for the longest time by the user. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0178] In the embodiments of the present application, the method of pushing notifications can be specifically referred to the relevant descriptions of other embodiments of the present application, and will not be repeated here.
[0179] S202: When the user uses the second electronic device, the first electronic device cancels display of the first notification, and the second electronic device displays the first notification.
[0180] In the embodiment of the present application, before the second electronic device displays the first notification, the first electronic device may send the first notification to the second electronic device.
[0181] In the embodiment of the present application, before the first electronic device sends the first notification to the second electronic device, it can determine whether the user is using the first electronic device. When the user is not using the first electronic device, the first notification can be sent from the first electronic device to the second electronic device. The specific method of determining whether the user is using the electronic device and the way the first notification is transferred from the first electronic device to the second electronic device can be found in the relevant description of other embodiments of the present application, which will not be repeated here.
[0182] In the embodiment of the present application, before the first electronic device sends the first notification to the second electronic device, it can determine whether the user performs an operation on the first notification on the first electronic device. When the user does not perform an operation on the first notification of the first electronic device, the first notification can be transferred from the first electronic device to the second electronic device. For determining whether the user performs an operation on the first notification, please refer to the relevant description of other embodiments of the present application, which will not be repeated here.
[0183] In the embodiment of the present application, the first electronic device and the second electronic device may be electronic devices for users to log in to the same account. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0184] Through the notification management method provided in the embodiment of the present application, notifications can be pushed to one or more electronic devices that need to push notifications, such as the electronic device currently being used by the user, the electronic device that is pushed by default, the electronic device used by the user for the last time, or the electronic device that the user uses most frequently, etc. When the user uses other electronic devices and the electronic device does not belong to the above one or more electronic devices, the notification can be sent from any one of the above one or more electronic devices to other electronic devices used by the user. Since the notification of the application is only displayed on the electronic device used by the user, the redundancy of notifications can be reduced, making it convenient for users to browse unread notifications on different electronic devices, thereby improving the efficiency of users using electronic devices.
[0185] like Fig.11 Another notification management method provided by an embodiment of the present application is shown, which may specifically include the following steps:
[0186] S301. Push a first notification to a first electronic device and a second electronic device.
[0187] In the embodiment of the present application, the first notification may be pushed to one or more electronic devices, where the one or more electronic devices may include at least a first electronic device and a second electronic device.
[0188] In the embodiment of the present application, the first electronic device and the second electronic device may be electronic devices logged into the same account. The method of pushing the first notification may refer to the relevant description of other embodiments of the present application, which will not be repeated here.
[0189] In an embodiment of the present application, the first electronic device and / or the second electronic device may be an electronic device for default push notification. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0190] In the embodiment of the present application, the first electronic device and / or the second electronic device may be the electronic device last used by the user. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0191] In the embodiment of the present application, the first electronic device and / or the second electronic device may be the electronic device that is used most frequently or for the longest time by the user. For details, please refer to the relevant descriptions of other embodiments of the present application, which will not be repeated here.
[0192] In the embodiments of the present application, the method of pushing notifications can be specifically referred to the relevant descriptions of other embodiments of the present application, and will not be repeated here.
[0193] S302: The first electronic device displays a first notification.
[0194] In an embodiment of the present application, when the first notification is pushed to one or more electronic devices, the first notification can be displayed only on the electronic device used by the user. For example, when the user is using the first electronic device, the first notification can be displayed on the first electronic device.
[0195] In the embodiment of the present application, the manner in which notifications are displayed on the electronic device may be specifically referred to the relevant descriptions of other embodiments of the present application, and will not be repeated here.
[0196] S303: When the user uses the second electronic device, the first electronic device cancels display of the first notification, and the second electronic device displays the first notification.
[0197] In the embodiment of the present application, before the first electronic device cancels display of the first notification, it can determine whether the user is using the first electronic device. When the user is not using the first electronic device, the first electronic device cancels display of the first notification.
[0198] In the embodiment of the present application, the method of determining whether the user is currently using the first electronic device and the second electronic device can be specifically referred to the relevant description of other embodiments of the present application, which will not be repeated here.
[0199] Through the notification management method provided in the embodiment of the present application, notifications can be pushed to one or more electronic devices that need to push notifications, such as the electronic device currently being used by the user, the electronic device that is pushed by default, the electronic device used by the user for the last time, or the electronic device that the user uses most frequently, etc. The user can display the notification only on the electronic device currently being used by the user, while other electronic devices that have also received the notification but are not used by the user will not display the notification, which can reduce the redundancy of notifications, facilitate users to browse unread notifications on different electronic devices, and improve the efficiency of users in using electronic devices.
[0200] An embodiment of the present application provides an electronic device. The electronic device includes: one or more processors, one or more memories, the one or more memories storing one or more computer programs, and the one or more computer programs including instructions. When the instructions are executed by the one or more processors, any one of the first electronic device or the second electronic device executes the technical solution in the above embodiment.
[0201] The embodiment of the present application provides a computer program product, which, when executed on a first electronic device (or the mobile phone in the above embodiment), enables the first electronic device to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be described in detail here.
[0202] The embodiment of the present application provides a computer program product, which, when executed on a second electronic device (or the tablet in the above embodiment), enables the second electronic device to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be described in detail here.
[0203] The embodiment of the present application provides a readable storage medium, the readable storage medium contains instructions, when the instructions are executed on a first electronic device (or the mobile phone in the above embodiment), the first electronic device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar, and will not be repeated here.
[0204] The embodiment of the present application provides a readable storage medium, the readable storage medium contains instructions, when the instructions are executed on a second electronic device (or the tablet in the above embodiment), the second electronic device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar, and will not be repeated here.
[0205] The embodiment of the present application provides a chip, the chip is used to execute instructions, when the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar, and will not be repeated here.
[0206] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0207] It should also be noted that, in embodiments of the present invention, relational terms such as first, second, third, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise", or any other non-exclusive inclusions are included, so that the method or device including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such methods or devices. In the absence of further restrictions, the elements defined by the statements "include...", "comprise..." do not exclude the presence of other identical elements in the method or device including the elements.
[0208] The above is only a specific implementation of this embodiment, but the protection scope of this embodiment is not limited thereto, and any changes or replacements within the technical scope disclosed in this embodiment should be included in the protection scope of this embodiment. Therefore, the protection scope of this embodiment should be based on the protection scope of the claims.
Claims
1. A notification management method, applied to a first electronic device, characterized in that: Pushing a first notification to the first electronic device, and the first electronic device displaying the first notification; When the user uses a second electronic device, the first electronic device cancels display of the first notification, and the second electronic device displays the first notification.
2. The notification management method according to claim 1, characterized in that: Before the second electronic device displays the first notification, the method further includes: The first electronic device sends the first notification to the second electronic device.
3. The notification management method according to claim 2, characterized in that: The first electronic device sends the first notification to the second electronic device, including: the first electronic device and the second electronic device establish a communication connection; the first electronic device includes a first storage area, and the first notification is stored in the first storage area; the second electronic device includes a second storage area, and the first storage area synchronizes the first notification to the second storage area.
4. The notification management method according to claim 2 or 3, characterized in that: Before the first electronic device sends the first notification to the second electronic device, the method further includes: Determining whether the user uses the first electronic device; When the user is not using the first electronic device, the first electronic device sends the first notification to the second electronic device.
5. The notification management method according to claim 2 or 3, characterized in that: Before the first electronic device sends the first notification to the second electronic device, the method further includes: Determining whether the user performs a first operation on the first notification; When the user does not perform the first operation on the first notification, the first electronic device sends the first notification to the second electronic device.
6. The notification management method according to claim 1, characterized in that: Before the first electronic device displays the first notification, the method further includes: The first notification is pushed to the second electronic device.
7. The notification management method according to claim 6, characterized in that: Before the first electronic device cancels displaying the first notification, the method includes: Determining whether the user uses the first electronic device; When the user is not using the first electronic device, the first electronic device cancels display of the first notification.
8. The notification management method according to claim 6 or 7, characterized in that: Before the first electronic device cancels displaying the first notification, the method includes: Determining whether the user performs a first operation on the first notification; When the user does not perform the first operation on the first notification, the first electronic device cancels display of the first notification.
9. The notification management method according to claim 1, characterized in that: The user uses the second electronic device, which includes: the second electronic device is in a screen-on state, or the user touches the second electronic device.
10. The notification management method according to claim 8, characterized in that: The first operation includes any one or more of the following operations: An operation by a user to delete the first notification; or User action to clear the notification; or The user views the first notification operation.
11. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the notification processing method according to any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The invention comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the notification processing method according to any one of claims 1 to 10.
13. A chip coupled to a memory in an electronic device, characterized in that: The chip is used to control the electronic device to execute the notification processing method according to any one of claims 1 to 10.