Message processing method and apparatus

CN114861225BActive Publication Date: 2026-08-18VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210521733.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2026-08-18
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的是提供一种消息处理和装置,能够解决目前通过手动处理电子设备接收到的消息,处理效果欠佳的问题

Benefits of technology

[0015] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the steps of the message processing method as described in the first aspect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114861225B_ABST
    Figure CN114861225B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a message processing method and device, and belongs to the technical field of data processing. The message processing method is applied to a first electronic device. The message processing method comprises the following steps: in the case that a first message is received, type information of the first message is acquired; in the case that the type information of the first message does not match a current scene of the first electronic device, a target operation is performed on the first message; wherein the current scene of the first electronic device is related to at least one of the following: a geographical position where the first electronic device is located, and environmental data around the first electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of data processing technology, specifically relating to a message processing method and apparatus. Background Technology

[0002] Users typically receive messages while using electronic devices. Currently, these messages are primarily processed manually by the user, such as by manually storing them in a separate storage space.

[0003] This approach is ineffective and can easily lead to information leaks, causing unnecessary harm to users. Summary of the Invention

[0004] The purpose of this application is to provide a message processing and apparatus that can solve the problem that the current manual processing of messages received by electronic devices results in poor processing performance.

[0005] In a first aspect, embodiments of this application provide a message processing method applied to a first electronic device, the method comprising:

[0006] Upon receiving the first message, obtain the type information of the first message;

[0007] If the type information of the first message does not match the current scenario of the first electronic device, perform the target operation on the first message;

[0008] The current scenario of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device.

[0009] Secondly, embodiments of this application provide a message processing apparatus applied to a first electronic device, the apparatus comprising:

[0010] The acquisition module is used to acquire the type information of the first message upon receiving it.

[0011] The execution module is used to perform a target operation on the first message when the type information of the first message does not match the current scenario of the first electronic device.

[0012] The current scenario of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device.

[0013] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein when the program or instructions are executed by the processor, they implement the steps of the message processing method as described in the first aspect.

[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, the steps of the message processing method as described in the first aspect are implemented.

[0015] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the steps of the message processing method as described in the first aspect.

[0016] In a sixth aspect, embodiments of this application provide a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the message processing method as described in the first aspect.

[0017] In this embodiment, upon receiving a first message, the type information of the first message is obtained; if the type information of the first message does not match the current scene of the first electronic device, a target operation is performed on the first message; wherein, the current scene of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device. That is, this embodiment can process the first message received by the electronic device according to the type information of the first message and the current scene of the electronic device. Especially when the type information of the first message does not match the current scene of the electronic device, a target operation can be automatically performed on the first message. This avoids the first message being displayed in an unsuitable scene, prevents the leakage of the first message, and improves the message processing effect. Attached Figure Description

[0018] Figure 1 A flowchart illustrating a message processing method provided in an embodiment of this application;

[0019] Figure 2 This is a schematic diagram of the structure of a message processing device provided in an embodiment of this application;

[0020] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0021] Figure 4 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0022] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0023] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0024] In the processing of messages received by electronic devices, related technologies primarily rely on manual processing by the user, such as manually storing these messages into a separate storage space.

[0025] This method requires users to configure settings for each type of message received by the electronic device, a cumbersome process that can easily lead to user fatigue. Furthermore, when there are many types of messages, users may forget or miss certain messages, potentially leading to their leakage. Additionally, users' understanding of message definitions may vary at different times, resulting in over- or under-configuration. All of these factors contribute to the potential leakage of certain messages, causing unnecessary disruption to users and resulting in an ineffective solution.

[0026] Therefore, this application provides a message processing method and apparatus that can solve the problem that the current method of manually processing messages received by electronic devices has poor processing results.

[0027] The message processing method and apparatus provided in this application will be described in detail below through specific embodiments.

[0028] Figure 1 The flowchart illustrates a message processing method provided in this application embodiment. This method can be applied to a first electronic device, which may be a smart device with data processing capabilities, such as a mobile phone, laptop, or tablet computer.

[0029] like Figure 1 As shown, the message processing method may include the following steps:

[0030] S110. Upon receiving the first message, obtain the type information of the first message.

[0031] S120. If the type information of the first message does not match the current scenario of the first electronic device, perform the target operation on the first message.

