CN108519922A - Information push method and device, terminal equipment, and computer-readable storage medium - Google Patents
Information push method and device, terminal equipment, and computer-readable storage medium Download PDFInfo
- Publication number
- CN108519922A CN108519922A CN201810324334.2A CN201810324334A CN108519922A CN 108519922 A CN108519922 A CN 108519922A CN 201810324334 A CN201810324334 A CN 201810324334A CN 108519922 A CN108519922 A CN 108519922A
- Authority
- CN
- China
- Prior art keywords
- push information
- information
- type
- push
- target process
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及电子设备的控制领域,具体地,是在一种在终端设备上实现信息推送方法以及实现这种方法的装置,还涉及一种实现上述方法的终端设备以及计算机可读存储介质。The present invention relates to the field of control of electronic equipment, specifically, a method for implementing information push on a terminal equipment and a device for implementing the method, and also relates to a terminal equipment and a computer-readable storage medium for implementing the above method.
背景技术Background technique
智能手机、平板电脑等终端设备成为人们日常生活中最经常使用的电子设备,人们喜欢在智能电子设备上安装各种应用程序,并且在终端设备上同时运行大量的应用程序。目前,大部分运行在终端设备上的应用程序都支持网络推送服务,而网络推送服务也是应用程序的开发方向用户推送各种信息以及新服务的主要形式。Terminal devices such as smartphones and tablet computers have become the most frequently used electronic devices in people's daily life. People like to install various applications on smart electronic devices, and run a large number of applications on the terminal devices at the same time. At present, most of the applications running on terminal devices support the network push service, and the network push service is also the main form for application developers to push various information and new services to users.
网络推送服务也称为PUSH服务,是应用程序的开发方或者服务提供方通过网络主动地向用户推送内容的业务方式。因此,用户在使用终端设备时,终端设备上所安装的各种应用程序的客户端,如今日头条客户端、QQ客户端、搜狐新闻客户端等等,这些应用程序的客户端经常向用户发送大量推送消息,例如QQ客户端的推送消息包括天气信息、新闻资讯、QQ信息等等。Network push service, also known as PUSH service, is a business method in which application developers or service providers actively push content to users through the network. Therefore, when a user uses a terminal device, the clients of various applications installed on the terminal device, such as Toutiao client, QQ client, Sohu News client, etc., these application clients often send messages to the user. A large number of push messages, for example, the push messages of the QQ client include weather information, news information, QQ information and so on.
通常,对于各种应用程序客户端的推送消息,终端设备都会收集在终端设备的预设位置,如通知栏或是预设用于存储推送消息的消息列表当中。当用户要查看推送消息时,点击预设位置中的推送消息进行查看,此时推送消息才被显示。Usually, the terminal device will collect push messages from various application program clients in a preset position of the terminal device, such as a notification bar or a message list preset for storing push messages. When the user wants to view the push message, he clicks on the push message in the preset position to view it, and then the push message is displayed.
并且,现有的应用程序都设置有自身的推送信息处理进程,当应用程序的客户端接收到推送信息以后,由自身的推送信息处理进程对推送信息进行处理,例如向终端设备发出请求,将推送信息添加到通知栏中,以便于用户观看到应用程序所接收到的推送信息。Moreover, the existing application programs have their own push information processing process. When the client of the application program receives the push information, the push information is processed by its own push information processing process, such as sending a request to the terminal device, and the The push information is added to the notification bar so that the user can watch the push information received by the application.
然而,现有的应用程序中通常运行有多个进程,而一部分推送信息可能应该由某一个进程来发送。例如,用户打开网页浏览器以后,在网页浏览器上打开多个网页,此时,网页浏览器的应用程序中实际上运行有多个进程,且每一个网页对应于一个进程。此时,网页浏览器所接收到的推送信息实际上是某一网页应该接收的推送信息。However, there are usually multiple processes running in an existing application program, and some push information may be sent by a certain process. For example, after the user opens the web browser, multiple web pages are opened on the web browser. At this time, the application program of the web browser actually has multiple processes running, and each web page corresponds to a process. At this time, the push information received by the web browser is actually the push information that a certain webpage should receive.
由于现有的推送信息并不会直接被发送到具体的进程,而是直接被发送至应用程序,由应用程序统一对接收到的推送信息进行处理,如由应用程序的推送信息处理进程对所接收到的所有推送信息进行处理,即发送至终端设备并显示在通知栏中。这样,应用程序的其他进程实际上并不知道应用程序接收到推送信息,更加没办法对推送信息进行处理,有可能导致推送信息的发布不及时,或者推送信息没有经过处理即被发送,影响用户及时了解推送信息,或者影响用户对推送信息了解的全面性。Since the existing push information is not directly sent to a specific process, but is directly sent to the application program, the application program uniformly processes the received push information, such as the push information processing process of the application program All received push information is processed, that is, sent to the terminal device and displayed in the notification bar. In this way, other processes of the application do not actually know that the application has received the push information, and there is no way to process the push information, which may cause the release of the push information to be delayed, or the push information will be sent without processing, affecting users Know the push information in a timely manner, or affect the comprehensiveness of the user's understanding of the push information.
发明内容Contents of the invention
本发明的第一目的是提供一种允许应用程序的进程对推送信息进行处理的信息推送方法。A first object of the present invention is to provide an information push method that allows a process of an application program to process push information.
本发明的第二目的是提供一种有利于用户及时了解推送信息的信息推送装置。The second object of the present invention is to provide an information push device that facilitates users to know push information in time.
本发明的第三目的是提供一种能够实现上述信息推送方法的终端设备。The third object of the present invention is to provide a terminal device capable of implementing the above information pushing method.
本发明的第四目的是提供一种被处理器读取并执行时能够实现上述信息推送方法的计算机可读存储介质。A fourth object of the present invention is to provide a computer-readable storage medium capable of implementing the above information push method when read and executed by a processor.
为了实现上述的第一目的,本发明提供的信息推送方法应用于终端设备,该方法包括目标应用程序接收推送信息,并提取推送信息的分类标记,确认推送信息为第一类推送信息或者第二类推送信息;如确定推送信息为第一类推送信息,由目标应用程序的推送进程处理第一类推送信息;如确认推送信息为第二类推送信息,则获取第二类推送信息对应的目标进程,并将第二类推送信息发送至目标进程,由目标进程处理第二类推送信息;并且,目标应用程序的多个目标进程相互独立的接收或者处理第二类推送信息。In order to achieve the above-mentioned first purpose, the information push method provided by the present invention is applied to a terminal device. The method includes that the target application program receives the push information, extracts the classification mark of the push information, and confirms that the push information is the first type of push information or the second type of push information. push information; if it is determined that the push information is the first type of push information, the push process of the target application program will process the first type of push information; if it is confirmed that the push information is the second type of push information, then the target corresponding to the second type of push information will be obtained process, and send the second type of push information to the target process, and the target process processes the second type of push information; and, multiple target processes of the target application receive or process the second type of push information independently of each other.
由上述方案可见,应用程序接收到推送信息以后,并不是直接发送该推送信息,而是首先判断推送信息的类型,如果是第一类推送信息,即由应用程序直接发送的推送信息,则应用程序通过自身的推送信息处理进程发送该推送信息,如果是第二类推送信息,即应该由目标进程发送的推送信息,则将推送信息发送至目标进程。这样,目标进程可以根据需要确定是否需要对推送信息进行处理后发送,还是直接发送推送信息。另外,目标进程也知晓推送信息的接收与发送,从而更好的让用户及时、全面的了解到推送信息。It can be seen from the above scheme that after the application program receives the push information, it does not directly send the push information, but first judges the type of the push information. If it is the first type of push information, that is, the push information directly sent by the application program, the application The program sends the push information through its own push information processing process, and if it is the second type of push information, that is, the push information that should be sent by the target process, then the push information is sent to the target process. In this way, the target process can determine whether to send the push information after processing it or directly send the push information as required. In addition, the target process is also aware of the receiving and sending of the push information, so that the user can better understand the push information in a timely and comprehensive manner.
一个优选的方案是,目标应用程序记录当前运行的进程,并赋予每一个进程唯一的标识;获取第二类推送信息对应的目标进程包括:从第二类推送信息中提取该第二类推送信息对应的目标进程的标识,根据标识确定第二类推送信息对应的目标进程。A preferred solution is that the target application program records the currently running process and gives each process a unique identifier; obtaining the target process corresponding to the second type of push information includes: extracting the second type of push information from the second type of push information The identifier of the corresponding target process, and determine the target process corresponding to the second type of push information according to the identifier.
由此可见,通过赋予每一个进程一个唯一的标识,因此,应用程序的进程将具有自己的标识,在接收到推送信息以后,确定该推送信息为第二类推送信息时,可以根据进程的标识,从当前运行的进程中确认该推送信息对应的目标进程,从而快速的将第二类推送信息发送至目标进程。It can be seen that by giving each process a unique identifier, the process of the application program will have its own identifier. After receiving the push information, when it is determined that the push information is the second type of push information, you can to confirm the target process corresponding to the push information from the currently running process, so as to quickly send the second type of push information to the target process.
进一步的方案是,根据标识确定第二类推送信息对应的目标进程以后,还执行:判断目标进程是否为当前运行的目标进程,如目标进程当前正在运行,则直接向目标进程发送第二类推送信息,如目标进程未正在运行,则在等待目标进程运行以后,向目标进程发送第二类推送信息。A further solution is that after determining the target process corresponding to the second type of push information according to the identification, it is also performed: judging whether the target process is the currently running target process, if the target process is currently running, then directly send the second type of push to the target process information, if the target process is not running, after waiting for the target process to run, send the second type of push information to the target process.
可见,在目标进程并未运行的情况下,并不会马上向目标进程发送第二类推送信息,而是等待目标进程启动运行以后才向目标进程发送推送信息,可以确保目标进程及时获取推送信息并且及时对推送信息进行处理。It can be seen that when the target process is not running, the second type of push information will not be sent to the target process immediately, but the push information will be sent to the target process after the target process starts running, which can ensure that the target process obtains the push information in time And process the push information in a timely manner.
更进一步的方案是,目标进程按照预设的规则处理第二类推送信息包括:目标进程直接发送第二类推送信息;或者目标进程对第二类推送信息进行预设处理后再发送第二类推送信息。A further solution is that the target process processes the second type of push information according to preset rules, including: the target process directly sends the second type of push information; or the target process performs preset processing on the second type of push information before sending the second type Push information.
由此可见,目标进程接收到第二类推送信息以后,可以根据实际情况,直接将第二类推送信息处理,如直接发送出去,或者将第二类推送信息进行预设的处理后再发送,或者,目标进程还可以是直接在目标进程的页面上展示第二类推送信息,确保用户在看到通知栏的通知时,能够更加清晰的了解第二类推送信息的内容。It can be seen that after the target process receives the second type of push information, it can directly process the second type of push information according to the actual situation, such as sending it directly, or send the second type of push information after preset processing. Alternatively, the target process may also directly display the second type of push information on the page of the target process, so as to ensure that the user can understand the content of the second type of push information more clearly when seeing the notification in the notification bar.
更进一步的方案是,该方法还包括:接收运行目标进程的指令;获取目标进程的配置文件,并获取配置文件中推送信息接收接口以及推送信息发送接口的配置信息;目标应用程序根据推送信息接收接口的配置信息配置目标进程的推送信息接收接口,并根据推送信息发送接口的配置信息配置目标进程的推送信息发送接口。A further solution is that the method also includes: receiving an instruction to run the target process; obtaining the configuration file of the target process, and obtaining the configuration information of the push information receiving interface and the push information sending interface in the configuration file; The interface configuration information configures the push information receiving interface of the target process, and configures the push information sending interface of the target process according to the configuration information of the push information sending interface.
优选的,获取目标进程的配置文件后,还执行:获取配置文件中接口配置标记,根据标记确定目标进程需要设置推送信息接收接口以及推送信息发送接口。Preferably, after obtaining the configuration file of the target process, further execute: obtain the interface configuration flag in the configuration file, and determine according to the flag that the target process needs to set a push information receiving interface and a push information sending interface.
由此可见,通过获取配置文件中的接口配置信息来实现推送信息接收接口的配置以及推送信息发送接口的配置,可以在目标进程的配置文件解析过程中实现相关接口的配置,避免推送信息需要发送时或者需要接收推送信息时才配置相应的接口。It can be seen that by obtaining the interface configuration information in the configuration file to realize the configuration of the push information receiving interface and the configuration of the push information sending interface, the configuration of the relevant interface can be realized during the parsing process of the configuration file of the target process, avoiding the need to send the push information Only configure the corresponding interface when you need to receive push information.
更进一步的,目标进程处理第二类推送信息包括:获取配置文件中推送信息处理方式信息,根据推送信息处理方式信息确定第二类推送信息的处理方式,应用所确定的处理方式处理第二类推送信息。Furthermore, the processing of the second type of push information by the target process includes: obtaining information on the push information processing method in the configuration file, determining the processing method of the second type of push information according to the information on the push information processing method, and processing the second type of push information using the determined processing method. Push information.
为实现上述的第二目的,本发明提供的信息推送装置应用于终端设备,该装置包括推送信息接收模块,用于由目标应用程序接收推送信息;推送信息分类确定模块,用于提取推送信息的分类标记,确认推送信息为第一类推送信息或者第二类推送信息;推送信息发送模块,在确定推送信息为第一类推送信息时,由目标应用程序的推送进程发送第一类推送信息;在确认推送信息为第二类推送信息时,则获取第二类推送信息对应的目标进程,并将第二类推送信息发送至目标进程,由目标进程处理第二类推送信息;并且,目标应用程序的多个目标进程相互独立的接收或者处理第二类推送信息。In order to achieve the above-mentioned second purpose, the information push device provided by the present invention is applied to terminal equipment, and the device includes a push information receiving module for receiving push information by a target application program; a push information classification determination module for extracting push information The classification mark confirms that the push information is the first type of push information or the second type of push information; the push information sending module sends the first type of push information by the push process of the target application program when it is determined that the push information is the first type of push information; When it is confirmed that the push information is the second type of push information, the target process corresponding to the second type of push information is obtained, and the second type of push information is sent to the target process, and the second type of push information is processed by the target process; and, the target application Multiple target processes of the program receive or process the second type of push information independently of each other.
优选的方案是,推送信息发送模块还用于从第二类推送信息中提取该第二类推送信息对应的目标进程的标识,根据标识确定第二类推送信息对应的目标进程。Preferably, the push information sending module is further configured to extract the identification of the target process corresponding to the second type of push information from the second type of push information, and determine the target process corresponding to the second type of push information according to the identification.
由于本发明的应用程序在接收到推送信息以后,并不是直接发送该推送信息,而是首先判断推送信息的类型,如果是第一类推送信息,则由应用程序通过自身的推送信息处理进程发送该推送信息,如果是第二类推送信息,则将推送信息发送至目标进程。这样,目标进程可以根据需要确定是否需要对推送信息进行处理后发送,还是直接发送推送信息。另外,目标进程也知晓推送信息的接收与发送,从而更好的让用户及时、全面的了解到推送信息。Since the application program of the present invention does not directly send the push information after receiving the push information, but first judges the type of the push information, if it is the first type of push information, it will be sent by the application program through its own push information processing process. If the push information is the second type of push information, the push information is sent to the target process. In this way, the target process can determine whether to send the push information after processing it or directly send the push information as required. In addition, the target process is also aware of the receiving and sending of the push information, so that the user can better understand the push information in a timely and comprehensive manner.
为实现上述的第三目的,本发明提供的终端设备包括处理器,处理器用于执行存储器中存储的计算机程序时实现上述信息推送方法的各个步骤。To achieve the above third object, the terminal device provided by the present invention includes a processor, and the processor is configured to implement the steps of the above information pushing method when executing the computer program stored in the memory.
为实现上述的第四目的,本发明提供的计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述信息推送方法的各个步骤。To achieve the fourth objective above, the computer-readable storage medium provided by the present invention stores a computer program, and when the computer program is executed by a processor, each step of the above-mentioned information pushing method is realized.
附图说明Description of drawings
图1是本发明信息推送方法实施例的流程图。Fig. 1 is a flow chart of an embodiment of the information push method of the present invention.
图2是本发明信息推送方法实施例中目标进程处理第二类推送信息的流程图。Fig. 2 is a flow chart of processing the second type of push information by the target process in the embodiment of the information push method of the present invention.
图3是本发明信息推送方法实施例中配置目标进程的接口的流程图。Fig. 3 is a flowchart of an interface for configuring a target process in an embodiment of the information push method of the present invention.
图4是本发明信息推送装置实施例的结构框图。Fig. 4 is a structural block diagram of an embodiment of the information push device of the present invention.
图5是本发明终端设备实施例的结构框图。Fig. 5 is a structural block diagram of an embodiment of a terminal device according to the present invention.
以下结合附图及实施例对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
具体实施方式Detailed ways
本发明信息推送方法是应用在诸如智能手机或者平板电脑等终端设备上,用于实现推送信息的处理,如向终端设备发送推送信息,或者对推送信息进行处理。本发明的信息推送装置运行在终端设备上,并且用于实现上述的信息推送方法。The information push method of the present invention is applied to terminal devices such as smart phones or tablet computers, and is used to process push information, such as sending push information to terminal devices, or processing push information. The information pushing device of the present invention runs on the terminal equipment and is used to realize the above information pushing method.
由于传统的应用程序所实现的功能比较单一,并且现有的应用程序的安装包数据量非常大,导致应用程序的安装包下载时间较长,且安装时间也较长。通常,传统的应用程序的安装包是按照事先规定的格式编写而成,包括大量运行在终端设备操作系统上的控件。因此,现有的应用程序开发周期较长,且开发难度较大。Since the function implemented by the traditional application program is relatively simple, and the data volume of the installation package of the existing application program is very large, the download time of the installation package of the application program is relatively long, and the installation time is also relatively long. Usually, the installation package of a traditional application program is written according to a predetermined format, including a large number of controls running on the operating system of the terminal device. Therefore, the existing application program has a long development cycle and is relatively difficult to develop.
为此,一部分应用程序支持独立的进程的运行,例如允许由第三方开发的进程在应用程序上运行。为了避免第三方开发的进程运行时需要花费大量的时间进行下载数据包以及启动该进程,运行在应用程序上的第三方开发的进程可以通过下载配置文件的方式实现下载,并且在配置文件下载完毕以后,由应用程序对配置文件进行解析,并且运行该进程。例如,配置文件所包含的页面信息中,仅仅包括进程页面的基础设置信息,但不包括页面经过渲染以后的具体数据,对于进程所需要调用的接口,配置文件仅仅给出了该进程所需要调用的各种接口的名称与调用的规则等配置信息,即配置文件仅仅声明需要调用那些接口,但不提供具体的调用接口的函数体,接口函数由应用程序提供。因此,进程的配置文件数据量很少,通常在1M以下,以确保配置文件可以在极短时间内完成下载。To this end, some applications support the running of independent processes, for example allowing processes developed by third parties to run on the application. In order to avoid the need to spend a lot of time to download the data package and start the process when the process developed by the third party is running, the process developed by the third party running on the application can be downloaded by downloading the configuration file, and after the configuration file is downloaded Later, the configuration file is parsed by the application and the process is run. For example, the page information contained in the configuration file only includes the basic setting information of the process page, but does not include the specific data after the page is rendered. As for the interface that the process needs to call, the configuration file only gives the interface that the process needs to call Configuration information such as the names of various interfaces and calling rules, that is, the configuration file only declares those interfaces that need to be called, but does not provide a specific function body for calling the interface, and the interface function is provided by the application. Therefore, the data volume of the configuration file of the process is very small, usually below 1M, to ensure that the configuration file can be downloaded in a very short time.
在进程的配置文件下载完毕以后,应用程序对配置文件进行解析,例如解析获得该进程所需要调用的接口的配置信息,并且根据该配置信息实现接口的配置。正是由于进程的配置文件并不包含各种接口的实现程序,因此配置文件的数据量非常少,其下载速度非常快,可以在极短时间内完成配置文件的下载,应用程序也可以快速完成该进程的启动运行。After the configuration file of the process is downloaded, the application program parses the configuration file, for example, obtains the configuration information of the interface that the process needs to call, and realizes the configuration of the interface according to the configuration information. It is precisely because the configuration file of the process does not contain the implementation programs of various interfaces, so the data volume of the configuration file is very small, and its download speed is very fast. The download of the configuration file can be completed in a very short time, and the application program can also be completed quickly. The process starts running.
因此,用户打开应用程序以后,可以选择需要使用或者运行的进程,并且发出运行进程的指令,应用程序接收到运行目标进程的指令以后,发出下载目标进程的配置文件的请求指令,如向预设的服务器发送下载目标进程配置文件的信息,并从服务器接收目标进程的配置文件,应用程序接收到目标进程的配置文件以后对目标进程的配置文件进行解析,并且运行目标进程。由于目标进程的配置文件的下载与解析能够在极短时间内完成,因此用户发出运行目标进程的指令以后,不需要等待即可以开启目标进程。Therefore, after the user opens the application, he can select the process to be used or run, and issue an instruction to run the process. After the application receives the instruction to run the target process, it sends a request to download the configuration file of the target process, such as sending The server sends the information of downloading the configuration file of the target process, and receives the configuration file of the target process from the server, and the application program parses the configuration file of the target process after receiving the configuration file of the target process, and runs the target process. Since the download and analysis of the configuration file of the target process can be completed in a very short time, after the user issues an instruction to run the target process, the target process can be started without waiting.
由于现有的应用程序往往是由应用程序自身接收推送信息,而不是由进程接收推送信息,如果应用程序上运行有第三方开发的进程,则如果推送信息不能够由进程接收,往往导致进程无法获取推送信息的内容,反而影响进程的正常运行。Since the existing applications often receive push information by the application itself, rather than by the process, if there is a process developed by a third party running on the application, if the push information cannot be received by the process, the process often fails. Obtaining the content of the push information will affect the normal operation of the process.
因此,本发明的主要构思是将推送信息分成两类,第一类推送信息是由应用程序自身的推送信息处理进程进行处理,如将第一类推送信息发送至终端设备,例如由应用程序直接将推送信息发送至通知栏管理进程,进而将推送信息显示在通知栏内。第二类推送信息则由应用程序内的进程进行处理,因此,接收第二类推送信息的进程被称为目标进程,目标进程接收到第二类推送信息以后,可以对第二类推送信息进行处理,例如进行预设的处理后发送,也可以直接发送第二类推送信息,或者直接在目标进程的页面上显示第二类推送信息。可以理解,目标进程对第二类推送信息的处理,并不限于对第二类推送信息的发送,还包括将第二类推送信息展示在目标进程的页面上等操作,此时目标进程可以不将第二类推送信息发送至通知栏。Therefore, the main concept of the present invention is to divide the push information into two types. The first type of push information is processed by the push information processing process of the application program itself, such as sending the first type of push information to the terminal device, for example, directly by the application program. Send the push information to the notification bar management process, and then display the push information in the notification bar. The second type of push information is processed by the process in the application program. Therefore, the process that receives the second type of push information is called the target process. After receiving the second type of push information, the target process can process the second type of push information. Processing, such as sending after preset processing, may also directly send the second type of push information, or directly display the second type of push information on the page of the target process. It can be understood that the processing of the second type of push information by the target process is not limited to sending the second type of push information, but also includes operations such as displaying the second type of push information on the page of the target process. Send the second type of push information to the notification bar.
由于本申请的方案中,不管是第一类推送信息还是第二类推送信息,都是先由应用程序接收,然而再由应用程序判断推送信息的类型。因此,应用程序的开发方或者服务提供方发送推送信息时,需要在推送信息中添加推送信息的分类标记,该分类标记用于标识推送信息是第一类推送信息还是第二类推送信息。In the solution of the present application, regardless of whether it is the first type of push information or the second type of push information, it is first received by the application program, and then the application program determines the type of the push information. Therefore, when an application developer or a service provider sends push information, it needs to add a classification mark of the push information to the push information, and the classification mark is used to identify whether the push information is the first type of push information or the second type of push information.
如果推送信息是第二类推送信息,则需要由应用程序的目标进程进行处理,因此,在第二类推送信息中还需要添加一个标识,该标识不但需要标识当前推送信息对应的应用程序,还需要标识当前推送信息对应的目标进程,当然,目标进程必须是对应的应用程序中的进程。这样,终端设备接收到推送信息后,可以通过该标识获得推送信息对应的应用程序,并且根据该标识将推送信息发送至应用程序。当应用程序接收到推送信息后,可以根据标识快速的确定该推送信息对应的目标进程,从而快速的将推送信息发送至目标进程。If the push information is the second type of push information, it needs to be processed by the target process of the application program. Therefore, an identifier needs to be added to the second type of push information. This identifier not only needs to identify the application program corresponding to the current push information, but also It is necessary to identify the target process corresponding to the current push information. Of course, the target process must be a process in the corresponding application program. In this way, after receiving the push information, the terminal device can obtain the application program corresponding to the push information through the identification, and send the push information to the application program according to the identification. After the application program receives the push information, it can quickly determine the target process corresponding to the push information according to the identifier, so as to quickly send the push information to the target process.
下面结合图1介绍推送信息的推送方法。The method for pushing information is introduced below with reference to FIG. 1 .
首先,执行步骤S101,目标应用程序接收推送信息。First, step S101 is executed, and the target application program receives push information.
通常,应用程序的开发方有新的信息或者服务需要向用户发布时,将形成推送信息,并且通过网络发送至终端设备。如前面介绍的,发布推送信息时,应用程序开发方需要在推送信息中添加一个分类标记,用于标记推送信息的类型。此外,推送信息中还包括一个标识,该标识可以用于表征当前推送信息对应的应用程序或者运行在该应用程序中的进程。Usually, when the developer of the application program has new information or services that need to be released to the user, it will form push information and send it to the terminal device through the network. As mentioned above, when publishing push information, the application developer needs to add a classification mark to the push information to mark the type of push information. In addition, the push information also includes an identifier, which can be used to identify the application program corresponding to the current push information or the process running in the application program.
当终端设备接收到推送信息后,根据推送信息的标识获取该推送信息对应的应用程序,并且将推送信息发送至对应的应用程序。本实施例中,推送信息对应的应用程序被称为目标应用程序,因此,一旦终端设备将推送信息发送至目标应用程序,则目标应用程序接收到推送信息。After receiving the push information, the terminal device obtains the application program corresponding to the push information according to the identifier of the push information, and sends the push information to the corresponding application program. In this embodiment, the application program corresponding to the push information is called a target application program. Therefore, once the terminal device sends the push information to the target application program, the target application program receives the push information.
步骤S102,获取推送信息的分类标记。Step S102, acquiring classification marks of push information.
目标应用程序接收到推送信息以后,由应用程序自身的处理推送信息的进程对推送信息进程处理。由于应用程序的客户端在具备接收推送信息的功能时,通常设置一个用于处理推送信息的进程,因此,在应用程序接收到推送信息以后,应用程序中用于处理推送信息的进程将对推送信息进行处理。After the target application program receives the push information, the process of processing the push information of the application program processes the push information process. Since the client of the application program has the function of receiving push information, it usually sets a process for processing the push information. Therefore, after the application program receives the push information, the process for processing the push information in the application program will information is processed.
应用程序的推送信息处理进程在接收到推送信息以后,首先对推送信息进行解析,并且获取推送信息中的分类标记。例如,根据推送信息的格式,从指定的标志位中获取标记信息,根据该标记信息来确定推送信息的分类。After the push information processing process of the application program receives the push information, it first parses the push information, and obtains the classification marks in the push information. For example, according to the format of the push information, the tag information is obtained from the specified flag bit, and the classification of the push information is determined according to the tag information.
具体的,推送信息的发送方,例如应用程序的开发方或者服务提供方在发送推送信息时,预留某一位作为标志位,并且使用二进制数“0”表示该推送信息为第一类推送信息,使用二进制数“1”表示该推送信息为第二类推送信息。Specifically, the sender of the push information, such as the developer of the application program or the service provider, reserves a certain bit as a flag when sending the push information, and uses the binary number "0" to indicate that the push information is the first type of push Information, use the binary number "1" to indicate that the push information is the second type of push information.
步骤S103,判断所接收到的推送信息是否为第一类推送信息,如是,转入步骤S104,否则,执行步骤S105。Step S103, judging whether the received push information is the first type of push information, if yes, go to step S104, otherwise, go to step S105.
在获取推送信息的分类标记以后,对推送信息的类型进行判断。如前面介绍的,推送信息的发送方可以使用二进制数“0”表示该推送信息为第一类推送信息,使用二进制数“1”表示该推送信息为第二类推送信息。因此,在步骤S102中,只需要获取推送信息的分类标记以后,即可以根据该分类标记确定当前所接收的推送信息的类型。After the classification mark of the push information is acquired, the type of the push information is judged. As described above, the sender of the push information can use the binary number "0" to indicate that the push information is the first type of push information, and use the binary number "1" to indicate that the push information is the second type of push information. Therefore, in step S102, only after the classification mark of the push information is obtained, the type of the currently received push information can be determined according to the classification mark.
例如,如果标志位上推送信息的分类标记是二进制数“0”,即表示该推送信息为第一类推送信息,此时,可以转入步骤S104。如果推送信息的分类标记为二进制数“1”,表示该推送信息为第二类推送信息,则执行步骤S105。For example, if the classification mark of the push information on the flag is the binary number "0", it means that the push information is the first type of push information, and at this time, it can go to step S104. If the classification mark of the push information is a binary number "1", it means that the push information is the second type of push information, and step S105 is executed.
步骤S104,应用程序处理第一类推送信息。Step S104, the application program processes the push information of the first type.
如果确定应用程序所接收的推送信息为第一类推送信息,即第一类推送信息由应用程序自行处理,如将第一类推送信息发送至通知栏管理进程,则步骤S104中,应用程序随即将第一类推送信息发送。例如,应用程序的推送信息处理进程向操作系统的通知栏管理进程发出添加新的推送信息的请求,并且将推送信息添加至通知栏中。If it is determined that the push information received by the application program is the first type of push information, that is, the first type of push information is processed by the application program itself, such as sending the first type of push information to the notification bar management process, then in step S104, the application program immediately Send the first type of push information. For example, the push information processing process of the application sends a request for adding new push information to the notification bar management process of the operating system, and adds the push information to the notification bar.
通知栏管理进程接收到请求以后,将所接收的第一类推送信息添加到通知栏中。如果通知栏中原先存在多个推送信息或者通知信息,则可以添加到通知队列中。优选的,在通知栏显示推送信息时,可以按照推送信息的分类进行显示,例如,推送信息是广告信息,则显示在广告推送信息队列中,如果推送信息是应用程序更新的信息,则显示在应用程序更新的推送信息队列中。After receiving the request, the notification bar management process adds the received push information of the first type to the notification bar. If there are multiple push messages or notification messages in the notification bar, they can be added to the notification queue. Preferably, when the push information is displayed in the notification bar, it can be displayed according to the classification of the push information. For example, if the push information is advertisement information, it will be displayed in the advertisement push information queue; if the push information is information updated by an application program, it will be displayed in the In the push message queue for application updates.
当然,应用程序发出推送信息,除了将推送信息添加到通知栏以外,还可以请求终端设备发出提示信息,例如,终端设备点亮屏幕,并且在屏幕上预设的区域显示推送信息。或者,终端设备发出提示声音,或者产生振动信号等,这样可以及时通知用户收到推送信息。Of course, when the application sends push information, in addition to adding the push information to the notification bar, it can also request the terminal device to send a prompt message, for example, the terminal device lights up the screen and displays the push information in a preset area on the screen. Or, the terminal device sends out a prompt sound, or generates a vibration signal, etc., so that the user can be notified in time of receiving the push information.
当然,用户可以设置不同推送信息的通知方式,例如设置某一些应用程序发出的推送信息仅仅在通知栏显示,并不发出提示声音,而另一些应用程序发出推送信息的通知时,还需要发出提示声音或者点亮屏幕、形成振动信号等。或者,用户根据推送信息的性质设置不同的提示方式,如对于广告类的推送信息,仅仅在通知栏显示,而应用程序更新类的推送信息,则需要发出声音提示。Of course, the user can set different notification methods for push information, for example, set the push information sent by some applications to only be displayed in the notification bar without making a sound, while other applications need to send a reminder when they send a notification of push information sound or light up the screen, form a vibration signal, etc. Alternatively, the user can set different prompting methods according to the nature of the push information. For example, the push information of the advertisement type is only displayed in the notification bar, while the push information of the application program update type needs to be prompted with a sound.
除了在通知栏显示推送信息以外,还可以在目标应用程序的图标上添加特殊的标记,例如在目标应用程序的图标左上角添加一个圆形的标记,以表示该目标应用程序接收到推送信息,用户点击该应用程序的图标后即显示推送信息的内容。In addition to displaying push information on the notification bar, special marks can also be added to the icon of the target application, for example, a circular mark is added to the upper left corner of the icon of the target application to indicate that the target application has received the push information, The content of the push message is displayed after the user clicks on the icon of the application.
可以理解,步骤S104中,应用程序接收到推送信息后,并不需要对推送信息进行处理,可以直接向终端设备发出该推送信息。It can be understood that in step S104, after the application program receives the push information, it does not need to process the push information, and can directly send the push information to the terminal device.
步骤S105,获取推送信息对应的目标进程。Step S105, acquiring the target process corresponding to the push information.
如果应用程序获取推送信息的分类标记以后,确定当前的推送信息是第二类推送信息,则需要获取推送信息对应的目标进程。如前面介绍的,由于推送信息包含有一个标识,该标识不但标识了推送信息对应的应用程序,还标识了推送信息对应的进程,因此,应用程序只需要从推送信息中获取该标识,即可以确定推送信息对应的目标进程。If the application determines that the current push information is the second type of push information after obtaining the classification mark of the push information, it needs to obtain the target process corresponding to the push information. As mentioned above, since the push information contains an identifier, the identifier not only identifies the application corresponding to the push information, but also identifies the process corresponding to the push information. Therefore, the application only needs to obtain the identifier from the push information, that is, Determine the target process corresponding to the push information.
由于第二类推送信息需要由目标进程发送,优选的,目标进程应该是一个当前正在运行的进程。因此,每一个进程启动以后,应用程序均需要给每一个正在运行的进程赋予一个唯一的标识,例如,使用进程的进程号PID作为该标识,又或者使用进程的包名作为该进程的标识。Since the second type of push information needs to be sent by the target process, preferably, the target process should be a currently running process. Therefore, after each process is started, the application program needs to assign a unique identifier to each running process, for example, use the process ID PID of the process as the identifier, or use the package name of the process as the identifier of the process.
优选的,每一个进程启动以后,如果该进程是需要接收推送信息的进程,则向目标应用程序发出接收第二类推送信息的请求,即向应用程序发出请求注册接收推送信息的指令。应用程序接收该请求以后,可以将该进程记录在第二类推送信息发送列表中。如果某一进程被关闭,则应用程序将从队列中删除该进程。Preferably, after each process is started, if the process is a process that needs to receive push information, it sends a request to the target application program to receive the second type of push information, that is, sends an instruction to the application program to request registration for receiving push information. After the application program receives the request, it can record the process in the second type push information sending list. If a process is closed, the application will remove the process from the queue.
因此,应用程序可以设置一个接收第二类推送信息的进程列表,将需要接收第二类推送信息的进程均添加到该列表中。当应用程序接收到第二类推送信息以后,可以从该列表中查找目标进程。优选的,接收第二类推送信息的列表中,记录了需要接收第二类推送信息的进程的标识,如进程号或者进程的包名等。应用程序通过第二类推送信息中所包含的目标进程的标识,遍历进程队列中的每一个进程的标识,查找出进程标识与目标进程标识的进程,查找出的进程即为接收第二类推送信息的目标进程。Therefore, the application program can set a list of processes that receive the second type of push information, and add processes that need to receive the second type of push information to the list. After the application program receives the second type of push information, it can search for the target process from the list. Preferably, the list for receiving the second type of push information records the identifiers of the processes that need to receive the second type of push information, such as process numbers or process package names. The application traverses the ID of each process in the process queue through the ID of the target process contained in the second type of push information, finds out the process ID and the process ID of the target process, and the found process is the one that receives the second type of push The target process of the information.
可以理解,如果应用程序所接收的第二类推送信息对应的目标进程并未当前运行,也就是应用程序从进程列表中查找不到与第二类推送信息相匹配的目标进程,表示目标进程并未当前运行,此时,应用程序可以记录所接收到的第二类推送信息,并且暂时不发送该推送信息,直至进程队列中存在与目标进程的标识相匹配的进程登记到进程队列为止,也就是等待目标进程启动运行以后,才向目标进程发送第二类推送信息。It can be understood that if the target process corresponding to the second type of push information received by the application program is not currently running, that is, the application program cannot find a target process matching the second type of push information from the process list, it means that the target process is not running. is not currently running, at this time, the application can record the received push information of the second type, and temporarily do not send the push information until there is a process in the process queue that matches the identity of the target process and is registered in the process queue. It is to wait for the target process to start running before sending the second type of push information to the target process.
步骤S106,向目标进程发送第二类推送信息。Step S106, sending the push information of the second type to the target process.
在确定第二类推送信息对应的目标进程以后,应用程序向目标进程发送所接收的第二类推送信息。例如由目标应用程序的推送信息处理进程向目标进程发出接收到第二类推送信息的通知,目标进程则响应于该通知。同时,目标进程可以启动一个推送信息处理线程,并且由推送信息处理线程对所接收到的第二类推送信息进行处理。After determining the target process corresponding to the second type of push information, the application program sends the received second type of push information to the target process. For example, the push information processing process of the target application sends a notification to the target process that the second type of push information is received, and the target process responds to the notification. At the same time, the target process can start a push information processing thread, and the push information processing thread processes the received push information of the second type.
优选的,应用程序的开发方或者服务提供方向终端设备发出推送信息时,按照预定的格式对推送信息进行封装,而应用程序接收到该推送信息后,可以根据预定的格式提取推送信息中的相关信息,例如推送信息的发送时间、推送信息的发送方、推送信息的业务类型、推送信息的摘要信息以及推送信息的具体信息等。应用程序向目标进程发送第二类推送信息时,可以根据推送信息的格式提取出推送信息的各种要素,相当于应用程序对第二类推送信息进行解析以后,再将解析获得的各种要素的信息发送至目标进程。Preferably, when an application developer or a service provider sends push information to a terminal device, it encapsulates the push information in a predetermined format, and after receiving the push information, the application can extract relevant information in the push information according to a predetermined format. Information, such as the sending time of the push information, the sender of the push information, the business type of the push information, the summary information of the push information, and the specific information of the push information, etc. When the application program sends the second type of push information to the target process, it can extract various elements of the push information according to the format of the push information, which is equivalent to analyzing the second type of push information by the application program, and then analyzing the various elements obtained by the analysis. information is sent to the target process.
步骤S107,目标进程处理第二类推送信息。Step S107, the target process processes the second type of push information.
目标进程接收到第二类推送信息以后,将第二类推送信息进行分发等处理,具体的,就是通知用户接收到第二类推送信息,并且让用户及时处理需要处理的推送信息。目标进程发送第二类推送信息可以是在通知栏上显示推送信息,也可以是让终端设备发出通知的信息,例如声音提示信息、振动信息或者点亮屏幕等,还可以是在目标进程的页面上直接展示第二类推送信息。After the target process receives the second type of push information, it distributes the second type of push information, specifically, notifies the user that the second type of push information has been received, and allows the user to process the push information that needs to be processed in a timely manner. The second type of push information sent by the target process can be to display the push information on the notification bar, or to let the terminal device send notification information, such as sound prompt information, vibration information, or light up the screen, etc., or it can also be on the page of the target process The second type of push information is directly displayed on the screen.
当然,目标进程并不是直接将第二类推送信息发送,而是可以先对第二类推送信息进行一定的处理后,再发送推送信息,这样可以让用户更加快捷地了解第二类推送信息的具体内容,或者让用户知晓第二类推送信息的业务类型,用户可以更加有针对性的处理第二类推送信息,有效避免用遗漏处理重要的推送信息,也避免用户过多的被不重要、不紧急的推送信息打扰。Of course, the target process does not directly send the second type of push information, but can first process the second type of push information before sending the push information, so that the user can understand the second type of push information more quickly The specific content, or let the user know the business type of the second type of push information, the user can process the second type of push information in a more targeted manner, effectively avoid processing important push information by omission, and avoid too many users being dismissed as unimportant, Not urgent push message interruption.
目标进程处理第二类推送信息的流程如图2所示,首先,执行步骤S201,目标进程获取第二类推送信息的摘要信息。The flow of the target process processing the second type of push information is shown in FIG. 2 . First, step S201 is executed, and the target process obtains the summary information of the second type of push information.
应用程序向目标进程发送第二类推送信息时,可以将第二类推送信息的摘要信息提取出来,因此,目标进程可以很方便的获取第二类推送信息的摘要信息,并且可以从摘要信息中获取推送信息业务类型等信息。本实施例中,推送信息的业务类型是指该推送信息是广告信息、新闻资讯、更新升级信息等。When the application sends the second type of push information to the target process, it can extract the summary information of the second type of push information, so the target process can easily obtain the summary information of the second type of push information, and can obtain the summary information from the summary information Get push information service type and other information. In this embodiment, the service type of the push information means that the push information is advertisement information, news information, update and upgrade information, and the like.
步骤S202,判断是否需要对第二类推送信息进行处理,如是,则执行步骤S203,否则,执行步骤S204。Step S202, judging whether the push information of the second type needs to be processed, if yes, execute step S203, otherwise, execute step S204.
在获取第二类推送信息的摘要信息以后,目标进程通过对摘要信息的分析,判断是否需要对第二类推送信息进行处理。通常,由于推送信息包含大量的信息,如应用程序的更新升级为例,推送信息通常会包括要更新的应用程序的名称、更新后的版本号、更新的数据包的发布时间,甚至还包括更新后的应用程序所增加的功能、修复的漏洞等等。但是,对于用户而言,通常并不关心诸如更新的数据包发布时间等信息,往往只是关心更新后的应用程序所更加的功能等信息,因此,目标进程可以对第二类推送信息进行一定的处理,例如提取出关键的信息,并且将关键的信息发送出去。After acquiring the summary information of the second type of push information, the target process determines whether the second type of push information needs to be processed by analyzing the summary information. Usually, since the push information contains a lot of information, such as the update and upgrade of the application program as an example, the push information usually includes the name of the application to be updated, the updated version number, the release time of the updated data package, and even the updated Features added, bugs fixed, and more in later applications. However, users generally do not care about information such as the release time of the updated data package, and often only care about information such as the functions of the updated application program. Therefore, the target process can perform certain operations on the second type of push information. Processing, such as extracting key information and sending the key information.
因此,步骤S202中,就是根据第二类推送信息中的摘要信息来判断第二类推送信息是否需要进行处理,如第二类推送信息中是否包含有一些不需要向用户展示的信息,或者包含有用户不关心的信息等。Therefore, in step S202, it is to judge whether the second type of push information needs to be processed according to the abstract information in the second type of push information, such as whether the second type of push information contains some information that does not need to be displayed to the user, or contains There is information that the user does not care about, etc.
当然,在判断是否需要对第二类推送信息进行处理,还可以依据第二类推送信息的业务类型进行判断,例如,在确定第二类推送信息是广告信息时,可以对推送信息进行暂缓推送的处理,即不会马上发送广告类的推送信息。如果是新闻资讯类的推送信息,则需要马上发送推送信息。Of course, when judging whether the second type of push information needs to be processed, it can also be judged based on the business type of the second type of push information. For example, when it is determined that the second type of push information is advertising information, the push information can be postponed processing, that is, the push information of advertisements will not be sent immediately. If it is a push message of news information, the push message needs to be sent immediately.
步骤S203,目标进程发送第二类推送信息。Step S203, the target process sends the push information of the second type.
如果步骤S202确认不需要对第二类推送信息进行处理,则目标进程直接发送该推送信息,即目标进程并不对所接收到的第二类推送信息进行任何处理,将第二类推送信息发送至终端设备,如发送至通知栏管理进程,由通知栏管理进程将第二类推送信息添加至通知栏中,用户点击通知栏后即可以看到有未读的新信息。当然,目标进程也可以在发送第二类推送信息的同时,请求终端设备发出提示信息,如点亮屏幕、发出声音提示信息或者振动信号等。If step S202 confirms that the push information of the second type does not need to be processed, the target process directly sends the push information, that is, the target process does not perform any processing on the received push information of the second type, and sends the push information of the second type to If the terminal device sends it to the notification bar management process, the notification bar management process will add the second type of push information to the notification bar, and the user can see unread new information after clicking the notification bar. Of course, the target process can also request the terminal device to send prompt information, such as lighting up the screen, sending out sound prompt information or vibration signals, etc. while sending the second type of push information.
步骤S204,对第二类推送信息进行预设的处理。Step S204, perform preset processing on the push information of the second type.
如果步骤S202确认需要对第二类推送信息进行处理以后才发送,则步骤S204就是对第二类推送信息进行处理。当然,目标进程需要根据第二类推送信息的实际情况进行相应的处理。例如,如果第二类推送信息是关于应用程序更新升级的通知,则目标进程可以提取出推送新的标题,如“软件更新通知”,并且提取出推送信息的中用户较为关心的内容,如更新后的应用程序所新增的功能,更新后的应用程序修复的漏洞等,而其他的信息,诸如更新的数据包发布时间、更新版本号等,可以进行屏蔽处理。If step S202 confirms that the push information of the second type needs to be processed before it is sent, then step S204 is to process the push information of the second type. Of course, the target process needs to perform corresponding processing according to the actual situation of the second type of push information. For example, if the second type of push information is a notification about an application update, the target process can extract the new title of the push, such as "software update notification", and extract the content that users are more concerned about in the push information, such as update New functions added by the updated application program, bugs fixed by the updated application program, etc., and other information, such as the release time of the updated data package, the updated version number, etc., can be shielded.
又例如,第二类推送信息是广告信息,则目标进程可以暂缓广告信息的发布,例如在预设的一个时间段内不发送广告信息,只是在特定时间段内才发送广告信息。由于用户一般不希望有过多广告信息的打扰,因此目标进程可以设定广告类的推送信息只有在中午12点至2点以及下午6点至8点的时间段内发送,其他时间段内不发送广告类的推送信息。For another example, if the second type of push information is advertisement information, the target process may suspend the release of advertisement information, for example, not sending advertisement information within a preset time period, but only sending advertisement information within a specific time period. Since users generally do not want to be disturbed by too much advertising information, the target process can set that the advertising push information is only sent during the time period from 12:00 noon to 2:00 pm and from 6:00 pm to 8:00 pm, and not in other time periods. Send push information for advertisements.
可见,步骤S204中,目标进程对第二类推送信息的预设处理可以是提取用户感兴趣的信息,并且屏蔽用户不感兴趣的信息,或者对推送信息进行暂缓发送的处理。当然,还可以根据推送信息的内容设定推送信息的显示格式,如将推送信息的标题使用特殊颜色的字体显示,并且将推送信息以表格的形式展示等。It can be seen that in step S204, the preset processing of the second type of push information by the target process may be to extract the information that the user is interested in, and block the information that the user is not interested in, or to suspend the sending of the push information. Of course, the display format of the push information can also be set according to the content of the push information, such as displaying the title of the push information in a font of a special color, and displaying the push information in the form of a table, and the like.
步骤S205,目标进程发送经过处理后的第二类推送信息。Step S205, the target process sends the processed push information of the second type.
目标进程对第二类推送信息进行处理后,将第二类推送信息发送至终端设备,由终端设备通知用户接收到推送信息。典型的处理方式是目标进程向通知栏管理进程发出添加新通知的请求,将经过处理以后的推送信息显示在通知栏,例如以预设的格式或者以表格形式等显示在通知栏中。After the target process processes the push information of the second type, it sends the push information of the second type to the terminal device, and the terminal device notifies the user that the push information has been received. A typical processing method is that the target process sends a request for adding a new notification to the notification bar management process, and displays the processed push information in the notification bar, for example, in a preset format or in a table form.
当然,如果步骤S204的预设处理是暂缓第二类推送信息的发送,则步骤S205是在到达预设的时间段以后,将第二类推送信息显示在通知栏中。或者,针对广告类的推送信息,可以是在屏幕点亮以后,才将推送信息显示在通知栏中。Of course, if the preset processing in step S204 is to suspend the sending of the second type of push information, then step S205 is to display the second type of push information in the notification bar after the preset time period is reached. Alternatively, for the push information of advertisements, the push information may be displayed in the notification bar after the screen is turned on.
优选的,可以在目标进程的配置文件中设定目标进程所接收到的第二类推送信息的发送方式,例如将所接收到的推送信息通过目标进程展示给用户,或者在通知栏中展示所接收到的推送信息。因此,步骤S205还可以是获取目标进程的配置文件中推送信息发送方式信息,并且根据推送信息发送方式信息确定所接收到的第二类推送信息的发送方式,例如是直接在目标进程的页面上展示推送信息或者在通知栏中展示推送信息,并且应用所确定的发送方式发送第二类推送信息。Preferably, the sending method of the second type of push information received by the target process can be set in the configuration file of the target process, such as displaying the received push information to the user through the target process, or displaying all the push information in the notification bar. The received push message. Therefore, step S205 can also be to obtain the push information sending method information in the configuration file of the target process, and determine the sending method of the second type of push information received according to the push information sending method information, for example, directly on the page of the target process Display the push information or display the push information in the notification bar, and send the second type of push information by the sending method determined by the application.
可见,由于应用程序上可以运行多个由第三方开发的多个进程,因此这些进程之间相互独立的运行,例如,第三方开发的进程之间并不会相互共享数据,且每一个进程的启动或者退出均不受另一个第三方开发的进程的影响。因此,第二类推送信息对应的目标进程通常只有一个,这样,每一个目标进程都独立的接收第二类推送信息,并且独立的处理第二类推送信息,即每一个目标进程接收或者处理第二类推送信息并不受其他的第三方开发的目标进程的影响。It can be seen that since multiple processes developed by a third party can run on the application, these processes run independently of each other. For example, the processes developed by a third party do not share data with each other, and each process Launching or exiting is not affected by another process developed by a third party. Therefore, there is usually only one target process corresponding to the second type of push information. In this way, each target process independently receives the second type of push information and independently processes the second type of push information, that is, each target process receives or processes the second type of push information. The second type of push information is not affected by other target processes developed by third parties.
并且,由于运行在目标应用程序上的目标进程可以是一个未启动运行的第三方开发的进程,也就是说,用户可以直接在应用程序上点击目标进程的图标并且运行目标进程,同时,为了实现目标进程接收与发送推送信息的功能,本发明在运行目标进程时,即为目标进程配置用于接收推送信息的接口以及发送推送信息的接口。Moreover, since the target process running on the target application program may be a process developed by a third party that has not started running, that is to say, the user can directly click the icon of the target process on the application program and run the target process. At the same time, in order to realize The target process has the function of receiving and sending push information. The present invention configures an interface for receiving push information and an interface for sending push information for the target process when running the target process.
参见图3,配置推送信息接收接口以及推送信息发送接口的步骤如下:Referring to Figure 3, the steps for configuring the push information receiving interface and the push information sending interface are as follows:
首先,执行步骤S301,接收运行目标进程的指令。First, step S301 is executed to receive an instruction to run a target process.
用户可以在应用程序的页面上点击需要运行的目标进程的图标,当然,所点击的图标对应的目标进程可以是一个并未启动运行的进程,只是在应用程序的页面上显示了该进程的图标。在接收到运行该目标进程以后,还需要下载目标进程的配置文件以后,才启动运行该目标进程。The user can click the icon of the target process that needs to be run on the application page. Of course, the target process corresponding to the clicked icon can be a process that has not started running, but the icon of the process is displayed on the application page . After receiving and running the target process, it is necessary to download the configuration file of the target process before starting to run the target process.
优选的,应用程序的页面上可以显示一个搜索栏,用户可以在搜索栏内输入需要运行的目标进程的关键词,应用程序根据关键词搜索相应的目标进程,并且启动运行目标进程。Preferably, a search bar can be displayed on the page of the application program, and the user can input keywords of the target process to be run in the search bar, and the application program searches for the corresponding target process according to the keyword, and starts to run the target process.
步骤S302,获取目标进程的配置文件,并且获取配置文件中的接口配置标记。Step S302, obtaining the configuration file of the target process, and obtaining the interface configuration flag in the configuration file.
当用户发出了运行目标进程的指令以后,目标应用程序向预定的服务器发送下载目标进程配置文件的请求指令,并且从预定的服务器中接收目标进程的配置文件。优选的,所接收的配置文件包含有目标进程的若干组件,并且包含目标进程的运行逻辑、描述信息等,其中,配置文件的组件与终端设备的操作系统的原生控件存在对应关系,通过获取配置文件中的组件可以确定操作系统中对应的原生控件。配置文件中运行逻辑用于控制目标进程中各个页面之间的逻辑关系,而描述信息则描述页面的布局、字体等信息。After the user issues an instruction to run the target process, the target application program sends a request instruction for downloading the configuration file of the target process to a predetermined server, and receives the configuration file of the target process from the predetermined server. Preferably, the received configuration file contains several components of the target process, and includes the operating logic and description information of the target process, wherein the components of the configuration file correspond to the native controls of the operating system of the terminal device. By obtaining the configuration The components in the file can determine the corresponding native controls in the operating system. The running logic in the configuration file is used to control the logical relationship between each page in the target process, and the description information describes the page layout, font and other information.
并且,配置文件中还包括接口配置标记,该标记用于指示目标进程需要配置的接口,例如需要配置接收推送信息的接口、需要配置获取摄像装置数据的接口等。优选地,接口配置标记被存储在预设的位置上,例如在配置文件预设的位置上使用二进制数“0”或者“1”表示是否需要配置推送信息接收接口以及推送信息发送接口。In addition, the configuration file also includes an interface configuration tag, which is used to indicate the interface that the target process needs to configure, for example, the interface that needs to be configured to receive push information, the interface that needs to be configured to obtain data from the camera device, and the like. Preferably, the interface configuration flag is stored in a preset position, for example, a binary number "0" or "1" is used in the preset position of the configuration file to indicate whether the push information receiving interface and the push information sending interface need to be configured.
步骤S303,获取推送信息接收接口以及推送信息发送接口的配置信息。Step S303, acquiring the configuration information of the push information receiving interface and the push information sending interface.
如果步骤S302中确定目标进程的配置文件中的接口配置标记为需要为目标进程配置推送信息接收接口以及推送信息发送接口,则步骤S303即获取相应接口的配置信息。由于目标进程需要接收推送信息并且需要发送推送信息,则配置文件中将包含有推送信息接收接口的配置信息以及推送信息发送接口的配置信息,这些配置信息可以存储在配置文件的预设位置上。因此,解析配置文件时,只需要在预设的位置上获取推送信息接收接口的配置信息以及推送信息发送接口的配置信息。If it is determined in step S302 that the interface configuration in the configuration file of the target process is marked as needing to configure the push information receiving interface and the push information sending interface for the target process, then step S303 is to obtain the configuration information of the corresponding interface. Since the target process needs to receive push information and needs to send push information, the configuration file will contain the configuration information of the push information receiving interface and the configuration information of the push information sending interface, and these configuration information can be stored in the preset location of the configuration file. Therefore, when parsing the configuration file, it is only necessary to obtain the configuration information of the push information receiving interface and the configuration information of the push information sending interface at a preset location.
步骤S304,根据所获取的推送信息接收接口配置信息配置推送信息接收接口,并且根据推送信息发送接口配置信息配置推送信息发送接口。Step S304, configure a push information receiving interface according to the acquired push information receiving interface configuration information, and configure a push information sending interface according to the push information sending interface configuration information.
目标应用程序解析配置文件时,在获取了推送信息接收接口的配置文件后,根据所获取的配置信息为目标进程配置推送信息接收接口,例如根据配置文件的接口配置声明,确定需要配置的接口,并且获取目标应用程序中对应的接口函数体,即根据所需要调用的接口函数的函数名,确定目标应用程序中对应的调用函数。另外,如果调用推送信息接收接口时,目标进程需要设置特定的参数,则配置推送信息接收接口时还需要设定相应的参数。When the target application parses the configuration file, after obtaining the configuration file of the push information receiving interface, configure the push information receiving interface for the target process according to the obtained configuration information, for example, determine the interface that needs to be configured according to the interface configuration statement of the configuration file, And obtain the corresponding interface function body in the target application program, that is, determine the corresponding call function in the target application program according to the function name of the interface function to be called. In addition, if the target process needs to set specific parameters when calling the push information receiving interface, corresponding parameters also need to be set when configuring the push information receiving interface.
同时,目标应用程序还可以设定推送信息发送接口,即获取配置文件中的推送信息发送接口的配置信息,根据配置信息配置推送信息发送接口。并且,如果目标进程使用推送信息发送接口时,目标进程需要设置特定的参数,则配置推送信息发送接口时还需要设定相应的参数。At the same time, the target application program can also set the push information sending interface, that is, obtain the configuration information of the push information sending interface in the configuration file, and configure the push information sending interface according to the configuration information. Moreover, if the target process uses the push information sending interface, the target process needs to set specific parameters, and corresponding parameters also need to be set when configuring the push information sending interface.
可见,对于独立运行于目标应用程序上的第三方目标进程,每一个目标进程均可以通过目标应用程序所设定的推送信息接收接口获取第二类推送信息,并且通过目标应用程序所配置的推送信息发送接口将第二类推送信息出去。It can be seen that for a third-party target process running independently on the target application, each target process can obtain the second type of push information through the push information receiving interface set by the target application, and through the push information configured by the target application The information sending interface pushes the second type of information out.
这样,目标应用程序接收到第二类推送信息以后,可以通过推送信息接收接口将所接收到的推送信息发送至目标进程,目标进程即可以获取第二类推送信息的具体内容,并且根据实际情况,由目标进程自行展示第二类推送信息或者在通知栏上显示第二类推送信息,例如在目标进程的页面上直接展示所接收到的第二类推送信息。In this way, after the target application program receives the second type of push information, it can send the received push information to the target process through the push information receiving interface, and the target process can obtain the specific content of the second type of push information, and according to the actual situation , the target process displays the second type of push information by itself or displays the second type of push information on the notification bar, for example, directly displays the received second type of push information on the page of the target process.
当然,如果需要将第二类推送信息发送至通知栏管理进程,则需要通过推送信息发送接口将第二类推送信息发送至目标应用程序,再由目标应用程序将第二类推送信息发送至通知栏管理进程,由目标应用程序的推送信息处理进程将第二类推送信息显示在通知栏上。Of course, if you need to send the second type of push information to the notification bar management process, you need to send the second type of push information to the target application through the push information sending interface, and then the target application sends the second type of push information to the notification bar. Bar management process, the second type of push information is displayed on the notification bar by the push information processing process of the target application.
本发明实施例还提供一种信息推送装置,如图4所示,本实施例的信息推送装置包括推送信息接收模块401、推送信息分类确定模块402、推送信息发送模块403、运行指令获取模块407以及接口配置模块408,其中,推送信息发送模块403进一步包括目标进程确定模块404、推送信息处理模块405以及推送信息处理模块406。The embodiment of the present invention also provides an information push device. As shown in FIG. 4 , the information push device of this embodiment includes a push information receiving module 401, a push information classification determination module 402, a push information sending module 403, and an operation instruction acquisition module 407 And an interface configuration module 408 , wherein the push information sending module 403 further includes a target process determination module 404 , a push information processing module 405 and a push information processing module 406 .
推送信息接收模块401用于接收推送信息,例如,应用程序接收终端设备经由网络接收的推送信息,推送信息可以由应用程序的开发方或者服务提供方发出,并且,推送信息包含有分类标记以及标识,分类标记用于标识该推送信息是第一类推送信息还是第二类推送信息,而标识用于标识该推送信息对应的目标应用程序以及目标进程。The push information receiving module 401 is used to receive push information, for example, the application program receives the push information received by the terminal device via the network, the push information can be sent by the developer of the application program or the service provider, and the push information includes classification marks and identification , the classification mark is used to identify whether the push information is the first type of push information or the second type of push information, and the identification is used to identify the target application program and target process corresponding to the push information.
推送信息分类确定模块402用于从推送信息中获取推送信息的分类标记,并且根据该分类标记确定推送信息的分类,例如,从推送信息中预定的位置获取标志位,如标志位是二进制数“0”,则表示该推送信息为第一类推送信息,如果标志位是二进制数“1”,则表示该推送信息为第二类推送信息。The push information classification determining module 402 is used to obtain the classification mark of the push information from the push information, and determine the classification of the push information according to the classification mark, for example, obtain a flag bit from a predetermined position in the push information, if the flag bit is a binary number " 0", it means that the push information is the first type of push information, and if the flag bit is a binary number "1", it means that the push information is the second type of push information.
推送信息发送模块403用于发送推送信息,如向通知栏管理进程发出请求将推送信息添加至通知栏的请求。由于推送信息确定模块402获取推送信息的分类标记,并且确定了推送信息的分类,因此,推送信息发送模块403将根据不同类型的推送信息采用不同的发送策略。The push information sending module 403 is configured to send push information, such as sending a request to the notification bar management process to add the push information to the notification bar. Since the push information determination module 402 obtains the classification mark of the push information and determines the classification of the push information, the push information sending module 403 will adopt different sending strategies according to different types of push information.
如果推送信息是第一类推送信息,则由应用程序直接将推送信息发送,例如,推送信息处理模块406实现由应用程序的推送信息处理进程直接将推送信息发送至通知栏管理进程,由通知栏管理进程将推送信息显示在通知栏中。并且,应用程序不需要对推送信息进行处理,也就是第一类推送信息是未经处理的显示在通知栏中。If the push information is the first type of push information, the application program will directly send the push information. For example, the push information processing module 406 realizes that the push information processing process of the application program directly sends the push information to the notification bar management process, and the notification bar The management process displays push information in the notification bar. Moreover, the application program does not need to process the push information, that is, the first type of push information is unprocessed and displayed in the notification bar.
如果推送信息是第二类推送信息,则目标进程确定模块404需要确定第二类推送信息所对应的目标进程,例如,从推送信息中获取标识,根据该标识确定推送信息对应的目标进程。优选的,应用程序中每一个进程启动后,均被赋予一个唯一的标识,该标识可以是进程的进程号PID,或者是进程的包名等。目标进程确定模块404在获取推送信息中的标识后,再与应用程序中的进程的标识进行对比,查找出于推送信息中的标识相同的进程,并且将查找出的进程确定为目标进程。If the push information is the second type of push information, the target process determination module 404 needs to determine the target process corresponding to the second type of push information, for example, obtain an identifier from the push information, and determine the target process corresponding to the push information according to the identifier. Preferably, each process in the application program is given a unique identifier after it is started, and the identifier can be the process number PID of the process, or the package name of the process, etc. After the target process determining module 404 obtains the identifier in the push information, it compares it with the identifier of the process in the application program, finds a process with the same identifier in the push information, and determines the found process as the target process.
推送信息处理模块405用于确定是否需要对第二类推送信息进行处理,并且在确定需要对第二类推送信息进程处理以后,对推送信息进行预设的处理,如提取推送信息中用户感兴趣的信息,屏蔽用户不感兴趣的信息,或者对推送信息进行暂缓发送的处理。The push information processing module 405 is used to determine whether the second type of push information needs to be processed, and after it is determined that the second type of push information needs to be processed, preset processing is performed on the push information, such as extracting the push information that the user is interested in information, to block information that the user is not interested in, or to suspend the sending of push information.
推送信息处理模块406用于处理推送信息,例如,推送信息是第一类推送信息时,由目标应用程序发送推送信息,如果推送信息是第二类推送信息时,由目标进程处理推送信息,当然,如果推送信息经过处理,则推送信息处理模块406所发送的就是经过处理以后的推送信息。The push information processing module 406 is used to process push information, for example, when the push information is the first type of push information, the push information is sent by the target application program, if the push information is the second type of push information, the push information is processed by the target process, of course , if the push information has been processed, what the push information processing module 406 sends is the processed push information.
运行指令接收模块407用于接收用户发出的运行目标进程的指令,例如用户点击目标应用程序上需要运行的目标进程,此时,目标进程接收用户发出的运行目标进程的指令以后,启动目标进程。当然,如果目标进程的配置文件并未下载,则需要向预定的服务器发送下载目标进程配置文件的请求指令,并且接收目标进程的配置文件。优选的,目标进程的配置文件包括若干组件、运行逻辑以及描述信息,还包括接口的配置信息。The running instruction receiving module 407 is used to receive the instruction from the user to run the target process. For example, the user clicks on the target process that needs to be run on the target application. At this time, the target process starts the target process after receiving the instruction from the user to run the target process. Of course, if the configuration file of the target process has not been downloaded, it is necessary to send a request instruction for downloading the configuration file of the target process to a predetermined server and receive the configuration file of the target process. Preferably, the configuration file of the target process includes several components, operation logic and description information, and also includes configuration information of the interface.
接口配置模块408用于实现推送信息接收接口的配置以及推送信息发送接口的配置,例如,获取配置文件中的推送信息接收接口的配置信息,确定推送信息接收接口以及推送信息发送接口所调用后的函数体,该调用的函数体由目标应用程序提供。另外,从配置文件中获取推送信息发送接口的配置信息,确定推送信息发送接口所对应的函数体。在配置推送信息接收接口以及推送信息发送接口以后,目标进程可以通过推送信息接收接口从目标应用程序接收推送信息,并且通过推送信息发送接口向目标应用程序发送推送信息,如将推送信息通过目标应用程序发送至通知栏管理进程。The interface configuration module 408 is used to implement the configuration of the push information receiving interface and the configuration of the push information sending interface. Function body, the function body for this call is provided by the target application. In addition, the configuration information of the push information sending interface is obtained from the configuration file, and the function body corresponding to the push information sending interface is determined. After configuring the push information receiving interface and the push information sending interface, the target process can receive push information from the target application through the push information receiving interface, and send push information to the target application through the push information sending interface, such as sending the push information through the target application The program is sent to the notification bar to manage the process.
由于本发明对推送信息进行分类处理,可以由应用程序的目标进程发送推送信息,这样,目标进程可以对推送信息进行预设处理后才发出推送信息,用户看到推送信息时,可以更加有针对性的获得推送信息的有效信息,如用户感兴趣的信息,也可以避免用户频繁的受到推送信息的滋扰。Because the present invention classifies the push information, the push information can be sent by the target process of the application program. In this way, the target process can send the push information after performing preset processing on the push information. When the user sees the push information, it can be more targeted Effective information of the push information can be obtained efficiently, such as the information that the user is interested in, and it can also prevent the user from being frequently disturbed by the push information.
本发明实施例还提供了一种终端设备,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端设备可以为包括手机、平板电脑、个人数字助理(英文全称:Personal Digital Assistant,英文缩写:PDA)等任意终端设备。The embodiment of the present invention also provides a terminal device, as shown in Figure 5, for the convenience of description, only the parts related to the embodiment of the present invention are shown, for specific technical details not disclosed, please refer to the method part of the embodiment of the present invention . The terminal device may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), and the like.
参考图5,终端设备包括有处理器501、存储器502、电源503以及存储在存储器中并可在处理器上运行的计算机程序。其中,处理器501执行计算机程序时实现上述各个信息处理方法实施例中的步骤,例如图1所示的步骤S101至S107等。或者,处理器执行计算机程序时实现上述各装置实施例中各模块或单元的功能。Referring to FIG. 5 , the terminal device includes a processor 501 , a memory 502 , a power supply 503 and a computer program stored in the memory and operable on the processor. Wherein, when the processor 501 executes the computer program, the steps in the foregoing embodiments of the information processing method are implemented, such as steps S101 to S107 shown in FIG. 1 . Alternatively, when the processor executes the computer program, the functions of the modules or units in the above-mentioned device embodiments are realized.
示例性的,计算机程序可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器中,并由处理器执行,以完成本发明。上述的一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序在终端设备中的执行过程。Exemplarily, a computer program can be divided into one or more modules/units, and one or more modules/units are stored in a memory and executed by a processor to implement the present invention. The above-mentioned one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
本领域技术人员可以理解,图5中示出的结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,例如上述的终端设备还可以包括输入输出设备、网络接入设备、总线等。Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation on the terminal equipment, and may include more or less components than those shown in the illustration, or combine some components, or arrange different components, such as the above-mentioned The terminal equipment can also include input and output equipment, network access equipment, bus and so on.
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,处理器是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分。The so-called processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and connects various parts of the entire terminal device through various interfaces and lines.
存储器可用于存储计算机程序和/或模块,处理器通过运行或执行存储在存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现终端设备的各种功能。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(SmartMedia Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store computer programs and/or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory 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.); The data created by the use (such as audio data, phone book, etc.) and so on. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, smart memory card (SmartMedia Card, SMC), secure digital (Secure Digital, SD) card, A flash card (Flash Card), at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
终端设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit of the terminal device is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps in the foregoing method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording media, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained on computer readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer readable media does not include Electrical carrier signals and telecommunication signals.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。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 several embodiments provided in this application, it should be understood that the disclosed systems, 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 above 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 can be Integrate 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.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it 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 this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。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. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it 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 all or 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 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 in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes. .
当然,上述的方案只是本发明优选的实施方案,实际应用是还可以有更多的变化,例如,推送信息发送方式改变、推送信息分类的改变,这样的改变并不影响本发明的实施,也应该包括在本发明的保护范围内。Of course, the above-mentioned solution is only a preferred embodiment of the present invention, and there may be more changes in practical applications, for example, changes in the sending method of push information and changes in the classification of push information. Such changes do not affect the implementation of the present invention. It should be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810324334.2A CN108519922B (en) | 2018-04-12 | 2018-04-12 | Information push method and device, terminal device and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810324334.2A CN108519922B (en) | 2018-04-12 | 2018-04-12 | Information push method and device, terminal device and computer readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108519922A true CN108519922A (en) | 2018-09-11 |
| CN108519922B CN108519922B (en) | 2022-07-12 |
Family
ID=63432214
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810324334.2A Active CN108519922B (en) | 2018-04-12 | 2018-04-12 | Information push method and device, terminal device and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108519922B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109522141A (en) * | 2018-11-27 | 2019-03-26 | 苏州我的打工人力资源有限公司 | Information-pushing method and device, server, equipment and storage medium |
| CN109617941A (en) * | 2018-10-22 | 2019-04-12 | 中国平安财产保险股份有限公司 | Data push method, device, computer equipment and computer readable storage medium |
| CN110515901A (en) * | 2019-08-23 | 2019-11-29 | 掌阅科技股份有限公司 | Information-pushing method calculates equipment and computer storage medium |
| CN112637282A (en) * | 2020-12-08 | 2021-04-09 | 平安普惠企业管理有限公司 | Information pushing method and device, computer equipment and storage medium |
| CN112819598A (en) * | 2021-02-20 | 2021-05-18 | 阳光人寿保险股份有限公司 | Information processing method and device, electronic equipment and medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120173610A1 (en) * | 2011-01-05 | 2012-07-05 | Darryl Neil Bleau | Message Push Notification Client Improvements For Multi-User Devices |
| CN103906013A (en) * | 2014-04-14 | 2014-07-02 | 夷希数码科技(上海)有限公司 | Message pushing method and device based on mobile device |
| CN106330678A (en) * | 2016-08-29 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Application message reminding method and system |
| CN106648583A (en) * | 2016-09-22 | 2017-05-10 | 依偎科技(南昌)有限公司 | Information processing method and terminal |
| CN107026933A (en) * | 2016-10-10 | 2017-08-08 | 广东欧珀移动通信有限公司 | A message management method, device and intelligent terminal for multiple applications |
| CN107341052A (en) * | 2017-06-07 | 2017-11-10 | 努比亚技术有限公司 | A kind of message treatment method and device |
| CN107391273A (en) * | 2017-06-27 | 2017-11-24 | 青岛海信智慧家居系统股份有限公司 | Message display method, information push method and device |
-
2018
- 2018-04-12 CN CN201810324334.2A patent/CN108519922B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120173610A1 (en) * | 2011-01-05 | 2012-07-05 | Darryl Neil Bleau | Message Push Notification Client Improvements For Multi-User Devices |
| CN103348663A (en) * | 2011-01-05 | 2013-10-09 | 苹果公司 | Message push notification client improvements for multi-user devices |
| CN103906013A (en) * | 2014-04-14 | 2014-07-02 | 夷希数码科技(上海)有限公司 | Message pushing method and device based on mobile device |
| CN106330678A (en) * | 2016-08-29 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Application message reminding method and system |
| CN106648583A (en) * | 2016-09-22 | 2017-05-10 | 依偎科技(南昌)有限公司 | Information processing method and terminal |
| CN107026933A (en) * | 2016-10-10 | 2017-08-08 | 广东欧珀移动通信有限公司 | A message management method, device and intelligent terminal for multiple applications |
| CN107341052A (en) * | 2017-06-07 | 2017-11-10 | 努比亚技术有限公司 | A kind of message treatment method and device |
| CN107391273A (en) * | 2017-06-27 | 2017-11-24 | 青岛海信智慧家居系统股份有限公司 | Message display method, information push method and device |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109617941A (en) * | 2018-10-22 | 2019-04-12 | 中国平安财产保险股份有限公司 | Data push method, device, computer equipment and computer readable storage medium |
| CN109522141A (en) * | 2018-11-27 | 2019-03-26 | 苏州我的打工人力资源有限公司 | Information-pushing method and device, server, equipment and storage medium |
| CN110515901A (en) * | 2019-08-23 | 2019-11-29 | 掌阅科技股份有限公司 | Information-pushing method calculates equipment and computer storage medium |
| CN110515901B (en) * | 2019-08-23 | 2023-03-14 | 掌阅科技股份有限公司 | Information pushing method, computing device and computer storage medium |
| CN112637282A (en) * | 2020-12-08 | 2021-04-09 | 平安普惠企业管理有限公司 | Information pushing method and device, computer equipment and storage medium |
| CN112637282B (en) * | 2020-12-08 | 2023-02-03 | 平安普惠企业管理有限公司 | Information pushing method and device, computer equipment and storage medium |
| CN112819598A (en) * | 2021-02-20 | 2021-05-18 | 阳光人寿保险股份有限公司 | Information processing method and device, electronic equipment and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108519922B (en) | 2022-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108519922B (en) | Information push method and device, terminal device and computer readable storage medium | |
| US10713034B2 (en) | Updating web resources | |
| CN110688232B (en) | Application program calling method, terminal equipment and computer readable storage medium | |
| US9344550B2 (en) | Apparatus and method for setting up an interface in a mobile terminal | |
| JP6270066B2 (en) | Brand self-identification and installation of branded firmware on generic electronic devices | |
| CN109391676B (en) | Terminal device control method, terminal device, and computer-readable storage medium | |
| EP2919440B1 (en) | Advertisement processing method and device | |
| US20170357735A1 (en) | Information presentation method, device, and system | |
| US9411573B2 (en) | Testing framework for applications | |
| CN101123750B (en) | Apparatus and related method for facilitating background processing of pushed content | |
| CN102830989B (en) | Reader provides method, reader and the terminal of service | |
| CN104965848A (en) | Front-end resource loading method and apparatus | |
| CN112035132A (en) | Application language switching method and device | |
| JP2008071169A (en) | Relay server and information providing system | |
| US10643234B1 (en) | Pre-loaded native application tracking service | |
| CN106528243A (en) | Information processing method, information processing device, terminal equipment and server | |
| CN112860300B (en) | Distributed SDK hot update processing method, application server cluster and application client | |
| CN102831179A (en) | Webpage processing method and device | |
| CN110134416A (en) | Software update method, device and computer-readable storage medium | |
| CN110442416B (en) | Method, electronic device and computer-readable medium for presenting information | |
| CN114912048B (en) | Page delivery method and device, storage medium and electronic equipment | |
| CN110264282A (en) | Advertisement orients put-on method, device and computer readable storage medium | |
| WO2016107119A1 (en) | Method and device for realizing unstructured supplementary service data menu | |
| CN110609751B (en) | Terminal equipment control method and device, terminal equipment and computer readable storage medium | |
| CN111857657A (en) | Activity creation method, activity creation device, storage medium and computer equipment |
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 | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20231219 Address after: 430000, 14th floor, No. 181 Chunxiao Road, Wuhan Economic and Technological Development Zone, Hubei Province Patentee after: Wuhan Xingji Meizu Technology Co.,Ltd. Address before: 519080 Meizu Science and Technology Building, Zhuhai City, Guangdong Province Patentee before: MEIZU TECHNOLOGY Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Information push method and device, terminal equipment, and computer-readable storage medium Granted publication date: 20220712 Pledgee: Industrial Bank Limited by Share Ltd. Wuhan branch Pledgor: Wuhan Xingji Meizu Technology Co.,Ltd. Registration number: Y2024980056546 |
|
| PE01 | Entry into force of the registration of the contract for pledge of patent right |