CN113448659B - Push message processing method and device - Google Patents
Push message processing method and device Download PDFInfo
- Publication number
- CN113448659B CN113448659B CN202010219700.5A CN202010219700A CN113448659B CN 113448659 B CN113448659 B CN 113448659B CN 202010219700 A CN202010219700 A CN 202010219700A CN 113448659 B CN113448659 B CN 113448659B
- Authority
- CN
- China
- Prior art keywords
- equipment
- screen
- light intensity
- message
- push message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a push message processing method and device, and relates to the technical field of computers. One embodiment of the method comprises the following steps: the message pushing interface in the monitoring equipment determines that pushing messages are transmitted to the equipment when the message pushing interface is called; and when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, executing the hiding operation of the push message. According to the embodiment, under the condition that the equipment gesture is changed and/or the environment where the equipment is located is darker, the push message can be quickly hidden, the whole implementation steps are fewer and simple, the user finger operation interface is not needed, and the interference on the user to view documents/videos and other data is reduced.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a push message processing method and device.
Background
The frequency of mobile devices such as mobile phones used by people in modern society is higher and higher, so that push messages of different types of APP are often jumped out when browsing text information or watching video, and the messages are hidden after waiting for a period of time or manually clicking a button.
In carrying out the present invention, the inventors have found that at least the following problems exist in the prior art:
the push message waits for a certain time to be automatically hidden, and stays on the screen for a certain time in the process, so that normal browsing or watching of a user is affected; if the user wants to close immediately, the user needs to slide the finger or click the closing button, but if the finger is inconvenient to operate, the user cannot handle the finger.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing a push message, which at least can solve the problem in the prior art that the push message is not timely or convenient to process.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a push message processing method, including:
A message pushing interface in monitoring equipment determines that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
And when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, executing the hiding operation of the push message.
Optionally, when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, the hiding operation for the push message is performed, including: detecting the light intensity of the environment above the screen of the equipment, and if the light intensity exceeds the preset intensity range, detecting whether the gesture of the equipment changes or not; and after detecting that the gesture of the equipment is changed, executing hiding operation on the push message.
Optionally, when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, the hiding operation for the push message is performed, including: if the gesture of the equipment is detected to change, acquiring the light intensity of the environment above the screen of the equipment; and if the light intensity exceeds the preset intensity range, executing hiding operation on the push message.
Optionally, the method further comprises: and acquiring the current angle of the equipment on the coordinate axes by using a gyroscope, and determining that the gesture of the equipment changes when detecting that the angle on at least one coordinate axis changes.
Optionally, the method further comprises: invoking a light sensor module to detect the light intensity of the environment above the screen of the device; wherein the light sensor module is arranged on a screen of the device.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a push message processing apparatus, including:
the interface monitoring module is used for monitoring a message pushing interface in the equipment, and determining that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
And the message hiding module is used for executing the message pushing hiding operation when detecting that the gesture of the equipment changes and/or the light intensity of the environment above the screen of the equipment is in a preset intensity range.
Optionally, the message hiding module is further configured to: detecting the light intensity of the environment above the screen of the equipment, and if the light intensity exceeds the preset intensity range, detecting whether the gesture of the equipment changes or not; and after detecting that the gesture of the equipment is changed, executing hiding operation on the push message.
Optionally, the message hiding module is further configured to: if the gesture of the equipment is detected to change, acquiring the light intensity of the environment above the screen of the equipment; and if the light intensity exceeds the preset intensity range, executing hiding operation on the push message.
Optionally, the device further comprises a device gesture detection module for: and acquiring the current angle of the equipment on the coordinate axes by using a gyroscope, and determining that the gesture of the equipment changes when detecting that the angle on at least one coordinate axis changes.
Optionally, the device further comprises a light intensity detection module for: invoking a light sensor module to detect the light intensity of the environment above the screen of the device; wherein the light sensor module is arranged on a screen of the device.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a push message processing electronic device.
The electronic equipment of the embodiment of the invention comprises: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the push message processing method.
To achieve the above object, according to still another aspect of the embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program, which when executed by a processor, implements any one of the push message processing methods described above.
According to the solution provided by the present invention, one embodiment of the above invention has the following advantages or beneficial effects: under the condition that the gesture of the equipment changes and/or the environment where the equipment is located is dark, the whole implementation steps are fewer and simple, the push notification can be conveniently and timely hidden under the condition that the screen is not operated by fingers, and the normal viewing of documents/videos and other data is maintained.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic flow diagram of a push message processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of detecting whether a change in the attitude of a device has occurred using a gyroscope;
FIG. 3 is a flow diagram of an alternative push message processing method according to an embodiment of the present invention;
FIG. 4 is a flow diagram of another alternative push message processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of main modules of a push message processing apparatus according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
Fig. 7 is a schematic diagram of a computer system suitable for use in implementing a mobile device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiment of the present invention may be applied to handheld devices such as mobile phones, tablet computers, PDAs (Personal DIGITAL ASSISTANT) and the like, and is not limited to operating systems such as adroid, iOS, symbian, windows Phone, firefox OS and the like.
The invention has wider application range, can be applied to industrial grade except the push message hiding of the personal handheld device of the user, such as RF gun (Radio Frequency) in the logistics field, and depends on the device in the warehousing operation processes of commodity warehousing, inventory, picking and the like; for example, POS machines for delivery/payment can be used for hiding push messages quickly, so that interference on production operation caused by the push messages is reduced, unnecessary man-hour waste is reduced, and production efficiency is improved.
Referring to fig. 1, a main flowchart of a push message processing method provided by an embodiment of the present invention is shown, including the following steps:
S101: a message pushing interface in monitoring equipment determines that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
s102: and when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, executing the hiding operation of the push message.
In the above embodiment, for step S101, message pushing is performed by the push interface of the message pushing module in the device, and this interface of each device is unique, so it is only necessary to monitor the push interface for whether a push message is received. When the push interface is invoked, it means that there is a message pushed into the device.
It should be noted that, the display position of the push message at the device screen is set by its factory manufacturer, for example, above, below or other positions, which is not limited by the present invention.
For step S102, as to whether the triggering condition of the hidden push message is satisfied, at least three relationships are set, where:
1) Detecting that the gesture of the equipment changes;
2) Detecting that the light intensity of the environment above the equipment screen is within a preset intensity range;
3) Detecting the change of the gesture of the equipment and judging that the light intensity of the environment above the screen of the equipment is in a preset intensity range.
For the triggering condition 1), detecting whether the gesture of the equipment changes or not by using a gyroscope, namely detecting whether the angle of the equipment on each coordinate axis changes or not, and if the angles are deviated before and after verification, indicating that the equipment is overturned. And whether the environment where the device is located is dark or bright is not considered, and only after the device is determined to be overturned, the push message hiding module is directly called to hide all push messages in the current device.
And if the device receives the push message and pops up, determining the current gesture of the device by using the gyroscope. For the device definition X, Y, Z axis, referring specifically to FIG. 2, the coordinate system of the device is defined in the integrated display screen:
1) x is on the plane of the display screen, and the right side of the screen is positive;
2) y is on the display screen, and the upper part of the screen is positive;
3) z is perpendicular to the display screen and the off-screen is positive.
To determine if the device is flipped, device Orientation (gyroscopes in the device) events may be detected, acquiring the rotation angle of the device on three coordinate axes: alpha (alpha) value, beta (beta) value, gamma (gamma) value. It should be noted that the alpha, beta and gamma attributes of the event must indicate the device orientation in terms of the transformation from the earth-fixed coordinate system to the device-fixed coordinate system.
The rotation uses right hand rules, i.e. clockwise rotation in the forward direction along one axis from the direction of that axis. Starting from the coincidence of the two coordinate systems, the rotation applies the following rule:
1) And rotating by alpha degrees by taking the z axis of the equipment coordinate system as an axis. alpha has a scope of [0, 360);
2) And rotating beta degrees by taking the x axis of the equipment coordinate system as an axis. beta has a scope of [ -180, 180);
3) And rotating the gamma degree by taking the y axis of the equipment coordinate system as an axis. The scope of gamma is [ -90, 90).
The gyroscope is an angular motion detection device which uses a momentum moment sensitive shell of a high-speed revolving body to rotate around one or two axes orthogonal to a rotation shaft relative to an inertia space. Angular motion detection devices made using other principles are also known as gyroscopes that function as well. The gyroscope can measure the rotation and deflection movements, accurately analyze and judge the actual movements of a user, and then can correspondingly control the equipment according to the movements.
For trigger condition 2), when the light sensor module detects that light above the screen of the device is dark (within a predetermined intensity range), the push message hiding module may be invoked to hide all push messages that are present in the current device. The condition is applicable to dark environments and environments with darker light, and the environments with darker light can be the actual environments with darker light, can be generated by artificially shielding a screen, and can also be the conditions that the device screen faces away from a light source.
The existing equipment manufacturer generally sets the light sensor module on the screen, and because the light sensor module and the screen are basically located on the same light receiving surface, the light intensity acquired by the screen can be considered to be equal to the light intensity acquired by the light sensor module in the same illumination environment.
It should be noted that the module is a complex aggregate, and is composed of electronic programming language combination components. The light sensor in the light sensor module only belongs to one of a plurality of hardware, and a module with an actual service function is formed by combining the inside of software, namely the perception of the intensity of light is realized by the software based on the logic processing of the light sensor.
For trigger condition 3), push messages can be hidden only if it is detected that the device is flipped and the light above the device screen is darker before/after flipping, e.g., the phone is flipped or flipped back to the light source with a light intensity of 0.3 before flipping or flipping and a light intensity of 0.1 after flipping or flipping.
It should be noted that, although the manufacturer of the light sensor module may have different definitions of the light intensity and the return value, the manufacturer typically includes corresponding values of the light intensity. For example, the light intensity that can be handled by vendor A is divided into 0.1, 0.2, 0.3, 0.4, 0.5 (this result is handled by the light sensor module assembly software).
According to the method provided by the embodiment, under the conditions that the equipment gesture changes and/or the environment where the equipment is located is dark, the push message can be quickly hidden, the whole implementation steps are fewer and simple, the user finger operation interface is not needed, and the normal viewing of documents/videos and other data is facilitated.
Referring to fig. 3, a flowchart of an alternative push message processing method according to an embodiment of the present invention is shown, including the following steps:
s301: a message pushing interface in monitoring equipment determines that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
s302: detecting the light intensity of the environment above the screen of the equipment, and if the light intensity exceeds the preset intensity range, detecting whether the gesture of the equipment changes or not;
S303: and after detecting that the gesture of the equipment is changed, executing hiding operation on the push message.
In the above embodiment, for the step S301, reference may be made to the description of the step S101 shown in fig. 1, which is not repeated here.
In the above embodiment, for steps S302 and S303, since the intensity of light above the screen of the device is substantially uniform and weak in the dark environment, the preset intensity range may be set to be low, and a higher value may be set in the bright environment. In practice, two environments may need to be considered, so as to set the same preset intensity range, for example, to set 0.1 with reference to the light intensity in the dark environment.
Before prompting the turning device, the light sensor module needs to be called to detect the light intensity of the environment above the screen of the device, so as to obtain the light intensity. If the light intensity is strong (exceeds the preset intensity range), the equipment needs to be turned over to trigger the hiding operation of the push message by changing the posture of the equipment.
The information for prompting the device to change the gesture may be displayed on the device screen in the form of a prompt box or may be notified to the user in the form of a voice prompt or the like.
In actual operation, there may be a problem that the gesture change amplitude of the device is small and is not easy to be perceived, so that the hiding operation on the push message may not be triggered in time by using the above triggering condition.
Based on the above problems, after the equipment is turned over, the light sensor module is also called to detect the light intensity of the environment above the screen of the equipment, and whether the light intensity above the screen of the equipment changes or not is judged, and if the light intensity above the screen changes, the push message is hidden. Assuming that the light intensity of the mobile phone before rollover or back-off is 0.3, the light intensity after rollover or back-off is 0.1, and judging that 0.1 is changed from the previous 0.3, namely hiding the notification message. But if the light intensity after the device is turned over or back-off is still 0.3, the notification message is not hidden.
From another angle, when the intensity of light above the screen changes, it can also indicate that the device is turned over, so the judgment of the change of the intensity of light can be regarded as judging whether the turning amplitude of the device meets the requirement.
According to the method provided by the embodiment, for the gesture change of the equipment, the equipment can be triggered based on the condition that the environmental light above the screen of the equipment is strong, and then whether the overturning amplitude of the equipment meets the requirement can be further judged based on the change of the gesture of the equipment, so that the stable operation of hiding the push message is ensured, the screen is not required to be operated by fingers of a user in the whole process, and the use experience of the user is greatly improved.
Referring to fig. 4, a flowchart of another alternative push message processing method according to an embodiment of the present invention is shown, including the following steps:
S401: a message pushing interface in monitoring equipment determines that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
S402: if the gesture of the equipment is detected to change, acquiring the light intensity of the environment above the screen of the equipment;
S403: and if the light intensity exceeds the preset intensity range, executing hiding operation on the push message.
In the above embodiment, for the step S401, reference may be made to the description of the step S101 shown in fig. 1, and the description is omitted here.
In the above embodiment, for steps S402 and S403, after the device receives the push message, the device is first prompted to turn over the device by means of a prompt box or voice, and after the gyroscope in the device is used to monitor that the gesture of the device is changed, the light intensity of the environment above the screen is obtained.
In practical operation, it is still necessary to consider dark and bright environments, and the same preset intensity range is set, for example, the preset intensity range is set to 0.1 with reference to the light intensity in the dark environment. If the intensity of the turned light is weaker and lower than 0.1 (beyond the range of 0.1), the push message is hidden.
According to the method provided by the embodiment, the equipment is firstly prompted to overturn, after the equipment is overturned, whether the intensity of the ambient light above the screen meets the requirement is judged, and the purpose of hiding the push message can be achieved without operating the screen by a user's finger.
According to the technical scheme of the embodiment of the invention, various triggering conditions are generated based on whether the equipment gesture changes and whether the light intensity of the environment above the equipment screen is in a preset intensity range, so that the method is applicable to various scenes; and the whole implementation can quickly and conveniently complete the push message hiding operation without manually operating the screen by a user.
In addition, the various trigger conditions generated may be selected by the user. For example, considering that existing push messages are typically push in the daytime, to speed up message hiding rate, changes may be made based on device gestures or occlusion of the device screen, and for the evening, one way may be chosen.
Referring to fig. 5, a schematic diagram of main modules of a push message processing apparatus 500 according to an embodiment of the present invention is shown, including:
The interface monitoring module 501 is configured to monitor a message push interface in a device, and determine that a push message is transmitted to the device when the message push interface is monitored to be invoked;
And the message hiding module 502 is configured to execute a hiding operation for the push message when it is detected that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range.
The message hiding module comprises the light sensor module and the push message hiding module in the description.
In the embodiment of the present invention, the message hiding module 502 is configured to: detecting the light intensity of the environment above the screen of the equipment, and if the light intensity exceeds the preset intensity range, detecting whether the gesture of the equipment changes or not; and after detecting that the gesture of the equipment is changed, executing hiding operation on the push message.
In the embodiment of the present invention, the message hiding module 502 is configured to: if the gesture of the equipment is detected to change, acquiring the light intensity of the environment above the screen of the equipment; and if the light intensity exceeds the preset intensity range, executing hiding operation on the push message.
The implementation apparatus of the present invention further includes a device gesture detection module 503 (not shown in the figure) configured to: and acquiring the current angle of the equipment on the coordinate axes by using a gyroscope, and determining that the gesture of the equipment changes when detecting that the angle on at least one coordinate axis changes.
The present invention implements a device light intensity detection module 504 (not shown) for: invoking a light sensor module to detect the light intensity of the environment above the screen of the device; wherein the light sensor module is arranged on a screen of the device.
In addition, the implementation of the apparatus in the embodiments of the present invention has been described in detail in the above method, so that the description is not repeated here.
Fig. 6 illustrates an exemplary system architecture 600 in which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605 (by way of example only). The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using terminal devices 601, 602, 603.
It should be noted that, the method provided by the embodiment of the present invention is generally performed by the server 605, and accordingly, the apparatus is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor comprises an interface monitoring module, a message hiding module and an acquisition module. The names of these modules do not constitute a limitation on the module itself in some cases, for example, the message hiding module may also be described as a "push message hiding module".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include:
A message pushing interface in monitoring equipment determines that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
And when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, executing the hiding operation of the push message.
According to the technical scheme of the embodiment of the invention, various triggering conditions are generated based on whether the equipment gesture changes and whether the light intensity of the environment above the equipment screen is in a preset intensity range, so that the method is applicable to various scenes; and the whole implementation can quickly and conveniently complete the push message hiding operation without manually operating the screen by a user.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (8)
1. A push message processing method, comprising:
A message pushing interface in monitoring equipment determines that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range, executing hiding operation on the push message; detecting whether the angle of the equipment on each coordinate axis changes or not by using a gyroscope, and if the angle is deviated before and after verification, determining that the equipment is overturned, wherein each coordinate axis comprises a transverse axis, a longitudinal axis and a vertical axis; and
Detecting, by a light sensor, light intensity above a screen of the device; the light sensor is arranged on the screen, is positioned on the same light receiving surface as the screen, and the light intensity acquired by the screen under the same illumination environment is equal to the light intensity acquired by the light sensor.
2. The method according to claim 1, wherein the performing the hiding operation of the push message when it is detected that the posture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range comprises:
Detecting the light intensity of the environment above the screen of the equipment, and if the light intensity exceeds the preset intensity range, detecting whether the gesture of the equipment changes or not;
And after detecting that the gesture of the equipment is changed, executing hiding operation on the push message.
3. The method according to claim 1, wherein the performing the hiding operation of the push message when it is detected that the posture of the device changes and/or the light intensity of the environment above the screen of the device is within a preset intensity range comprises:
If the gesture of the equipment is detected to change, acquiring the light intensity of the environment above the screen of the equipment;
And if the light intensity exceeds the preset intensity range, executing hiding operation on the push message.
4. A method according to any one of claims 1-3, further comprising:
and acquiring the current angle of the equipment on the coordinate axes by using a gyroscope, and determining that the gesture of the equipment changes when detecting that the angle on at least one coordinate axis changes.
5. A method according to any one of claims 1-3, further comprising:
Invoking a light sensor module to detect the light intensity of the environment above the screen of the device; wherein the light sensor module is arranged on a screen of the device.
6. A push message processing apparatus, comprising:
the interface monitoring module is used for monitoring a message pushing interface in the equipment, and determining that a pushing message is transmitted to the equipment when the message pushing interface is monitored to be called;
The message hiding module is used for executing the message pushing hiding operation when detecting that the gesture of the device changes and/or the light intensity of the environment above the screen of the device is in a preset intensity range; detecting whether the angle of the equipment on each coordinate axis changes or not by using a gyroscope, and if the angle is deviated before and after verification, determining that the equipment is overturned, wherein each coordinate axis comprises a transverse axis, a longitudinal axis and a vertical axis; and
Detecting, by a light sensor, light intensity above a screen of the device; the light sensor is arranged on the screen, is positioned on the same light receiving surface as the screen, and the light intensity acquired by the screen under the same illumination environment is equal to the light intensity acquired by the light sensor.
7. An electronic device, comprising:
One or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
8. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010219700.5A CN113448659B (en) | 2020-03-25 | 2020-03-25 | Push message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010219700.5A CN113448659B (en) | 2020-03-25 | 2020-03-25 | Push message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113448659A CN113448659A (en) | 2021-09-28 |
CN113448659B true CN113448659B (en) | 2024-07-19 |
Family
ID=77806812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010219700.5A Active CN113448659B (en) | 2020-03-25 | 2020-03-25 | Push message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113448659B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113918259A (en) * | 2021-10-08 | 2022-01-11 | 北京沃东天骏信息技术有限公司 | View adaptation processing method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428368A (en) * | 2013-08-09 | 2013-12-04 | 深圳辉烨通讯技术有限公司 | Method and device for realizing silent incoming call of intelligent terminal |
CN105262901A (en) * | 2015-10-30 | 2016-01-20 | 努比亚技术有限公司 | Short message processing method and apparatus |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8719391B2 (en) * | 2006-03-07 | 2014-05-06 | Nokia Corporation | Method and system for controlling contextual information push services |
CN103425386B (en) * | 2012-05-23 | 2017-12-15 | 腾讯科技(深圳)有限公司 | The method and microblogging client of microblogging display control |
CN103793436B (en) * | 2012-11-02 | 2019-04-02 | 腾讯科技(深圳)有限公司 | The method and browser of browsing pages |
CN103473004A (en) * | 2013-09-29 | 2013-12-25 | 小米科技有限责任公司 | A method, device and terminal equipment for displaying messages |
CN104166510B (en) * | 2014-03-28 | 2015-09-16 | 四三九九网络股份有限公司 | A kind of method utilizing upset terminal to control to realize terminal device |
CN104954545A (en) * | 2014-06-18 | 2015-09-30 | 腾讯科技(深圳)有限公司 | Information display method and terminal |
CN111182156B (en) * | 2015-08-20 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Application prompt message processing method and device on mobile terminal |
CN106547340B (en) * | 2015-09-23 | 2019-11-15 | 广州市动景计算机科技有限公司 | The method, apparatus and intelligent terminal of web page element are quickly hidden based on gravity sensing |
CN106231074A (en) * | 2016-07-15 | 2016-12-14 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of Message Processing |
CN107341418A (en) * | 2017-07-06 | 2017-11-10 | 珠海市魅族科技有限公司 | Display control method, device, computer installation and computer-readable recording medium |
CN109116655A (en) * | 2018-08-02 | 2019-01-01 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
CN110138967B (en) * | 2019-04-30 | 2021-07-23 | 维沃移动通信有限公司 | A terminal operation control method and terminal |
CN110287730B (en) * | 2019-06-18 | 2021-08-31 | Oppo广东移动通信有限公司 | Privacy file processing method and related equipment |
-
2020
- 2020-03-25 CN CN202010219700.5A patent/CN113448659B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428368A (en) * | 2013-08-09 | 2013-12-04 | 深圳辉烨通讯技术有限公司 | Method and device for realizing silent incoming call of intelligent terminal |
CN105262901A (en) * | 2015-10-30 | 2016-01-20 | 努比亚技术有限公司 | Short message processing method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN113448659A (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140118268A1 (en) | Touch screen operation using additional inputs | |
US10067632B2 (en) | Dynamic hover grace period | |
US11360660B2 (en) | Displaying a plurality of selectable actions | |
CN110383244B (en) | Calculator operation method and terminal | |
US11093041B2 (en) | Computer system gesture-based graphical user interface control | |
CN107391165A (en) | Control display methods, client and storage medium | |
CN113032172B (en) | Abnormality detection method and device and electronic equipment | |
CN104765525A (en) | Operation interface switching method and device | |
CN113448659B (en) | Push message processing method and device | |
CN106445373A (en) | Method and electronic device for processing user input | |
CN109634487B (en) | Information display method, device and storage medium | |
CN115470432A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
KR102526860B1 (en) | Electronic device and method for controlling thereof | |
CN110597580B (en) | Screen capturing method and device | |
CN107223226B (en) | Apparatus and method for multi-touch input | |
CN109444905B (en) | Dynamic object detection method and device based on laser and terminal equipment | |
CN111638828A (en) | Interface display method and device | |
EP3264203A1 (en) | Intelligent interaction method, equipment and system | |
CN111324260B (en) | Method and apparatus for moving views | |
CN106325715B (en) | Method and system for displaying picture and intelligent device | |
CN109407951A (en) | A kind of unread message processing method and terminal | |
US11989475B2 (en) | Selecting a display with machine learning | |
US10372314B2 (en) | Display device and display control method | |
CN111026303A (en) | Interface display method and terminal equipment | |
CN119556838A (en) | Interface display method, device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |