CN111859239A - Method and device for message pushing and electronic equipment - Google Patents

Method and device for message pushing and electronic equipment Download PDF

Info

Publication number
CN111859239A
CN111859239A CN202010749429.6A CN202010749429A CN111859239A CN 111859239 A CN111859239 A CN 111859239A CN 202010749429 A CN202010749429 A CN 202010749429A CN 111859239 A CN111859239 A CN 111859239A
Authority
CN
China
Prior art keywords
terminal
message
screen
duration
pushing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010749429.6A
Other languages
Chinese (zh)
Inventor
张小军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
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 Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202010749429.6A priority Critical patent/CN111859239A/en
Publication of CN111859239A publication Critical patent/CN111859239A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to the technical field of communication, and discloses a method for pushing messages, which comprises the following steps: acquiring a monitoring result of a screen-off state of the terminal; and under the condition that the monitoring result meets the preset condition, pushing the message to the terminal. And acquiring a monitoring result of the screen-off state of the terminal, and pushing a message to the terminal according to the monitoring result. Therefore, message pushing is carried out according to the difference of the push message receiving limits of the application program in different states of the screen-off state of the terminal, and the arrival rate of the push messages of the application program of the android system can be improved. The application also discloses a device and electronic equipment for pushing the message.

Description

Method and device for message pushing and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and for example, to a method and an apparatus for pushing a message, and an electronic device.
Background
With the development of computer technology, the functions of the terminal are more and more, and a user generally installs a large number of application programs on the terminal in the using process. The background server corresponding to the application program will typically push messages to the terminal. At present, most android applications in the market use a third party or a self-developed Software Development Kit (SDK) to realize a message pushing function of an application program, and the message pushing function is not only used for prompting information for a user, but also is a tool for transmitting important information.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: at present, the android system has more terminal models and a messy system, and the arrival rate of push messages of an application program is low due to different types and system versions which have different limits on receiving push messages of the application program.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for message pushing and electronic equipment, and aims to solve the problem that the arrival rate of messages pushed by an application program of an android system is low at present.
In some embodiments, a method for message push comprises: acquiring a monitoring result of a screen-off state of the terminal; and under the condition that the monitoring result meets the preset condition, pushing the message to the terminal.
Optionally, the monitoring result includes a ratio of the screen-off state of the terminal, the screen-on duration and the total screen-on duration in a preset time period.
Optionally, the preset conditions include: the screen-off state is a screen-on state; or the screen-on duration is greater than the screen-on duration threshold; or the screen-on duration is greater than the screen-on duration threshold, and the proportion of the total screen-on duration in the preset time period is greater than the first proportion threshold.
In some embodiments, the pushing of the message to the terminal comprises: determining a target push message according to the ratio of the total screen-on duration in a preset time period; and pushing the target push message to the terminal.
Optionally, the determining the target push message according to the ratio of the total screen-on duration in the preset time period includes: determining that the target push message is a push message of an application program which does not run under the condition that the occupation ratio of the total screen-on duration in a preset time period is less than or equal to a second occupation ratio threshold; determining that the target push message is a push message of the running application program under the condition that the occupation ratio of the total screen-on duration in the preset time period is greater than a second occupation ratio threshold value; wherein the second duty threshold is greater than the first duty threshold.
In some embodiments, the pushing of the message to the terminal comprises: determining a target application program of a terminal; and pushing the message to the terminal through a data transmission channel corresponding to the target application program.
In some embodiments, before performing message pushing to the mobile terminal, the method for message pushing further includes: and confirming that the data transmission channel works normally.
Optionally, confirming that the data transmission channel is working normally includes: sending a heartbeat data packet to a terminal through a data transmission channel; and confirming that the data transmission channel works normally under the condition that response information sent by the terminal based on the heartbeat data packet is received within a preset time length.
In some embodiments, an apparatus for message pushing includes a processor and a memory storing program instructions, the processor being configured to execute the above-described method for message pushing when executing the program instructions.
In some embodiments, the electronic device includes the above-mentioned apparatus for pushing messages.
The method, the device and the electronic equipment for pushing the message provided by the embodiment of the disclosure can achieve the following technical effects:
and acquiring a monitoring result of the screen-off state of the terminal, and pushing a message to the terminal according to the monitoring result. Therefore, message pushing is carried out according to the difference of the push message receiving limits of the application program in different states of the screen-off state of the terminal, and the arrival rate of the push messages of the application program of the android system can be improved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
fig. 1 is a schematic flowchart of a method for pushing a message according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another method for pushing a message according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another method for pushing a message according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of another method for pushing a message according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an apparatus for pushing a message according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of another apparatus for pushing a message according to an embodiment of the present disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified. In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B. The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
The message push is a technology for periodically transmitting information required by a user to a user terminal through a server by using a certain technical standard or protocol. The server and the terminal are communicated with each other through a data transmission channel to perform data communication or interaction, wherein various application programs are installed on the terminal, and the application programs can be at least one of a smart phone, a mobile internet device, a tablet computer, a personal digital assistant or a wearable device; the server is a background server of the application program installed on the terminal, and can push a message to the terminal installed with the corresponding application program, and specifically, the server may be an independent server or a server cluster formed by a plurality of independent servers.
Fig. 1 is a schematic flowchart of a method for pushing a message according to an embodiment of the present disclosure, which is mainly illustrated by applying the method to a server in this embodiment. As shown in fig. 1, the method for pushing a message includes the following steps:
s101: and acquiring a monitoring result of the screen-off state of the terminal.
Optionally, the monitoring result includes a ratio of the screen-off state of the terminal, the screen-on duration and the total screen-on duration in a preset time period.
The terminal screen-off state comprises a terminal screen-off state or a terminal screen-on state; the screen-on duration of the terminal is the duration of the terminal maintaining the screen-on state; the ratio of the total screen-on duration of the terminal in the preset time period is the proportion of the total screen-on duration of the terminal in the preset time period to the preset time period (for example, the total screen-on duration of the terminal in the previous 1 hour is 30 minutes, and the ratio of the total screen-on duration of the terminal in the preset time period is 50%).
In practical application, the screen-off broadcast monitoring of the terminal can be implanted into the push SDK, so that a monitoring result of the screen-off state of the terminal is obtained. The push SDK is a Software Development Kit (SDK) that is accessible to various applications and is generic. An application developer can develop an application based on the SDK, the application developed based on the SDK is accessed to the SDK, and therefore appointed operations such as screen-off broadcast monitoring of the terminal can be executed through the SDK, and a monitoring result of the screen-off state of the terminal is obtained.
S102: and under the condition that the monitoring result meets the preset condition, pushing the message to the terminal.
Optionally, the preset conditions include: the screen-off state is a screen-on state. Because the terminal of the android system has small limitation on receiving the push message of the application program in the bright screen state, when the screen-off state of the terminal is in the bright screen state, the server pushes the message to the terminal, and the arrival rate of the push message of the application program of the android system can be improved.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold. Here, the value of the bright screen duration threshold is [1min, 2min ], for example, 1min (minute), 1.5min, 2 min. On one hand, when the screen-off state of the terminal is the screen-on state, the server pushes the message to the terminal, so that the arrival rate of the message pushed by the application program of the android system can be improved; on the other hand, when the screen-on duration of the terminal is greater than the screen-on duration threshold, the probability that the terminal is in a normal use state of the user at the current moment (rather than the terminal being turned on due to an accidental event) is high, so that the server pushes the message to the terminal when the screen-on duration is greater than the screen-on duration threshold, and the click rate and the reading rate of the pushed message can be improved.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold, and the ratio of the total screen-on duration in the preset time period is greater than the first ratio threshold. Here, the first percentage threshold value has a value in a range of [ 30%, 50% ], for example, 30%, 35%, 40%, 45%, 50%. On one hand, when the screen-off state of the terminal is the screen-on state, the server pushes the message to the terminal, so that the arrival rate of the message pushed by the application program of the android system can be improved; on the other hand, when the occupation ratio of the total screen-on duration in the preset time period is greater than the first occupation ratio threshold, the probability that the terminal is in the normal use state of the user at the current moment (but not the terminal is on screen due to an accidental event) is higher, so that the server pushes the message to the terminal when the occupation ratio of the total screen-on duration in the preset time period is greater than the first occupation ratio threshold, and the click rate and the reading rate of the pushed message can be improved.
By adopting the method for pushing the message provided by the embodiment of the disclosure, the monitoring result of the screen-off state of the terminal is obtained, and the message is pushed to the terminal according to the monitoring result. Therefore, on one hand, message pushing is carried out according to the difference of the push message receiving limits of the application program in different states of the screen-off state of the terminal, and the arrival rate of the push messages of the application program of the android system can be improved; on the other hand, the used state of the terminal at the current moment is inferred through the screen-on duration information of the terminal, and the message is pushed when the terminal is in the normal use state of the user, so that the click rate and the reading rate of the pushed message can be improved.
In some embodiments, as shown in fig. 2, specifically, the pushing the message to the terminal includes the following steps:
s201: and determining a target push message according to the occupation ratio of the total screen-on duration in a preset time period.
Optionally, the determining the target push message according to the ratio of the total screen-on duration in the preset time period includes: determining that the target push message is a push message of an application program which does not run under the condition that the occupation ratio of the total screen-on duration in a preset time period is less than or equal to a second occupation ratio threshold; determining that the target push message is a push message of the running application program under the condition that the occupation ratio of the total screen-on duration in the preset time period is greater than a second occupation ratio threshold value; wherein the second duty threshold is greater than the first duty threshold.
Here, the second percentage threshold value has a value in a range of [ 60%, 70% ], for example, 60%, 65%, 70%, 75%, 80%. Under the condition that the screen-up duration of the terminal is greater than the screen-up duration threshold value, and the occupation ratio of the total screen-up duration in the preset time period is greater than the first occupation ratio threshold value, when the occupation ratio of the total screen-up duration in the preset time period is less than or equal to the second occupation ratio threshold value, the probability that a user randomly uses or browses one or more application programs in the application programs installed in the terminal is high, and the attention degree on the push information of the randomly jumped application programs is high, so that when the occupation ratio of the total screen-up duration in the preset time period is greater than the first occupation ratio threshold value and less than or equal to the second occupation ratio threshold value, the server pushes the push information of the application programs which are not operated to the terminal, and the click rate and the reading rate of the push information of the application programs which are not operated can be improved; when the occupation ratio of the total screen-lighting time in the preset time period is greater than the second occupation ratio threshold, the possibility that the user continuously uses one or more application programs in the application programs installed by the terminal is high, and the attention degree on the push information of the currently running application program is high, so that the server pushes the push information of the running application program to the terminal when the occupation ratio of the total screen-lighting time in the preset time period is greater than the second occupation ratio threshold, the click rate and the reading rate of the push information of the running application program can be improved, and the use experience of the user is improved.
S202: and pushing the target push message to the terminal.
When the target push message is determined to be the push message of the non-running application program, pushing the push message of the non-running application program to the terminal; and when the target push message is determined to be the push message of the running application program, pushing the push message of the running application program to the terminal.
In the embodiment of the disclosure, the used state of the terminal is inferred through the proportion of the total screen-on duration of the terminal in a preset time period, and when a user randomly uses or browses one or more application programs in the application programs installed in the terminal, a push message of the application programs which are not operated is pushed to the terminal, so that the click rate and the reading rate of the push message of the application programs which are not operated are improved; when a user continuously uses one or more application programs in the application programs installed on the terminal, the push message of the running application program is pushed to the terminal, the attention requirement of the user on the push message of the currently running application program is met, the click rate and the reading rate of the push message of the running application program can be improved, and the use experience of the user can be improved.
In some embodiments, as shown in fig. 3, specifically, the pushing the message to the terminal includes the following steps:
s301: and determining a target application program of the terminal.
Here, the target application corresponds to the type of the push message, for example, when the type of the push message is a wechat push message, it is determined that the target application of the terminal is a wechat; or when the type of the push message is a microblog push message, determining that the target application program of the terminal is a microblog; or when the type of the push message is the pay bank push message, determining that the target application program of the terminal is the pay bank.
In some practical applications, the push message carries a push message identifier, and after the server obtains the push message, the server determines a target application program of the terminal by searching the corresponding relation table based on the push message identifier carried by the server. The correspondence table is used to indicate the correspondence between the push message identifier and the application program, for example, the following table 1 shows an optional correspondence table:
table 1: corresponding relation table
Push message identification Application program
WEIXIN234 WeChat
WEIBO432 Micro blog
ZHIFUBAO323 Payment device
As can be seen from table 1 above, when the carried message identifier of the push message is "WEIXIN 234", it is determined that the target application program of the terminal is WeChat; when the message identifier carried by the push message is WEIBO432, determining that a target application program of the terminal is a microblog; when the carried message identifier of the push message is "ZHIFUBAO 323", the target application program of the terminal is determined to be a payment treasure.
S302: and pushing the message to the terminal through a data transmission channel corresponding to the target application program.
Between the server and the terminal, each application program installed on the terminal corresponds to a corresponding data transmission channel, and the terminal can keep heartbeat with the server by monitoring the broadcast of the system. And after determining the target application program, the server calls a data transmission channel corresponding to the target application program to push a message to the terminal.
In the embodiment of the disclosure, a target application program of a terminal is determined, and a message is pushed to the terminal through a data transmission channel corresponding to the target application program. Therefore, data transmission is independently carried out among the data transmission channels, the data transmission channels are not influenced mutually, the server can push a plurality of messages in parallel, and the message pushing efficiency is improved.
Fig. 4 is a flowchart illustrating a method for pushing a message according to an embodiment of the present disclosure, and in conjunction with fig. 4, the method for pushing a message includes the following steps:
s401: and acquiring a monitoring result of the screen-off state of the terminal.
Optionally, the monitoring result includes a ratio of the screen-off state of the terminal, the screen-on duration and the total screen-on duration in a preset time period.
S402: and judging whether the monitoring result meets a preset condition.
Optionally, the preset conditions include: the screen-off state is a screen-on state.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold, and the ratio of the total screen-on duration in the preset time period is greater than the first ratio threshold.
S403: and judging whether the data transmission channel works normally or not under the condition that the monitoring result meets the preset condition.
Optionally, confirming that the data transmission channel is working normally includes: sending a heartbeat data packet to a terminal through a data transmission channel; and confirming that the data transmission channel works normally under the condition that response information sent by the terminal based on the heartbeat data packet is received within a preset time length.
Here, the data transmission channel is a transmission channel shared by sending heartbeat data packets and push messages. The heartbeat data packet is a self-defined data packet sent by the server to the terminal and is used for informing the state information of the terminal. And after receiving the heartbeat data packet sent by the server, the terminal sends response information based on the heartbeat data packet to the server. If the server receives response information sent based on the heartbeat data packet within a preset time (for example, 10 seconds) and indicates that a data transmission channel between the server and the terminal is normal, message pushing is carried out on the server; and if the server does not receive response information sent based on the heartbeat data packet within the preset time length and indicates that a data transmission channel between the server and the terminal is abnormal, stopping message pushing to the terminal and prompting alarm information. Confirming whether a data transmission channel for pushing the message works normally again before pushing the message, and ensuring that the server pushes the message under the condition that the hardware equipment runs normally, thereby improving the arrival rate of the message pushed by the server; meanwhile, because the information transmitted by the heartbeat data packet is very little, the size of the heartbeat data packet is very small (generally tens of bytes), usually the ID identification of the terminal, the heartbeat sequence number and the like, the transmission rate is high, and the normal transmission of the push information cannot be influenced by occupying a data transmission channel for too long time.
S404: and under the condition of confirming that the data transmission channel works normally, pushing the message to the terminal.
The server pushes the message to the terminal under the condition that the data transmission channel is normal, stops pushing the message to the terminal under the condition that the data transmission channel is abnormal, prompts alarm information, ensures that the server pushes the message under the condition that the hardware equipment normally operates, and can further improve the arrival rate of the message pushed by the server.
By adopting the method for pushing the message provided by the embodiment of the disclosure, on the first hand, the monitoring result of the screen-off state of the terminal is obtained, and the message is pushed to the terminal according to the monitoring result, so that the message is pushed according to the difference of the push message receiving limits of the terminal to the application program in different screen-off states (when the push message receiving limit of the application program is small), and the arrival rate of the push message of the application program of the android system can be improved; in the second aspect, before the message is pushed to the terminal, it is confirmed that a data transmission channel between the server and the terminal works normally, so that the normal operation of hardware equipment for data transmission is ensured, the arrival rate of the pushed message can be further improved, and the terminal is ensured to receive the related message pushed by the server in time; and in the third aspect, by using the characteristics of less transmitted information, smaller data size and higher transmission rate of the heartbeat data packet, the heartbeat data packet is sent to the terminal through the data transmission channel to confirm whether the data transmission channel works normally, so that the normal transmission of the push information cannot be influenced by occupying the data transmission channel for a long time.
As shown in fig. 5, an apparatus for pushing a message according to an embodiment of the present disclosure includes an obtaining module 51 and a pushing module 52, where the obtaining module 51 is configured to obtain a monitoring result of a screen-off state of a terminal; the pushing module 52 is configured to push a message to the terminal if the monitoring result meets a preset condition.
Optionally, the monitoring result includes a ratio of the screen-off state of the terminal, the screen-on duration and the total screen-on duration in a preset time period.
Optionally, the preset conditions include: the screen-off state is a screen-on state.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold, and the ratio of the total screen-on duration in the preset time period is greater than the first ratio threshold.
By adopting the device for pushing the message, provided by the embodiment of the disclosure, the monitoring result of the screen-off state of the terminal is obtained, and the message is pushed to the terminal according to the monitoring result. Therefore, on one hand, message pushing is carried out according to the difference of the push message receiving limits of the application program in different states of the screen-off state of the terminal, and the arrival rate of the push messages of the application program of the android system can be improved; on the other hand, the used state of the terminal at the current moment is inferred through the screen-on duration information of the terminal, and the message is pushed when the terminal is in the normal use state of the user, so that the click rate and the reading rate of the pushed message can be improved.
In some embodiments, the pushing module 52 is specifically configured to determine a target pushing message according to a ratio of the total screen-on duration in a preset time period; and pushing the target push message to the terminal.
Optionally, determining a target push message according to a ratio of the total screen-on duration in a preset time period includes: determining that the target push message is a push message of an application program which does not run under the condition that the occupation ratio of the total screen-on duration in a preset time period is less than or equal to a second occupation ratio threshold; determining that the target push message is a push message of the running application program under the condition that the occupation ratio of the total screen-on duration in the preset time period is greater than a second occupation ratio threshold value; wherein the second duty threshold is greater than the first duty threshold.
In the embodiment of the disclosure, under the condition that the screen-up duration of the terminal is greater than the screen-up duration threshold, and the occupation ratio of the total screen-up duration in the preset time period is greater than the first occupation ratio threshold, when the occupation ratio of the total screen-up duration in the preset time period is less than or equal to the second occupation ratio threshold, the probability that a user randomly uses or browses one or more application programs in the application programs installed in the terminal is high, and the attention degree on the push information of the randomly popped application programs is high, so that when the occupation ratio of the total screen-up duration in the preset time period is greater than the first occupation ratio threshold and less than or equal to the second occupation ratio threshold, the server pushes the push information of the application programs which are not operated to the terminal, and the click rate and the reading rate of the push information of the application programs which are not operated can be improved; when the occupation ratio of the total screen-lighting time in the preset time period is greater than the second occupation ratio threshold, the possibility that the user continuously uses one or more application programs in the application programs installed by the terminal is high, and the attention degree on the push information of the currently running application program is high, so that the server pushes the push information of the running application program to the terminal when the occupation ratio of the total screen-lighting time in the preset time period is greater than the second occupation ratio threshold, the click rate and the reading rate of the push information of the running application program can be improved, and the use experience of the user is improved.
In some embodiments, the push module 52 is specifically configured to determine the target application of the terminal; and pushing the message to the terminal through a data transmission channel corresponding to the target application program.
In the embodiment of the disclosure, a target application program of a terminal is determined, and a message is pushed to the terminal through a data transmission channel corresponding to the target application program. Therefore, data transmission is independently carried out among the data transmission channels, mutual influence is avoided, a plurality of messages can be pushed in parallel, and the message pushing efficiency is improved.
In some embodiments, the pushing module 52 is further configured to confirm that the data transmission channel is working normally before pushing the message to the mobile terminal.
Optionally, confirming that the data transmission channel is working normally includes: sending a heartbeat data packet to a terminal through a data transmission channel; and confirming that the data transmission channel works normally under the condition that response information sent by the terminal based on the heartbeat data packet is received within a preset time length.
In the embodiment of the disclosure, before the message is pushed to the terminal, it is determined that a data transmission channel between the server and the terminal is working normally. Therefore, the normal operation of the hardware equipment for data transmission is ensured, the arrival rate of the push message can be further improved, and the terminal is ensured to receive the relevant message pushed by the server in time.
As shown in fig. 6, an apparatus for pushing a message according to an embodiment of the present disclosure includes a processor (processor)60 and a memory (memory)61, and may further include a Communication Interface (Communication Interface)62 and a bus 63. The processor 60, the communication interface 62 and the memory 61 may communicate with each other through a bus 63. Communication interface 62 may be used for information transfer. The processor 60 may call the logic instructions in the memory 61 to execute the method for message pushing of the above embodiment.
Furthermore, the logic instructions in the memory 61 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 61 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 60 executes the functional application and data processing by executing the program instructions/modules stored in the memory 61, that is, implements the method for message pushing in the above-described method embodiments.
The memory 61 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 61 may include a high-speed random access memory, and may also include a nonvolatile memory.
In some embodiments, a method for message push comprises: acquiring a monitoring result of a screen-off state of the terminal; and under the condition that the monitoring result meets the preset condition, pushing the message to the terminal.
Optionally, the monitoring result includes a ratio of the screen-off state of the terminal, the screen-on duration and the total screen-on duration in a preset time period.
Optionally, the preset conditions include: the screen-off state is a screen-on state.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold.
Optionally, the preset conditions include: the screen-on duration is greater than the screen-on duration threshold, and the ratio of the total screen-on duration in the preset time period is greater than the first ratio threshold.
By adopting the device for pushing the message, provided by the embodiment of the disclosure, the monitoring result of the screen-off state of the terminal is obtained, and the message is pushed to the terminal according to the monitoring result. Therefore, on one hand, message pushing is carried out according to the difference of the push message receiving limits of the application program in different states of the screen-off state of the terminal, and the arrival rate of the push messages of the application program of the android system can be improved; on the other hand, the use state of the terminal at the current moment is deduced through the screen-on duration information of the terminal, and the message is pushed when the terminal is in the normal use state of the user, so that the click rate and the reading rate of the pushed message can be improved.
The embodiment of the disclosure provides an electronic device (for example, a server, a computer, etc.) including the above-mentioned apparatus for pushing a message.
By adopting the electronic equipment provided by the embodiment of the disclosure, the monitoring result of the screen-off state of the terminal is obtained, and the message is pushed to the terminal according to the monitoring result. Therefore, on one hand, message pushing is carried out according to the difference of the push message receiving limits of the application program in different states of the screen-off state of the terminal, and the arrival rate of the push messages of the application program of the android system can be improved; on the other hand, the use state of the terminal at the current moment is deduced through the screen-on duration information of the terminal, and the message is pushed when the terminal is in the normal use state of the user, so that the click rate and the reading rate of the pushed message can be improved.
The embodiment of the disclosure provides a computer-readable storage medium, which stores computer-executable instructions configured to execute the above method for pushing a message.
The present disclosure provides a computer program product including a computer program stored on a computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to execute the above method for message pushing.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. The scope of the disclosed embodiments includes the full ambit of the claims, as well as all available equivalents of the claims. As used in this application, although the terms "first," "second," etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, unless the meaning of the description changes, so long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first and second elements are both elements, but may not be the same element. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for message push, comprising:
acquiring a monitoring result of a screen-off state of the terminal;
and under the condition that the monitoring result meets a preset condition, pushing the message to the terminal.
2. The method according to claim 1, wherein the monitoring result comprises a ratio of a terminal screen-off state, a screen-on duration and a total screen-on duration in a preset time period.
3. The method according to claim 2, wherein the preset conditions include:
the screen-off state is a screen-on state; or the screen-on duration is greater than the screen-on duration threshold; or the screen-on duration is greater than the screen-on duration threshold, and the proportion of the total screen-on duration in the preset time period is greater than the first proportion threshold.
4. The method according to claim 3, wherein the pushing the message to the terminal comprises:
determining a target push message according to the occupation ratio of the total screen-on duration in a preset time period;
and pushing the target push message to the terminal.
5. The method of claim 4, wherein determining a targeted push message according to the fraction of the total screen-on duration in a preset time period comprises:
determining that the target push message is a push message of an application program which does not run under the condition that the occupation ratio of the total screen-on duration in a preset time period is less than or equal to a second occupation ratio threshold;
determining that the target push message is a push message of an operating application program under the condition that the ratio of the total screen-on duration in a preset time period is greater than the second ratio threshold;
wherein the second duty ratio threshold is greater than the first duty ratio threshold.
6. The method of claim 1, wherein the pushing the message to the terminal comprises:
determining a target application program of the terminal;
and pushing the message to the terminal through a data transmission channel corresponding to the target application program.
7. The method according to any one of claims 1 to 6, wherein before the message pushing to the mobile terminal, the method further comprises:
and confirming that the data transmission channel works normally.
8. The method of claim 7, wherein confirming that the data transmission channel is operating properly comprises:
sending a heartbeat data packet to the terminal through the data transmission channel;
and confirming that the data transmission channel works normally under the condition that response information sent by the terminal based on the heartbeat data packet is received within a preset time length.
9. An apparatus for message push, comprising a processor and a memory storing program instructions, characterized in that the processor is configured to execute the method for message push according to any one of claims 1 to 8 when executing the program instructions.
10. An electronic device, characterized in that it comprises the apparatus for message pushing according to claim 9.
CN202010749429.6A 2020-07-30 2020-07-30 Method and device for message pushing and electronic equipment Pending CN111859239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010749429.6A CN111859239A (en) 2020-07-30 2020-07-30 Method and device for message pushing and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010749429.6A CN111859239A (en) 2020-07-30 2020-07-30 Method and device for message pushing and electronic equipment