[0032] The current scenario of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device.

[0033] In this embodiment, upon receiving a first message, the type information of the first message is obtained; if the type information of the first message does not match the current scene of the first electronic device, a target operation is performed on the first message; wherein, the current scene of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device. That is, this embodiment can process the first message received by the electronic device according to the type information of the first message and the current scene of the electronic device. Especially when the type information of the first message does not match the current scene of the electronic device, a target operation can be automatically performed on the first message, thus preventing the first message from being displayed in an unsuitable scene and preventing the leakage of the first message, thereby improving the message processing effect.

[0034] The above steps are explained in detail below:

[0035] In S110, the first message can be a message generated by the user while using the first electronic device. For example, the first message can be a message received by the first electronic device, a message pushed by an application on the first electronic device, or a message played by the first electronic device, etc. For example, the first message can be notification text, call logs, user images, etc.

[0036] The types of information in the first message can include, but are not limited to, sensitive and non-sensitive types. For sensitive messages, privacy protection is required to prevent unnecessary impact on users due to leakage. Sensitive types can include, but are not limited to, work-related sensitive types, identity-related sensitive types, and personal information-related sensitive types. Among them, personal information-related sensitive types can include, but are not limited to, users' personal medical information, shopping information, etc.

[0037] For example, when the first electronic device detects that it has received a text message from another electronic device, the data receiving module is activated, thereby enabling it to acquire the data received by the first electronic device as the first message.

[0038] Once the first message has been received and is about to be written to disk or undergo other operations, the type information of the first message can be identified. At this point, the first message only exists in an intermediate state such as memory and is not presented on the disk or in the notification. Especially when the first message is not suitable for display in the current scenario, it can effectively protect the first message and avoid unnecessary impact on users due to leakage.

[0039] For example, different strategies can be used to identify the type information of the first message based on its form. Optionally, when the first message is text, keywords in the first message can be identified through character recognition, and then the type information of the first message can be determined based on the keywords. For example, if the first message contains job-related keywords such as "job search" or "job position," the type information of the first message can be determined to be of the job-sensitive type.

[0040] For example, when the first message is an image, image recognition can be used to identify the image content, and then the type information of the first message can be determined based on the image content. For instance, if the image is found to contain information such as an ID card or passport, the type information of the first message can be determined to be of the identity sensitive type.

[0041] In this embodiment of the application, obtaining the type information of the first message can provide a basis for what message processing strategy to adopt subsequently, so that different types of messages can adopt different message processing strategies, thereby improving the message processing effect and meeting the needs of users.

[0042] In practical applications, messages of a specific sensitive type can be processed based on user needs, or all sensitive types of messages can be processed.

[0043] Understandably, in S120, the current scene of the first electronic device refers to the scene in which the first electronic device is currently located. A mismatch between the type information of the first message and the current scene of the first electronic device can be due to: the current scene being unsuitable for displaying the first message of that type, or the current scene being unsuitable for displaying the first message of that type in the default mode. Displaying a message in the default mode can include, but is not limited to: displaying a message at the default volume or the default brightness.

[0044] The target operation can be an operation performed on the first message when the type information of the first message does not match the current scene of the first electronic device. This target operation is used to adjust the output method of the first message so that its output method matches the current scene of the first electronic device. This application does not limit the specific implementation of the target operation.

[0045] In some embodiments, the current scene of the first electronic device may include at least one of the following: the geographical location of the first electronic device, and environmental data surrounding the first electronic device.

[0046] The geographical location of a first electronic device can be determined through methods such as Global Positioning System (GPS), Service Set Identifier (SSID) of the access point (AP) connected via Wireless Fidelity (Wi-Fi), or Bluetooth. For example, if the name of the access point to which the first electronic device is connected via Wi-Fi is Company A, the geographical location of the first electronic device can be determined to be Company A; similarly, if the name of the access point to which the first electronic device is connected via Wi-Fi is Home, the geographical location of the first electronic device can be determined to be Home.

[0047] In some embodiments, when the geographical location of the first electronic device is not easily detected or cannot be determined, the geographical location identification result can be displayed to the user of the first electronic device in the form of a pop-up window for the user to confirm. This can avoid the processing effect of the first message being affected by the incorrect geographical location identification result.

