[go: up one dir, main page]

CN108270853A - A kind of message treatment method and mobile terminal - Google Patents

A kind of message treatment method and mobile terminal Download PDF

Info

Publication number
CN108270853A
CN108270853A CN201810034586.1A CN201810034586A CN108270853A CN 108270853 A CN108270853 A CN 108270853A CN 201810034586 A CN201810034586 A CN 201810034586A CN 108270853 A CN108270853 A CN 108270853A
Authority
CN
China
Prior art keywords
target message
preset
message
displayed
display
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.)
Granted
Application number
CN201810034586.1A
Other languages
Chinese (zh)
Other versions
CN108270853B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810034586.1A priority Critical patent/CN108270853B/en
Publication of CN108270853A publication Critical patent/CN108270853A/en
Application granted granted Critical
Publication of CN108270853B publication Critical patent/CN108270853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of message treatment method and mobile terminal, this method include:Obtain the push request of target message;Judge whether the target message meets default discarding rule;If the target message meets default discarding rule, the target message is preserved, and the target message is shown when meeting preset condition.The technical solution of the embodiment of the present invention passes through when target message meets default discarding rule, first the target message is preserved, and show the target message when meeting certain preset condition, avoid the useful message for making user that can not know possible needs because of directly message is abandoned.

Description

一种消息处理方法及移动终端A message processing method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种消息处理方法及移动终端。The present invention relates to the technical field of communications, in particular to a message processing method and a mobile terminal.

背景技术Background technique

手机、平板电脑及其他移动终端在使用过程中,操作系统及安装在操作系统中应用程序会向用户推送消息。而移动终端的制造商或操作系统的供应商出于用户体验等因素考虑,会设定一定的消息丢弃规则,并在接收到的推送消息满足这些规则的时候,直接丢弃一些推送消息。这样丢弃的消息是在未通知用户的情况下进行的,这些被丢弃的消息也无法恢复,因此也有可能使用户丢失一些有用的信息。During the use of mobile phones, tablet computers and other mobile terminals, the operating system and the applications installed in the operating system will push messages to the user. In consideration of factors such as user experience, the manufacturer of the mobile terminal or the supplier of the operating system will set certain message discarding rules, and when the received push messages meet these rules, some push messages will be discarded directly. Such discarded messages are carried out without notifying the user, and these discarded messages cannot be recovered, so the user may lose some useful information.

发明内容Contents of the invention

本发明实施例提供一种消息处理方法及移动终端,以解决现有的移动终端直接丢弃消息导致用户丢失有用信息的问题。Embodiments of the present invention provide a message processing method and a mobile terminal, so as to solve the problem that the existing mobile terminal directly discards the message, causing the user to lose useful information.

第一方面,本发明实施例提供了一种消息处理方法,应用于移动终端,包括:In the first aspect, an embodiment of the present invention provides a message processing method applied to a mobile terminal, including:

获取目标消息的推送请求;Obtain the push request of the target message;

判断所述目标消息是否符合预设丢弃规则;judging whether the target message complies with a preset discarding rule;

若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。If the target message meets the preset discarding rule, the target message is saved, and the target message is displayed when the preset condition is met.

第二方面,本发明实施例还提供了一种移动终端,其特征在于,包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, which is characterized in that it includes:

获取模块,用于获取目标消息的推送请求;An acquisition module, configured to acquire a push request of a target message;

第一判断模块,用于判断所述目标消息是否符合预设丢弃规则;A first judging module, configured to judge whether the target message complies with a preset discarding rule;

保存显示模块,用于若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。The saving and displaying module is configured to save the target message if the target message meets a preset discarding rule, and display the target message when a preset condition is met.

第三方面,本发明实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述的消息处理方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and operable on the processor, and the computer program is executed by the processor When implementing the above steps of the message processing method.

第四方面,本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的消息处理方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned message processing method are implemented.

这样,本发明实施例中,在目标消息符合预设丢弃规则时,先将该目标消息保存,并在满足一定的预设条件时显示该目标消息,避免了因为直接丢弃消息而使用户无法获知可能需要的有用消息。In this way, in the embodiment of the present invention, when the target message meets the preset discarding rules, the target message is saved first, and the target message is displayed when certain preset conditions are met, avoiding that the user cannot know the message because the message is directly discarded. Useful messages that may be needed.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本发明实施例提供的一种消息处理方法的流程图;FIG. 1 is a flowchart of a message processing method provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种消息处理方法的流程图;FIG. 2 is a flow chart of another message processing method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种移动终端的结构图;FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种移动终端的结构图;FIG. 4 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;

图5为本发明实施例提供的另一种移动终端的结构图;FIG. 5 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;

图6为本发明实施例提供的另一种移动终端的结构图;FIG. 6 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;

图7为本发明实施例提供的另一种移动终端的结构图;FIG. 7 is a structural diagram of another mobile terminal provided by an embodiment of the present invention;

图8为本发明实施例提供的另一种移动终端的结构图。FIG. 8 is a structural diagram of another mobile terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

请参见图1,图1是本发明实施例提供的一种消息处理方法的流程图,如图1所示,包括以下步骤:Please refer to FIG. 1. FIG. 1 is a flow chart of a message processing method provided by an embodiment of the present invention. As shown in FIG. 1, it includes the following steps:

步骤101、获取目标消息的推送请求。Step 101, acquiring a push request of a target message.