Publications (1)

Publication Number Publication Date
CN111859239A true CN111859239A (en) 2020-10-30

Family

ID=72945402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010749429.6A Pending CN111859239A (en) 2020-07-30 2020-07-30 Method and device for message pushing and electronic equipment

Country Status (1)

Country Link
CN (1) CN111859239A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112600902A (en) * 2020-12-08 2021-04-02 北京五八信息技术有限公司 Notification message pushing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677712A (en) * 2015-12-28 2016-06-15 北京金山安全软件有限公司 Information pushing method and device and electronic equipment
CN105978971A (en) * 2016-05-11 2016-09-28 北京奇虎科技有限公司 Message pushing method and device, and message pushing server
CN106412104A (en) * 2016-10-28 2017-02-15 努比亚技术有限公司 Application message pushing device and method
WO2018112925A1 (en) * 2016-12-23 2018-06-28 北京金山安全软件有限公司 Information display method, device and terminal apparatus
CN111198641A (en) * 2018-11-19 2020-05-26 珠海格力电器股份有限公司 Message pushing method and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677712A (en) * 2015-12-28 2016-06-15 北京金山安全软件有限公司 Information pushing method and device and electronic equipment
CN105978971A (en) * 2016-05-11 2016-09-28 北京奇虎科技有限公司 Message pushing method and device, and message pushing server
CN106412104A (en) * 2016-10-28 2017-02-15 努比亚技术有限公司 Application message pushing device and method
WO2018112925A1 (en) * 2016-12-23 2018-06-28 北京金山安全软件有限公司 Information display method, device and terminal apparatus
CN111198641A (en) * 2018-11-19 2020-05-26 珠海格力电器股份有限公司 Message pushing method and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112600902A (en) * 2020-12-08 2021-04-02 北京五八信息技术有限公司 Notification message pushing method and device

