WO2017128978A1 - Push information monitoring device, push information monitoring method, and client - Google Patents

Push information monitoring device, push information monitoring method, and client Download PDF

Info

Publication number
WO2017128978A1
WO2017128978A1 PCT/CN2017/071271 CN2017071271W WO2017128978A1 WO 2017128978 A1 WO2017128978 A1 WO 2017128978A1 CN 2017071271 W CN2017071271 W CN 2017071271W WO 2017128978 A1 WO2017128978 A1 WO 2017128978A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
push information
view
message box
client
Prior art date
Application number
PCT/CN2017/071271
Other languages
French (fr)
Chinese (zh)
Inventor
伍中联
Original Assignee
广州市动景计算机科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 广州市动景计算机科技有限公司 filed Critical 广州市动景计算机科技有限公司
Publication of WO2017128978A1 publication Critical patent/WO2017128978A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/234Monitoring or handling of messages for tracking messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Definitions

  • the present application relates to the field of information push technology, and in particular, to a push information monitoring device, a push information monitoring method, and a client.
  • Electronic devices such as smart phones, mobile Internet devices (MIDs), personal digital assistants (PDAs), and tablets have become indispensable communication and entertainment tools in people's daily work and life.
  • Many electronic devices support user-defined installation of various applications (Application, App) to meet different user needs.
  • the background of the application can periodically provide the user with the push function of the information when new information or news is generated.
  • the notification information is pushed to the electronic device in the background, there is a case where the notification information is not displayed or lost, and the main reason for the occurrence of the notification is that the user turns off the notification display switch of the application.
  • the purpose of the embodiments of the present application is to provide a sending information monitoring apparatus, a push information monitoring method, and a client.
  • the push information monitoring device provided by the embodiment of the present application is applied to a client that is in communication with a server, and the push information monitoring device includes: a message box creating module, after receiving the push information sent by the server Creating a message box including a view, the message box being associated with a display state of the view and a display state of the push information; a callback information generating module for monitoring the view; and listening to the When the view is displayed by the message box, the callback information is generated.
  • the status information sending module is configured to send, to the server, status information indicating whether the client uses the push information to display the notification display switch when the callback information is detected. And when the callback information is not detected, sending status information indicating that the notification display switch has been turned off to the server.
  • the method for monitoring the push information is applied to a client that is in communication with a server, and the method for monitoring the push information includes: after receiving the push information sent by the server, creating a message frame including a view And monitoring the view, the message box is associated with the display state of the view and the display state of the push information; if the callback information is detected, sending a message indicating that the display notification switch has been turned on to the server Status information, wherein the callback information is generated when the view is displayed by the message box, and the notification display switch is used to control display of push information in the client; if no callback information is detected, The server sends status information indicating that the notification display switch has been turned off.
  • a client provided by the embodiment of the present application includes: a memory; a processor; and a push information monitoring device, where the push information monitoring device includes one or more stored in the memory and is processed by the processor
  • the executed module, the information pushing device includes: a message box creating module, configured to: after receiving the push information sent by the server, create a message box including a view, where the message box displays the view state and the view The display status of the push information is associated; the callback information generating module is configured to monitor the view; and generate callback information when the view is displayed by the message box; the status information sending module is configured to When the callback information is detected, sending to the server indicates that the client is used to control whether the push information indicates that the notification display switch has been turned on. Status information, and when no callback information is detected, status information indicating that the notification display switch has been turned off is sent to the server.
  • a computer readable storage medium on which a program for executing the method of the embodiment of the present application is recorded is provided by an embodiment of the present application.
  • the push information monitoring device, the push information monitoring method, and the client of the present application combine the state of the notification display switch with the message including the view when the client notification display switch is not directly accessible.
  • the display state of the frame reaches the indirect acquisition of the state of the notification display switch by detecting the state of the message box.
  • the server can effectively know the display rate of the push information, and facilitates opening and guiding the user who closes the push notification, thereby effectively improving the activity level of the user.
  • FIG. 1 is a schematic diagram of interaction between a client and a server according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a client according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another client according to an embodiment of the present application.
  • FIG. 4 is a block diagram of a function module for pushing information monitoring according to an embodiment of the present application.
  • FIG. 5 is a block diagram of another function module for pushing information monitoring according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a method for monitoring push information according to an embodiment of the present application.
  • FIG. 7 is a flowchart of another method for monitoring push information according to an embodiment of the present application.
  • Push information monitoring device 10
  • Memory 20
  • Push information detection module 101
  • Message box creation module 102
  • Message box status control module 103
  • Callback information generation module 104
  • Status information sending module 105
  • FIG. 1 it is a schematic diagram of the client 200 provided by the embodiment of the present application interacting with the server 100 .
  • the server 100 is in communication with one or more clients 200 over a network for data communication or interaction.
  • the server 100 can provide at least one installation package of an application (Application, APP) suitable for various operating systems for the client 200 to download.
  • an installation package of an application suitable for the operating system of the client 200 can be downloaded from the server 100 through the network to install the application to the server.
  • the client 200 may periodically receive the push information about the application that is pushed by the server 100.
  • the client 200 is installed with an application program downloaded from the server 100 for the operating system of the client 200, and the operating system is an Android system.
  • the application is preferably a browser, such as a UC browser.
  • the server 100 may be, but not limited to, a network (web) server 100, a ftp (file transfer protocol) server 100, a database server 100, and the like.
  • the client 200 can be, but is not limited to, a desktop, a portable computer, a tablet, a smart phone, a personal data assistant (PDA), a smart wearable device, or other type of computer device.
  • the operating system of the client 200 may be, but not limited to, an Android system, an IOS system, a Windows Phone system, and the like.
  • the operating system of the client 200 is an Android system.
  • the client can include a processing module 210, a storage subsystem 220, an input device 230, a display 240, a network interface 250, and a bus 260.
  • the processing module 210 can be a multi-core processor or multiple processors.
  • processing module 210 can include a general purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like.
  • processor 100 can be implemented using custom circuitry, such as an application specific integrated circuit (ASIC) or field programmable gate arrays (FPGA).
  • ASIC application specific integrated circuit
  • FPGA field programmable gate arrays
  • the processing module 210 can be a similar circuit that executes executable instructions stored on itself.
  • the processing module 210 can execute executable instructions stored on the storage subsystem 210.
  • Storage subsystem 220 can include various types of storage units, such as system memory, read only memory (ROM), and persistent storage.
  • the ROM may store static data or instructions required by the processing module 210 or other modules of the client.
  • the persistent storage device can be a readable and writable storage device.
  • the persistent storage device may be a non-volatile storage device that does not lose stored instructions and data even after the client is powered off.
  • the persistent storage device employs a mass storage device (eg, magnetic or optical disk, flash memory) as the permanent storage device.
  • the persistent storage device can be a removable storage device (eg, a floppy disk, an optical drive).
  • the system memory can be a readable and writable storage device or a volatile read/write storage device, such as dynamic random access memory.
  • System memory can store instructions and data that some or all of the processors need at runtime.
  • storage subsystem 220 can include any combination of computer readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic disks and/or optical disks can also be employed.
  • storage subsystem 220 can include removable storage devices that are readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, a DVD-ROM, a dual layer DVD-ROM) ), read-only Blu-ray Disc, Ultra Density Disc, Flash Card (such as SD card, min SD card, Micro-SD card, etc.), magnetic soft Disk and so on.
  • the computer readable storage medium does not include a carrier wave and an instantaneous electronic signal transmitted by wireless or wire.
  • the storage subsystem 220 can store one or more software programs that can be executed by the processing module 210 or resource files that need to be invoked.
  • the resource files can include some third-party libraries, including but not limited to audio libraries, video libraries. , 2D graphics library, 3D graphics library.
  • the user interface can be provided by one or more user input devices 230, display 240, and/or one or more other user output devices.
  • Input device 230 can include means for a user to input a signal to a client, and the client can interpret the signals containing particular user requests or information.
  • a web address may be input to the user interface through a keyboard to display webpage content corresponding to the input webpage.
  • input device 230 can include some or all of a keyboard button, touch screen, mouse or other pointing device, scroll wheel, click wheel, dial, button, switch, keypad, microphone, and the like.
  • the display 240 can display images generated by the client, and can include various types of image devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), a light emitting diode (LED) (including an organic light emitting diode (OLED)), and a projection.
  • CTR cathode ray tube
  • LCD liquid crystal display
  • LED light emitting diode
  • OLED organic light emitting diode
  • a collection of systems and the like with other supporting electronic devices eg, DACs, ADCs, signal processors, etc.
  • the user interface can be provided through a graphical user interface.
  • Certain areas of the display 240 define some visual graphical elements as interactive objects or control objects that the user selects through the input device 230.
  • the user can operate the user input device 230 to move the specified location input URL on the screen, and control the display of the webpage content corresponding to the webpage on the display 240.
  • a touch device that can recognize a user gesture can be used as an input device that can, but need not, be associated with an array on display 300.
  • Network interface 250 provides voice and/or data communication functionality to the client.
  • network interface 250 can include a radio frequency transceiver to communicate sound and/or data (eg, using cellular telephone technology, such as 3G, 4G or EDGE, WIFI data network technology), GPS accepting modules, and/or other Module.
  • network interface 250 may provide an additional wireless network connection or an alternative wireless interface.
  • Network interface 250 may be a combination of hardware (eg, antennas, modems, codecs, and other analog and/or digital signal processing circuits) and software modules.
  • Bus 260 can include various systems, external devices, and chip buses that connect various components within the client.
  • bus 260 connects processing device 100 to storage subsystem 220, and may also connect input device 230 and display 240.
  • Bus 260 may also cause the client to connect to the network via network interface 250.
  • the client can be part of multiple networked computer devices. Any or all of the components of the client may be coordinated for use in embodiments of the present application.
  • Some embodiments include electronic components, such as a microprocessor, a memory that stores computer instructions and data in a computer readable storage medium. Many of the features described in the Detailed Description section can be implemented by the method steps of executing computer instructions stored on a computer readable storage medium. When these computer instructions are executed, the computer processing unit performs various functions of the instructions.
  • the embodiment of the program instructions or computer code may be machine code, such as code compiled using a computer, electronic component or microprocessor of the object to be parsed to compile other high-level languages.
  • the client is schematic.
  • the client may have other functions not specifically described (eg, mobile call, GPS, power management, one or more cameras, various connection ports or accessories for connecting external devices, etc.).
  • the specific functional modules involved in the client 100 are described herein, and the description of these functional modules is for convenience of description, and does not mean a specific physical configuration of the functional components.
  • these functional modules do not need to be in one-to-one correspondence with physical modules.
  • the module can be configured to perform various operations, such as by programming or setting up appropriate control circuitry, and the module may be reconfigured according to initial settings.
  • Embodiments of the present application can be implemented in various devices, including electronic devices, by using a combination of hardware and software.
  • the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to the computing device, the computing device can be The instructions of each step of the method described in the embodiment of the present application are executed.
  • FIG. 3 is a schematic structural diagram of an example of a client in the embodiment of the present application.
  • the client 200 includes a push information monitoring device 10, a memory 20, and a processor 30.
  • the memory 20 and the processor 30 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
  • electrical connections can be made to one another via one or more communication buses or signal lines.
  • the memory 20 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read only memory ( Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
  • RAM random access memory
  • ROM read only memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the processor 30 may be an integrated circuit chip with signal processing capabilities.
  • the processor 30 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP processor, etc.), or a digital signal processor (DSP), an application specific integrated circuit. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • CPU central processing unit
  • NP processor network processor
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the general purpose processor may be a microprocessor or the processor 30 may be any conventional processor or the like.
  • the push information monitoring device 10 includes at least one or more software functions that can be stored in the memory 20 or in an operating system (OS) of the client 200 in the form of software or firmware. Module.
  • the processor 30 is configured to execute an executable module stored in the memory 20, such as a software function module or a computer program included in the push information monitoring device 10.
  • the client 200 is installed with an application program downloaded from the server 100 and adapted to the operating system of the client 200, and the operating system is an Android system.
  • the push information monitoring device 10 can be installed A separate application to the client 200, or a portion of the installed application (such as a functional module) is downloaded from the server 100.
  • FIG. 4 is a functional block diagram of a push information monitoring apparatus of a client provided by an embodiment of the present application.
  • the push information monitoring device includes a message box creating module 102, a callback information generating module 104, and a status information sending module 105.
  • the message box creating module 102 is configured to: after receiving the push information sent by the server, create a message box including a view, where the message box associates the display state of the view with the display state of the push information.
  • the callback information generating module 104 is configured to monitor the view; and generate callback information when the view is displayed by the message box.
  • the status information sending module 105 is configured to send status information indicating that the notification display switch has been opened to the server when the callback information is detected, and send the notification display switch to the server when the callback information is not detected. Status information that has been turned off, the notification display switch is used to control the display of push information in the client.
  • the notification display switch is used to control whether to display the notification information, that is, the notification display switch can be used to control whether the push information in the client is displayed.
  • the notification display switch can be used to control whether the push information in the client is displayed.
  • the client 200 receives the push information sent by the server 100
  • a message box corresponding to the push information is created, and a view is created on the message box for display.
  • the display state of the message box is related to the display state of the push information. Therefore, after the message frame is established, the display state of the view is controlled according to the display state of the push information, so that the display state of the message frame can be The display state of the inter-ground reaction push information.
  • the method for implementing the message box to associate the display state of the view with the display state of the push information may be: setting a listener that listens to the display state of the push information, and then monitoring the result. Combined with the action of the message box.
  • the client 200 On the basis that the message box associates the display state of the view with the display state of the push information, after receiving the push information sent by the server 100, the client 200, if the notification display switch is turned on, pushes the information at the location. Displayed in the information notification column of the client 200, thereby triggering the message box to perform display The operation of the view. If the notification display switch is in the off state, the message box does not perform any operation, so that the view is not displayed. Therefore, in this embodiment, the view of the message box is also monitored to determine whether the view is displayed. By monitoring whether the view of the message box is displayed, the status of the notification display switch can be indirectly known.
  • the push information is displayed in the notification bar, and the message box displays the view, and generates a corresponding callback information by monitoring; when the notification display switch is turned off, the push information is not displayed in the notification column. And the message box will not display the view, it will not monitor the view is displayed and will not generate callback information. Therefore, after receiving the push information sent by the server 100, detecting whether the callback information is generated, whether the push information is displayed or not, and determining the status of the notification display switch.
  • the detection of the callback information may be performed from the moment when the push information sent by the server 100 is received.
  • the display state of the message frame is the display view, and it can be known that the push information has been displayed, thereby determining that the notification display switch has been turned on.
  • the corresponding status information is transmitted to the server 100, so that the server 100 can know whether the notification display switch of the client 200 is turned off.
  • a message box including a view is created, and the message box associates the display state of the view with the display state of the push information, thereby being indirectly reflected by the display state of the message frame.
  • Pushing the display state of the information, monitoring the view, and generating the callback information when the view is displayed by the message box, so that when the callback information is detected the server is sent to indicate that the client is used to control the push information.
  • send status information indicating that the notification display switch has been turned off to the server by creating a message box and monitoring the view in the message box, Enables the server to effectively determine the status of the notification display switch.
  • the push information monitoring apparatus 10 further includes a push information detecting module 101 and a message box state control module 103. among them:
  • the push information detecting module 101 is configured to detect whether the client 200 receives the push information sent by the server 100.
  • the push information sent by the server 100 is received by the client 200, it is generally not directly displayed to the user, but the content of the push information is extracted by the operating system of the client 200, and then displayed in the corresponding information notification column.
  • the display switch for controlling whether or not to display the notification information is turned off, even if the client 200 receives the push information transmitted by the server 100, the client 200 does not display the push information.
  • the operating system of the client 200 is an Android system. In the Android system, the push information is displayed through the Push Notification function. When the user closes the notification status of the Push Notification, the client 200 receives the received information. Push information is not notified.
  • the message box creating module 102 is configured to: after receiving the push information sent by the server 100, create a message box including a view, where the message box associates the display state of the view with the display state of the push information.
  • the client 200 after receiving the push information sent by the server 100, the client 200 creates a message box corresponding to the push information, and creates a view on the message box for display.
  • the display state of its view is controlled according to the display state of the push information.
  • the display state of the push information is indirectly reflected by the display state of the message box.
  • the method for implementing the message box to associate the display state of the view with the display state of the push information may be: setting a listener that listens to the display state of the push information, and then monitoring The result is combined with the action of the message box.
  • the message box may be a Toast message box in the Android system.
  • Toast is a simple message box that won't get the focus, can't be clicked, and will automatically disappear after a period of time according to the preset length of time, without affecting the normal operation of the client 200.
  • Toast is a standard control provided by Android. It is suitable for any version of Android system. It is more convenient to use and has a wider range of applications.
  • the format of the view is set to be transparent and the area size is zero. Even if the operation of displaying the view is performed, the user does not see the view on the operation interface of the client 200. In this way, the user will not be aware of the extra message box, and the user experience will not be affected as a result.
  • the message box state control module 103 is configured to control the message box to perform an operation of displaying the view when the push information is displayed in the information notification column of the client 200.
  • the client 200 On the basis that the message box associates the display state of the view with the display state of the push information, after receiving the push information sent by the server 100, the client 200, if the notification display switch is turned on, pushes the information at the location.
  • the information notification column of the client 200 is displayed, and the message box is triggered to perform an operation of displaying the view. If the notification display switch is in the off state, the message box does not perform any operation, so that the view is not displayed. Therefore, by detecting whether the view of the message box is displayed, the state of the notification display switch can be indirectly known.
  • the callback information generating module 104 is configured to monitor the view, and generate callback information when the view is displayed by the message box.
  • the client 200 can detect whether the view of the message box is displayed by monitoring the callback. Specifically, whether the view is displayed by the message box is monitored by adding an additional status event that can be monitored for callback to the view. When the view is displayed, the additional status event is triggered to generate a corresponding callback information. If the view is not displayed, no events will be fired. On the basis of this, it is only necessary to detect whether the callback information is generated after receiving the push information sent by the server 100, and whether the push information is displayed or not, and then determine the status of the notification display switch.
  • the status information sending module 105 is configured to, when the callback information generating module 104 generates the callback information, send, to the server 100, state information indicating whether the client 200 is used to control whether the push information is displayed, that the notification display switch has been turned on, and When the callback information generating module 104 does not generate the callback information, it transmits to the server 100 status information indicating that the notification display switch has been turned off.
  • the detection of the callback information is started from the time when the push information transmitted by the server 100 is received.
  • the display state of the message box is a display view, and it can be known that the push information has been displayed, thereby determining that the notification display switch has been turned on.
  • the corresponding status information is transmitted to the server 100, so that the server 100 can know whether the notification display switch of the client 200 is turned off.
  • the notification display switch since the push information is not displayed, no operation associated with it is triggered.
  • the time required from receiving the push information to detecting the callback information is about 1 to 2 seconds. If the callback information is not detected during this time, the notification display can be indicated.
  • the switch is off.
  • the length of the preset time period may be set to a value slightly longer than 2 seconds (for example, 5 seconds), and after receiving the push information sent by the server 100, the callback information is detected, if a callback is detected.
  • the information immediately transmits status information indicating that the notification display switch has been turned on to the server 100. If no callback information is detected within the time period, status information indicating that the notification display switch has been turned off is transmitted to the server 100.
  • the operation is implemented by a Handler.
  • the embodiment of the present application may enable the server 100 to know whether the notification display switch of the client 200 is turned off, so that the server 100 takes corresponding measures as needed to guide the user to open the notification when the notification display switch is turned off.
  • the notification display switch is used to enhance the penetration and display rate of the push information.
  • FIG. 6 is a flowchart of a method for monitoring push information provided by an embodiment of the present application. The specific flow shown in FIG. 6 will be described in detail below.
  • Step S601 after receiving the push information sent by the server, create a message box including a view, and listen to the view.
  • the client receives the push information sent by the server, a message box corresponding to the push information is created, and a view is created on the message box for display, the message box A display state of the view is associated with a display state of the push information. If the notification display switch is in an open state, the push information is displayed in the information notification column of the client, thereby triggering the message box to perform an operation of displaying the view. If the notification display switch is in the off state, the message box does not perform any operation, so that the view is not displayed. Therefore, in this embodiment, the view of the message box is also monitored to determine whether the view is displayed. By monitoring whether the view of the message box is displayed, the status of the notification display switch can be indirectly known.
  • Step S602 if the callback information is detected, send status information indicating that the display notification display switch has been opened to the server, wherein the callback information is generated when the view is displayed by the message box.
  • Step S603 if the callback information is not detected, send status information indicating that the notification display switch has been turned off to the server.
  • the push information is displayed in the notification bar, and the message box displays the view, and generates a corresponding callback information by monitoring; when the notification display switch is turned off, the push information is not displayed in the notification column. And the message box will not display the view, it will not monitor the view is displayed and will not generate callback information. Therefore, after receiving the push information sent by the server, detecting whether the callback information is generated, whether the push information is displayed or not, and determining the status of the notification display switch is determined.
  • the display state of the representation message box is the display view, and it can be known that the push information has been displayed, thereby determining that the notification display switch has been turned on. Conversely, if no callback information is detected, it can be determined that the notification display switch has been turned off. After the status of the notification display switch is obtained, the corresponding status information is sent to the server, so that the server can know whether the notification display switch of the client is closed.
  • a message box including a view is created, and the message box associates the display state of the view with the display state of the push information, thereby being indirectly reflected by the display state of the message frame.
  • Push information Displaying a state, monitoring the view, and generating callback information when the view is displayed by the message box, so that when the callback information is detected, sending a message to the server indicating whether the client is used to control whether the push information is displayed Displaying status information that the switch has been turned on, and sending status information indicating that the notification display switch has been turned off to the server when the callback information is not detected, by creating a message box and monitoring the view in the message box, so that the server can enable the server to Effectively determines the status of the notification display switch.
  • FIG. 7 is a flowchart of another method for monitoring push information provided by an embodiment of the present application. The specific flow shown in FIG. 7 will be described in detail below.
  • Step S701 detecting whether the client receives the push information sent by the server. If yes, step S402 is performed, and if not, the flow is ended.
  • the server when the server has notified that it needs to be sent to the client, the corresponding push information is generated according to the content of the notification and then sent, and the client receives the push information sent by the server.
  • the monitoring of the push information is performed on the basis that the push information is sent to the client.
  • Step S702 creating a message box including a view, and monitoring the view, the message box is associated with a display state of the view and a display state of the push information.
  • the operating system of the client is an Android system
  • the message box is a Toast message box in the Android system.
  • Step S703 if the notification display switch is in the on state, the push information is displayed in the information notification column of the client, and the message box is controlled to perform an operation of displaying the view.
  • the view is a view that is transparent and has an area size equal to zero. The user is not affected by the display of the message box and does not know that the status of the notification display switch is being detected.
  • Step S704 listening to the view being displayed by the message box, generating callback information.
  • Whether the callback information is generated or not reflects indirectly whether the push information is displayed.
  • the status of the notification display switch can be indirectly obtained.
  • whether the view is displayed by the message box is monitored by adding to the view an additional status event that can be listened to for callback.
  • step S705 it is detected whether there is callback information, if yes, step S706 is performed, and if no, step 707 is performed. If the notification display switch is on, the callback information can be detected, and if the notification display switch is off, the callback information cannot be detected.
  • Step S706 sending status information indicating that the notification display switch has been turned on to the server.
  • Step S707 sending status information indicating that the notification display switch has been turned off to the server.
  • the detection of the callback information is performed from the time of receiving the push information transmitted by the server. Whether or not callback information is generated is detected within a preset period of time after receiving the push information sent by the server.
  • the push information monitoring method provided by the present application is further described in detail below through a specific example.
  • the client 200 downloads an application (such as a browser) from the server 100 and installs it.
  • the push information monitoring device 10 may be a part of a function module downloaded and installed in a browser of the smartphone.
  • the server 100 sends the corresponding push information to each client 200.
  • some notification display switches may have been turned off, and some notification display switches are turned on.
  • the client 200 establishes a Toast message box corresponding to the operating system information notification display bar.
  • the Toast includes a transparent View view with an area size of 0, and adds an Attach State event listener for the View view. Callback.
  • the push information is displayed in the information notification display bar, triggering Toast to display the View view.
  • the corresponding client 200 further generates corresponding callback information, and then the client 200 feeds back to the server 100 the status information indicating that the display switch is turned on. If the client 200 notifies that the display switch is turned off and the push information is not displayed in the information notification display column, the above operation is not triggered. If the client 200 is collecting If there is no callback information detected within 5 seconds after the push information is transmitted, the server 100 is fed back with the status information indicating that the display switch is off. Through the above process, the server 100 can know the display status of the push information by the client 200 connected thereto according to the status information fed back by the client 200.
  • the push information monitoring device, the push information monitoring method, and the client 200 of the present application combine the state of the notification display switch with the message including the view if the client 200 is not directly notified whether the display switch is turned on.
  • the display state of the frame reaches the indirect acquisition of the state of the notification display switch by detecting the state of the message box.
  • the server 100 can effectively know the display rate of the push information, facilitate opening guidance for the user who closes the push notification, and effectively improve the user's activity level.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in each embodiment of the present application may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
  • the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided in embodiments of the present application are a method and device for push information monitoring for detecting whether push information is displayed in an information pushing process. The embodiments of the present application, in a case when it is not possible to learn directly whether a notification display switch is enable on a client, by combining a state of the notification display switch and a display state comprising a message box having a viewable image, achieve indirect acquisition of the state of the notification display switch by detecting a state of the message box. A server is allowed to effectively learn the rate at which the push information is displayed, the provision of guidance to a user having disabled push notifications to enable same is facilitated, and the level of activeness of the user is effectively increased.