本实施例中首先获取目标消息的推送请求,可以理解为,各种移动终端中安装有操作系统,为了实现各种功能,操作系统上还安装有各种应用程序,操作系统和这些安装在操作系统上的应用程序在接收到某些消息后,会以推送的方式显示这些消息。In this embodiment, the push request of the target message is first obtained. It can be understood that operating systems are installed in various mobile terminals. In order to realize various functions, various application programs are also installed on the operating systems. After the application program on the system receives certain messages, it will display these messages in a push manner.

本实施例中具体以一部安装有安卓系统(Android)的移动终端为例说明,显然,实际使用时还可以是安装有其他操作系统或其他类型的移动终端,本实施例中对移动终端的类型和移动终端上安装的操作系统不作具体限制。Specifically, in this embodiment, a mobile terminal with an Android system (Android) is installed as an example. Obviously, other operating systems or other types of mobile terminals can also be installed during actual use. In this embodiment, the mobile terminal The type and the operating system installed on the mobile terminal are not specifically limited.

该移动终端上的应用程序在接收到来自服务器的消息后生成相应的推送该消息的请求,例如,某聊天软件接收到一条聊天消息时,将会生成该目标聊天消息的推送请求;该移动终端上的应用程序还可以按照一定的设定模式产生一推送消息时,例如日历根据记载的备忘事项生成相应的提醒消息,则会生成该目标提醒消息的推送请求。The application program on the mobile terminal generates a corresponding request for pushing the message after receiving the message from the server, for example, when a chat software receives a chat message, it will generate a push request for the target chat message; the mobile terminal The application program on the mobile phone can also generate a push message according to a certain setting mode. For example, when the calendar generates a corresponding reminder message according to the recorded memo, it will generate a push request for the target reminder message.

在一具体实施方式中,该目标消息的推送请求是请求在下拉菜单中推送目标消息的,显然,还可以请求通过锁屏弹窗等其他方式推送,本实施例中对目标消息的具体推送方式不作具体限制。In a specific implementation, the push request of the target message is a request to push the target message in the drop-down menu. Obviously, it can also be requested to be pushed through other methods such as lock screen pop-up windows. The specific push method of the target message in this embodiment Not specifically limited.

步骤102、判断所述目标消息是否符合预设丢弃规则。Step 102, judging whether the target message complies with a preset discarding rule.

本实施例中进一步判断目标消息是否符合预设丢弃规则,本实施例中的符合预设丢弃规则的消息指的是某些在一定情况下被直接丢弃的消息。例如移动终端中操作系统的供应商会有针对性的对操作系统做出一定的设定,各移动终端供应商在自己生产的移动终端中均会对操作系统做出一定的调整和修改。而根据操作系统供应商的设定,某些消息会被丢弃不作显示,例如广告消息。在其他一些具体实施方式中,显然还可以通过其他方式预设丢弃规则,例如根据用户的需求由用户自行设定相应的丢弃规则。In this embodiment, it is further judged whether the target message conforms to the preset discarding rule. The message conforming to the preset discarding rule in this embodiment refers to some messages that are directly discarded under certain circumstances. For example, the supplier of the operating system in the mobile terminal will make certain settings for the operating system in a targeted manner, and each mobile terminal supplier will make certain adjustments and modifications to the operating system in the mobile terminals produced by itself. And according to the settings of the operating system provider, some messages will be discarded and not displayed, such as advertisement messages. In some other specific implementation manners, it is obvious that the discarding rules can also be preset in other ways, for example, the user can set corresponding discarding rules according to the user's needs.

步骤103、若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。Step 103: If the target message meets the preset discarding rule, save the target message, and display the target message when the preset condition is met.

本实施例中在目标消息符合预设丢弃规则时,保存该目标消息,从而避免了直接丢弃该目标消息,进一步的,在满足一定预设条件时,进一步显示该目标消息。In this embodiment, when the target message meets the preset discarding rule, the target message is saved, thereby avoiding directly discarding the target message, and further, when a certain preset condition is met, the target message is further displayed.

本实施例中的预设条件可以预先设定,也可以由用户根据具体情况有针对性的设定。因为被设定为符合预设丢弃规则的消息本身并不会是重要消息,例如可能是广告消息等,但是考虑到用户仍可能对相关的内容存在一定的需求,例如如果用户恰好需要购买某种商品,则与之相关的广告消息在这段时间内对于用户来说就是有用消息,所以本实施例中通过在满足一定预设条件时,显示该目标消息,确保用户不会因为消息被直接丢弃而丢失某些可能有用的信息。The preset conditions in this embodiment can be set in advance, or can be set in a targeted manner by the user according to specific situations. Because the messages that are set to meet the preset discarding rules are not important messages themselves, such as advertising messages, etc., but considering that users may still have certain needs for related content, for example, if users happen to need to purchase some commodity, the relevant advertising message is useful news for the user during this period, so in this embodiment, by displaying the target message when a certain preset condition is met, it is ensured that the user will not be directly discarded because of the message And some potentially useful information is lost.

显然,如果目标消息不符合预设丢弃规则,则可以根据需求或根据设置选择相应的处理方式,例如直接结束处理流程。Obviously, if the target message does not comply with the preset discarding rule, you can choose a corresponding processing method according to the requirement or according to the setting, for example, directly end the processing process.

本发明实施例中,上述方法可以应用于移动终端,该移动终端可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above method can be applied to a mobile terminal, and the mobile terminal can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), Mobile internet device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.