[0048] Environmental data surrounding the first electronic device can be collected by sensors within the device, including but not limited to microphones, accelerometers, magnetometers, gyroscopes, and cameras. Based on this environmental data, it can be determined whether there are people nearby.

[0049] For example, when the data receiving module is activated, that is, when the first message arrives at the data receiving module, the data receiving module can send a request signal to the sensor fusion module to notify the sensor fusion module to collect information from each sensor and upload it to the environment recognition module, which will then perform environmental recognition to determine whether there are people around the first electronic device.

[0050] The embodiments of this application do not limit the communication method between the data receiving module and the sensor fusion module. For example, it can be done through inter-process communication (IPC) or remote procedure call (RPC) such as binder.

[0051] Specifically, the environmental recognition module can perform environmental recognition based on one or more of the image information captured by the camera and the sound information received by the microphone to determine whether there are people around the first electronic device.

[0052] For example, when the volume of the sound captured by the microphone exceeds a preset threshold and human voices constitute a significant proportion, it can be determined that there are people around the first electronic device, and that it is in a crowded scene. Similarly, based on image information captured by the camera, it can be determined whether there are people around the first electronic device, and if so, whether they are looking at the screen of the first electronic device.

[0053] Taking the current scenario of the first electronic device, which includes the geographical location of the first electronic device and the environmental data around the first electronic device, as an example, in some embodiments, if the type information of the first message does not match the current scenario of the first electronic device, the following steps may be included:

[0054] If the geographical location of the first electronic device does not match the type information of the first message, and if it is determined from the environmental data surrounding the first electronic device that there are people around the first electronic device, then it is determined that the type information of the first message does not match the current scene of the first electronic device.

[0055] For example, when the first electronic device is located in a company, the type information of the first message is work-sensitive (i.e., the geographical location of the first electronic device does not match the type information of the first message), and there are people around the first electronic device, it can be determined that the type information of the first message does not match the current scenario of the first electronic device.

[0056] The embodiments of this application can determine whether the type information of the first message matches the current scene of the first electronic device based on the geographical location of the first electronic device and the environmental data around the first electronic device, providing a basis for adopting different message processing strategies in the future.

[0057] In some embodiments, prior to S120, the message processing method may further include the following steps:

[0058] The initial prompt method for receiving the first message;

[0059] The initial prompting methods include at least one of the following: pop-up display, ringing, and vibration.

[0060] The initial prompting method here could be the way the first electronic device prompts the user when it receives the first message.

[0061] Understandably, the initial notification method is related to the settings of the first electronic device and also to the first message. For example, when the first message is an incoming call, the initial notification method can be at least one of ringing and vibration; when the first message is a text message, the initial notification method can be at least one of pop-up display, ringing, and vibration.

[0062] For example, the notification methods for each first message differ depending on whether the first electronic device is in "vibration mode" or "normal mode". For instance, in vibration mode, the first electronic device will vibrate to indicate an incoming call, while in normal mode, it will ring and vibrate. Furthermore, in normal mode, the first electronic device will display a pop-up notification when receiving a chat message. Therefore, the initial notification method will vary depending on the settings of the first electronic device and the first message received.

[0063] The initial prompting method for obtaining the first message in this embodiment can be changed in a timely manner if the type information of the first message does not match the current scenario of the first electronic device. In particular, when the first message is a sensitive type of message, it can effectively protect the first message and prevent the first message from being leaked.

[0064] In some embodiments, when the initial prompting method of the first message is obtained and the type information of the first message does not match the current scenario of the first electronic device, performing a target operation on the first message may include the following steps:

[0065] If the initial notification method for the first message is ringing, lower the ringtone volume;

[0066] If the initial notification method for the first message is vibration, disable vibration;

[0067] If the initial notification of the first message is displayed as a pop-up window, the pop-up window information is blocked, and a notification icon is displayed on the target icon, which is the icon of the application corresponding to the first message.

[0068] Specifically, if the type information of the first message does not match the current scenario of the first electronic device, if the initial notification method of the first message is a ringing, the volume of the ringing can be reduced; if the initial notification method of the first message is vibration, the vibration can be canceled; if the initial notification method of the first message is a pop-up window, the pop-up window information can be blocked, and a prompt mark can be displayed on the icon (i.e., the target icon) corresponding to the message to notify the user that the first electronic device has received the first message. The embodiments of this application do not limit the form of the prompt mark.