Description

推送信息监控装置、推送信息监控方法及客户端Push information monitoring device, push information monitoring method and client 技术领域Technical field
本申请涉及信息推送技术领域,具体而言,涉及一种推送信息监控装置、推送信息监控方法及客户端。The present application relates to the field of information push technology, and in particular, to a push information monitoring device, a push information monitoring method, and a client.
背景技术Background technique
智能手机、移动上网设备(Mobile Internet Device,MID)以及个人数字助理(Personal Digital Assistant,PDA)、平板电脑等电子设备已成为人们日常工作和生活中不可或缺的通讯和娱乐工具。许多的电子设备都支持用户自定义安装各种应用程序(Application,App),以满足不同的用户需求。电子设备在安装对应的应用程序之后,所述应用程序的后台在有新的信息或新闻产生时,可定时为用户提供信息的推送功能。然而,在后台向电子设备推送通知信息时,存在通知信息不展示或者丢失的情况,导致其发生的主要原因是用户关闭了应用程序的通知显示开关。然而,用户是否关闭了应用程序的通知显示开关,服务器后台并不知晓,从而无法采取相应措施去引导用户去开启通知显示开关,使得推送消息的渗透率和展示率较低。因此,如何在推送通知信息时获知应用程序的通知显示开关的状态,是目前亟待解决的问题。Electronic devices such as smart phones, mobile Internet devices (MIDs), personal digital assistants (PDAs), and tablets have become indispensable communication and entertainment tools in people's daily work and life. Many electronic devices support user-defined installation of various applications (Application, App) to meet different user needs. After the electronic device installs the corresponding application, the background of the application can periodically provide the user with the push function of the information when new information or news is generated. However, when the notification information is pushed to the electronic device in the background, there is a case where the notification information is not displayed or lost, and the main reason for the occurrence of the notification is that the user turns off the notification display switch of the application. However, whether the user closes the notification display switch of the application, the server background is not known, and thus the corresponding measures cannot be taken to guide the user to turn on the notification display switch, so that the penetration rate and the display rate of the push message are low. Therefore, how to know the status of the notification display switch of the application when pushing the notification information is an urgent problem to be solved.
发明内容Summary of the invention
有鉴于此,本申请实施例的目的在于提供一种送信息监控装置、推送信息监控方法及客户端。 In view of this, the purpose of the embodiments of the present application is to provide a sending information monitoring apparatus, a push information monitoring method, and a client.
本申请实施例提供的一种推送信息监控装置,应用于与一服务器通信连接的客户端,所述推送信息监控装置包括:消息框创建模块,用于在接收到所述服务器发送的推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联;回调信息生成模块,用于对所述视图进行监听;以及在监听到所述视图被所述消息框显示时,生成回调信息;状态信息发送模块,用于在检测到回调信息时,向所述服务器发送表示客户端用于控制推送信息是否显示通知显示开关已经打开的状态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。The push information monitoring device provided by the embodiment of the present application is applied to a client that is in communication with a server, and the push information monitoring device includes: a message box creating module, after receiving the push information sent by the server Creating a message box including a view, the message box being associated with a display state of the view and a display state of the push information; a callback information generating module for monitoring the view; and listening to the When the view is displayed by the message box, the callback information is generated. The status information sending module is configured to send, to the server, status information indicating whether the client uses the push information to display the notification display switch when the callback information is detected. And when the callback information is not detected, sending status information indicating that the notification display switch has been turned off to the server.
本申请实施例提供的一种推送信息监控方法,应用于与一服务器通信连接的客户端,所述推送信息监控方法包括:在接收到所述服务器发送的推送信息后,创建包括视图的消息框,并对所述视图进行监听,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联;如果检测到回调信息,向所述服务器发送表示显示通知显示开关已经打开的状态信息,其中,所述回调信息是监听到所述视图被所述消息框显示时生成的,所述通知显示开关用于控制客户端中推送信息的显示;如果未检测到回调信息,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。The method for monitoring the push information provided by the embodiment of the present application is applied to a client that is in communication with a server, and the method for monitoring the push information includes: after receiving the push information sent by the server, creating a message frame including a view And monitoring the view, the message box is associated with the display state of the view and the display state of the push information; if the callback information is detected, sending a message indicating that the display notification switch has been turned on to the server Status information, wherein the callback information is generated when the view is displayed by the message box, and the notification display switch is used to control display of push information in the client; if no callback information is detected, The server sends status information indicating that the notification display switch has been turned off.
本申请实施例提供的一种客户端,所述客户端包括:存储器;处理器;以及推送信息监控装置,所述推送信息监控装置包括一个或多个存储于所述存储器并由所述处理器执行的模块,所述信息推送装置包括:消息框创建模块,用于在接收到所述服务器发送的推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联;回调信息生成模块,用于对所述视图进行监听;以及在监听到所述视图被所述消息框显示时,生成回调信息;状态信息发送模块,用于在检测到回调信息时,向所述服务器发送表示客户端用于控制推送信息是否显示通知显示开关已经打开的状 态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。A client provided by the embodiment of the present application, the client includes: a memory; a processor; and a push information monitoring device, where the push information monitoring device includes one or more stored in the memory and is processed by the processor The executed module, the information pushing device includes: a message box creating module, configured to: after receiving the push information sent by the server, create a message box including a view, where the message box displays the view state and the view The display status of the push information is associated; the callback information generating module is configured to monitor the view; and generate callback information when the view is displayed by the message box; the status information sending module is configured to When the callback information is detected, sending to the server indicates that the client is used to control whether the push information indicates that the notification display switch has been turned on. Status information, and when no callback information is detected, status information indicating that the notification display switch has been turned off is sent to the server.
本申请实施例提供的一种在其上记录有用于执行本申请实施例所述方法的程序的计算机可读存储介质。A computer readable storage medium on which a program for executing the method of the embodiment of the present application is recorded is provided by an embodiment of the present application.
与现有技术相比,本申请的推送信息监控装置、推送信息监控方法及客户端,在无法直接获取客户端通知显示开关是否打开的情况下,结合通知显示开关的状态与包括有视图的消息框的显示状态,通过检测消息框的状态达到对通知显示开关的状态的间接获取。使得服务器能够有效获知推送信息的显示率,方便对关闭推送通知的用户做出开启引导,有效的提高用户的活跃程度。Compared with the prior art, the push information monitoring device, the push information monitoring method, and the client of the present application combine the state of the notification display switch with the message including the view when the client notification display switch is not directly accessible. The display state of the frame reaches the indirect acquisition of the state of the notification display switch by detecting the state of the message box. The server can effectively know the display rate of the push information, and facilitates opening and guiding the user who closes the push notification, thereby effectively improving the activity level of the user.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features, and advantages of the present invention will become more apparent from the following description.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present application, and therefore It should be seen as a limitation on the scope, and those skilled in the art can obtain other related drawings according to these drawings without any creative work.
图1为本申请实施例提供的客户端与服务器进行交互的示意图;FIG. 1 is a schematic diagram of interaction between a client and a server according to an embodiment of the present application;
图2为本申请实施例的一种客户端的结构示意图;2 is a schematic structural diagram of a client according to an embodiment of the present application;
图3为本申请实施例的另一种客户端的结构示意图;FIG. 3 is a schematic structural diagram of another client according to an embodiment of the present application;
图4为本申请实施例提供的一种推送信息监控的功能模块框图;4 is a block diagram of a function module for pushing information monitoring according to an embodiment of the present application;
图5为本申请实施例提供的另一种推送信息监控的功能模块框图;FIG. 5 is a block diagram of another function module for pushing information monitoring according to an embodiment of the present application;
图6为本申请实施例提供的一种推送信息监控方法的流程图; FIG. 6 is a flowchart of a method for monitoring push information according to an embodiment of the present application;
图7为本申请实施例提供的另一种推送信息监控方法的流程图。FIG. 7 is a flowchart of another method for monitoring push information according to an embodiment of the present application.
主要元件符号说明Main component symbol description
服务器 server 100100
客户端 Client 200200
推送信息监控装置Push information monitoring device 1010
存储器 Memory 2020
处理器 processor 3030
推送信息检测模块Push information detection module 101101
消息框创建模块Message box creation module 102102
消息框状态控制模块Message box status control module 103103
回调信息生成模块Callback information generation module 104104
状态信息发送模块Status information sending module 105105
具体实施方式detailed description
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表 示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the invention, which are set forth in the claims Selected embodiments of the present application are shown. All other embodiments obtained by a person skilled in the art based on the embodiments of the present application without creative efforts are within the scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings. Also, in the description of the present application, the terms "first", "second", and the like are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
如图1所示,是本申请实施例提供的客户端200与服务器100进行交互的示意图。所述服务器100通过网络与一个或多个客户端200进行通信连接,以进行数据通信或交互。所述服务器100可以提供至少一个适用于各种操作系统的应用程序(Application,APP)的安装包供所述客户端200下载。所述客户端200通过所述网络访问所述服务器100后,可通过所述网络从服务器100下载适用于该客户端200的操作系统的应用程序的安装包,以将所述应用程序安装到所述客户端200中。本实施例中,所述客户端200在安装所述应用程序之后,所述客户端200可定时收到所述服务器100推送的有关所述应用程序的推送信息。本较佳实施例中,所述客户端200安装有从所述服务器100下载的适用于所述客户端200的操作系统的应用程序,所述操作系统为安卓系统。所述应用程序优选为浏览器,如UC浏览器。As shown in FIG. 1 , it is a schematic diagram of the client 200 provided by the embodiment of the present application interacting with the server 100 . The server 100 is in communication with one or more clients 200 over a network for data communication or interaction. The server 100 can provide at least one installation package of an application (Application, APP) suitable for various operating systems for the client 200 to download. After the client 200 accesses the server 100 through the network, an installation package of an application suitable for the operating system of the client 200 can be downloaded from the server 100 through the network to install the application to the server. In the client 200. In this embodiment, after the client 200 installs the application, the client 200 may periodically receive the push information about the application that is pushed by the server 100. In the preferred embodiment, the client 200 is installed with an application program downloaded from the server 100 for the operating system of the client 200, and the operating system is an Android system. The application is preferably a browser, such as a UC browser.
所述服务器100可以是,但不限于,网络(Web)服务器100、ftp(file transfer protocol,文件传输协议)服务器100、数据库服务器100等。所述客户端200可以是,但不限于,台式机、便携式计算机、平板电脑、智能手机、个人数据助理(PDA)、智能穿戴设备,或者其他类型的计算机装置。所述客户端200的操作系统可以是,但不限于,安卓(Android)系统、IOS系统、Windows Phone系统等。优选地,本实施例中,所述客户端200的操作系统为安卓系统。 The server 100 may be, but not limited to, a network (web) server 100, a ftp (file transfer protocol) server 100, a database server 100, and the like. The client 200 can be, but is not limited to, a desktop, a portable computer, a tablet, a smart phone, a personal data assistant (PDA), a smart wearable device, or other type of computer device. The operating system of the client 200 may be, but not limited to, an Android system, an IOS system, a Windows Phone system, and the like. Preferably, in this embodiment, the operating system of the client 200 is an Android system.
如图2所示,是本申请实施例的一种客户端的结构示意图。该客户端可以包括处理模块210,存储子系统220,输入装置230、显示器240、网络接口250,以及总线260。As shown in FIG. 2, it is a schematic structural diagram of a client in the embodiment of the present application. The client can include a processing module 210, a storage subsystem 220, an input device 230, a display 240, a network interface 250, and a bus 260.
处理模块210可以是一个多核的处理器,也可以包含多个处理器。在一些实施例中,处理模块210可以包含一个通用的主处理器以及一个或多个特殊的协处理器,例如图形处理器(GPU)、数字信号处理器(DSP)等等。在一些实施例中,处理器100可以使用定制的电路实现,例如特定用途集成电路(application specific integrated circuit,ASIC)或者现场可编程逻辑门阵列(field programmable gate arrays,FPGA)。在一些实施方式中,处理模块210可以是类似的电路执行存储在自身上的可执行指令。在另外一些实施方式中,处理模块210可以执行存储在存储子系统210上的可执行指令。The processing module 210 can be a multi-core processor or multiple processors. In some embodiments, processing module 210 can include a general purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like. In some embodiments, processor 100 can be implemented using custom circuitry, such as an application specific integrated circuit (ASIC) or field programmable gate arrays (FPGA). In some implementations, the processing module 210 can be a similar circuit that executes executable instructions stored on itself. In still other implementations, the processing module 210 can execute executable instructions stored on the storage subsystem 210.
存储子系统220可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM),和永久存储装置。其中,ROM可以存储处理模块210或者客户端的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使客户端断电后也不会失去存储的指令和数据的非易失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储子系统220可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储子系统220可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、min SD卡、Micro-SD卡等等)、磁性软 盘等等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。在一些实施方式中,存储子系统220能够存储一个或多个能被处理模块210执行的软件程序或需要调用的资源文件,资源文件可以包含一些第三方库,包括但不限于音频库、视频库、2D图形库、3D图形库。 Storage subsystem 220 can include various types of storage units, such as system memory, read only memory (ROM), and persistent storage. The ROM may store static data or instructions required by the processing module 210 or other modules of the client. The persistent storage device can be a readable and writable storage device. The persistent storage device may be a non-volatile storage device that does not lose stored instructions and data even after the client is powered off. In some embodiments, the persistent storage device employs a mass storage device (eg, magnetic or optical disk, flash memory) as the permanent storage device. In other embodiments, the persistent storage device can be a removable storage device (eg, a floppy disk, an optical drive). The system memory can be a readable and writable storage device or a volatile read/write storage device, such as dynamic random access memory. System memory can store instructions and data that some or all of the processors need at runtime. Moreover, storage subsystem 220 can include any combination of computer readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic disks and/or optical disks can also be employed. In some embodiments, storage subsystem 220 can include removable storage devices that are readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, a DVD-ROM, a dual layer DVD-ROM) ), read-only Blu-ray Disc, Ultra Density Disc, Flash Card (such as SD card, min SD card, Micro-SD card, etc.), magnetic soft Disk and so on. The computer readable storage medium does not include a carrier wave and an instantaneous electronic signal transmitted by wireless or wire. In some embodiments, the storage subsystem 220 can store one or more software programs that can be executed by the processing module 210 or resource files that need to be invoked. The resource files can include some third-party libraries, including but not limited to audio libraries, video libraries. , 2D graphics library, 3D graphics library.
用户界面可以由一个或多个用户输入装置230、显示器240,和/或一个或多个其他用户输出设备提供。输入装置230可以包括用户向客户端输入信号的装置,客户端可以解释这些信号包含有特定的用户请求或信息。在一些实施方式中,可以通过键盘向用户界面输入网址,显示输入网址对应的网页内容。在一些实施方式中,输入装置230可以包含一些或所有的键盘按钮、触摸屏、鼠标或其他定点设备、滚轮、点击轮、转盘、按键、开关、小型键盘、麦克风等等。The user interface can be provided by one or more user input devices 230, display 240, and/or one or more other user output devices. Input device 230 can include means for a user to input a signal to a client, and the client can interpret the signals containing particular user requests or information. In some embodiments, a web address may be input to the user interface through a keyboard to display webpage content corresponding to the input webpage. In some embodiments, input device 230 can include some or all of a keyboard button, touch screen, mouse or other pointing device, scroll wheel, click wheel, dial, button, switch, keypad, microphone, and the like.
显示器240可以显示由客户端生成的图像,可以包括各种类型的图像设备,例如阴极射线管(CRT)、液晶显示器(LCD)、发光二极管(LED)(包括有机发光二极管(OLED))、投射系统等等与其他支持电子装置(例如DAC、ADC、信号处理器等等)的集合。在一些实施方式中,也可能额外提供其他用户输出设备,或者取代显示器240,例如信号灯、扬声器、触觉传感器、打印机等。The display 240 can display images generated by the client, and can include various types of image devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), a light emitting diode (LED) (including an organic light emitting diode (OLED)), and a projection. A collection of systems and the like with other supporting electronic devices (eg, DACs, ADCs, signal processors, etc.). In some embodiments, it is also possible to additionally provide other user output devices, or to replace display 240, such as a signal light, a speaker, a tactile sensor, a printer, and the like.
在一些实施方式中,用户界面可以通过图形用户界面提供。在显示器240中的某些区域定义一些可视的图形元素作为用户通过输入装置230选择的交互对象或者控制对象。例如,用户可以操作用户输入装置230移动屏幕上的指定位置输入网址,控制在显示器240上显示该网址对应的网页内容。在一些实施方式中,可以识别用户手势的触摸设备作为输入设备,这些手势可以但不必须与显示器300上的阵列相联系。In some embodiments, the user interface can be provided through a graphical user interface. Certain areas of the display 240 define some visual graphical elements as interactive objects or control objects that the user selects through the input device 230. For example, the user can operate the user input device 230 to move the specified location input URL on the screen, and control the display of the webpage content corresponding to the webpage on the display 240. In some embodiments, a touch device that can recognize a user gesture can be used as an input device that can, but need not, be associated with an array on display 300.
网络接口250为客户端提供声音和/或数据通讯功能。在一些实施方式中,网络接口250可以包括射频收发器来传递声音和/或数据(例如使用蜂窝式电话技术,例如3G、4G或EDGE、WIFI的数据网络技术)、GPS接受模块和/或其他模块。在一些 实施方式中,网络接口250可以提供额外的无线网络连接或替代无线接口。网络接口250可以是硬件(例如天线、调制解调器、编解码器以及其他模拟和/或数字信号处理电路)和软件模块的结合。 Network interface 250 provides voice and/or data communication functionality to the client. In some embodiments, network interface 250 can include a radio frequency transceiver to communicate sound and/or data (eg, using cellular telephone technology, such as 3G, 4G or EDGE, WIFI data network technology), GPS accepting modules, and/or other Module. In some In an embodiment, network interface 250 may provide an additional wireless network connection or an alternative wireless interface. Network interface 250 may be a combination of hardware (eg, antennas, modems, codecs, and other analog and/or digital signal processing circuits) and software modules.
总线260可以包括各种连接客户端内部各部件的系统、外部设备和芯片总线。例如总线260将处理装置100和存储子系统220连接,还可以连接输入装置230和显示器240。总线260也可以使得客户端通过网络接口250与网络连接。在这种情况下,客户端可以作为多个联网计算机设备的一部分。客户端的任意或所有部件都可以在本申请的实施方式中协调使用。Bus 260 can include various systems, external devices, and chip buses that connect various components within the client. For example, bus 260 connects processing device 100 to storage subsystem 220, and may also connect input device 230 and display 240. Bus 260 may also cause the client to connect to the network via network interface 250. In this case, the client can be part of multiple networked computer devices. Any or all of the components of the client may be coordinated for use in embodiments of the present application.
一些实施方式中包含电子元件,例如微处理器、在计算机可读存储媒介中存储有计算机指令和数据的存储器。在具体实施方式部分描述的许多特征都可以通过执行存储在计算机可读存储媒介上的计算机指令的方法步骤实现。当这些计算机指令被执行,计算机处理单元完成指令的各种功能。程序指令或计算机编码的实施方式可以是机器码,例如使用计算机、电子元件或待解析器的微处理器编译其他高级语言得到的代码。Some embodiments include electronic components, such as a microprocessor, a memory that stores computer instructions and data in a computer readable storage medium. Many of the features described in the Detailed Description section can be implemented by the method steps of executing computer instructions stored on a computer readable storage medium. When these computer instructions are executed, the computer processing unit performs various functions of the instructions. The embodiment of the program instructions or computer code may be machine code, such as code compiled using a computer, electronic component or microprocessor of the object to be parsed to compile other high-level languages.
需要理解的是,客户端是示意性的。客户端可以具有其他没有具体描述的功能(例如移动通话、GPS、电源管理,一个或多个摄像头、各种用于连接外部设备的连接端口或附件等等)。进一步,此处对客户端100涉及的特定功能模块进行了描述,这些功能模块的描述是为了便于描述,而且也不意味着对功能部件特定的物理配置。而且,这些功能模块不需要与物理模块一一对应。模块可以被配置成用来完成各种操作,例如通过编程或设置合适的控制电路,模块也可能会根据初始设置重新被配置。本申请的实施例可以在各种设备包括电子设备中,通过使用硬件和软件的结合来实现。It should be understood that the client is schematic. The client may have other functions not specifically described (eg, mobile call, GPS, power management, one or more cameras, various connection ports or accessories for connecting external devices, etc.). Further, the specific functional modules involved in the client 100 are described herein, and the description of these functional modules is for convenience of description, and does not mean a specific physical configuration of the functional components. Moreover, these functional modules do not need to be in one-to-one correspondence with physical modules. The module can be configured to perform various operations, such as by programming or setting up appropriate control circuitry, and the module may be reconfigured according to initial settings. Embodiments of the present application can be implemented in various devices, including electronic devices, by using a combination of hardware and software.
本实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在计算设备时,可以使得该计算设备执行本申请实施例所述方法各步骤的指令(instructions)。 The embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to the computing device, the computing device can be The instructions of each step of the method described in the embodiment of the present application are executed.
如图3所示,是本申请实施例的一种客户端示例的结构示意图。所述客户端200包括推送信息监控装置10、存储器20以及处理器30。FIG. 3 is a schematic structural diagram of an example of a client in the embodiment of the present application. The client 200 includes a push information monitoring device 10, a memory 20, and a processor 30.
所述存储器20以及处理器30相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,相互之间可通过一条或多条通讯总线或信号线实现电性连接。The memory 20 and the processor 30 are electrically connected directly or indirectly to each other to implement data transmission or interaction. For example, electrical connections can be made to one another via one or more communication buses or signal lines.
其中,上述存储子系统220的一种示例为存储器20可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。其中,存储器20用于存储程序,所述处理器30在接收到执行指令后,执行所述程序。An example of the foregoing storage subsystem 220 is that the memory 20 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read only memory ( Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like. The memory 20 is used to store a program, and the processor 30 executes the program after receiving an execution instruction.
上述处理模块210的一种示例为所述处理器30,其可能是一种集成电路芯片,具有信号的处理能力。上述的处理器30可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器30也可以是任何常规的处理器等。An example of such a processing module 210 is the processor 30, which may be an integrated circuit chip with signal processing capabilities. The processor 30 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP processor, etc.), or a digital signal processor (DSP), an application specific integrated circuit. (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor 30 may be any conventional processor or the like.
所述推送信息监控装置10包括至少一个或多个可以软件或固件(firmware)的形式存储于所述存储器20中或固化在所述客户端200的操作系统(operating system,OS)中的软件功能模块。所述处理器30用于执行存储器20中存储的可执行模块,例如所述推送信息监控装置10包括的软件功能模块或计算机程序。在本实施例中,所述客户端200安装有从所述服务器100下载的适用于所述客户端200的操作系统的应用程序,所述操作系统为安卓系统。所述推送信息监控装置10可以是安装 于客户端200的一个单独的应用程序,或者是从服务器100下载安装的应用程序的一个部分(如一个功能模块)。The push information monitoring device 10 includes at least one or more software functions that can be stored in the memory 20 or in an operating system (OS) of the client 200 in the form of software or firmware. Module. The processor 30 is configured to execute an executable module stored in the memory 20, such as a software function module or a computer program included in the push information monitoring device 10. In this embodiment, the client 200 is installed with an application program downloaded from the server 100 and adapted to the operating system of the client 200, and the operating system is an Android system. The push information monitoring device 10 can be installed A separate application to the client 200, or a portion of the installed application (such as a functional module) is downloaded from the server 100.
请参阅图4,是本申请实施例提供的客户端的推送信息监控装置的功能模块框图。所述推送信息监控装置包括消息框创建模块102、回调信息生成模块104以及状态信息发送模块105。Please refer to FIG. 4 , which is a functional block diagram of a push information monitoring apparatus of a client provided by an embodiment of the present application. The push information monitoring device includes a message box creating module 102, a callback information generating module 104, and a status information sending module 105.
消息框创建模块102,用于在接收到所述服务器发送的推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联。The message box creating module 102 is configured to: after receiving the push information sent by the server, create a message box including a view, where the message box associates the display state of the view with the display state of the push information.
回调信息生成模块104,用于对所述视图进行监听;以及在监听到所述视图被所述消息框显示时,生成回调信息。The callback information generating module 104 is configured to monitor the view; and generate callback information when the view is displayed by the message box.
状态信息发送模块105,用于在检测到回调信息时,向所述服务器发送表示通知显示开关已经打开的状态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息,所述通知显示开关用于控制客户端中推送信息的显示。The status information sending module 105 is configured to send status information indicating that the notification display switch has been opened to the server when the callback information is detected, and send the notification display switch to the server when the callback information is not detected. Status information that has been turned off, the notification display switch is used to control the display of push information in the client.
本申请实施例中,通知显示开关用于控制是否显示通知信息,即通知显示开关可以用于控制客户端中推送信息是否显示。为了能够获知通知显示开关的开启/关闭状态,当客户端200接收到服务器100发送的推送信息后,建立一个与推送信息对应的消息框,并在该消息框上创建视图以供显示。所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联,因此消息框建立之后,其视图的显示状态根据推送信息的显示状态进行控制,从而能够通过消息框的显示状态间接地反应推送信息的显示状态。例如在安卓系统中,实现消息框对所述视图的显示状态与所述推送信息的显示状态相关联的方法可以是,设置一个对推送信息的显示状态进行监听的监听器,然后将监听的结果与消息框的动作进行结合。In the embodiment of the present application, the notification display switch is used to control whether to display the notification information, that is, the notification display switch can be used to control whether the push information in the client is displayed. In order to be able to know the on/off state of the notification display switch, when the client 200 receives the push information sent by the server 100, a message box corresponding to the push information is created, and a view is created on the message box for display. The display state of the message box is related to the display state of the push information. Therefore, after the message frame is established, the display state of the view is controlled according to the display state of the push information, so that the display state of the message frame can be The display state of the inter-ground reaction push information. For example, in the Android system, the method for implementing the message box to associate the display state of the view with the display state of the push information may be: setting a listener that listens to the display state of the push information, and then monitoring the result. Combined with the action of the message box.
在消息框对所述视图的显示状态与所述推送信息的显示状态相关联的基础上,客户端200在收到服务器100发送的推送信息后,如果通知显示开关处于打开状态,推送信息在所述客户端200的信息通知栏中显示,进而触发所述消息框执行显示 所述视图的操作。如果所述通知显示开关处于关闭状态,所述消息框不执行任何操作,使所述视图不进行显示。因此,本实施例中还对消息框的视图进行监听来确定视图是否显示,通过监听消息框的视图是否显示,即可间接获知所述通知显示开关的状态。On the basis that the message box associates the display state of the view with the display state of the push information, after receiving the push information sent by the server 100, the client 200, if the notification display switch is turned on, pushes the information at the location. Displayed in the information notification column of the client 200, thereby triggering the message box to perform display The operation of the view. If the notification display switch is in the off state, the message box does not perform any operation, so that the view is not displayed. Therefore, in this embodiment, the view of the message box is also monitored to determine whether the view is displayed. By monitoring whether the view of the message box is displayed, the status of the notification display switch can be indirectly known.
当通知显示开关开启时,通知栏中会显示推送信息,且消息框会显示所述视图,通过监听生成一个对应的回调信息;而在通知显示开关关闭时,通知栏中会不显示推送信息,且消息框会也不显示所述视图,则不会监听到视图被显示也不会生成回调信息。从而在收到所述服务器100发送的推送信息后,检测是否生成了所述回调信息,即可得知推送信息是否被显示,进而确定通知显示开关的状态。When the notification display switch is turned on, the push information is displayed in the notification bar, and the message box displays the view, and generates a corresponding callback information by monitoring; when the notification display switch is turned off, the push information is not displayed in the notification column. And the message box will not display the view, it will not monitor the view is displayed and will not generate callback information. Therefore, after receiving the push information sent by the server 100, detecting whether the callback information is generated, whether the push information is displayed or not, and determining the status of the notification display switch.
本实施例中,对回调信息的检测可以从收到所述服务器100发送的推送信息的时刻开始执行。根据上述的对应关系,如果检测到回调信息,表征消息框的显示状态为显示视图,进而可以得知推送信息已经显示,由此可以确定通知显示开关已经打开。相反,如果没有检测到回调信息,可以确定通知显示开关已经关闭。在得到通知显示开关的状态后,将对应的状态信息发送到服务器100,使得服务器100可以获知客户端200的通知显示开关是否被关闭。In this embodiment, the detection of the callback information may be performed from the moment when the push information sent by the server 100 is received. According to the above correspondence, if the callback information is detected, the display state of the message frame is the display view, and it can be known that the push information has been displayed, thereby determining that the notification display switch has been turned on. Conversely, if no callback information is detected, it can be determined that the notification display switch has been turned off. After the status of the notification display switch is obtained, the corresponding status information is transmitted to the server 100, so that the server 100 can know whether the notification display switch of the client 200 is turned off.
综上,在接收到推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联,从而能够通过消息框的显示状态间接地反应推送信息的显示状态,对视图进行监听,在监听到所述视图被所述消息框显示时,生成回调信息,从而在检测到回调信息时,向所述服务器发送表示客户端用于控制推送信息是否显示通知显示开关已经打开的状态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息,通过创建消息框并对消息框中视图的监听,使得服务器能够有效的确定通知显示开关的状态。 In summary, after receiving the push information, a message box including a view is created, and the message box associates the display state of the view with the display state of the push information, thereby being indirectly reflected by the display state of the message frame. Pushing the display state of the information, monitoring the view, and generating the callback information when the view is displayed by the message box, so that when the callback information is detected, the server is sent to indicate that the client is used to control the push information. Whether to display the status information that the notification display switch has been turned on, and when the callback information is not detected, send status information indicating that the notification display switch has been turned off to the server, by creating a message box and monitoring the view in the message box, Enables the server to effectively determine the status of the notification display switch.
参照图5所示,该推送信息监控装置10还包括推送信息检测模块101和消息框状态控制模块103。其中:Referring to FIG. 5, the push information monitoring apparatus 10 further includes a push information detecting module 101 and a message box state control module 103. among them:
推送信息检测模块101,用于检测所述客户端200是否收到所述服务器100发送的推送信息。The push information detecting module 101 is configured to detect whether the client 200 receives the push information sent by the server 100.
由服务器100发送的推送信息被客户端200接收后,一般不是直接向用户显示,而是由客户端200的操作系统提取出推送信息的内容,然后显示在对应的信息通知栏。当用于控制是否显示通知信息的显示开关被关闭时,即使客户端200收到由服务器100发送的推送信息,客户端200不会对所述推送信息进行显示。在本实施例中,所述客户端200的操作系统为安卓系统,在安卓系统中,通过Push Notification功能实现推送信息的显示,当用户关闭Push Notification的通知状态时,客户端200对于接收到的推送信息是不进行通知的。After the push information sent by the server 100 is received by the client 200, it is generally not directly displayed to the user, but the content of the push information is extracted by the operating system of the client 200, and then displayed in the corresponding information notification column. When the display switch for controlling whether or not to display the notification information is turned off, even if the client 200 receives the push information transmitted by the server 100, the client 200 does not display the push information. In this embodiment, the operating system of the client 200 is an Android system. In the Android system, the push information is displayed through the Push Notification function. When the user closes the notification status of the Push Notification, the client 200 receives the received information. Push information is not notified.
消息框创建模块102,用于在接收到所述服务器100发送的推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联。The message box creating module 102 is configured to: after receiving the push information sent by the server 100, create a message box including a view, where the message box associates the display state of the view with the display state of the push information.
本实施例中,当客户端200接收到服务器100发送的推送信息后,建立一个与推送信息对应的消息框,并在该消息框上创建视图以供显示。消息框建立之后,其视图的显示状态根据推送信息的显示状态进行控制。通过消息框的显示状态间接地反应推送信息的显示状态。具体地,在安卓系统中,实现消息框对所述视图的显示状态与所述推送信息的显示状态相关联的方法可以是,设置一个对推送信息的显示状态进行监听的监听器,然后将监听的结果与消息框的动作进行结合。In this embodiment, after receiving the push information sent by the server 100, the client 200 creates a message box corresponding to the push information, and creates a view on the message box for display. After the message frame is established, the display state of its view is controlled according to the display state of the push information. The display state of the push information is indirectly reflected by the display state of the message box. Specifically, in the Android system, the method for implementing the message box to associate the display state of the view with the display state of the push information may be: setting a listener that listens to the display state of the push information, and then monitoring The result is combined with the action of the message box.
在本实施例中,所述消息框的可以是安卓系统中的Toast消息框。Toast是一种简易的消息提示框,它不会获得焦点,无法被点击,而且会根据预先设置的时间长度在显示一段时间后自动消失,不会客户端200的正常操作产生影响。Toast是安卓系统提供的标准控件,适用于任何版本的安卓系统,使用起来更加方便,应用的范围也更广。 In this embodiment, the message box may be a Toast message box in the Android system. Toast is a simple message box that won't get the focus, can't be clicked, and will automatically disappear after a period of time according to the preset length of time, without affecting the normal operation of the client 200. Toast is a standard control provided by Android. It is suitable for any version of Android system. It is more convenient to use and has a wider range of applications.
为了进一步减小消息框的视图在显示时对用户的影响,所述视图的格式被设置为透明且区域大小为0。即使执行显示所述视图的操作,在客户端200的操作界面上,用户也不会看到该视图。如此,用户不会察觉到有额外的消息框,是的用户的体验也不会因此而受影响。To further reduce the impact of the view of the message box on the user when displayed, the format of the view is set to be transparent and the area size is zero. Even if the operation of displaying the view is performed, the user does not see the view on the operation interface of the client 200. In this way, the user will not be aware of the extra message box, and the user experience will not be affected as a result.
消息框状态控制模块103,用于当所述推送信息在所述客户端200的信息通知栏中显示时,控制所述消息框执行显示所述视图的操作。The message box state control module 103 is configured to control the message box to perform an operation of displaying the view when the push information is displayed in the information notification column of the client 200.
在消息框对所述视图的显示状态与所述推送信息的显示状态相关联的基础上,客户端200在收到服务器100发送的推送信息后,如果通知显示开关处于打开状态,推送信息在所述客户端200的信息通知栏中显示,进而触发所述消息框执行显示所述视图的操作。如果所述通知显示开关处于关闭状态,所述消息框不执行任何操作,使所述视图不进行显示。因此,通过检测消息框的视图是否显示,即可间接获知所述通知显示开关的状态。On the basis that the message box associates the display state of the view with the display state of the push information, after receiving the push information sent by the server 100, the client 200, if the notification display switch is turned on, pushes the information at the location. The information notification column of the client 200 is displayed, and the message box is triggered to perform an operation of displaying the view. If the notification display switch is in the off state, the message box does not perform any operation, so that the view is not displayed. Therefore, by detecting whether the view of the message box is displayed, the state of the notification display switch can be indirectly known.
回调信息生成模块104,用于对所述视图进行监听,当监听到所述视图被所述消息框显示时,生成回调信息。The callback information generating module 104 is configured to monitor the view, and generate callback information when the view is displayed by the message box.
在本实施例中,客户端200可通过监听回调的方式,检测消息框的视图是否显示。具体地,通过为所述视图添加可进行监听回调的附加状态事件的对所述视图是否被所述消息框显示进行监听。当所述视图显示时,该附加状态事件被触发,进而生成一个对应的回调信息。如果所述视图没有被显示,则不会触发任何事件。在此基础上,只需要检测在收到所述服务器100发送的推送信息后,检测是否生成了所述回调信息,即可得知推送信息是否被显示,进而确定通知显示开关的状态。In this embodiment, the client 200 can detect whether the view of the message box is displayed by monitoring the callback. Specifically, whether the view is displayed by the message box is monitored by adding an additional status event that can be monitored for callback to the view. When the view is displayed, the additional status event is triggered to generate a corresponding callback information. If the view is not displayed, no events will be fired. On the basis of this, it is only necessary to detect whether the callback information is generated after receiving the push information sent by the server 100, and whether the push information is displayed or not, and then determine the status of the notification display switch.
状态信息发送模块105,用于在所述回调信息生成模块104生成回调信息时,向所述服务器100发送表示客户端200用于控制推送信息是否显示通知显示开关已经打开的状态信息,以及在所述回调信息生成模块104未生成回调信息时,向所述服务器100发送表示所述通知显示开关已经关闭的状态信息。 The status information sending module 105 is configured to, when the callback information generating module 104 generates the callback information, send, to the server 100, state information indicating whether the client 200 is used to control whether the push information is displayed, that the notification display switch has been turned on, and When the callback information generating module 104 does not generate the callback information, it transmits to the server 100 status information indicating that the notification display switch has been turned off.
本实施例中,对回调信息的检测从收到所述服务器100发送的推送信息的时刻开始执行。根据上述的对应关系,如果有回调信息生成,说明消息框的显示状态为显示视图,进而可以得知推送信息已经显示,由此可以确定通知显示开关已经打开。相反,如果没有回调信息生成,可以确定通知显示开关已经关闭。在得到通知显示开关的状态后,将对应的状态信息发送到服务器100,使得服务器100可以获知客户端200的通知显示开关是否被关闭。In the present embodiment, the detection of the callback information is started from the time when the push information transmitted by the server 100 is received. According to the above correspondence, if there is callback information generated, the display state of the message box is a display view, and it can be known that the push information has been displayed, thereby determining that the notification display switch has been turned on. Conversely, if no callback information is generated, it can be determined that the notification display switch has been turned off. After the status of the notification display switch is obtained, the corresponding status information is transmitted to the server 100, so that the server 100 can know whether the notification display switch of the client 200 is turned off.
进一步地,对于通知显示开关已经关闭的情况,由于推送信息没有被显示,因此不会触发任何与之关联的操作。为了实现对该状态的准确检测,在接收到所述服务器100发送的推送信息后预设的时间段内检测是否有回调信息生成。正常状态下,如果通知显示开关打开,从收到推送信息,到检测到回调信息,需要的时间大约是1至2秒,如果在这段时间内,没有检测到回调信息,即可说明通知显示开关已经关闭。具体地,可以将预设的时间段的长度设置为略大于2秒的值(如5秒),在接收到所述服务器100发送的推送信息后,开始对回调信息进行检测,如果检测到回调信息,立刻向所述服务器100发送表示所述通知显示开关已经打开的状态信息。如果在该时间段内没有检测到回调信息,则向所述服务器100发送表示所述通知显示开关已经关闭的状态信息。具体地,在安卓系统中,通过Handler实现该操作。Further, in the case where the notification display switch has been turned off, since the push information is not displayed, no operation associated with it is triggered. In order to achieve accurate detection of the state, it is detected whether there is callback information generated within a preset period of time after receiving the push information sent by the server 100. Under normal conditions, if the notification display switch is turned on, the time required from receiving the push information to detecting the callback information is about 1 to 2 seconds. If the callback information is not detected during this time, the notification display can be indicated. The switch is off. Specifically, the length of the preset time period may be set to a value slightly longer than 2 seconds (for example, 5 seconds), and after receiving the push information sent by the server 100, the callback information is detected, if a callback is detected. The information immediately transmits status information indicating that the notification display switch has been turned on to the server 100. If no callback information is detected within the time period, status information indicating that the notification display switch has been turned off is transmitted to the server 100. Specifically, in the Android system, the operation is implemented by a Handler.
综上,本申请实施例可以使得服务器100得知客户端200的通知显示开关是否被关闭,从而使得服务器100在得知所述通知显示开关被关闭时根据需要采取相应的措施,引导用户打开所述通知显示开关,以加强推送信息的渗透率和展示率。In summary, the embodiment of the present application may enable the server 100 to know whether the notification display switch of the client 200 is turned off, so that the server 100 takes corresponding measures as needed to guide the user to open the notification when the notification display switch is turned off. The notification display switch is used to enhance the penetration and display rate of the push information.
请参阅图6,是本申请实施例提供的一种推送信息监控方法的流程图。下面将对图6所示的具体流程进行详细阐述。Please refer to FIG. 6 , which is a flowchart of a method for monitoring push information provided by an embodiment of the present application. The specific flow shown in FIG. 6 will be described in detail below.
步骤S601,在接收到所述服务器发送的推送信息后,创建包括视图的消息框,并对所述视图进行监听。 Step S601, after receiving the push information sent by the server, create a message box including a view, and listen to the view.
为了能够获知通知显示开关的开启/关闭状态,当客户端接收到服务器发送的推送信息后,建立一个与推送信息对应的消息框,并在该消息框上创建视图以供显示,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联。如果通知显示开关处于打开状态,推送信息在所述客户端的信息通知栏中显示,进而触发所述消息框执行显示所述视图的操作。如果所述通知显示开关处于关闭状态,所述消息框不执行任何操作,使所述视图不进行显示。因此,本实施例中还对消息框的视图进行监听来确定视图是否显示,通过监听消息框的视图是否显示,即可间接获知所述通知显示开关的状态。In order to be able to know the on/off state of the notification display switch, after the client receives the push information sent by the server, a message box corresponding to the push information is created, and a view is created on the message box for display, the message box A display state of the view is associated with a display state of the push information. If the notification display switch is in an open state, the push information is displayed in the information notification column of the client, thereby triggering the message box to perform an operation of displaying the view. If the notification display switch is in the off state, the message box does not perform any operation, so that the view is not displayed. Therefore, in this embodiment, the view of the message box is also monitored to determine whether the view is displayed. By monitoring whether the view of the message box is displayed, the status of the notification display switch can be indirectly known.
步骤S602,如果检测到回调信息,向所述服务器发送表示显示通知显示开关已经打开的状态信息,其中,所述回调信息是监听到所述视图被所述消息框显示时生成的。Step S602, if the callback information is detected, send status information indicating that the display notification display switch has been opened to the server, wherein the callback information is generated when the view is displayed by the message box.
步骤S603,如果未检测到回调信息,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。Step S603, if the callback information is not detected, send status information indicating that the notification display switch has been turned off to the server.
当通知显示开关开启时,通知栏中会显示推送信息,且消息框会显示所述视图,通过监听生成一个对应的回调信息;而在通知显示开关关闭时,通知栏中会不显示推送信息,且消息框会也不显示所述视图,则不会监听到视图被显示也不会生成回调信息。从而在收到所述服务器发送的推送信息后,检测是否生成了所述回调信息,即可得知推送信息是否被显示,进而确定通知显示开关的状态。When the notification display switch is turned on, the push information is displayed in the notification bar, and the message box displays the view, and generates a corresponding callback information by monitoring; when the notification display switch is turned off, the push information is not displayed in the notification column. And the message box will not display the view, it will not monitor the view is displayed and will not generate callback information. Therefore, after receiving the push information sent by the server, detecting whether the callback information is generated, whether the push information is displayed or not, and determining the status of the notification display switch is determined.
因此如果检测到回调信息,表征消息框的显示状态为显示视图,进而可以得知推送信息已经显示,由此可以确定通知显示开关已经打开。相反,如果没有检测到回调信息,可以确定通知显示开关已经关闭。在得到通知显示开关的状态后,将对应的状态信息发送到服务器,使得服务器可以获知客户端的通知显示开关是否被关闭。Therefore, if the callback information is detected, the display state of the representation message box is the display view, and it can be known that the push information has been displayed, thereby determining that the notification display switch has been turned on. Conversely, if no callback information is detected, it can be determined that the notification display switch has been turned off. After the status of the notification display switch is obtained, the corresponding status information is sent to the server, so that the server can know whether the notification display switch of the client is closed.
综上,在接收到推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联,从而能够通过消息框的显示状态间接地反应推送信息的 显示状态,对视图进行监听,在监听到所述视图被所述消息框显示时,生成回调信息,从而在检测到回调信息时,向所述服务器发送表示客户端用于控制推送信息是否显示通知显示开关已经打开的状态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息,通过创建消息框并对消息框中视图的监听,使得服务器能够有效的确定通知显示开关的状态。In summary, after receiving the push information, a message box including a view is created, and the message box associates the display state of the view with the display state of the push information, thereby being indirectly reflected by the display state of the message frame. Push information Displaying a state, monitoring the view, and generating callback information when the view is displayed by the message box, so that when the callback information is detected, sending a message to the server indicating whether the client is used to control whether the push information is displayed Displaying status information that the switch has been turned on, and sending status information indicating that the notification display switch has been turned off to the server when the callback information is not detected, by creating a message box and monitoring the view in the message box, so that the server can enable the server to Effectively determines the status of the notification display switch.
请参阅图7,是本申请实施例提供的另一种推送信息监控方法的流程图。下面将对图7所示的具体流程进行详细阐述。Please refer to FIG. 7 , which is a flowchart of another method for monitoring push information provided by an embodiment of the present application. The specific flow shown in FIG. 7 will be described in detail below.
步骤S701,检测所述客户端是否收到所述服务器发送的推送信息。如果是,执行步骤S402,如果否,结束该流程。Step S701, detecting whether the client receives the push information sent by the server. If yes, step S402 is performed, and if not, the flow is ended.
在本实施例中,服务器有通知需要发送到客户端时,根据通知的内容生成对应的推送信息然后发送,客户端接收由服务器发送的推送信息。对推送信息的监控,是在有推送信息发送到客户端基础上进行的。In this embodiment, when the server has notified that it needs to be sent to the client, the corresponding push information is generated according to the content of the notification and then sent, and the client receives the push information sent by the server. The monitoring of the push information is performed on the basis that the push information is sent to the client.
步骤S702,创建包括视图的消息框,并对所述视图进行监听,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联。Step S702, creating a message box including a view, and monitoring the view, the message box is associated with a display state of the view and a display state of the push information.
在本实施例中,所述客户端的操作系统为安卓系统,所述消息框为安卓系统中的Toast消息框。In this embodiment, the operating system of the client is an Android system, and the message box is a Toast message box in the Android system.
步骤S703,如果通知显示开关处于开启状态,则所述推送信息在所述客户端的信息通知栏中显示,并控制所述消息框执行显示所述视图的操作。Step S703, if the notification display switch is in the on state, the push information is displayed in the information notification column of the client, and the message box is controlled to perform an operation of displaying the view.
在本实施例中,所述视图为透明且区域大小等于0的视图。用户不会因消息框的显示而受到影响,同时也不会得知通知显示开关的状态正在被检测。In this embodiment, the view is a view that is transparent and has an area size equal to zero. The user is not affected by the display of the message box and does not know that the status of the notification display switch is being detected.
步骤S704,监听到所述视图被所述消息框显示,生成回调信息。Step S704, listening to the view being displayed by the message box, generating callback information.
回调信息是否生成,间接地反应了推送信息是否显示,通过检测回调信息,即可间接获取通知显示开关的状态。在本实 施例中,通过为所述视图添加可进行监听回调的附加状态事件的对所述视图是否被所述消息框显示进行监听。Whether the callback information is generated or not reflects indirectly whether the push information is displayed. By detecting the callback information, the status of the notification display switch can be indirectly obtained. In this reality In an embodiment, whether the view is displayed by the message box is monitored by adding to the view an additional status event that can be listened to for callback.
步骤S705,检测是否有回调信息,如果是,执行步骤S706,如果否,执行步骤707。如果通知显示开关处于开启状态,则可以检测到回调信息,如果通知显示开关处于关闭状态,则无法检测到回调信息。In step S705, it is detected whether there is callback information, if yes, step S706 is performed, and if no, step 707 is performed. If the notification display switch is on, the callback information can be detected, and if the notification display switch is off, the callback information cannot be detected.
步骤S706,向所述服务器发送表示通知显示开关已经打开的状态信息。Step S706, sending status information indicating that the notification display switch has been turned on to the server.
步骤S707,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。Step S707, sending status information indicating that the notification display switch has been turned off to the server.
在本实施例中,对回调信息的检测从收到所述服务器发送的推送信息的时刻开始执行。在接收到所述服务器发送的推送信息后预设的时间段内检测是否有回调信息生成。In the present embodiment, the detection of the callback information is performed from the time of receiving the push information transmitted by the server. Whether or not callback information is generated is detected within a preset period of time after receiving the push information sent by the server.
下面通过一个具体的例子对本申请提供的推送信息监控方法进行进一步详细的说明。The push information monitoring method provided by the present application is further described in detail below through a specific example.
例如,假设有多个客户端200与服务器100通信连接。客户端200从服务器100下载应用程序(如浏览器)并安装,推送信息监控装置10可以是下载并安装于智能手机的浏览器的一部分功能模块。当有新的通知需要推送时(如刚发生的热点新闻),服务器100发送对应的推送信息到各个客户端200。在各个客户端200中,有的通知显示开关可能已经关闭,而有的通知显示开关则处于打开状态。客户端200收到推送信息后,建立一个对应操作系统的信息通知显示栏的Toast消息框,该Toast包括有一个透明的、区域大小为0的View视图,并为该View视图添加Attach State事件监听回调。如果客户端200通知显示开关打开,推送信息在信息通知显示栏内进行显示,触发Toast显示View视图。在View视图被显示的操作被监听到时,相应的客户端200进一步生成对应的回调信息,然后客户端200向服务器100反馈通知显示开关被打开的状态信息。如果客户端200通知显示开关被关闭,推送信息没有在信息通知显示栏内进行显示,则不会触发上述操作。若客户端200在收 到推送信息后的5秒内没有检测的回调信息,则向服务器100反馈通知显示开关关闭的状态信息。通过上述过程,服务器100根据客户端200反馈的状态信息,可以得知与其连接的客户端200对推送信息的显示情况。For example, assume that there are multiple clients 200 in communication with the server 100. The client 200 downloads an application (such as a browser) from the server 100 and installs it. The push information monitoring device 10 may be a part of a function module downloaded and installed in a browser of the smartphone. When there is a new notification that needs to be pushed (such as the hot news that just happened), the server 100 sends the corresponding push information to each client 200. In each client 200, some notification display switches may have been turned off, and some notification display switches are turned on. After receiving the push information, the client 200 establishes a Toast message box corresponding to the operating system information notification display bar. The Toast includes a transparent View view with an area size of 0, and adds an Attach State event listener for the View view. Callback. If the client 200 notifies that the display switch is turned on, the push information is displayed in the information notification display bar, triggering Toast to display the View view. When the operation in which the View view is displayed is monitored, the corresponding client 200 further generates corresponding callback information, and then the client 200 feeds back to the server 100 the status information indicating that the display switch is turned on. If the client 200 notifies that the display switch is turned off and the push information is not displayed in the information notification display column, the above operation is not triggered. If the client 200 is collecting If there is no callback information detected within 5 seconds after the push information is transmitted, the server 100 is fed back with the status information indicating that the display switch is off. Through the above process, the server 100 can know the display status of the push information by the client 200 connected thereto according to the status information fed back by the client 200.
综上所述,本申请的推送信息监控装置、推送信息监控方法及客户端200,在无法直接获取客户端200通知显示开关是否打开的情况下,结合通知显示开关的状态与包括有视图的消息框的显示状态,通过检测消息框的状态达到对通知显示开关的状态的间接获取。使得服务器100能够有效获知推送信息的显示率,方便对关闭推送通知的用户做出开启引导,有效的提高用户的活跃程度。In summary, the push information monitoring device, the push information monitoring method, and the client 200 of the present application combine the state of the notification display switch with the message including the view if the client 200 is not directly notified whether the display switch is turned on. The display state of the frame reaches the indirect acquisition of the state of the notification display switch by detecting the state of the message box. The server 100 can effectively know the display rate of the push information, facilitate opening guidance for the user who closes the push notification, and effectively improve the user's activity level.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and functionality of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present application. operating. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。The functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. . It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above description is only the preferred embodiment of the present application, and is not intended to limit the present application, and various changes and modifications may be made to the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application are intended to be included within the scope of the present application. It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。 The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (16)

  1. 一种推送信息监控装置,应用于与一服务器通信连接的客户端,其特征在于,所述推送信息监控装置包括:A push information monitoring device is applied to a client that is in communication with a server, wherein the push information monitoring device comprises:
    消息框创建模块,用于在接收到所述服务器发送的推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联;a message box creating module, configured to: after receiving the push information sent by the server, create a message box including a view, where the message box associates a display state of the view with a display state of the push information;
    回调信息生成模块,用于对所述视图进行监听;以及在监听到所述视图被所述消息框显示时,生成回调信息;a callback information generating module, configured to monitor the view; and generate callback information when the view is displayed by the message box;
    状态信息发送模块,用于在检测到回调信息时,向所述服务器发送表示通知显示开关已经打开的状态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息,所述通知显示开关用于控制客户端中推送信息的显示。a status information sending module, configured to send status information indicating that the notification display switch has been opened to the server when the callback information is detected, and send, to the server, that the notification display switch has been sent when the callback information is not detected The closed status information, the notification display switch is used to control the display of the push information in the client.
  2. 根据权利要求1所述的推送信息监控装置,其特征在于,还包括:The push information monitoring device according to claim 1, further comprising:
    消息框状态控制模块,用于当所述推送信息在所述客户端的信息通知栏中显示时,控制所述消息框执行显示所述视图的操作。The message box state control module is configured to control the message box to perform an operation of displaying the view when the push information is displayed in an information notification column of the client.
  3. 根据权利要求1所述的推送信息监控装置,其特征在于,A push information monitoring apparatus according to claim 1, wherein:
    所述状态信息发送模块,用于在接收到所述服务器发送的推送信息后预设的时间段内检测是否有回调信息生成。The status information sending module is configured to detect whether callback information is generated within a preset time period after receiving the push information sent by the server.
  4. 根据权利要求1所述的推送信息监控装置,其特征在于,所述视图为透明且区域大小等于0的视图。The push information monitoring apparatus according to claim 1, wherein the view is a view that is transparent and has an area size equal to zero.
  5. 根据权利要求1所述的推送信息监控装置,其特征在于,A push information monitoring apparatus according to claim 1, wherein:
    所述回调信息生成模块,用于通过为所述视图添加可进行监听回调的附加状态事件,对所述视图是否被所述消息框显示进行监听。The callback information generating module is configured to monitor whether the view is displayed by the message box by adding an additional state event that can perform a listenback callback to the view.
  6. 根据权利要求1所述的推送信息监控装置,其特征在于,还包括: The push information monitoring device according to claim 1, further comprising:
    推送信息检测模块,用于检测所述客户端是否收到所述服务器发送的推送信息。The push information detecting module is configured to detect whether the client receives the push information sent by the server.
  7. 根据权利要求1所述的推送信息监控装置,其特征在于,所述客户端的操作系统为安卓系统,所述消息框为安卓系统中的Toast消息框。The push information monitoring device according to claim 1, wherein the operating system of the client is an Android system, and the message box is a Toast message box in the Android system.
  8. 一种推送信息监控方法,应用于与一服务器通信连接的客户端,其特征在于,所述推送信息监控方法包括:A push information monitoring method is applied to a client that is in communication with a server, and the push information monitoring method includes:
    在接收到所述服务器发送的推送信息后,创建包括视图的消息框,并对所述视图进行监听,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联;After receiving the push information sent by the server, creating a message box including a view, and monitoring the view, the message box is associated with a display state of the view and a display state of the push information;
    如果检测到回调信息,向所述服务器发送表示显示通知显示开关已经打开的状态信息,其中,所述回调信息是监听到所述视图被所述消息框显示时生成的,所述通知显示开关用于控制客户端中推送信息的显示;If the callback information is detected, send status information indicating that the display notification display switch has been opened to the server, wherein the callback information is generated when the view is displayed by the message box, and the notification display switch is used. Displaying the push information in the control client;
    如果未检测到回调信息,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。If no callback information is detected, status information indicating that the notification display switch has been turned off is sent to the server.
  9. 根据权利要求8所述的推送信息监控方法,其特征在于,检测到回调信息之前,还包括:The push information monitoring method according to claim 8, wherein before detecting the callback information, the method further comprises:
    当所述推送信息在所述客户端的信息通知栏中显示时,控制所述消息框执行显示所述视图的操作;Controlling the message box to perform an operation of displaying the view when the push information is displayed in an information notification column of the client;
    通过监听确定所述视图被所述消息框显示,生成回调信息。The listener determines that the view is displayed by the message box to generate callback information.
  10. 根据权利要求8所述的推送信息监控方法,其特征在于,还包括:The method for monitoring push information according to claim 8, further comprising:
    在接收到所述服务器发送的推送信息后预设的时间段内检测是否有回调信息生成。Whether or not callback information is generated is detected within a preset period of time after receiving the push information sent by the server.
  11. 根据权利要求8所述的推送信息监控方法,其特征在于,所述视图为透明且区域大小等于0的视图。The push information monitoring method according to claim 8, wherein the view is a view that is transparent and has an area size equal to zero.
  12. 根据权利要求8所述的推送信息监控方法,其特征在于,对所述视图进行监听,包括:The method for monitoring push information according to claim 8, wherein the monitoring of the view comprises:
    通过为所述视图添加可进行监听回调的附加状态事件,对所述视图是否被所述消息框显示进行监听。 Whether the view is monitored by the message box display by adding an additional state event that can be listened to for the view.
  13. 根据权利要求8所述的推送信息监控方法,其特征在于,还包括:The method for monitoring push information according to claim 8, further comprising:
    检测所述客户端是否收到所述服务器发送的推送信息。Detecting whether the client receives the push information sent by the server.
  14. 根据权利要求8所述的推送信息监控方法,其特征在于,所述客户端的操作系统为安卓系统,所述消息框为安卓系统中的Toast消息框。The push information monitoring method according to claim 8, wherein the operating system of the client is an Android system, and the message box is a Toast message box in the Android system.
  15. 一种客户端,其特征在于,所述客户端包括:A client, wherein the client includes:
    存储器;Memory
    处理器;以及Processor;
    推送信息监控装置,所述推送信息监控装置包括一个或多个存储于所述存储器并由所述处理器执行的模块,所述信息推送装置包括:Pushing the information monitoring device, the push information monitoring device comprising one or more modules stored in the memory and executed by the processor, the information pushing device comprising:
    消息框创建模块,用于在接收到所述服务器发送的推送信息后,创建包括视图的消息框,所述消息框对所述视图的显示状态与所述推送信息的显示状态相关联;a message box creating module, configured to: after receiving the push information sent by the server, create a message box including a view, where the message box associates a display state of the view with a display state of the push information;
    回调信息生成模块,用于对所述视图进行监听;以及在监听到所述视图被所述消息框显示时,生成回调信息;a callback information generating module, configured to monitor the view; and generate callback information when the view is displayed by the message box;
    状态信息发送模块,用于在检测到回调信息时,向所述服务器发送表示客户端用于控制推送信息是否显示通知显示开关已经打开的状态信息,以及在未检测到回调信息时,向所述服务器发送表示所述通知显示开关已经关闭的状态信息。a status information sending module, configured to send, to the server, state information indicating whether the client uses the push information to display the notification display switch has been turned on when the callback information is detected, and when the callback information is not detected, The server transmits status information indicating that the notification display switch has been turned off.
  16. 一种在其上记录有用于执行权利要求8-14所述方法的程序的计算机可读存储介质。 A computer readable storage medium having recorded thereon a program for performing the method of claims 8-14.
PCT/CN2017/071271 2016-01-28 2017-01-16 Push information monitoring device, push information monitoring method, and client WO2017128978A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610061493.9A CN105743774B (en) 2016-01-28 2016-01-28 Pushed information monitoring device, pushed information monitoring method and client
CN201610061493.9 2016-01-28

Publications (1)

Publication Number Publication Date
WO2017128978A1 true WO2017128978A1 (en) 2017-08-03

Family

ID=56247906

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071271 WO2017128978A1 (en) 2016-01-28 2017-01-16 Push information monitoring device, push information monitoring method, and client

Country Status (2)

Country Link
CN (1) CN105743774B (en)
WO (1) WO2017128978A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014475A (en) * 2021-03-12 2021-06-22 中国平安财产保险股份有限公司 Message pushing integration method and device
CN113761429A (en) * 2020-06-12 2021-12-07 北京沃东天骏信息技术有限公司 Information processing method, device and equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743774B (en) * 2016-01-28 2019-04-02 广州市动景计算机科技有限公司 Pushed information monitoring device, pushed information monitoring method and client
CN106445533A (en) * 2016-09-28 2017-02-22 北京金山安全软件有限公司 Toast display method and device and electronic equipment
CN112199078A (en) * 2020-11-10 2021-01-08 平安普惠企业管理有限公司 Toast message pushing method and device based on android fragment component and computer equipment
CN113360752A (en) * 2021-04-23 2021-09-07 山东英信计算机技术有限公司 Message pushing method, device, equipment and readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130013677A1 (en) * 2010-03-19 2013-01-10 Abile Mobile As System and method for real-time, push style, distributed dashboard networks
CN104035677A (en) * 2014-06-30 2014-09-10 百度在线网络技术(北京)有限公司 Displaying method and device of prompt information
CN104125141A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Pushing method for notification message, server, user terminal and system
CN104349288A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Message transmission method and device
CN105743774A (en) * 2016-01-28 2016-07-06 广州市动景计算机科技有限公司 Pushed information monitoring device, pushed information monitoring method and client side

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996069B2 (en) * 2011-12-27 2015-03-31 Vonage Network, Llc Systems and methods for communication notification and handling
CN105101113B (en) * 2014-05-15 2020-08-04 南京中兴软件有限责任公司 Information push management method and device
CN105094791B (en) * 2014-05-22 2018-10-23 北京奇虎科技有限公司 The storage method and device of status bar notice
CN105005470B (en) * 2015-06-08 2019-05-24 浙江每日互动网络科技股份有限公司 A kind of processing method, server, user terminal and the system of notification bar message
CN105183307B (en) * 2015-06-15 2018-05-04 北京奇虎科技有限公司 Application messages display control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130013677A1 (en) * 2010-03-19 2013-01-10 Abile Mobile As System and method for real-time, push style, distributed dashboard networks
CN104125141A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Pushing method for notification message, server, user terminal and system
CN104349288A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Message transmission method and device
CN104035677A (en) * 2014-06-30 2014-09-10 百度在线网络技术(北京)有限公司 Displaying method and device of prompt information
CN105743774A (en) * 2016-01-28 2016-07-06 广州市动景计算机科技有限公司 Pushed information monitoring device, pushed information monitoring method and client side

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113761429A (en) * 2020-06-12 2021-12-07 北京沃东天骏信息技术有限公司 Information processing method, device and equipment
CN113014475A (en) * 2021-03-12 2021-06-22 中国平安财产保险股份有限公司 Message pushing integration method and device
CN113014475B (en) * 2021-03-12 2022-08-05 中国平安财产保险股份有限公司 Message pushing integration method and device

Also Published As

Publication number Publication date
CN105743774B (en) 2019-04-02
CN105743774A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
WO2017128978A1 (en) Push information monitoring device, push information monitoring method, and client
US20220014552A1 (en) Detecting malicious behavior using an accomplice model
US20220075518A1 (en) Fast Data Copying Method and Electronic Device
US9794144B1 (en) Correlating status information generated in a computer network
TWI604375B (en) Methods for screen sharing and apparatuses using the same
US10678376B2 (en) Data processing method, and apparatus
US9766596B2 (en) Wake up to a cast alarm or an alarm plus content prompt
US20140007115A1 (en) Multi-modal behavior awareness for human natural command control
US9798512B1 (en) Context-based volume adjustment
KR20130108745A (en) Method for generating folder and an electronic device thereof
CN110362288B (en) Same-screen control method, device, equipment and storage medium
WO2022148315A1 (en) Information display method and apparatus, and electronic device
US9432482B2 (en) Asynchronous and synchronous resource links
CN106161776B (en) Volume adjusting method and mobile terminal
EP2778988B1 (en) Selectively activating a/v web page contents in electronic device
TW201624269A (en) Method and apparatus for acquiring processing an operation instruction
WO2016169426A1 (en) Video playing method and device
US20140282057A1 (en) System for applying applications of different operating systems in one electronic device and method thereof
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
US11210453B2 (en) Host pair detection
CN110045895B (en) Information processing method, system, medium, and computing device
US20210058742A1 (en) Techniques for location-based alert of available applications
US20180218132A1 (en) Application portability via application(s) installed on a portable storage device
US20110075054A1 (en) Embedded electronic device
WO2016191977A1 (en) Operation processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17743593

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 8.11.18)

122 Ep: pct application non-entry in european phase

Ref document number: 17743593

Country of ref document: EP

Kind code of ref document: A1