本实施例中,在目标消息符合预设丢弃规则时,先将该目标消息保存,并在满足一定的预设条件时显示该目标消息,避免了因为直接丢弃消息而使用户无法获知可能需要的有用消息。In this embodiment, when the target message meets the preset discarding rules, the target message is saved first, and the target message is displayed when a certain preset condition is met, which avoids that the user cannot know the information that may be needed due to the direct discarding of the message. Useful news.

请参见图2,图2是本发明实施例提供的另一种消息处理方法的流程图,本实施例与图1所示实施例的主要区别在于还在显示消息后对预设丢弃规则进行修改,如图2所示,该方法包括以下步骤:Please refer to Figure 2, Figure 2 is a flow chart of another message processing method provided by the embodiment of the present invention, the main difference between this embodiment and the embodiment shown in Figure 1 is that the preset discarding rules are modified after the message is displayed , as shown in Figure 2, the method includes the following steps:

步骤201、获取目标消息的推送请求。Step 201, acquiring a push request of a target message.

步骤202、判断所述目标消息是否符合预设丢弃规则。Step 202, judging whether the target message complies with a preset discarding rule.

在步骤202之后,如果目标消息不符合预设丢弃规则,则可以按照需求或用户的设定继续对目标消息进行处理。例如,在步骤202之后,还可以包括:After step 202, if the target message does not comply with the preset discarding rule, the target message may continue to be processed according to requirements or user settings. For example, after step 202, it may also include:

若所述目标消息不符合预设丢弃规则,则判断是否需要显示所述目标消息;If the target message does not meet the preset discarding rules, then determine whether the target message needs to be displayed;

若需要显示所述目标消息,则显示所述目标消息;If the target message needs to be displayed, then display the target message;

若不需要显示所述目标消息,则保存所述目标消息。If the target message does not need to be displayed, the target message is saved.

本实施例中,显示目标消息可以是显示该消息的具体内容,也可以是显示提示消息以提示存在需要查看的消息,而本实施例中需要显示的目标消息指的可以是以各种形式显示出来的消息,例如,用户可以在某安卓系统的移动终端上设定某应用程序的通知管理为不允许通知,那么该应用程序在接收到消息推送请求后,不会显示该消息,则该消息为不需要显示的消息,但该消息仍会保存在移动终端中;如果某应用程序的通知管理为允许通知,那么该应用程序在接收到消息推送请求后,会以在下拉菜单中显示或在锁屏界面上显示该消息等形式来显示该消息,则该消息为需要显示的消息。In this embodiment, displaying the target message can be displaying the specific content of the message, or displaying a prompt message to prompt that there is a message that needs to be viewed, and the target message that needs to be displayed in this embodiment refers to that it can be displayed in various forms For example, the user can set the notification management of an application program on an Android mobile terminal to disallow notifications, then the application program will not display the message after receiving the message push request, and the message It is a message that does not need to be displayed, but the message will still be saved in the mobile terminal; if the notification management of an application is to allow notification, then the application will display it in the drop-down menu or in the If the message is displayed in a form such as displaying the message on the lock screen interface, then the message is a message that needs to be displayed.

在目标消息不符合预设丢弃规则时,可以进一步根据需求判断是否需要显示该目标消息,如果不需要显示该目标消息,则将该目标消息保存在移动终端中,以供用户后续调用或查看该目标消息。如果需要显示该目标消息,则可以根据情况显示该目标消息,以便用户了解其中包含的内容。When the target message does not meet the preset discarding rules, it can be further judged according to the needs whether the target message needs to be displayed, and if the target message does not need to be displayed, the target message is saved in the mobile terminal for subsequent calling or viewing of the target message by the user. target message. If the target message needs to be displayed, the target message can be displayed according to the situation so that the user can understand the content contained therein.

可选的,所述若需要显示所述目标消息,则显示所述目标消息的步骤,包括:Optionally, the step of displaying the target message if the target message needs to be displayed includes:

判断预设应用程序是否处于前台运行状态;Determine whether the preset application program is running in the foreground;

若所述预设应用程序未处于前台运行状态,则显示所述目标消息;If the preset application program is not running in the foreground, then display the target message;

若所述预设应用程序处于前台运行状态,则在所述预设应用程序关闭或切换至后台运行状态后,显示所述目标消息。If the preset application program is in the foreground running state, the target message is displayed after the preset application program is closed or switched to the background running state.

本实施例中的预设应用程序指的是预先设定的在使用时不显示推送消息的应用程序,本实施例中预设应用程序可以根据具体情况和用户的需求来设定,以减少可能对用户带来的干扰。例如,可以将游戏类的应用程序设置为预设应用程序,用户在使用这些预设应用程序玩游戏过程中,这些预设应用程序是处于前台运行的,此时,如果显示推送消息,则可能干扰用户的游戏进程。所以本实施例中,如果预设应用程序未处于前台运行,由于不会对用户的游戏进程产生干扰,所以显示目标消息;如果预设应用程序处于前台运行,则说明用户很可能正在玩游戏,此时,为了避免可能给用户带来的干扰,目标消息不会显示,在游戏结束等情况下,该预设应用程序将被切换至后台运行或者被关闭,本实施例中如果预设应用程序处于前台运行,那么直至该预设应用程序被切换至后台运行或被关闭再显示目标消息,以减少可能对用户的游戏进程可能带来的干扰。显然,本实施例中的预设应用程序可以根据实际情况选择和设置,从而适应不同的使用需求。The preset application program in this embodiment refers to a preset application program that does not display push messages when in use. In this embodiment, the preset application program can be set according to the specific situation and the needs of the user to reduce possible disruption to users. For example, game applications can be set as default applications. When users use these preset applications to play games, these preset applications are running in the foreground. At this time, if a push message is displayed, it may Interfere with the user's game progress. Therefore, in this embodiment, if the preset application program is not running in the foreground, the target message is displayed because it will not interfere with the user's game progress; if the preset application program is running in the foreground, it means that the user is probably playing a game. At this time, in order to avoid possible interference to the user, the target message will not be displayed. When the game is over, the preset application will be switched to the background or closed. In this embodiment, if the preset application If it is running in the foreground, the target message will not be displayed until the preset application is switched to the background or closed, so as to reduce possible interference to the user's game progress. Apparently, the preset application programs in this embodiment can be selected and set according to actual conditions, so as to adapt to different usage requirements.

步骤203、若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。Step 203: If the target message meets the preset discarding rule, save the target message, and display the target message when the preset condition is met.

在该步骤203中,可以根据用户的需求有针对性的设置显示目标消息的条件,从而避免丢失有用消息。例如:保存所述目标消息,并在满足预设条件时显示所述目标消息的步骤之后,还可以包括:In this step 203, the conditions for displaying the target message can be set according to the needs of the user, so as to avoid losing useful messages. For example: after the step of saving the target message and displaying the target message when the preset condition is met, it may also include:

保存所述目标消息;saving said target message;

判断在获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序是否被调用;judging whether the application program associated with the target message is invoked within a preset time period after the push request is acquired;

若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序被调用,则显示所述目标消息;If the application program associated with the target message is invoked within a preset time period after the acquisition of the push request, displaying the target message;

若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序未被调用,则丢弃所述目标消息。If the application program associated with the target message is not invoked within a preset time period after the acquisition of the push request, the target message is discarded.

如果目标消息符合预设丢弃规则,则先保存目标消息,进一步的,判断在获取推送请求之后的预设时长内与目标消息关联的应用程序是否被调用。本实施例中预设时长可以根据用户的需求来设定,例如设置为一周或一个月等其他时长。If the target message conforms to the preset discarding rule, the target message is saved first, and further, it is determined whether the application program associated with the target message is called within a preset time period after the push request is obtained. In this embodiment, the preset duration can be set according to the needs of the user, for example, set to other durations such as one week or one month.

一方面考虑到消息的时效性,另一方面考虑到如果用户对目标消息感兴趣,则会相应的调用与该目标消息相关联的应用程序,所以根据预设时长内,与目标消息关联的应用程序是否被调用来判断目标消息是否可能对用户有用。On the one hand, considering the timeliness of the message, on the other hand, if the user is interested in the target message, the application program associated with the target message will be called accordingly, so according to the preset time period, the application program associated with the target message Whether the procedure is called to determine whether the target message is likely to be useful to the user.

在一具体实施方式中,例如,某应用程序为购物软件,该购物软件推送的广告信息符合预设丢弃规则,那么如果推送了该广告信息,则该广告信息由于满足预设丢弃规则,会被丢弃,并进一步不显示该广告信息,从而避免对用户产生干扰。一般来说,广告中包含的促销信息均是有时效性的,例如该购物软件推送的促销信息为未来一周的促销信息,则可以将预设时长设置为自接收到该促销信息之后的一周,因为该促销信息具有一定时效性,如果超出一周提醒,则该促销信息不再有参考价值。在这一周内,如果用户打开了该购物软件,则证明该用户可能存在一定的购物需求,因此本实施例中如果在所述预设时长内,与目标消息关联的应用程序被调用,则显示目标消息,从而避免用户错过可能有用的目标消息;如果在该预设时长内,与目标消息关联的应用程序未被调用,则认为用户在该促销信息的有效期内很可能没有购物需求,则丢弃该目标消息,避免打扰用户的正常使用。In a specific implementation, for example, if an application program is shopping software, and the advertisement information pushed by the shopping software complies with the preset discarding rules, if the advertisement information is pushed, the advertisement information will be rejected because it meets the preset discarding rules. Discard, and further do not display the advertising information, so as to avoid interference to users. Generally speaking, the promotional information contained in the advertisement is time-sensitive. For example, if the promotional information pushed by the shopping software is promotional information for the next week, the preset duration can be set to one week after receiving the promotional information. Because the promotional information has a certain timeliness, if the reminder exceeds one week, the promotional information will no longer have reference value. During this week, if the user opens the shopping software, it proves that the user may have a certain shopping demand. Therefore, in this embodiment, if the application program associated with the target message is called within the preset time period, it will display Target message, so as to prevent users from missing potentially useful target messages; if the application associated with the target message is not invoked within the preset time period, it is considered that the user probably has no shopping needs within the validity period of the promotional information, and discarded The target message avoids disturbing the normal use of the user.

显然,在其他场景下,或针对其他应用程序,也可以根据具体情况有针对性的调节和改变预设时长以及预设条件,以显示目标消息,避免错过可能有用的目标消息。Obviously, in other scenarios or for other applications, the preset duration and preset conditions can also be adjusted and changed in a targeted manner according to specific situations, so as to display target messages and avoid missing potentially useful target messages.

步骤204、基于已显示的目标消息的类型修改所述预设丢弃规则,其中,与所述已显示的目标消息的类型相同的消息不符合修改后的所述预设丢弃规则。Step 204: Modify the preset discarding rule based on the type of the displayed target message, wherein messages of the same type as the displayed target message do not comply with the modified preset discarding rule.

本实施例中进一步根据已显示的目标消息调整预设丢弃规则,如果用户的操作使某一类型的丢弃规则多次显示,则证明该类型的目标消息很可能是用户需要的消息,因此本实施例中进一步根据已显示的目标消息的类型修改预设丢弃规则,与已显示的目标消息的类型相同的消息不符合该修改后的所述预设丢弃规则,则与已显示的目标消息的类型相同的消息将不会被丢弃。In this embodiment, the preset discarding rule is further adjusted according to the displayed target message. If the user's operation causes a certain type of discarding rule to be displayed multiple times, it proves that this type of target message is likely to be the message that the user needs. Therefore, this implementation In the example, the preset discarding rule is further modified according to the type of the displayed target message. If a message of the same type as the displayed target message does not meet the modified preset discarding rule, then the message with the same type of the displayed target message Identical messages will not be discarded.

进一步的,还可以结合用户对不同应用程序的使用频率及使用习惯对预设丢弃规则作出修改和调整。如果用户经常使用一个应用程序,则可以认为用户对该应用程序的相关推送信息感兴趣,则可以通过修改预设丢弃规则,将与该应用程序相关的消息确认为不符合修改后的预设丢弃规则。同时,本实施例中的步骤204也是可选的步骤,即使不执行该步骤204,也能实现对用户可能有用的目标消息不会直接被丢弃。Furthermore, the preset discarding rules may be modified and adjusted in combination with the user's usage frequency and usage habits of different application programs. If the user frequently uses an application, it can be considered that the user is interested in the relevant push information of the application, and the message related to the application can be confirmed as not complying with the modified preset discarding by modifying the preset discarding rules rule. At the same time, step 204 in this embodiment is also an optional step. Even if step 204 is not performed, it can be realized that target messages that may be useful to the user will not be directly discarded.

本实施例中,在图1所示的实施例的基础上增加了多种可选的实施方式,可以进一步保证可能对用户有用的信息不会被直接丢弃。In this embodiment, a variety of optional implementation manners are added on the basis of the embodiment shown in FIG. 1 , which can further ensure that information that may be useful to the user will not be directly discarded.

请参见图3,图3是本发明实施例提供的移动终端的结构图,如图3所示,移动终端300包括:Please refer to FIG. 3. FIG. 3 is a structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 3, the mobile terminal 300 includes:

获取模块301,用于获取目标消息的推送请求;An acquisition module 301, configured to acquire a push request of a target message;

第一判断模块302,用于判断所述目标消息是否符合预设丢弃规则;A first judging module 302, configured to judge whether the target message complies with a preset discarding rule;

保存显示模块303,用于若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。The saving and displaying module 303 is configured to save the target message if the target message meets a preset discarding rule, and display the target message when a preset condition is met.

可选的,如图4所示,所述保存显示模块303包括:保存子模块3031,用于保存所述目标消息;Optionally, as shown in FIG. 4, the saving display module 303 includes: a saving submodule 3031, configured to save the target message;

第一判断子模块3032,用于判断在获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序是否被调用;The first judging submodule 3032 is used to judge whether the application program associated with the target message is called within a preset time period after the push request is acquired;

显示子模块3033,用于若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序被调用,则显示所述目标消息;A display submodule 3033, configured to display the target message if the application associated with the target message is invoked within a preset time period after the acquisition of the push request;

丢弃子模块3034,用于若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序未被调用,则丢弃所述目标消息。The discarding submodule 3034 is configured to discard the target message if the application associated with the target message is not invoked within a preset period of time after the acquisition of the push request.

可选的,如图5所示,所述移动终端300还包括:Optionally, as shown in FIG. 5, the mobile terminal 300 further includes:

第二判断模块304,用于若所述目标消息不符合预设丢弃规则,则判断是否需要显示所述目标消息;The second judging module 304 is configured to judge whether the target message needs to be displayed if the target message does not comply with the preset discarding rule;

显示模块305,用于若需要显示所述目标消息,则在显示所述目标消息;A display module 305, configured to display the target message if the target message needs to be displayed;

保存模块306,用于若不需要显示所述目标消息,则保存所述目标消息。The saving module 306 is configured to save the target message if the target message does not need to be displayed.

可选的,如图6所示,所述显示模块305包括:Optionally, as shown in FIG. 6, the display module 305 includes:

第二判断子模块3051,用于判断预设应用程序是否处于前台运行状态;The second judging sub-module 3051 is used to judge whether the preset application program is running in the foreground;

显示子模块3052,用于若所述预设应用程序未处于前台运行状态,则显示所述目标消息;以及用于若所述预设应用程序处于前台运行状态,则在所述预设应用程序关闭或切换至后台运行状态后,显示所述目标消息。The display submodule 3052 is configured to display the target message if the preset application is not running in the foreground; After closing or switching to the background running state, display the target message.

可选的,如图7所示,所述移动终端300还包括:Optionally, as shown in FIG. 7, the mobile terminal 300 further includes:

修改模块307,用于基于已显示的目标消息的类型修改所述预设丢弃规则,其中,与所述已显示的目标消息的类型相同的消息不符合修改后的所述预设丢弃规则。A modifying module 307, configured to modify the preset discarding rule based on the type of the displayed target message, wherein messages of the same type as the displayed target message do not comply with the modified preset discarding rule.

本发明实施例提供的移动终端能够实现图1至图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present invention can implement various processes implemented by the mobile terminal in the method embodiments shown in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.

