CN106657316B - Message withdrawing method and device - Google Patents
Message withdrawing method and device Download PDFInfo
- Publication number
- CN106657316B CN106657316B CN201611159663.3A CN201611159663A CN106657316B CN 106657316 B CN106657316 B CN 106657316B CN 201611159663 A CN201611159663 A CN 201611159663A CN 106657316 B CN106657316 B CN 106657316B
- Authority
- CN
- China
- Prior art keywords
- push message
- push
- identity
- message
- current time
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/18—Commands or executable codes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention discloses a message withdrawing method, which comprises the following steps: detecting whether the published push message needs to be withdrawn; when the push message needs to be withdrawn, acquiring an identity of the push message; and sending a withdrawal instruction carrying the identity identifier to a client so that the client deletes the push message corresponding to the identity identifier based on the identity identifier. The embodiment of the invention also discloses a message withdrawing device. By adopting the embodiment of the invention, meaningless or wrong push messages can be withdrawn in time, and the disturbance to users is reduced.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a message revocation method and apparatus.
Background
With the continuous development of internet technology and terminal technology, various terminals such as mobile phones are widely used, and more functions can be realized on the terminals, so that great convenience is brought to the life of users. For example, a large number of Applications (APPs) are generally installed on the terminal, and the APPs can push various notification messages to the terminal so as to push related product information to a user, thereby improving the APP liveness and the retention rate.
When pushing a message, situations may occur where meaningless or even wrong pushed messages are pushed to the user. For example, because the push process and the operation flow are complex, a push test is generally required, and when the push test is performed, a test message without actual content is easily issued to an online touch user, which disturbs the user and may cause the user to doubtful the APP brand.
Disclosure of Invention
The embodiment of the invention provides a message withdrawing method and a message withdrawing device, which can withdraw meaningless or wrong push messages in time and reduce disturbance to a user.
The embodiment of the invention provides a message withdrawing method, which comprises the following steps:
detecting whether the published push message needs to be withdrawn;
when the push message needs to be withdrawn, acquiring an identity of the push message;
and sending a withdrawal instruction carrying the identity identifier to a client so that the client deletes the push message corresponding to the identity identifier based on the identity identifier.
Optionally, before the sending the revocation instruction carrying the identity to the client, the method further includes:
detecting whether the current time is within the effective time period range of the push message;
and when the current time is within the effective time period range of the push message, executing the step of sending a withdrawal instruction carrying the identity identifier to the client.
Optionally, the valid time period includes a display time of the push message; the detecting whether the current time is within the valid time period range of the push message includes:
detecting whether the current time is before the latest display time indicated by the display time of the push message;
and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message.
Optionally, the withdrawal instruction further carries a push type of the push message.
Correspondingly, the embodiment of the invention also provides a message withdrawal method, which comprises the following steps:
receiving a withdrawal instruction sent by a server, wherein the withdrawal instruction carries an identity of a push message to be withdrawn;
and searching the push message corresponding to the identity identification, and deleting the push message corresponding to the identity identification.
Optionally, the withdrawal instruction further carries a push type of the push message; the searching for the push message corresponding to the identity includes:
determining a push message set corresponding to a push type included in the withdrawal instruction, wherein the push message set includes at least one push message;
and searching the push message corresponding to the identity identification from the push message set.
Optionally, before deleting the push message corresponding to the identity, the method further includes:
detecting whether a click check operation aiming at a push message corresponding to the identity mark occurs or not;
and when detecting that the click viewing operation does not occur, executing the step of deleting the push message corresponding to the identity identification.
Correspondingly, an embodiment of the present invention further provides a message revocation apparatus, including:
the first detection module is used for detecting whether the issued push message needs to be withdrawn or not;
the acquisition module is used for acquiring the identity of the push message when the first detection module detects that the push message needs to be withdrawn;
and the sending module is used for sending a withdrawal instruction carrying the identity identifier to a client so that the client deletes the push message corresponding to the identity identifier based on the identity identifier.
Optionally, the apparatus further comprises:
the second detection module is used for detecting whether the current time is within the effective time period range of the push message;
and the notification module is used for notifying the sending module to send a withdrawal instruction carrying the identity identifier to a client when the second detection module detects that the current time is within the effective time period range of the push message.
Optionally, the valid time period includes a display time of the push message; the second detection module is specifically configured to:
detecting whether the current time is before the latest display time indicated by the display time of the push message;
and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message.
Optionally, the withdrawal instruction further carries a push type of the push message.
Correspondingly, an embodiment of the present invention further provides a message revocation apparatus, including:
the receiving module is used for receiving a withdrawing instruction sent by the server, wherein the withdrawing instruction carries an identity of a push message to be withdrawn;
the searching module is used for searching the push message corresponding to the identity;
and the processing module is used for deleting the push message corresponding to the identity identifier searched by the searching module.
Optionally, the withdrawal instruction further carries a push type of the push message; the search module is specifically configured to:
determining a push message set corresponding to a push type included in the withdrawal instruction, wherein the push message set includes at least one push message;
and searching the push message corresponding to the identity identification from the push message set.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether click check operation aiming at the push message corresponding to the identity identification occurs or not;
and the message notification module is used for notifying the processing module to delete the push message corresponding to the identity identifier searched by the search module when the detection module detects that the click check operation does not occur.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the server can detect whether the issued push message needs to be withdrawn, and can acquire the identity of the push message and send the withdrawal instruction carrying the identity to the client when determining that the push message needs to be withdrawn, so that the client can delete the push message corresponding to the identity based on the identity to realize the withdrawal of the push message, thereby withdrawing the meaningless or wrong push message in time and reducing the disturbance to the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a message revocation method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another message revocation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a message revocation apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another message revocation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a message revocation system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a message withdrawal method, a message withdrawal device, a server and a terminal, which can withdraw meaningless or wrong push messages in time and reduce disturbance to a user. The details are described below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a message revocation method according to an embodiment of the present invention. In particular, the method of the embodiment of the present invention may be specifically applied to a server, such as various application servers. As shown in fig. 1, the message revocation method according to the embodiment of the present invention may include the following steps:
101. it is detected whether a published push message needs to be revoked.
102. And when the push message needs to be withdrawn, acquiring the identity of the push message.
In a specific embodiment, the server may detect whether the published push message needs to be revoked according to a preset detection rule, for example, may determine that the push message needs to be revoked when detecting that the push message includes a preset keyword or when receiving a revocation instruction based on a user operation input.
Further, when it is determined that a certain push message needs to be withdrawn, the identity of the push message can be acquired. The identity identifier corresponds to the push message one to one, that is, the identity identifier is a unique identifier for identifying the identity of the push message, and the identity identifiers of different push messages are different.
103. And sending a withdrawal instruction carrying the identity identifier to a client so that the client deletes the push message corresponding to the identity identifier based on the identity identifier.
Optionally, before sending the withdrawal instruction carrying the identity to the client, the server may further detect whether the current time is within the valid time period of the push message; and when the current time is within the effective time period range of the push message, executing the step of sending a withdrawal instruction carrying the identity identifier to the client.
Further, the valid time period may include a display time of the push message; the detecting whether the current time is within the valid time period range of the push message may specifically be: detecting whether the current time is before the latest display time indicated by the display time of the push message; and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message. That is to say, the valid time period may include any time before the latest display time of the push message, and when the current time is before the display time of the message that needs to be withdrawn or within the display time range, a withdrawal instruction carrying the identity of the push message may be sent to the client to indicate that the push message is withdrawn.
Further optionally, the withdrawal instruction may further carry a push type of the push message that needs to be withdrawn, so that the client may search for the push message corresponding to the identity based on the push type to withdraw, so as to reduce a search range and improve push message search efficiency.
For example, if the server issues an error push message, the push message is a notification bar message, and the push message is in the Jason format, for example, the main message body composition may be as follows:
the start time is a display start time (i.e., the earliest display time) of the push message, the end time is a display end time (i.e., the latest display time) of the push message, that is, the display time of the push message is a time period between the start time and the end time, the push message can be displayed only in the time period of the client, and no notification is displayed even if the client receives the push message at other times. Further, the title and the content are a main title and a subtitle of the notification bar, respectively; the url is used for indicating the page type opened after the push message is opened; the section is a message type, the notification is a notification bar, and of course, the section may be of other types. The action is an action value to open the url, and different numbers may indicate different operation types. The pushed is the identity of the push message.
Further, when the push message needs to be withdrawn, a withdrawal instruction carrying the identity of the push message can be sent to the client. For example, the retire instruction may be composed as follows:
wherein, the data is a digest of the wrong push message, i.e. an identity; the section is the type of the wrong push message; the action may indicate the type of operation of the erroneous push message, with different numbers indicating different types of operation; the destroy is a destroy withdrawal operation, and the destroy is a fixed field, or other fields may also be used to represent the destroy withdrawal operation, which is not limited in the embodiments of the present invention. So that the client can search the push message based on the withdrawal instruction to perform the message withdrawal operation.
In the embodiment of the invention, the server can detect whether the issued push message needs to be withdrawn, and can acquire the identity of the push message when the push message needs to be withdrawn, and send the withdrawal instruction carrying the identity to the client, so that the client can delete the push message corresponding to the identity based on the identity to realize the withdrawal of the push message, and thus after the meaningless or wrong push message is issued to a production environment and touches a user, the meaningless or wrong push message can be withdrawn in time before a scale effect is not formed, the user is prevented from looking up, the disturbance to the user is reduced, the problem fermentation is avoided, and the negative feedback of the user is reduced.
Further, referring to fig. 2, fig. 2 is a flowchart illustrating another message revocation method according to an embodiment of the present invention. Specifically, as shown in fig. 2, the message revocation method according to the embodiment of the present invention may include the following steps:
201. and receiving a withdrawal instruction sent by the server, wherein the withdrawal instruction carries the identity of the push message to be withdrawn.
Optionally, the method of the embodiment of the present invention may be specifically applied to a client or a terminal device (hereinafter referred to as a terminal) installed with the client, where the terminal may include a smart phone (such as an Android phone, an iOS phone, and the like), a tablet computer, a Mobile Internet device (MID, for short), a personal computer, and the like, and the embodiment of the present invention is not limited.
202. And searching the push message corresponding to the identity identification, and deleting the push message corresponding to the identity identification.
Specifically, when receiving a push instruction sent by a server and used for instructing to withdraw a certain push message, a terminal (client) may obtain an identity carried by the withdrawal instruction, where the identity is used to identify identity information of the push message that needs to be withdrawn. Therefore, the terminal can search the push message corresponding to the identity based on the identity, the searched push message is the push message needing to be withdrawn, and the push message can be deleted to withdraw the push message.
Optionally, the withdrawal instruction may also carry a push type of the push message that needs to be withdrawn. The searching for the push message corresponding to the identity may specifically be: determining a push message set corresponding to a push type included in the withdrawal instruction, wherein the push message set includes at least one push message; and searching the push message corresponding to the identity identification from the push message set. Therefore, the terminal can determine a push message set in a smaller range based on the push type, and withdraw the push message set by searching the push message set in the smaller range corresponding to the identity identifier, so that the search range is reduced, and the push message search efficiency is improved.
Further optionally, before deleting the push message corresponding to the identity, the terminal may further detect whether a click check operation for the push message corresponding to the identity occurs; and when detecting that the click viewing operation does not occur, executing the step of deleting the push message corresponding to the identity identification. That is, the terminal may determine whether to respond to the withdrawal instruction by detecting whether the user has viewed the push message. For example, the terminal may delete the push message in response to the withdrawal instruction when detecting that the user does not view the push message that needs to be withdrawn; otherwise, if it is detected that the user has viewed the push message, the withdrawal instruction may be ignored, and no processing is performed. So that an error push message on the line that has been issued can be withdrawn from destruction without the user looking at it.
Further optionally, after the terminal deletes the push message corresponding to the identity, a response message may be returned to the server to indicate that the message revocation operation with respect to the revocation instruction is successful.
In the embodiment of the invention, when receiving a withdrawal instruction which is sent by a server and carries an identity of a push message to be withdrawn, a terminal can search the push message corresponding to the identity based on the identity and delete the push message to withdraw the push message, so that after the meaningless or wrong push message is released to a production environment and touches a user, the meaningless or wrong push message can be withdrawn in time before a scale effect is not formed, the user is prevented from looking up, the disturbance to the user is reduced, the problem fermentation is avoided, and the negative feedback of the user is reduced.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a message revocation apparatus according to an embodiment of the present invention. Specifically, the message revocation apparatus according to the embodiment of the present invention may be specifically disposed in a server. As shown in fig. 3, the message revocation apparatus according to an embodiment of the present invention may include a first detection module 11, an acquisition module 12, and a sending module 13. Wherein the content of the first and second substances,
the first detection module 11 is configured to detect whether the issued push message needs to be withdrawn;
the obtaining module 12 is configured to obtain an identity of the push message when the first detecting module 11 detects that the push message needs to be withdrawn;
the sending module 13 is configured to send a withdrawal instruction carrying the identity to a client, so that the client deletes the push message corresponding to the identity based on the identity.
Specifically, when the first detecting module 11 determines that a certain push message needs to be withdrawn, the obtaining module 12 may obtain the identity of the push message. The identity identifier corresponds to the push message one to one, that is, the identity identifier is a unique identifier for identifying the identity of the push message, and the identity identifiers of different push messages are different.
Optionally, in an embodiment of the present invention, the apparatus may further include:
a second detecting module 14, configured to detect whether a current time is within a valid time period of the push message;
a notifying module 15, configured to notify the sending module 13 to send a withdrawal instruction carrying the identity to the client when the second detecting module 14 detects that the current time is within the valid time period range of the push message.
Further optionally, the valid time period includes a display time of the push message; the second detection module 14 may be specifically configured to:
detecting whether the current time is before the latest display time indicated by the display time of the push message;
and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message.
Specifically, the valid time period may include any time before the latest display time of the push message, and when the second detection module 14 detects that the current time is before the display time of the message that needs to be withdrawn or within the display time range, the notification module 15 may notify the sending module 13 to send a withdrawal instruction carrying the identity of the push message to the client, so as to instruct to withdraw the push message.
Further optionally, the withdrawal instruction may also carry a push type of the push message. Therefore, the client can search the push message corresponding to the identity identification for withdrawal based on the push type, so that the search range is reduced, and the push message search efficiency is improved.
In the embodiment of the invention, the server can detect whether the issued push message needs to be withdrawn, and can acquire the identity of the push message when the push message needs to be withdrawn, and send the withdrawal instruction carrying the identity to the client, so that the client can delete the push message corresponding to the identity based on the identity to realize the withdrawal of the push message, and thus after the meaningless or wrong push message is issued to a production environment and touches a user, the meaningless or wrong push message can be withdrawn in time before a scale effect is not formed, the user is prevented from looking up, the disturbance to the user is reduced, the problem fermentation is avoided, and the negative feedback of the user is reduced.
Further, referring to fig. 4, fig. 4 is a schematic structural diagram of another message revocation apparatus according to an embodiment of the present invention. Specifically, as shown in fig. 4, the message revocation apparatus according to the embodiment of the present invention may include a receiving module 21, a searching module 22, and a processing module 23. Wherein the content of the first and second substances,
the receiving module 21 is configured to receive a withdrawal instruction sent by the server, where the withdrawal instruction carries an identity of a push message that needs to be withdrawn.
Optionally, the apparatus according to the embodiment of the present invention may be a client or may be specifically installed in a terminal device (hereinafter referred to as a terminal) installed with the client, where the terminal may include a smart phone (such as an Android phone, an iOS phone, and the like), a tablet computer, an MID, a personal computer, and the like, and the embodiment of the present invention is not limited.
The searching module 22 is configured to search for the push message corresponding to the identity.
The processing module 23 is configured to delete the push message corresponding to the identity identifier found by the finding module 22.
Specifically, when receiving a push instruction sent by the server and used for instructing to withdraw a certain push message, the receiving module 21 may obtain an identity carried by the withdrawal instruction, where the identity is used to identify identity information of the push message that needs to be withdrawn. So that the searching module 22 may search for the push message corresponding to the identity based on the identity, where the searched push message is the push message that needs to be withdrawn, and then delete the push message further through the processing module 23, so as to withdraw the push message.
Optionally, in this embodiment of the present invention, the withdrawal instruction further carries a push type of the push message; the lookup module 22 may be specifically configured to:
determining a push message set corresponding to a push type included in the withdrawal instruction, wherein the push message set includes at least one push message;
and searching the push message corresponding to the identity identification from the push message set.
Optionally, in an embodiment of the present invention, the apparatus may further include:
the detection module 24 is configured to detect whether a click check operation for the push message corresponding to the identity occurs;
a message notification module 25, configured to notify the processing module 23 to delete the push message corresponding to the identity identifier found by the finding module 22 when the detecting module 24 detects that the click check operation does not occur.
In the embodiment of the invention, when receiving a withdrawal instruction which is sent by a server and carries an identity of a push message to be withdrawn, a terminal can search the push message corresponding to the identity based on the identity and delete the push message to withdraw the push message, so that after the meaningless or wrong push message is released to a production environment and touches a user, the meaningless or wrong push message can be withdrawn in time before a scale effect is not formed, the user is prevented from looking up, the disturbance to the user is reduced, the problem fermentation is avoided, and the negative feedback of the user is reduced.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a message revocation system according to an embodiment of the present invention. Specifically, as shown in fig. 5, the message revocation system according to the embodiment of the present invention includes a server 1 and a client 2; wherein the content of the first and second substances,
the server 1 is used for detecting whether the issued push message needs to be withdrawn; when the push message needs to be withdrawn, acquiring an identity of the push message; sending a withdrawal instruction carrying the identity identifier to the client 2;
the client 2 is configured to receive a withdrawal instruction sent by the server 1, where the withdrawal instruction carries an identity of a push message to be withdrawn; and searching the push message corresponding to the identity identification, and deleting the push message corresponding to the identity identification.
Specifically, the server 1 and the client 2 in the embodiment of the present invention may refer to the description related to the above embodiment, which is not repeated herein.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention. Specifically, as shown in fig. 6, the server according to the embodiment of the present invention may include: at least one processor 100, at least one communication interface 200, memory 300, etc. Wherein the components are communicatively coupled via one or more buses 400. Those skilled in the art will appreciate that the configuration of the server shown in fig. 6 is not intended to limit embodiments of the present invention, and may be a bus configuration, a star configuration, a configuration including more or less components than those shown, a combination of certain components, or a different arrangement of components. Wherein:
the processor 100 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by operating or executing programs and/or modules stored in the memory 300 and calling data stored in the memory 300. The processor 100 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 100 may include only a Central Processing Unit (CPU), or may be a combination of a CPU, a Digital Signal Processor (DSP), a Graphics Processing Unit (GPU), and various control chips. In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
The communication interface 200 may include a standard touch screen, keyboard, camera, etc., and may also include a wired interface, wireless interface, etc.
The memory 300 may be used to store software programs and modules, and the processor 100 and the communication interface 200 execute various functional applications of the server and implement data processing by calling the software programs and modules stored in the memory 300. The memory 300 mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the data storage area may store data created according to the use of the server, and the like. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
Specifically, the processor 100 may call an application program stored in the memory 300 for performing the following steps:
detecting whether the published push message needs to be withdrawn;
when the push message needs to be withdrawn, acquiring an identity of the push message;
sending a withdrawal instruction carrying the identity identifier to a client through the communication interface 200, so that the client deletes the push message corresponding to the identity identifier based on the identity identifier.
Optionally, before the processor 100 invokes the application program stored in the memory 300 to execute the revocation instruction carrying the identity identifier, the following steps are further performed:
detecting whether the current time is within the effective time period range of the push message;
and when the current time is within the effective time period range of the push message, executing the step of sending a withdrawal instruction carrying the identity identifier to the client.
Optionally, the valid time period includes a display time of the push message; the processor 100 invokes the application program stored in the memory 300 to perform the following steps to detect whether the current time is within the valid time period of the push message:
detecting whether the current time is before the latest display time indicated by the display time of the push message;
and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message.
Optionally, the withdrawal instruction further carries a push type of the push message.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Specifically, as shown in fig. 7, the terminal according to the embodiment of the present invention may include: at least one processor 500, at least one communication interface 600, memory 700, and the like. Wherein the components are communicatively coupled via one or more buses 800. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 7 is not intended to limit embodiments of the present invention, and may be a bus configuration, a star configuration, a combination of more or fewer components than those shown, or a different arrangement of components. Wherein:
the processor 500 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing programs and/or modules stored in the memory 700 and calling data stored in the memory 700. The processor 500 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 500 may include only a Central Processing Unit (CPU), or may be a combination of a CPU, a Digital Signal Processor (DSP), a Graphics Processing Unit (GPU), and various control chips. In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
The memory 700 may be used to store software programs and modules, and the processor 500 and the communication interface 600 execute various functional applications of the terminal and implement data processing by calling the software programs and modules stored in the memory 700. The memory 700 mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the data storage area may store data created according to the use of the terminal, and the like. In the embodiment of the present invention, the operating system may be an Android system, an iOS system, a Windows operating system, or the like.
Specifically, the processor 500 invokes an application program stored in the memory 700 for performing the following steps:
receiving a withdrawal instruction sent by a server through the communication interface 600, where the withdrawal instruction carries an identity of a push message to be withdrawn;
and searching the push message corresponding to the identity identification, and deleting the push message corresponding to the identity identification.
Optionally, the withdrawal instruction further carries a push type of the push message; the processor 500 invokes the application program stored in the memory 700 to execute the step of searching the push message corresponding to the identity identifier, specifically executing the following steps:
determining a push message set corresponding to a push type included in the withdrawal instruction, wherein the push message set includes at least one push message;
and searching the push message corresponding to the identity identification from the push message set.
Optionally, before the processor 500 invokes the application program stored in the memory 700 to execute the step of deleting the push message corresponding to the identity, the processor is further configured to execute the following steps:
detecting whether a click check operation aiming at a push message corresponding to the identity mark occurs or not;
and when detecting that the click viewing operation does not occur, executing the step of deleting the push message corresponding to the identity identification.
In the embodiment of the invention, the server can detect whether the issued push message needs to be withdrawn, and can acquire the identity of the push message and send the withdrawal instruction carrying the identity to the client when determining that the push message needs to be withdrawn, so that the client can delete the push message corresponding to the identity based on the identity to realize the withdrawal of the push message, thereby withdrawing the meaningless or wrong push message in time and reducing the disturbance to the user.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "a specific embodiment," "an example," "a specific example," or "some examples" or the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (6)
1. A message revocation method, comprising:
detecting whether the published push message needs to be withdrawn;
when the push message needs to be withdrawn, acquiring an identity of the push message and a push type of the push message;
detecting whether the current time is within the effective time period range of the push message;
when the current time is within the effective time period range of the push message, a withdrawal instruction carrying the identity identifier and the push type is sent to a client, so that the client determines a push message set corresponding to the push type based on the push type, searches the push message corresponding to the identity identifier from the push message set, detects whether a click check operation aiming at the push message corresponding to the identity identifier occurs, and deletes the push message corresponding to the identity identifier when detecting that the click check operation does not occur.
2. The method of claim 1, wherein the valid period of time comprises a display time of the push message; the detecting whether the current time is within the valid time period range of the push message includes:
detecting whether the current time is before the latest display time indicated by the display time of the push message;
and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message.
3. A message revocation method, comprising:
receiving a withdrawal instruction sent by a server, wherein the withdrawal instruction carries an identity of a push message to be withdrawn and a push type of the push message, and the withdrawal instruction is sent by the server when the server detects that the current time is within an effective time period range of the push message;
determining a push message set corresponding to a push type included in the withdrawal instruction, wherein the push message set includes at least one push message;
searching for a push message corresponding to the identity identifier from the push message set, and detecting whether a click check operation aiming at the push message corresponding to the identity identifier occurs;
and when detecting that the click viewing operation does not occur, deleting the push message corresponding to the identity identification.
4. A message revocation apparatus, comprising:
the first detection module is used for detecting whether the issued push message needs to be withdrawn or not;
the acquisition module is used for acquiring the identity of the push message and the push type of the push message when the first detection module detects that the push message needs to be withdrawn;
the second detection module is used for detecting whether the current time is within the effective time period range of the push message;
a sending module, configured to send a withdrawal instruction carrying the identity and the push type to a client when the second detection module detects that the current time is within an effective time period of the push message, so that the client determines a push message set corresponding to the push type based on the push type, finds out the push message corresponding to the identity from the push message set, detects whether a click check operation for the push message corresponding to the identity occurs, and deletes the push message corresponding to the identity when detecting that the click check operation does not occur.
5. The apparatus of claim 4, wherein the valid period of time comprises a display time of the push message; the second detection module is specifically configured to:
detecting whether the current time is before the latest display time indicated by the display time of the push message;
and when the current time is before the latest display time, determining that the current time is within the range of the effective time period of the push message.
6. A message revocation apparatus, comprising:
a receiving module, configured to receive a withdrawal instruction sent by a server, where the withdrawal instruction carries an identity of a push message to be withdrawn and a push type of the push message, and the withdrawal instruction is sent by the server when detecting that a current time is within an effective time period of the push message;
a search module, configured to determine a push message set corresponding to a push type included in the revocation instruction, where the push message set includes at least one push message, and search for a push message corresponding to the identity from the push message set;
the detection module is used for detecting whether click check operation aiming at the push message corresponding to the identity identification occurs or not;
and the processing module is used for deleting the push message corresponding to the identity identifier searched by the searching module when the detecting module detects that the click checking operation does not occur.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611159663.3A CN106657316B (en) | 2016-12-15 | 2016-12-15 | Message withdrawing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611159663.3A CN106657316B (en) | 2016-12-15 | 2016-12-15 | Message withdrawing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106657316A CN106657316A (en) | 2017-05-10 |
CN106657316B true CN106657316B (en) | 2020-01-21 |
Family
ID=58822890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611159663.3A Expired - Fee Related CN106657316B (en) | 2016-12-15 | 2016-12-15 | Message withdrawing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657316B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107395487A (en) * | 2017-05-27 | 2017-11-24 | 佛山语奥科技有限公司 | Message updating method and system |
CN109688042B (en) * | 2017-10-18 | 2021-12-31 | 阿里巴巴集团控股有限公司 | Message processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003023564A3 (en) * | 2001-09-11 | 2003-11-20 | Fx Alliance Llc | Method and apparatus for conducting financial transactions |
CN1988511A (en) * | 2005-12-23 | 2007-06-27 | 腾讯科技(深圳)有限公司 | Method for withdrawing instant communication news and instant communication system |
CN101384009A (en) * | 2008-10-08 | 2009-03-11 | 深圳华为通信技术有限公司 | Short message cancelling method and terminal |
CN103516576A (en) * | 2012-06-21 | 2014-01-15 | 阿尔卡特朗讯公司 | Method for processing instant message and device thereof |
CN105827705A (en) * | 2016-03-22 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Marquee message push method and device |
-
2016
- 2016-12-15 CN CN201611159663.3A patent/CN106657316B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003023564A3 (en) * | 2001-09-11 | 2003-11-20 | Fx Alliance Llc | Method and apparatus for conducting financial transactions |
CN1988511A (en) * | 2005-12-23 | 2007-06-27 | 腾讯科技(深圳)有限公司 | Method for withdrawing instant communication news and instant communication system |
CN101384009A (en) * | 2008-10-08 | 2009-03-11 | 深圳华为通信技术有限公司 | Short message cancelling method and terminal |
CN103516576A (en) * | 2012-06-21 | 2014-01-15 | 阿尔卡特朗讯公司 | Method for processing instant message and device thereof |
CN105827705A (en) * | 2016-03-22 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Marquee message push method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106657316A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107247722B (en) | File scanning method and device and intelligent terminal | |
CN104978180B (en) | Unprocessed event prompting method and device and mobile terminal | |
US10838917B2 (en) | Junk picture file identification method, apparatus, and electronic device | |
US20180239839A1 (en) | Method and Apparatus for Identifying To-Be-Cleaned Data, and Electronic Device | |
CN110532107B (en) | Interface calling method, device, computer equipment and storage medium | |
CN104572348A (en) | Terminal | |
CN104361021A (en) | Webpage encoding identifying method and device | |
CN111782728A (en) | Data synchronization method, device, electronic equipment and medium | |
CN106657316B (en) | Message withdrawing method and device | |
CN106789973B (en) | Page security detection method and terminal equipment | |
JP2019522847A (en) | Method, device and terminal device for extracting data | |
CN111641554B (en) | Message processing method and device and computer readable storage medium | |
CN107357479B (en) | Application program management method and device | |
CN111124627B (en) | Method and device for determining call initiator of application program, terminal and storage medium | |
CN108846061B (en) | Method, device and terminal equipment for shielding advertisement | |
CN109104481B (en) | File integrity detection method, file integrity detection device and terminal equipment | |
CN108536512B (en) | Interface switching method and device and terminal equipment | |
CN107145375B (en) | Kernel loading method, device, system, user terminal and storage medium | |
CN106302821B (en) | Data request method and equipment thereof | |
CN107608827B (en) | Backup method and terminal for package configuration file and related medium product | |
CN104572349A (en) | Data backup method | |
CN109766499B (en) | Group joining method and device and computer equipment | |
CN104850551B (en) | Data processing method and device and mobile terminal | |
CN110019631B (en) | Method and device for processing multi-dimensional map | |
CN104683317B (en) | UI data extraction method, client, server and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200121 Termination date: 20211215 |
|
CF01 | Termination of patent right due to non-payment of annual fee |