[0069] In this embodiment of the application, when the type information of the first message does not match the current scene of the first electronic device, the initial prompting method of the first message can be adjusted according to the current scene of the first electronic device. This achieves adaptive adjustment of the prompting method of the first message, so that the prompting method of the first message matches the current scene.

[0070] In some embodiments, if the type information of the first message does not match the current scenario of the first electronic device, the first electronic device can automatically reduce the playback volume of the audio and video when it detects that the user needs to play audio and video. In this way, it can prevent information leakage caused by sound leakage and achieve the purpose of adaptively adjusting the output mode of the first message according to the current scenario of the first electronic device.

[0071] It is understandable that the matching of the type information of the first message with the current scene of the first electronic device can be: that the first message of this type is suitable for display in the current scene.

[0072] For example, if the geographical location of the first electronic device does not match the type information of the first message, but it is determined from the environmental data around the first electronic device that there is no one around the first electronic device, the type information of the first message can be determined to match the current scene of the first electronic device.

[0073] For example, if the first electronic device is located in a company and the type information of the first message is work-sensitive, but there is no one around the first electronic device, it can be determined that the type information of the first message matches the current scene of the first electronic device.

[0074] For example, if the geographical location of the first electronic device matches the type information of the first message, it can be determined that the type information of the first message matches the current scene of the first electronic device.

[0075] For example, when the first electronic device is located at home and the message type of the first message is an identity-sensitive type, it can be determined that the type information of the first message matches the current scene of the first electronic device.

[0076] For example, in the absence of people around the first electronic device, it can be determined that the type information of the first message matches the current scene of the first electronic device.

[0077] When the type information of the first message matches the current scenario of the first electronic device, the first message can be output normally. For example, when the first message is an SMS, the content of the SMS can be displayed directly. Or, when the first message is a phone call notification, the user can answer the call.

[0078] In some embodiments, the first message may be sent by a second electronic device. Based on this, after S120, the message processing method may further include the following steps:

[0079] A second message is sent to a second electronic device, the second message being used to indicate the current scenario in which the first electronic device is located.

[0080] For example, when the holder of the second electronic device is a headhunter or HR, i.e., the user of the first electronic device, and receives a recruitment call from the headhunter or HR, if the first electronic device is at the company and there are people around, the first electronic device can send a second message to the second electronic device corresponding to the headhunter or HR to inform the headhunter or HR that the user of the first electronic device is currently at the company and it is inconvenient to answer the call. This can prevent the headhunter or HR from frequently harassing the user of the first electronic device and improve the user experience.

[0081] According to the embodiments of this application, different strategies can be adopted for different first messages based on the matching relationship between the current scene of the first electronic device and the type information of the first message. For example, if the current scene and the type information of the first message do not match, the prompting method or display method of the first message can be adjusted. If the current scene and the type information of the first message match, the first message can be directly output. In this way, the output method of the first message is adaptively adjusted so that the first message matches the current scene and meets the user's needs.

[0082] It should be noted that the message processing method provided in this application embodiment can be executed by a message processing device or a processing module within that message processing device for executing the message processing method. This application embodiment uses the execution of the message processing method by a message processing device as an example to illustrate the message processing device provided in this application embodiment. This message processing device can be applied to a first electronic device.

[0083] Figure 2 This is a schematic diagram of the structure of a message processing device provided in an embodiment of this application.

[0084] like Figure 2 As shown, the message processing device 200 may include:

[0085] The acquisition module 201 is used to acquire the type information of the first message upon receiving the first message;

[0086] The execution module 202 is used to perform a target operation on the first message when the type information of the first message does not match the current scenario of the first electronic device.

[0087] The current scenario of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device.

[0088] In this embodiment, upon receiving a first message, the type information of the first message is obtained; if the type information of the first message does not match the current scene of the first electronic device, a target operation is performed on the first message; wherein, the current scene of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device. That is, this embodiment can process the first message received by the electronic device according to the type information of the first message and the current scene of the electronic device. Especially when the type information of the first message does not match the current scene of the electronic device, a target operation can be automatically performed on the first message. This avoids the first message being displayed in an unsuitable scene, prevents the leakage of the first message, and improves the message processing effect.