图8为实现本发明各个实施例的一种移动终端的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.

该移动终端800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图5中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and Power supply 811 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 5 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器810,用于:Wherein, the processor 810 is used for:

获取目标消息的推送请求;Obtain the push request of the target message;

判断所述目标消息是否符合预设丢弃规则;judging whether the target message complies with a preset discarding rule;

若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。If the target message meets the preset discarding rule, the target message is saved, and the target message is displayed when the preset condition is met.

可选的,处理器810执行的保存所述目标消息,并在满足预设条件时显示所述目标消息的步骤,包括:Optionally, the step of saving the target message executed by the processor 810 and displaying the target message when a preset condition is met includes:

保存所述目标消息;saving said target message;

判断在获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序是否被调用;judging whether the application program associated with the target message is invoked within a preset time period after the push request is acquired;

若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序被调用,则显示所述目标消息;If the application program associated with the target message is invoked within a preset time period after the acquisition of the push request, displaying the target message;

若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序未被调用,则丢弃所述目标消息。If the application program associated with the target message is not invoked within a preset time period after the acquisition of the push request, the target message is discarded.

可选的,处理器810还用于:Optionally, the processor 810 is also used for:

若所述目标消息不符合预设丢弃规则,则判断是否需要显示所述目标消息;If the target message does not meet the preset discarding rules, then determine whether the target message needs to be displayed;

若需要显示所述目标消息,则显示所述目标消息;If the target message needs to be displayed, then display the target message;

若不需要显示所述目标消息,则保存所述目标消息。If the target message does not need to be displayed, the target message is saved.

可选的,处理器810执行的显示所述目标消息的步骤,包括:Optionally, the step of displaying the target message performed by the processor 810 includes:

判断预设应用程序是否处于前台运行状态;Determine whether the preset application program is running in the foreground;

若所述预设应用程序未处于前台运行状态,则显示所述目标消息;If the preset application program is not running in the foreground, then display the target message;

若所述预设应用程序处于前台运行状态,则在所述预设应用程序关闭或切换至后台运行状态后,显示所述目标消息。If the preset application program is in the foreground running state, the target message is displayed after the preset application program is closed or switched to the background running state.

可选的,处理器810还用于:Optionally, the processor 810 is also used for:

基于已显示的目标消息的类型修改所述预设丢弃规则,其中,与所述已显示的目标消息的类型相同的消息不符合修改后的所述预设丢弃规则。The preset discarding rule is modified based on the type of the displayed target message, wherein messages of the same type as the displayed target message do not comply with the modified preset discarding rule.

应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, the processor 810 processes it; Uplink data is sent to the base station. Generally, the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 802, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与移动终端800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 can also provide audio output related to a specific function performed by the mobile terminal 800 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.

输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The input unit 804 is used for receiving audio or video signals. The input unit 804 may include a graphics processing unit (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processing unit 8041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 806 . The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage media) or sent via the radio frequency unit 801 or the network module 802 . The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 801 for output in the case of a phone call mode.

移动终端800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在移动终端800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 8061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元807可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 807 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072 . The touch panel 8071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 8071 or near the touch panel 8071). operate). The touch panel 8071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 810, receive the command sent by the processor 810 and execute it. In addition, the touch panel 8071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 8071 , the user input unit 807 may also include other input devices 8072 . Specifically, other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图5中,触控面板8071与显示面板8061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 8071 can be covered on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near it, it will be sent to the processor 810 to determine the type of the touch event, and then the processor 810 will The type of event provides a corresponding visual output on the display panel 8061. Although in FIG. 5, the touch panel 8071 and the display panel 8061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元808为外部装置与移动终端800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端800内的一个或多个元件或者可以用于在移动终端800和外部装置之间传输数据。The interface unit 808 is an interface for connecting an external device to the mobile terminal 800 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 808 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 809 can be used to store software programs as well as various data. The memory 809 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器810是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The processor 810 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 809, and calling data stored in the memory 809 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .

移动终端800还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 800 can also include a power supply 811 (such as a battery) for supplying power to various components. Preferably, the power supply 811 can be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,移动终端800包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 800 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器810,存储器809,存储在存储器809上并可在所述处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述消息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 810, a memory 809, and a computer program stored in the memory 809 and operable on the processor 810. When the computer program is executed by the processor 810 Each process of the above embodiment of the message processing method is implemented and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述消息处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above message processing method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (12)