Similar Documents

Publication Publication Date Title
CN105847447B (en) Message pushing method and device
CN104253741A (en) Information sending method and device and system thereof
CN101631136A (en) Method, system, terminal device and advertiser terminal for realizing interactive advertisement
CN107147724A (en) A kind of information push method, server and computer-readable recording medium
CN112672357A (en) Method and device for processing user account in business system and computer equipment
CN107613091A (en) A kind of method and terminal for establishing communication
CN108366098B (en) Data interaction method and device for network nodes
CN108880972A (en) A kind of information processing method, server and terminal
CN102811283A (en) Terminal communication display method and terminal thereof
CN107734180B (en) Information processing method
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
CN111859239A (en) Method and device for message pushing and electronic equipment
CN108810233B (en) Malicious incoming call identification method and device
CN110971508A (en) Message pushing method, device and system
CN105407470A (en) Scheduling-based method for replying to call and communication terminal
CN112073308A (en) Information pushing method, device, equipment and computer readable storage medium
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN106102011A (en) Method, device and the terminal that a kind of terminal positioning processes
CN113792304B (en) Database access system and method
CN109165145A (en) A kind of the service condition statistical method and device of application program
CN112966005B (en) Timing message sending method, device, computer equipment and storage medium
CN112487261B (en) Data acquisition method and device, electronic equipment and medium
CN113311745A (en) Method, system, device and equipment for product monitoring
CN108471445B (en) Attention object content updating notification method and device
CN113518317A (en) Method and device for sending prompt information, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201030