[0089] In some possible implementations of the embodiments of this application, the acquisition module 201 is further configured to acquire the initial prompting method of the first message before the execution module performs the target operation on the first message when the type information of the first message does not match the current scenario of the first electronic device;

[0090] The initial prompting methods include at least one of the following: pop-up display, ringing, and vibration.

[0091] In some possible implementations of the embodiments of this application, the execution module 202 is specifically used for:

[0092] If the initial notification method for the first message is ringing, lower the ringtone volume;

[0093] If the initial notification method for the first message is vibration, disable vibration;

[0094] If the initial notification of the first message is displayed as a pop-up window, the pop-up window information is blocked, and a notification icon is displayed on the target icon, which is the icon of the application corresponding to the first message.

[0095] In some possible implementations of the embodiments of this application, the message processing device 200 may further include a determining module, which is used to:

[0096] If the geographical location of the first electronic device does not match the type information of the first message, and if it is determined from the environmental data surrounding the first electronic device that there are people around the first electronic device, then it is determined that the type information of the first message does not match the current scene of the first electronic device.

[0097] In some possible implementations of the embodiments of this application, the first message is sent by the second electronic device, and the message processing device 200 may further include:

[0098] The sending module is used to send a second message to the second electronic device after the execution module performs the target operation on the first message. The second message is used to indicate the current scene in which the first electronic device is located.

[0099] The device used for message processing in this application embodiment can be a device, or it can be a component, integrated circuit, or chip in an electronic device. The electronic device can be a mobile electronic device or a non-mobile electronic device. For example, a mobile electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., while a non-mobile electronic device can be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not make specific limitations.

[0100] The electronic device in this application embodiment can be an electronic device with an operating system. The operating system can be Android, iOS, or other possible operating systems, and this application embodiment does not specifically limit it.

[0101] The device for message processing provided in this application embodiment can achieve... Figure 1 The various processes applied in the message processing method embodiments will not be described again here to avoid repetition.

[0102] like Figure 3 As shown, this application embodiment also provides an electronic device 300, including a processor 301, a memory 302, and a program or instructions stored in the memory 302 and executable on the processor 301. When the program or instructions are executed by the processor 301, they implement the various processes of the above message processing method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0103] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0104] In some possible implementations of the embodiments of this application, processor 301 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0105] In some possible implementations of embodiments of this application, memory 302 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory 302 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the message processing method according to embodiments of this application.

[0106] Figure 4 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0107] The electronic device 400 includes, but is not limited to, components such as: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.

[0108] Those skilled in the art will understand that the electronic device 400 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 410 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 4 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0109] The input unit 404 is used to: obtain the type information of the first message when the first message is received;

[0110] The processor 410 is configured to: perform a target operation on the first message if the type information of the first message does not match the current scenario of the first electronic device;

[0111] The current scenario of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device.

[0112] In this embodiment, upon receiving a first message, the type information of the first message is obtained; if the type information of the first message does not match the current scene of the first electronic device, a target operation is performed on the first message; wherein, the current scene of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device. That is, this embodiment can process the first message received by the electronic device according to the type information of the first message and the current scene of the electronic device. Especially when the type information of the first message does not match the current scene of the electronic device, a target operation can be automatically performed on the first message. This avoids the first message being displayed in an unsuitable scene, prevents the leakage of the first message, and improves the message processing effect.

[0113] In some possible implementations of the embodiments of this application, the input unit 404 is further configured to: obtain the initial prompting mode of the first message before the processor 410 performs the target operation on the first message;

[0114] The initial prompting methods include at least one of the following: pop-up display, ringing, and vibration.

[0115] In some possible implementations of the embodiments of this application, the processor 410 is specifically used for:

[0116] If the initial notification method for the first message is ringing, lower the ringtone volume;

[0117] If the initial notification method for the first message is vibration, disable vibration;

[0118] If the initial notification of the first message is displayed as a pop-up window, the pop-up window information is blocked, and a notification icon is displayed on the target icon, which is the icon of the application corresponding to the first message.

[0119] In some possible implementations of the embodiments of this application, the processor 410 is specifically used for:

[0120] If the geographical location of the first electronic device does not match the type information of the first message, and if it is determined from the environmental data surrounding the first electronic device that there are people around the first electronic device, then it is determined that the type information of the first message does not match the current scene of the first electronic device.

[0121] In some possible implementations of the embodiments of this application, the first message is sent by the second electronic device, and the processor 410 is further configured to: after performing a target operation on the first message, send a second message to the second electronic device, the second message being used to indicate the current scenario in which the first electronic device is located.

[0122] It should be understood that, in this embodiment, the input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The GPU 4041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 409 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understandable that the aforementioned modem processor may not be integrated into the processor 410.

[0123] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described message processing method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0124] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, and examples of computer-readable storage media include non-transitory computer-readable storage media, such as ROM, RAM, magnetic disks, or optical disks.

[0125] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above message processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0126] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0127] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0128] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0129] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A message processing method, characterized in that, Applied to a first electronic device, the method includes: Upon receiving a first message, obtain the sensitivity type information of the first message; the first message was sent by a second electronic device; If the sensitivity type information of the first message does not match the current scene of the first electronic device, a target operation is performed on the first message. The target operation is used to adjust the output mode of the first message so that the adjusted output mode of the first message matches the current scene of the first electronic device; the first electronic device is in a screen-on state. Send a second message to the second electronic device, the second message being used to indicate the current scenario in which the first electronic device is located; Wherein, the current scene of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device; The sensitivity type information of the first message does not match the current scenario of the first electronic device, including: If the geographical location of the first electronic device does not match the sensitivity type information of the first message, and it is determined from the environmental data surrounding the first electronic device that there are people around the first electronic device, then it is determined that the sensitivity type information of the first message does not match the current scene of the first electronic device.

2. The method according to claim 1, characterized in that, Before performing the target operation on the first message when the sensitivity type information of the first message does not match the current scenario of the first electronic device, the method further includes: Obtain the initial prompting method of the first message; The initial prompting method includes at least one of the following: pop-up display, ringing, and vibration.

3. The method according to claim 2, characterized in that, The step of performing the target operation on the first message includes: If the initial notification method for the first message is ringing, reduce the volume of the ringtone; If the initial notification method for the first message is vibration, then cancel the vibration. If the initial notification method for the first message is a pop-up window, the pop-up window information is blocked, and a notification icon is displayed on the target icon, which is the icon of the application corresponding to the first message.

4. A message processing device, characterized in that, Applied to a first electronic device, the device includes: The acquisition module is used to acquire the sensitivity type information of the first message upon receiving the first message; the first message is sent by the second electronic device. An execution module is configured to perform a target operation on the first message when the sensitivity type information of the first message does not match the current scene of the first electronic device. The target operation is used to adjust the output mode of the first message so that the adjusted output mode of the first message matches the current scene of the first electronic device. The first electronic device is in a screen-on state. The sending module is configured to send a second message to the second electronic device after the execution module performs a target operation on the first message, the second message being used to indicate the current scenario in which the first electronic device is located; Wherein, the current scene of the first electronic device is related to at least one of the following: the geographical location of the first electronic device, and the environmental data surrounding the first electronic device; The device further includes a determining module, the determining module being used for: If the geographical location of the first electronic device does not match the type information of the first message, and it is determined from the environmental data surrounding the first electronic device that there are people around the first electronic device, then it is determined that the type information of the first message does not match the current scene of the first electronic device.

5. The apparatus according to claim 4, characterized in that, The acquisition module is further configured to acquire the initial prompting method of the first message before the execution module performs a target operation on the first message when the sensitivity type information of the first message does not match the current scenario of the first electronic device; The initial prompting method includes at least one of the following: pop-up display, ringing, and vibration.

6. The apparatus according to claim 5, characterized in that, The execution module is specifically used for: If the initial notification method for the first message is ringing, reduce the volume of the ringtone; If the initial notification method for the first message is vibration, then cancel the vibration. If the initial notification method for the first message is a pop-up window, the pop-up window information is blocked, and a notification icon is displayed on the target icon, which is the icon of the application corresponding to the first message.

Citation Information

Patent Citations

  • Lighting effect display method, related equipment and storage medium

    CN109348049A