1.一种消息处理方法,其特征在于,包括:1. A message processing method, characterized in that, comprising: 获取目标消息的推送请求;Obtain the push request of the target message; 判断所述目标消息是否符合预设丢弃规则;judging whether the target message complies with a preset discarding rule; 若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。If the target message meets the preset discarding rule, the target message is saved, and the target message is displayed when the preset condition is met. 2.如权利要求1所述的方法,其特征在于,所述保存所述目标消息,并在满足预设条件时显示所述目标消息的步骤,包括:2. The method according to claim 1, wherein the step of saving the target message and displaying the target message when a preset condition is met comprises: 保存所述目标消息;saving said target message; 判断在获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序是否被调用;judging whether the application program associated with the target message is invoked within a preset time period after the push request is acquired; 若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序被调用,则显示所述目标消息;If the application program associated with the target message is invoked within a preset time period after the acquisition of the push request, displaying the target message; 若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序未被调用,则丢弃所述目标消息。If the application program associated with the target message is not invoked within a preset time period after the acquisition of the push request, the target message is discarded. 3.如权利要求1所述的方法,其特征在于,所述判断所述目标消息是否符合预设丢弃规则的步骤之后,还包括:3. The method according to claim 1, further comprising: 若所述目标消息不符合预设丢弃规则,则判断是否需要显示所述目标消息;If the target message does not meet the preset discarding rules, then determine whether the target message needs to be displayed; 若需要显示所述目标消息,则显示所述目标消息;If the target message needs to be displayed, then display the target message; 若不需要显示所述目标消息,则保存所述目标消息。If the target message does not need to be displayed, the target message is saved. 4.如权利要求3所述的方法,其特征在于,所述若需要显示所述目标消息,则显示所述目标消息的步骤,包括:4. The method according to claim 3, wherein the step of displaying the target message if the target message needs to be displayed comprises: 判断预设应用程序是否处于前台运行状态;Determine whether the preset application program is running in the foreground; 若所述预设应用程序未处于前台运行状态,则显示所述目标消息;If the preset application program is not running in the foreground, then display the target message; 若所述预设应用程序处于前台运行状态,则在所述预设应用程序关闭或切换至后台运行状态后,显示所述目标消息。If the preset application program is in the foreground running state, the target message is displayed after the preset application program is closed or switched to the background running state. 5.如权利要求1至4任一项所述的方法,其特征在于,所述保存所述目标消息,并在满足预设条件时显示所述目标消息的步骤之后,还包括:5. The method according to any one of claims 1 to 4, characterized in that, after the step of saving the target message and displaying the target message when a preset condition is met, further comprising: 基于已显示的目标消息的类型修改所述预设丢弃规则,其中,与所述已显示的目标消息的类型相同的消息不符合修改后的所述预设丢弃规则。The preset discarding rule is modified based on the type of the displayed target message, wherein messages of the same type as the displayed target message do not comply with the modified preset discarding rule. 6.一种移动终端,其特征在于,包括:6. A mobile terminal, characterized in that, comprising: 获取模块,用于获取目标消息的推送请求;An acquisition module, configured to acquire a push request of a target message; 第一判断模块,用于判断所述目标消息是否符合预设丢弃规则;A first judging module, configured to judge whether the target message complies with a preset discarding rule; 保存显示模块,用于若所述目标消息符合预设丢弃规则,则保存所述目标消息,并在满足预设条件时显示所述目标消息。The saving and displaying module is configured to save the target message if the target message meets a preset discarding rule, and display the target message when a preset condition is met. 7.如权利要求6所述的移动终端,其特征在于,所述保存显示模块包括:7. The mobile terminal according to claim 6, wherein the storage and display module comprises: 保存子模块,用于保存所述目标消息;A saving submodule, configured to save the target message; 第一判断子模块,用于判断在获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序是否被调用;The first judging submodule is used to judge whether the application program associated with the target message is called within a preset time period after the push request is acquired; 显示子模块,用于若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序被调用,则显示所述目标消息;A display submodule, configured to display the target message if the application associated with the target message is invoked within a preset period of time after the push request is acquired; 丢弃子模块,用于若在所述获取所述推送请求之后的预设时长内,与所述目标消息关联的应用程序未被调用,则丢弃所述目标消息。The discarding submodule is configured to discard the target message if the application associated with the target message is not invoked within a preset period of time after the push request is acquired. 8.如权利要求6所述的移动终端,其特征在于,还包括:8. The mobile terminal according to claim 6, further comprising: 第二判断模块,用于若所述目标消息不符合预设丢弃规则,则判断是否需要显示所述目标消息;A second judging module, configured to judge whether the target message needs to be displayed if the target message does not meet the preset discarding rules; 显示模块,用于若需要显示所述目标消息,则显示所述目标消息;A display module, configured to display the target message if the target message needs to be displayed; 保存模块,用于若不需要显示所述目标消息,则保存所述目标消息。A saving module, configured to save the target message if the target message does not need to be displayed. 9.如权利要求8所述的移动终端,其特征在于,所述显示模块包括:9. The mobile terminal according to claim 8, wherein the display module comprises: 第二判断子模块,用于判断预设应用程序是否处于前台运行状态;The second judging sub-module is used to judge whether the preset application program is running in the foreground; 显示子模块,用于若所述预设应用程序未处于前台运行状态,则显示所述目标消息;以及用于所述预设应用程序处于前台运行状态,则在所述预设应用程序关闭或切换至后台运行状态后,显示所述目标消息。The display submodule is used to display the target message if the preset application is not running in the foreground; and is used to display the target message when the preset application is in the foreground running After switching to the background running state, the target message is displayed. 10.如权利要求6至9任一项所述的移动终端,其特征在于,还包括:10. The mobile terminal according to any one of claims 6 to 9, further comprising: 修改模块,用于基于已显示的目标消息的类型修改所述预设丢弃规则,其中,与所述已显示的目标消息的类型相同的消息不符合修改后的所述预设丢弃规则。A modifying module, configured to modify the preset discarding rule based on the type of the displayed target message, wherein messages of the same type as the displayed target message do not comply with the modified preset discarding rule. 11.一种移动终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的消息处理方法的步骤。11. A mobile terminal, characterized by comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the The steps of the message processing method described in any one of requirements 1 to 5. 12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-5中任一项所述的消息处理方法的步骤。12. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the message processing method according to any one of claims 1-5 are realized.
CN201810034586.1A 2018-01-15 2018-01-15 A message processing method and mobile terminal Active CN108270853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810034586.1A CN108270853B (en) 2018-01-15 2018-01-15 A message processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810034586.1A CN108270853B (en) 2018-01-15 2018-01-15 A message processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108270853A true CN108270853A (en) 2018-07-10
CN108270853B CN108270853B (en) 2020-09-22

Family

ID=62775646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810034586.1A Active CN108270853B (en) 2018-01-15 2018-01-15 A message processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108270853B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067864A (en) * 2018-07-25 2018-12-21 网易(杭州)网络有限公司 Notification message method for pushing, device and electronic equipment
CN109525672A (en) * 2018-11-27 2019-03-26 重庆长安汽车股份有限公司 Vehicle-mounted content push system, method and computer readable storage medium
CN112258217A (en) * 2020-09-25 2021-01-22 重庆传音通讯技术有限公司 Information pushing method, equipment and storage medium
CN112422746A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 A push message processing method, device, storage medium and electronic device
CN113194200A (en) * 2021-04-28 2021-07-30 维沃移动通信有限公司 Message display method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640884A (en) * 2008-08-01 2010-02-03 北京信安易科技有限公司 Method and device for publishing business newsletters
CN103826008A (en) * 2014-02-18 2014-05-28 华为终端有限公司 Mobile terminal notification message prompting method and device and mobile terminal
CN104717616A (en) * 2013-12-13 2015-06-17 腾讯科技(深圳)有限公司 Push message management method and device
CN105100483A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Notification setting method and device and terminal
US20160197909A1 (en) * 2015-01-05 2016-07-07 Citrix Systems, Inc. Securing Network Activity Managed by Operating Systems
CN106020814A (en) * 2016-05-16 2016-10-12 北京奇虎科技有限公司 Notification bar message processing method and apparatus as well as mobile terminal
CN106126320A (en) * 2016-06-21 2016-11-16 依偎科技(南昌)有限公司 Method, device and the terminal that a kind of terminal capabilities optimizes
CN106331005A (en) * 2015-06-26 2017-01-11 阿里巴巴集团控股有限公司 A message management method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640884A (en) * 2008-08-01 2010-02-03 北京信安易科技有限公司 Method and device for publishing business newsletters
CN104717616A (en) * 2013-12-13 2015-06-17 腾讯科技(深圳)有限公司 Push message management method and device
CN103826008A (en) * 2014-02-18 2014-05-28 华为终端有限公司 Mobile terminal notification message prompting method and device and mobile terminal
US20160197909A1 (en) * 2015-01-05 2016-07-07 Citrix Systems, Inc. Securing Network Activity Managed by Operating Systems
CN106331005A (en) * 2015-06-26 2017-01-11 阿里巴巴集团控股有限公司 A message management method and device
CN105100483A (en) * 2015-07-31 2015-11-25 小米科技有限责任公司 Notification setting method and device and terminal
CN106020814A (en) * 2016-05-16 2016-10-12 北京奇虎科技有限公司 Notification bar message processing method and apparatus as well as mobile terminal
CN106126320A (en) * 2016-06-21 2016-11-16 依偎科技(南昌)有限公司 Method, device and the terminal that a kind of terminal capabilities optimizes

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067864A (en) * 2018-07-25 2018-12-21 网易(杭州)网络有限公司 Notification message method for pushing, device and electronic equipment
CN109067864B (en) * 2018-07-25 2021-03-05 网易(杭州)网络有限公司 Notification message pushing method and device and electronic equipment
CN109525672A (en) * 2018-11-27 2019-03-26 重庆长安汽车股份有限公司 Vehicle-mounted content push system, method and computer readable storage medium
CN112258217A (en) * 2020-09-25 2021-01-22 重庆传音通讯技术有限公司 Information pushing method, equipment and storage medium
CN112422746A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 A push message processing method, device, storage medium and electronic device
CN113194200A (en) * 2021-04-28 2021-07-30 维沃移动通信有限公司 Message display method and device and electronic equipment

Also Published As

Publication number Publication date
CN108270853B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
CN110134356A (en) A kind of throwing screen method and terminal
US12063192B2 (en) Information display method, information sending method, and electronic device
CN107613362A (en) A kind of video display control method and mobile terminal
CN111381924A (en) Interface display method, electronic device and medium
CN107613131A (en) A kind of application program disturbance-free method and mobile terminal
WO2021017776A1 (en) Information processing method and terminal
CN109525710B (en) A method and apparatus for accessing an application
CN108270853B (en) A message processing method and mobile terminal
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN108595201A (en) A kind of application program update method and mobile terminal
CN108874352A (en) A kind of information display method and mobile terminal
CN107734170A (en) A kind of notification message processing method, mobile terminal and wearable device
WO2021031717A1 (en) Screen capturing method and terminal device
CN108037966A (en) A kind of interface display method, device and mobile terminal
CN107808107B (en) Application message display method and mobile terminal
CN107707774A (en) Message display method and mobile terminal
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
WO2019076376A1 (en) Information display method and mobile terminal
CN109151741B (en) A kind of multimedia message receiving method and terminal
CN107835495A (en) A kind of message prompt method, device and mobile terminal
CN108008808B (en) Operation parameter adjusting method and mobile terminal
CN110138963A (en) A kind of message treatment method and mobile terminal
CN108768838A (en) One kind putting out screen information sharing method, transmitting terminal and receiving terminal
CN107861786A (en) The reminding method and mobile terminal of a kind of notice

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