CN110012051A - Notify method for pushing, device, terminal device, server and system - Google Patents

Notify method for pushing, device, terminal device, server and system Download PDF

Info

Publication number
CN110012051A
CN110012051A CN201811557935.4A CN201811557935A CN110012051A CN 110012051 A CN110012051 A CN 110012051A CN 201811557935 A CN201811557935 A CN 201811557935A CN 110012051 A CN110012051 A CN 110012051A
Authority
CN
China
Prior art keywords
notification
request
time point
terminal device
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811557935.4A
Other languages
Chinese (zh)
Inventor
董泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuomi Private Ltd
Original Assignee
Hong Kong LiveMe Corp ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hong Kong LiveMe Corp ltd filed Critical Hong Kong LiveMe Corp ltd
Priority to CN201811557935.4A priority Critical patent/CN110012051A/en
Publication of CN110012051A publication Critical patent/CN110012051A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

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

Abstract

Notice method for pushing, device, terminal device, server and system provided in an embodiment of the present invention.A kind of notice method for pushing is applied to terminal device, which comprises by sending notice request to the corresponding server of client, so that server determines that notice requests corresponding request results, and feedback request result;Wherein, content of announcement and push time point of the notice request for requesting the target remote pushed after current point in time to notify;The request results of reception server feedback are generated and are notified with the matched local about client of request results, wherein the content of announcement locally notified is the content of announcement in request results, and output time point matches with the push time point in request results.As it can be seen that remote notification can be improved is sent to rate on time by this programme.

Description

通知推送方法、装置、终端设备、服务器及系统Notification push method, device, terminal device, server and system

技术领域technical field

本发明涉及信息推送技术领域,特别是涉及一种通知推送方法、装置、终端设备、服务器及系统。The present invention relates to the technical field of information push, in particular to a notification push method, device, terminal device, server and system.

背景技术Background technique

为了提高用户使用客户端的活跃度和便捷性,客户端的服务器通常会向客户端推送远程通知。所谓的远程通知为:由服务器侧所生成的、通过网络传输至客户端侧并显示的通知。In order to improve the user's activity and convenience in using the client, the server of the client usually pushes remote notifications to the client. The so-called remote notification is a notification generated by the server side, transmitted to the client side through the network and displayed.

实际应用中,为了保障终端设备的安全性,终端设备制造商对远程通知的推送机制进行了规定,相应的推送系统如图1所示。具体的,客户端对应的服务器101利用通信网络,向终端设备制造商提供的推送服务器102发送远程通知,推送服务器102利用通信网络,将接收到的远程通知转发至终端设备103中的客户端,从而完成远程通知的推送。In practical applications, in order to ensure the security of the terminal device, the terminal device manufacturer has stipulated the push mechanism of the remote notification, and the corresponding push system is shown in Figure 1. Specifically, the server 101 corresponding to the client uses the communication network to send a remote notification to the push server 102 provided by the terminal device manufacturer, and the push server 102 uses the communication network to forward the received remote notification to the client in the terminal device 103, This completes the push of remote notifications.

但是,远程通知需要在指定时间点进行推送,如果在该指定时间点通信网络的通信质量不佳,利用上述的推送过程推送远程通知时,可能会造成远程通知无法准时送达,降低远程通知的准时送到率。However, the remote notification needs to be pushed at a specified time point. If the communication quality of the communication network is not good at the specified time point, using the above push process to push the remote notification may cause the remote notification to fail to be delivered on time and reduce the impact of the remote notification. On time delivery rate.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种通知推送方法、装置、终端设备、服务器及系统,以实现提高远程通知的准时送达率。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a notification push method, device, terminal device, server and system, so as to improve the on-time delivery rate of remote notifications. The specific technical solutions are as follows:

第一方面,本发明实施例提供了一种通知推送方法,应用于终端设备,该方法包括:In a first aspect, an embodiment of the present invention provides a notification push method, which is applied to a terminal device, and the method includes:

向客户端对应的服务器发送通知请求,以使得服务器确定通知请求对应的请求结果,并反馈请求结果;其中,通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;Send a notification request to the server corresponding to the client, so that the server determines the request result corresponding to the notification request, and feeds back the request result; wherein, the notification request is used to request the notification content and push time of the target remote notification to be pushed after the current time point point;

接收服务器反馈的请求结果;Receive the request result fed back by the server;

生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配。A local notification about the client that matches the request result is generated, wherein the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result.

可选的,在上述生成与所述请求结果匹配的关于所述客户端的本地通知步骤之前,该方法还包括:Optionally, before the above step of generating a local notification about the client that matches the request result, the method further includes:

获取所述终端设备的关于通知推送的设置信息;Acquire the setting information about push notification of the terminal device;

根据所述设置信息,判断是否允许推送所述客户端的本地通知;According to the setting information, determine whether to allow the local notification of the client to be pushed;

如果允许,执行所述生成与所述请求结果匹配的关于所述客户端的本地通知的步骤。If allowed, the step of generating a local notification about the client that matches the result of the request is performed.

可选的,该方法还包括:Optionally, the method further includes:

当判断出不允许推送所述客户端的本地通知时,生成与所述请求结果匹配的日历事件,其中,所述日历事件的事件内容为所述请求结果中的通知内容,且提醒时间点与所述请求结果中的推送时间点相匹配。When it is determined that the local notification of the client is not allowed to be pushed, a calendar event matching the request result is generated, wherein the event content of the calendar event is the notification content in the request result, and the reminder time point is the same as that of the request result. match the push time point in the above request result.

可选的,在上述向客户端对应的服务器发送通知请求的步骤之前,所述方法还包括:Optionally, before the above step of sending a notification request to the server corresponding to the client, the method further includes:

获取与客户端的服务器之间的通信信息;其中,所述通信信息为用于表征通信质量的信息;Obtain the communication information with the server of the client; wherein, the communication information is information used to characterize the communication quality;

根据所述通信信息,判断所述终端设备与所述服务器之间的通信质量是否符合预设传输条件;According to the communication information, determine whether the communication quality between the terminal device and the server meets a preset transmission condition;

如果符合,则执行所述向客户端对应的服务器发送通知请求的步骤。If so, the step of sending a notification request to the server corresponding to the client is performed.

可选的,上述生成与所述请求结果匹配的关于所述客户端的本地通知的步骤,包括:Optionally, the above-mentioned step of generating a local notification about the client that matches the request result includes:

确定与所述请求结果中的推送时间点对应的、所述终端设备本地的目标时间点;determining a local target time point of the terminal device corresponding to the push time point in the request result;

构建具有所述请求结果中的通知内容且输出时间点为所述目标时间点的关于所述客户端的本地通知。Constructing a local notification about the client with the notification content in the request result and the output time point being the target time point.

可选的,上述确定与所述请求结果中的推送时间点对应的、所述终端设备本地的目标时间点,包括:Optionally, the above-mentioned determination of the target time point local to the terminal device corresponding to the push time point in the request result includes:

当所述服务器与所述终端设备处于同一时区时,将请求结果中的推送时间点作为所述终端设备本地的目标时间点;When the server and the terminal device are in the same time zone, use the push time point in the request result as the local target time point of the terminal device;

当所述服务器与所述终端设备未处于同一时区时,根据所述终端设备所在的时区和所述服务器所在的时区,将所述请求结果中的推送时间点转换为所述终端设备本地的目标时间点。When the server and the terminal device are not in the same time zone, convert the push time point in the request result to the local target of the terminal device according to the time zone where the terminal device is located and the time zone where the server is located point in time.

第二方面,本发明实施例提供了一种通知推送方法,应用于服务器,服务器与终端设备中的客户端对应,该方法包括:In a second aspect, an embodiment of the present invention provides a notification push method, which is applied to a server, where the server corresponds to a client in a terminal device, and the method includes:

接收终端设备发送的通知请求,通知请求用于请求在当前时间点之后进行推送的关于客户端的目标远程通知的通知内容和推送时间点;Receive a notification request sent by the terminal device, where the notification request is used to request the notification content and push time point of the target remote notification about the client to be pushed after the current time point;

确定通知请求对应的请求结果;Determine the request result corresponding to the notification request;

将请求结果反馈给终端设备,以使得终端设备在接收到所述请求结果后,生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配。Feedback the request result to the terminal device, so that after receiving the request result, the terminal device generates a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and output The time point matches the push time point in the request result.

可选的,上述确定所述通知请求对应的请求结果,包括:Optionally, determining the request result corresponding to the notification request above includes:

从关于客户端的、在当前时间点之后进行推送的多个远程通知中,确定目标远程通知;所述目标远程通知为:所对应推送时间点与当前时间点的差值满足预设时长条件的远程通知;A target remote notification is determined from a plurality of remote notifications about the client that are pushed after the current time point; the target remote notification is: the remote notification whose difference between the corresponding push time point and the current time point satisfies the preset duration condition Notice;

将所述目标远程通知的通知内容和推送时间点作为请求结果。The notification content and the push time point of the target remote notification are used as the request result.

可选的,上述预设时长条件为:大于预设时长阈值,或者,位于预设时长区间。Optionally, the above preset duration condition is: greater than a preset duration threshold, or within a preset duration interval.

第三方面,本发明实施例提供了一种通知推送装置,应用于终端设备,该装置包括:In a third aspect, an embodiment of the present invention provides a notification push device, which is applied to a terminal device, and the device includes:

请求发送模块,用于向客户端对应的服务器发送通知请求,以使得服务器确定通知请求对应的请求结果,并反馈请求结果;其中,通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;The request sending module is used to send a notification request to the server corresponding to the client, so that the server determines the request result corresponding to the notification request and feeds back the request result; wherein, the notification request is used to request the target remote notification to be pushed after the current time point notification content and push time point;

结果接收模块,用于接收服务器反馈的请求结果;The result receiving module is used to receive the request result fed back by the server;

通知生成模块,用于生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配。The notification generation module is configured to generate a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result.

可选的,上述装置还包括:Optionally, the above device also includes:

判断模块,用于在所述通知生成模块生成与所述请求结果匹配的关于所述客户端的本地通知之前,获取所述终端设备的关于通知推送的设置信息;根据所述设置信息,判断是否允许推送所述客户端的本地通知;a judging module, configured to obtain setting information of the terminal device about notification push before the notification generating module generates a local notification about the client that matches the request result; according to the setting information, determine whether to allow push the local notification of the client;

如果允许,触发所述通知生成模块执行所述生成与所述请求结果匹配的关于所述客户端的本地通知。If permitted, triggering the notification generation module to perform the generating of a local notification about the client that matches the request result.

可选的,上述装置还包括:Optionally, the above device also includes:

事件生成模块,用于当所述判断模块判断出不允许推送所述客户端的本地通知时,生成与所述请求结果匹配的日历事件,其中,所述日历事件的事件内容为所述请求结果中的通知内容,且提醒时间点与所述请求结果中的推送时间点相匹配。An event generation module is used to generate a calendar event matching the request result when the judgment module judges that the local notification of the client is not allowed to be pushed, wherein the event content of the calendar event is in the request result the notification content, and the reminder time point matches the push time point in the request result.

可选的,上述请求发送模块还用于:Optionally, the above request sending module is also used for:

在向客户端对应的服务器发送通知请求之前,获取与客户端的服务器之间的通信信息;其中,所述通信信息为用于表征通信质量的信息;根据所述通信信息,判断所述终端设备与所述服务器之间的通信质量是否符合预设传输条件;如果符合,则执行所述向客户端对应的服务器发送通知请求。Before sending the notification request to the server corresponding to the client, obtain the communication information with the server of the client; wherein, the communication information is information used to characterize the communication quality; Whether the communication quality between the servers meets the preset transmission conditions; if so, execute the sending a notification request to the server corresponding to the client.

可选的,上述通知生成模块,包括:Optionally, the above notification generation module includes:

时间点确定子模块,用于确定与所述请求结果中的推送时间点对应的、所述终端设备本地的目标时间点;a time point determination submodule, configured to determine a local target time point of the terminal device corresponding to the push time point in the request result;

通知构建子模块,用于构建具有所述请求结果中的通知内容且输出时间点为所述目标时间点的关于所述客户端的本地通知。A notification construction sub-module, configured to construct a local notification about the client with the notification content in the request result and the output time point being the target time point.

可选的,上述时间点确定子模块,具体用于:Optionally, the above-mentioned time point determination sub-module is specifically used for:

当所述服务器与所述终端设备处于同一时区时,将请求结果中的推送时间点作为所述终端设备本地的目标时间点;When the server and the terminal device are in the same time zone, use the push time point in the request result as the local target time point of the terminal device;

当所述服务器与所述终端设备未处于同一时区时,根据所述终端设备所在的时区和所述服务器所在的时区,将所述请求结果中的推送时间点转换为所述终端设备本地的目标时间点。When the server and the terminal device are not in the same time zone, convert the push time point in the request result to the local target of the terminal device according to the time zone where the terminal device is located and the time zone where the server is located point in time.

第四方面,本发明实施例提供了一种通知推送装置,应用于服务器,该装置包括:In a fourth aspect, an embodiment of the present invention provides a notification push device, which is applied to a server, and the device includes:

请求接收模块,用于接收终端设备发送的通知请求,通知请求用于请求在当前时间点之后进行推送的关于客户端的目标远程通知的通知内容和推送时间点;The request receiving module is used to receive the notification request sent by the terminal device, and the notification request is used to request the notification content and push time point of the target remote notification about the client to be pushed after the current time point;

结果确定模块,用于确定通知请求对应的请求结果;The result determination module is used to determine the request result corresponding to the notification request;

结果反馈模块,用于将请求结果反馈给终端设备,以使得终端设备在接收到请求结果后,生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配。The result feedback module is used to feed back the request result to the terminal device, so that after receiving the request result, the terminal device generates a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification in the request result content, and the output time point matches the push time point in the request result.

可选的,上述结果确定模块具体用于:Optionally, the above result determination module is specifically used for:

从关于客户端的、在当前时间点之后进行推送的多个远程通知中,确定目标远程通知;所述目标远程通知为:所对应推送时间点与当前时间点的差值满足预设时长条件的远程通知;A target remote notification is determined from a plurality of remote notifications about the client that are pushed after the current time point; the target remote notification is: the remote notification whose difference between the corresponding push time point and the current time point satisfies the preset duration condition Notice;

将所述目标远程通知的通知内容和推送时间点作为请求结果。The notification content and the push time point of the target remote notification are used as the request result.

第五方面,本发明实施例提供了一种通知推送系统,该系统包括:终端设备和服务器,服务器与终端设备中的客户端对应;In a fifth aspect, an embodiment of the present invention provides a notification push system, the system includes: a terminal device and a server, and the server corresponds to a client in the terminal device;

终端设备,用于向客户端对应的服务器发送通知请求;其中,通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;接收服务器反馈的请求结果;生成与请求结果匹配的关于所述客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配;The terminal device is used to send a notification request to the server corresponding to the client; wherein, the notification request is used to request the notification content and push time point of the target remote notification to be pushed after the current time point; receive the request result fed back by the server; The local notification about the client that the request result matches, wherein the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result;

服务器,用于接收终端设备发送的通知请求;确定通知请求对应的请求结果;将请求结果反馈给终端设备。The server is configured to receive the notification request sent by the terminal device; determine the request result corresponding to the notification request; and feed back the request result to the terminal device.

第六方面,本发明实施例提供了一种终端设备,该设备包括:In a sixth aspect, an embodiment of the present invention provides a terminal device, and the device includes:

处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序,实现上述第一方面提供的通知推送方法的步骤。A processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve The steps of the notification push method provided in the first aspect above.

第七方面,本发明实施例提供了一种服务器,该服务器包括:In a seventh aspect, an embodiment of the present invention provides a server, where the server includes:

处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序,实现上述第二方面提供的通知推送方法的步骤。A processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve The steps of the notification push method provided in the second aspect above.

第八方面,本发明实施例提供了一种计算机可读存储介质,该存储介质包含于终端设备,该存储介质内存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面提供的通知推送方法的步骤。In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, the storage medium is included in a terminal device, and a computer program is stored in the storage medium, and when the computer program is executed by a processor, the above-mentioned first aspect provides Steps for notification push method.

第九方面,本发明实施例提供了一种计算机可读存储介质,该存储介质包含于服务器,该存储介质内存储有计算机程序,该计算机程序被处理器执行时实现上述第二方面提供的通知推送方法的步骤。In a ninth aspect, an embodiment of the present invention provides a computer-readable storage medium, the storage medium is included in a server, and a computer program is stored in the storage medium, and when the computer program is executed by a processor, the notification provided in the second aspect above is implemented The steps of the push method.

本发明实施例提供的通知推送方法、装置、终端设备、服务器及系统。其中,一种通知推送方法,应用于终端设备,该方法包括:向客户端对应的服务器发送通知请求,以使得服务器确定通知请求对应的请求结果,并反馈请求结果。其中,通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点。终端设备接收服务器反馈的请求结果,生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配。由于终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。The notification push method, device, terminal device, server and system provided by the embodiments of the present invention. Among them, a notification push method is applied to a terminal device, and the method includes: sending a notification request to a server corresponding to a client, so that the server determines a request result corresponding to the notification request, and feeds back the request result. The notification request is used to request the notification content and the push time point of the target remote notification to be pushed after the current time point. The terminal device receives the request result fed back by the server, and generates a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result. . Because the terminal device actively obtains the request result corresponding to the target remote notification pushed after the current time point, and generates the notification content as the notification content in the request result, and the output time point matches the push time point in the request result. Therefore, the content of the target remote notification can be pushed on time at a specified time point by using the local notification. It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art.

图1为现有技术的远程通知的推送系统的结构示意图;1 is a schematic structural diagram of a push system for remote notification in the prior art;

图2为本发明一实施例的通知推送方法的流程示意图;2 is a schematic flowchart of a notification push method according to an embodiment of the present invention;

图3为本发明另一实施例的通知推送方法的流程示意图;3 is a schematic flowchart of a notification push method according to another embodiment of the present invention;

图4为本发明一实施例的通知推送装置的结构示意图;4 is a schematic structural diagram of a notification push device according to an embodiment of the present invention;

图5为本发明另一实施例的通知推送装置的结构示意图;5 is a schematic structural diagram of a notification push device according to another embodiment of the present invention;

图6为本发明又一实施例的通知推送装置的结构示意图;6 is a schematic structural diagram of a notification push device according to another embodiment of the present invention;

图7为本发明一实施例的通知推送系统的结构示意图;7 is a schematic structural diagram of a notification push system according to an embodiment of the present invention;

图8为本发明一实施例的终端设备的结构示意图;8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;

图9为本发明一实施例的服务器的结构示意图。FIG. 9 is a schematic structural diagram of a server according to an embodiment of the present invention.

具体实施方式Detailed ways

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

为了便于理解,下面首先对本发明一实施例的通知推送方法进行介绍。For ease of understanding, the following first introduces a notification push method according to an embodiment of the present invention.

本发明实施例提供的通知推送方法,可以应用于终端设备,该设备包括台式计算机、便携式计算机、互联网电视,智能移动终端、可穿戴式智能终端、服务器等,在此不作限定,任何可以实现本发明实施例的终端设备,均属于本发明实施例的保护范围。如图2所示,本发明一实施例的通知推送方法的流程,该方法可以包括:The notification push method provided in the embodiment of the present invention can be applied to terminal equipment, and the equipment includes desktop computers, portable computers, Internet TVs, intelligent mobile terminals, wearable intelligent terminals, servers, etc., which are not limited here. The terminal devices of the embodiments of the present invention all belong to the protection scope of the embodiments of the present invention. As shown in FIG. 2, the flow of a notification push method according to an embodiment of the present invention may include:

S201,终端设备向客户端对应的服务器发送通知请求。其中,通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点。S201, a terminal device sends a notification request to a server corresponding to the client. The notification request is used to request the notification content and the push time point of the target remote notification to be pushed after the current time point.

在具体应用中,可以是终端设备中的客户端向对应的服务器发送通知请求,也可以是终端设备中与客户端通信的其他软件向客户端对应的服务器发送通知请求。举例而言:终端设备中的新闻客户端A向该新闻客户端A对应的服务器发送通知请求;或者,终端设备中与新闻客户端A通信的终端管理软件,向新闻客户端A对应的服务器发送通知请求。In a specific application, the client in the terminal device may send a notification request to the corresponding server, or other software in the terminal device that communicates with the client may send the notification request to the server corresponding to the client. For example: the news client A in the terminal device sends a notification request to the server corresponding to the news client A; or, the terminal management software in the terminal device that communicates with the news client A sends a notification request to the server corresponding to the news client A Notification request.

其中,当前时间点可以是终端设备的当前时间点,也可以是客户端对应的服务器的当前时间点。The current time point may be the current time point of the terminal device or the current time point of the server corresponding to the client.

可选地,终端设备可以实时检测是否满足预定请求条件,当满足预定请求条件时,终端设备执行向客户端对应的服务器发送通知请求的步骤。举例而言:该预定请求条件可以为:是否达到预定时间点,或者,是否接收到用户发出的通知请求指令,等等。Optionally, the terminal device can detect in real time whether the predetermined request condition is satisfied, and when the predetermined request condition is satisfied, the terminal device performs the step of sending a notification request to the server corresponding to the client. For example, the predetermined request condition may be: whether a predetermined time point is reached, or whether a notification request instruction sent by the user is received, and so on.

S202,服务器确定通知请求对应的请求结果。S202, the server determines a request result corresponding to the notification request.

其中,通知请求对应的请求结果为在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点。可以理解的是,该请求结果可以是携带有目标远程通知的通知内容和推送时间点的结果内容,也可以是目标远程通知本身,这都是合理的。需要说明的是,服务器在接收到终端设备发送的通知请求后,可以从在当前时间点之后推送的远程通知中,按照预定的选择原则,选择目标远程通知,进而基于选择的目标远程通知来生成请求结果。该预定的选择原则可以根据实际情况进行设定,例如:选择符合预定类型的远程通知,或者,选择符合预定时间点的远程通知,等等。The request result corresponding to the notification request is the notification content and the push time point of the target remote notification to be pushed after the current time point. It can be understood that the request result may be the notification content carrying the target remote notification and the result content of the push time point, or may be the target remote notification itself, which is reasonable. It should be noted that, after receiving the notification request sent by the terminal device, the server may select the target remote notification from the remote notifications pushed after the current time point according to the predetermined selection principle, and then generate the target remote notification based on the selected target remote notification. request result. The predetermined selection principle may be set according to the actual situation, for example, selecting a remote notification that conforms to a predetermined type, or selecting a remote notification that conforms to a predetermined time point, and so on.

S203,服务器将请求结果反馈给终端设备。S203, the server feeds back the request result to the terminal device.

在具体应用中,服务器所在时区和终端设备所在时区可能不同,导致服务器中目标远程通知的推送时间点是服务器所在时区对应的时间点,从而需要转换成终端设备所在时区对应的时间点。In a specific application, the time zone where the server is located and the time zone where the terminal device is located may be different, so that the push time point of the target remote notification in the server is the time point corresponding to the time zone where the server is located, so it needs to be converted into the time point corresponding to the time zone where the terminal device is located.

为此,可以在确定请求结果时,将推送时间点转换成终端设备所在时区对应的时间点,也可以不对推送时间点进行转换,而是由接收到反馈结果的终端设备将请求结果中的推送时间点转换成终端设备所在时区对应的时间点。To this end, when determining the request result, the push time point may be converted into the time point corresponding to the time zone where the terminal device is located, or the push time point may not be converted, but the terminal device receiving the feedback result pushes the push time point in the request result. The time point is converted into the time point corresponding to the time zone where the terminal device is located.

S204,终端设备生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配。S204, the terminal device generates a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result.

其中,输出时间点与请求结果中的推送时间点相匹配,具体可以是:当服务器所在时区和终端设备所在时区相同时,本地通知的输出时间点与请求结果中的推送时间点相同;而当服务器所在时区和终端设备所在时区不同时,本地通知的输出时间点为:请求结果中的推送时间点所对应的终端设备本地的时间点。Among them, the output time point matches the push time point in the request result, which can be specifically: when the time zone where the server is located is the same as the time zone where the terminal device is located, the output time point of the local notification is the same as the push time point in the request result; When the time zone where the server is located is different from the time zone where the terminal device is located, the output time point of the local notification is: the local time point of the terminal device corresponding to the push time point in the request result.

当然,如果服务器所在时区和终端设备所在时区不同,且推送结果中的时间点是在服务器反馈请求结果之前,已由服务器转换成了终端设备所在时区对应的时间点,则本地通知的输出时间点与请求结果中的推送时间点相同。Of course, if the time zone where the server is located is different from the time zone where the terminal device is located, and the time point in the push result is converted by the server to the time point corresponding to the time zone where the terminal device is located before the server feeds back the request result, the output time point of the local notification The same as the push time point in the request result.

例如,请求结果中的推送时间点为2018年11月22日14:30,推送内容为“某会议在某地召开”,服务器不对推送时间点进行转换。如果服务器所在时区和终端设备所在时区相同,则与请求结果匹配的本地通知的输出时间点为2018年11月22日14:30,通知内容为“某会议在某地召开”。如果服务器所在时区比终端设备所在时区早一个小时,则与请求结果匹配的本地通知为输出时间点为2018年11月22日13:30,通知内容为“某会议在某地召开”。For example, the push time point in the request result is 14:30 on November 22, 2018, the push content is "a meeting is held in a certain place", and the server does not convert the push time point. If the time zone where the server is located is the same as the time zone where the terminal device is located, the output time point of the local notification matching the request result is 14:30 on November 22, 2018, and the content of the notification is "a meeting is held in a certain place". If the time zone of the server is one hour earlier than the time zone of the terminal device, the local notification matching the request result will be output at 13:30 on November 22, 2018, and the content of the notification will be "a meeting is held in a certain place".

本发明实施例提供的一种通知推送方法,由于终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现在指定时间点,准时推送目标远程通知的内容,提高远程通知的准时送达率。In the notification push method provided by the embodiment of the present invention, since the terminal device actively obtains the request result corresponding to the target remote notification to be pushed after the current time point, and generates the notification content as the notification content in the request result, and outputs the time point The local notification matches the push time point in the request result. Therefore, the local notification can be used to push the content of the target remote notification on time at the specified time point, thereby improving the on-time delivery rate of the remote notification.

具体应用中,在当前时间点之后进行推送的远程通知,可能是在当前时间点之后的较短时间内,即将进行推送的。如果对即将推送的远程通知生成对应的本地通知再推送,可能反而造成推送不及时。例如,当前时间点是2018年11月22日11:30,当前时间点之后进行推送的远程通知中,存在推送时间点为2018年11月22日11:31的远程通知A,则远程通知A不适合作为用于生成本地通知的目标远程通知。In a specific application, the remote notification that is pushed after the current time point may be pushed soon after the current time point. If the corresponding local notification is generated for the remote notification to be pushed and then pushed, it may cause the push to be untimely. For example, if the current time point is 11:30 on November 22, 2018, and in the remote notifications pushed after the current time point, there is a remote notification A whose push time point is 11:31 on November 22, 2018, then the remote notification A Not suitable as a target remote notification for generating local notifications.

为此,可选的,上述本发明图2实施例的中S202,具体可以包括:To this end, optionally, S202 in the above embodiment of the present invention in FIG. 2 may specifically include:

从关于客户端的、在当前时间点之后进行推送的多个远程通知中,确定目标远程通知。其中,目标远程通知为:所对应推送时间点与当前时间点的差值满足预设时长条件的远程通知;A target remote notification is determined from a plurality of remote notifications about the client that were pushed after the current point in time. Wherein, the target remote notification is: a remote notification for which the difference between the corresponding push time point and the current time point satisfies the preset duration condition;

将目标远程通知的通知内容和推送时间点作为请求结果。Use the notification content and push time point of the target remote notification as the request result.

其中,可选的,上述预设时长条件可以为大于预设时长阈值,或者,位于预设时长区间。Wherein, optionally, the above-mentioned preset duration condition may be greater than a preset duration threshold, or within a preset duration interval.

可以理解的是,将所对应推送时间点与当前时间点的差值满足预设时长条件的远程通知,确定为目标远程通知,能够避免将即将进行推送的远程通知作为用于生成本地通知的目标远程通知。It can be understood that determining the remote notification whose difference between the corresponding push time point and the current time point satisfies the preset duration condition as the target remote notification can avoid using the remote notification to be pushed as the target for generating the local notification. Remote notification.

例如,预设时长阈值为60分钟,当前时间点是2018年11月22日11:30。当前时间点之后进行推送的远程通知包括,推送时间点为2018年11月22日11:31的远程通知A,推送时间点为2018年11月22日12:31的远程通知B,推送时间点为2018年11月27日11:30的远程通知C。则推送时间点与当前时间点的差值为1分钟的远程通知A,不适合作为用于生成本地通知的目标远程通知。因此,可以将远程通知B和远程通知C确定为目标远程通知。For example, the preset duration threshold is 60 minutes, and the current time point is 11:30 on November 22, 2018. The remote notifications that are pushed after the current time point include the remote notification A with the push time point at 11:31 on November 22, 2018, and the remote notification B with the push time point at 12:31 on November 22, 2018. Remote notification C for November 27, 2018 11:30. Then the remote notification A whose difference between the push time point and the current time point is 1 minute is not suitable as the target remote notification for generating the local notification. Therefore, remote notification B and remote notification C can be determined as target remote notifications.

或者,考虑到在具体应用中,如果将推送时间点大于预设时长阈值的远程通知确定为目标远程通知,可能会将推送时间点很晚的远程通知用于生成本地通知,而这些推送时间点很晚的远程通知对应的本地通知可能并不需要过早生成,因此,造成非必要的数据传输和存储资源占用。例如,占用了数据传输和存储资源的本地通知是在接收到请求结果后的一星期后推送,则无需过早获取该本地通知对应的目标远程通知,以避免非必要的数据传输和存储资源占用。Or, considering that in a specific application, if a remote notification with a push time point greater than a preset duration threshold is determined as the target remote notification, the remote notification with a very late push time point may be used to generate local notifications, and these push time points may be used to generate local notifications. The local notification corresponding to the very late remote notification may not need to be generated too early, thus causing unnecessary data transmission and storage resource occupation. For example, if a local notification that occupies data transmission and storage resources is pushed one week after receiving the request result, there is no need to obtain the target remote notification corresponding to the local notification prematurely to avoid unnecessary data transmission and storage resource occupation. .

为此,可以将位于预设时长区间的远程通知,确定为目标远程通知。例如,预设时长区间为1小时至72小时,当前时间点是2018年11月22日11:30。则推送时间点与当前时间点的差值为1分钟的远程通知A,推送时间点与当前时间点的差值为120小时的远程通知C,不适合用于生成本地通知。因此,可以将远程通知B确定为目标远程通知。To this end, a remote notification within a preset time interval may be determined as a target remote notification. For example, the preset duration range is 1 hour to 72 hours, and the current time point is 11:30 on November 22, 2018. Then the remote notification A with the difference between the push time point and the current time point is 1 minute, and the remote notification C with the difference between the push time point and the current time point is 120 hours, which are not suitable for generating local notifications. Therefore, the remote notification B can be determined as the target remote notification.

在具体应用中,终端设备与客户端对应的服务器之间的通信质量可能不佳,进而影响对目标远程通知的通知内容和推送时间点的获取。可选地,为了保证目标远程通知的通知内容和推送时间点的获取,在上述本发明图2实施例的步骤S201之前,本发明实施例的通知推送方法还可以包括:In a specific application, the communication quality between the terminal device and the server corresponding to the client may be poor, thereby affecting the acquisition of the notification content and push time point of the target remote notification. Optionally, in order to ensure the acquisition of the notification content and the push time point of the target remote notification, before step S201 in the above-described embodiment of FIG. 2 of the present invention, the notification push method in this embodiment of the present invention may further include:

获取与客户端的服务器之间的通信信息。其中,通信信息为用于表征通信质量的信息;Get communication information with the client's server. Wherein, the communication information is the information used to characterize the communication quality;

根据通信信息,判断终端设备与服务器之间的通信质量是否符合预设传输条件,如果符合,则执行步骤S201。According to the communication information, it is determined whether the communication quality between the terminal device and the server meets the preset transmission condition, and if so, step S201 is performed.

具体的,通信信息可以是终端设备与客户端的服务器之间的数据传输速率,也可以是终端设备与客户端的服务器之间通信的CQI(Channel Quality Indicator,信道质量指示)。Specifically, the communication information may be the data transmission rate between the terminal device and the server of the client, or may be the CQI (Channel Quality Indicator, channel quality indicator) communicated between the terminal device and the server of the client.

其中,预设传输条件具体可以是终端设备与服务器之间的数据传输速率不小于预设速率阈值,也可以是终端设备与服务器之间的CQI不小于预设信道质量阈值。The preset transmission condition may specifically be that the data transmission rate between the terminal device and the server is not less than a preset rate threshold, or that the CQI between the terminal device and the server is not less than a preset channel quality threshold.

可以理解的是,如果终端设备与服务器之间的通信质量符合预设传输条件,则表明终端设备与服务器之间的通信质量佳,在符合预设传输条件的通信质量下,可以有效获取请求结果。因此,可以执行步骤S201。It can be understood that if the communication quality between the terminal device and the server meets the preset transmission conditions, it indicates that the communication quality between the terminal device and the server is good, and under the communication quality that meets the preset transmission conditions, the request result can be effectively obtained. . Therefore, step S201 may be performed.

需要说明的是,不同的终端设备具有不同的通知推送设置,部分终端设备可能会禁止本地通知的推送,或者禁止某些客户端的本地通知的推送,导致对本地通知无法推送。因此,需要在生成与请求结果匹配的本地通知前,确定与服务器对应的客户端的本地通知推送是否打开,以保证生成的本地通知推送成功。It should be noted that different terminal devices have different notification push settings, and some terminal devices may prohibit the push of local notifications, or prohibit the push of local notifications of some clients, resulting in failure to push local notifications. Therefore, it is necessary to determine whether the local notification push of the client corresponding to the server is enabled before generating the local notification matching the request result, so as to ensure that the generated local notification push is successful.

为此,如图3所示,本发明另一实施例的通知推送方法的流程,该方法可以包括:To this end, as shown in FIG. 3 , a flow of a notification push method according to another embodiment of the present invention may include:

S301,终端设备向客户端对应的服务器发送通知请求。S301, a terminal device sends a notification request to a server corresponding to the client.

S302,服务器确定通知请求对应的请求结果。S302, the server determines a request result corresponding to the notification request.

S303,服务器将请求结果反馈给终端设备。S303, the server feeds back the request result to the terminal device.

S301至S303与本发明图2实施例的S201至S203为相同步骤,在此不再赘述,详见本发明图2实施例的描述。S301 to S303 are the same steps as S201 to S203 in the embodiment of FIG. 2 of the present invention, which will not be repeated here. For details, refer to the description of the embodiment of FIG. 2 of the present invention.

S304,终端设备获取自身的关于通知推送的设置信息。S304, the terminal device acquires its own setting information about push notification.

其中,关于通知推送的设置信息,可以是终端设备中,与服务器对应的客户端的通知推送的设置信息,也可以是终端设备自身的通知推送的设置信息。设置信息具体可以是开启推送通知或者关闭推送通知,也可以是关于通知推送设置的状态字符,例如状态字符“1”表示允许推送通知,状态字符“0”表示不允许推送通知。The notification push setting information may be the notification push setting information of the client corresponding to the server in the terminal device, or the notification push setting information of the terminal device itself. The setting information may specifically be enabling or disabling push notifications, and may also be status characters related to notification push settings. For example, the status character "1" indicates that push notifications are allowed, and the status character "0" indicates that push notifications are not allowed.

S305,根据设置信息,判断是否允许推送客户端的本地通知。如果允许,执行步骤S306。如果不允许,执行步骤S307。S305, according to the setting information, determine whether to allow the local notification of the client to be pushed. If allowed, step S306 is executed. If not allowed, go to step S307.

具体的,设置信息为开启终端设备自身的本地通知的推送,则表明允许推送终端设备中各个客户端的本地通知,相应的,服务器对应的客户端的本地通知也是允许推送的。或者,设置信息为开启与服务器对应的客户端的本地通知的推送,则表明允许推送终客户端的本地通知。Specifically, if the setting information is to enable the push of the local notification of the terminal device itself, it indicates that the local notification of each client in the terminal device is allowed to be pushed, and correspondingly, the local notification of the client corresponding to the server is also allowed to be pushed. Or, if the setting information is to enable the push of the local notification of the client corresponding to the server, it indicates that the local notification of the terminal client is allowed to be pushed.

当允许推送客户端的本地通知时,生成的与请求结果匹配的本地通知可以推送成功,因此可以执行步骤S306。当不允许推送客户端的本地通知时,生成的与请求结果匹配的本地通知无法推送,因此可以执行步骤S307,以利用日历事件推送通知。When the local notification of the client is allowed to be pushed, the generated local notification matching the request result can be pushed successfully, so step S306 can be executed. When the local notification of the client is not allowed to be pushed, the generated local notification matching the request result cannot be pushed, so step S307 may be executed to push the notification by using the calendar event.

S306,生成与请求结果匹配的关于客户端的本地通知。S306, generate a local notification about the client that matches the request result.

S306与本发明图2实施例的S204为相同步骤,在此不再赘述,详见本发明图2实施例的描述。S306 is the same step as S204 in the embodiment of FIG. 2 of the present invention, and details are not repeated here. For details, refer to the description of the embodiment of FIG. 2 of the present invention.

S307,生成与请求结果匹配的日历事件,其中,日历事件的事件内容为请求结果中的通知内容,且提醒时间点与请求结果中的推送时间点相匹配。S307: Generate a calendar event matching the request result, wherein the event content of the calendar event is the notification content in the request result, and the reminder time point matches the push time point in the request result.

其中,提醒时间点与请求结果中的推送时间点相匹配,具体可以是:当服务器所在时区和终端设备所在时区相同时,日历事件的提醒时间点与请求结果中的推送时间点相同;而当服务器所在时区和终端设备所在时区不同时,日历事件的提醒时间点为:请求结果中的推送时间点所对应的终端设备本地的时间点。在具体应用中,日历事件的提醒时间点为向用户展示日历事件的时间点。The reminder time point matches the push time point in the request result. Specifically, when the time zone where the server is located is the same as the time zone where the terminal device is located, the reminder time point of the calendar event is the same as the push time point in the request result; When the time zone where the server is located is different from the time zone where the terminal device is located, the reminder time point of the calendar event is the local time point of the terminal device corresponding to the push time point in the request result. In a specific application, the reminder time point of the calendar event is the time point when the calendar event is displayed to the user.

当然,如果服务器所在时区和终端设备所在时区不同,且推送结果中的时间点是在服务器反馈请求结果前,已由服务器转换成了终端设备所在时区对应的时间点,则日历事件的提醒时间点与请求结果中的推送时间点相同。Of course, if the time zone where the server is located is different from the time zone where the terminal device is located, and the time point in the push result is converted by the server to the time point corresponding to the time zone where the terminal device is located before the server feeds back the request result, the reminder time point of the calendar event will be The same as the push time point in the request result.

例如,终端设备A的关于通知推送的设置信息是开启本地通知推送,终端设备B的关于通知推送的设置信息是关闭本地通知推送。或者,终端设备A的关于通知推送的设置信息是开启客户端A的本地通知推送,终端设备B的关于通知推送的设置信息是开启客户端B的本地通知推送。终端设备A根据自身的通知推送的设置信息,判断出允许推送客户端A的本地通知,则生成与请求结果匹配的本地通知。终端设备B根据自身的通知推送的设置信息,判断出不允许推送客户端B的本地通知,则生成与请求结果匹配的日历事件。For example, the setting information about notification push of terminal device A is to enable local notification push, and the setting information about terminal device B about notification push is to disable local notification push. Or, the setting information about notification push of terminal device A is to enable local notification push of client A, and the setting information about terminal device B about notification push is to enable local notification push of client B. The terminal device A determines that the local notification of the client A is allowed to be pushed according to the setting information of its own notification push, and generates a local notification matching the request result. The terminal device B determines, according to the setting information of its own notification push, that the local notification of the client B is not allowed to be pushed, and generates a calendar event matching the request result.

另外,需要说明的是,服务器所在时区和终端设备所在时区可能不同,导致服务器中目标远程通知的推送时间点是服务器所在时区对应的时间。如果直接将目标远程通知的推送时间点作为本地通知的输出时间点,会造成本地通知的输出时间点与目标远程通知的推送时间点不匹配,未在指定时间点推送目标远程通知的通知内容的问题。因此,需要在生成本地通知时,将输出时间点转换成终端设备所在时区对应的时间点。In addition, it should be noted that the time zone where the server is located and the time zone where the terminal device is located may be different, so that the push time point of the target remote notification in the server is the time corresponding to the time zone where the server is located. If the push time point of the target remote notification is directly used as the output time point of the local notification, the output time point of the local notification will not match the push time point of the target remote notification, and the notification content of the target remote notification will not be pushed at the specified time point. question. Therefore, it is necessary to convert the output time point to the time point corresponding to the time zone where the terminal device is located when generating the local notification.

为此,可选的,上述本发明图2实施例中的步骤S204,以及本发明图3实施例中的步骤S306,可以包括如下步骤A1-A2:To this end, optionally, step S204 in the above embodiment of the present invention in FIG. 2 and step S306 in the embodiment in FIG. 3 of the present invention may include the following steps A1-A2:

步骤A1,确定与请求结果中的推送时间点对应的、终端设备本地的目标时间点。Step A1: Determine a target time point local to the terminal device corresponding to the push time point in the request result.

具体的,当终端设备与服务器处于相同时区时,终端设备本地的目标时间点可以是与请求结果中的推送时间点相同的时间点。当终端设备与服务器处于不同时区时,终端设备本地的目标时间点可以是由请求结果中的推送时间点转换得到的终端设备所在时区对应的时间点。Specifically, when the terminal device and the server are in the same time zone, the local target time point of the terminal device may be the same time point as the push time point in the request result. When the terminal device and the server are in different time zones, the local target time point of the terminal device may be the time point corresponding to the time zone where the terminal device is located, which is converted from the push time point in the request result.

步骤A2,构建具有请求结果中的通知内容、且输出时间点为目标时间点的关于客户端的本地通知。Step A2, constructing a local notification about the client with the notification content in the request result and the output time point being the target time point.

在具体应用中,当请求结果为目标远程通知本身时,构建本地通知可以是解析目标远程通知的通知内容和推送时间点,构建具有请求结果中的通知内容、且输出时间点为目标时间点的关于客户端的本地通知。当请求结果为目标远程通知的通知内容和推送时间点时,构建本地通知可以是将请求结果中的通知内容作为内容,将与推时间点对应的目标时间点作为输出时间点,建立本地通知。In a specific application, when the request result is the target remote notification itself, constructing a local notification may be to parse the notification content and push time point of the target remote notification, construct a notification content in the request result, and the output time point is the target time point Local notifications about clients. When the request result is the notification content and push time point of the target remote notification, constructing a local notification may be to use the notification content in the request result as the content, and use the target time point corresponding to the push time point as the output time point to create a local notification.

当然,本地通知是关于与服务器对应的客户端的通知。例如,与服务器对应的客户端是新闻客户端时,本地通知可以是新闻资讯。与服务器对应的客户端是视频客户端时,本地通知可以是电影资讯。Of course, the local notification is about the client corresponding to the server. For example, when the client corresponding to the server is a news client, the local notification may be news information. When the client corresponding to the server is a video client, the local notification may be movie information.

可选的,上述确定与请求结果中的推送时间点对应的、终端设备本地的目标时间点的步骤A1,具体可以包括如下步骤A11-A12:Optionally, the above step A1 of determining the target time point local to the terminal device corresponding to the push time point in the request result may specifically include the following steps A11-A12:

步骤A11,当服务器与终端设备处于同一时区时,将请求结果中的推送时间点作为终端设备本地的目标时间点;Step A11, when the server and the terminal device are in the same time zone, take the push time point in the request result as the local target time point of the terminal device;

当服务器与终端设备处于同一时区时,请求结果中的推送时间点与终端设备所在时区是对应的,因此,可以将请求结果中的推送时间点作为终端设备本地的目标时间点。When the server and the terminal device are in the same time zone, the push time point in the request result corresponds to the time zone where the terminal device is located. Therefore, the push time point in the request result can be used as the local target time point of the terminal device.

例如,服务器与终端设备均处于东八区,请求结果中的推送时间点为2018年11月22日14:30,则将2018年11月22日14:30作为终端设备本地的目标时间点后,输出时间点为目标时间点的关于客户端的本地通知将在2018年11月22日14:30输出,从而实现在指定时间点推送的效果。For example, if both the server and the terminal device are located in the East Eighth District, and the push time point in the request result is 14:30 on November 22, 2018, then 14:30 on November 22, 2018 is taken as the local target time point of the terminal device. , the local notification about the client whose output time point is the target time point will be output at 14:30 on November 22, 2018, so as to achieve the effect of pushing at the specified time point.

步骤A12,当服务器与终端设备未处于同一时区时,根据终端设备所在的时区和服务器所在的时区,将请求结果中的推送时间点转换为终端设备本地的目标时间点。Step A12, when the server and the terminal device are not in the same time zone, convert the push time point in the request result to the local target time point of the terminal device according to the time zone where the terminal device is located and the time zone where the server is located.

具体的,可以根据终端设备所在的时区和服务器所在的时区,确定服务器和终端设备所在时区之间的时间差值,基于时间差值和请求结果中的推送时间点,计算得到终端设备本地的目标时间点。其中,时间差自身具有正或者负的数学符号。Specifically, according to the time zone where the terminal device is located and the time zone where the server is located, the time difference between the time zone where the server and the terminal device are located can be determined, and the local target of the terminal device can be calculated based on the time difference value and the push time point in the request result. point in time. Here, the time difference itself has a positive or negative mathematical sign.

例如,终端设备所在时区为东九区,服务器所在时区为东八区,则终端设备所在时区和服务器所在时区的时间差值为-1小时,该-1小时作为目标时间点和推送时间点的时间差值。请求结果中的推送时间点为2018年11月22日14:30,则终端设备本地的目标时间点为2018年11月22日13:30。For example, if the time zone where the terminal device is located is East 9th District, and the time zone where the server is located is East 8th District, the time difference between the time zone where the terminal device is located and the time zone where the server is located is -1 hour, which is the difference between the target time point and the push time point. time difference. The push time point in the request result is 14:30 on November 22, 2018, and the local target time point of the terminal device is 13:30 on November 22, 2018.

终端设备所在时区为东八区,服务器所在时区为东九区,则终端设备所在时区和服务器所在时区的时间差值为1小时,该1小时作为目标时间点和推送时间点的时间差值。请求结果中的推送时间点为2018年11月22日14:30,则终端设备本地的目标时间点为2018年11月22日15:30。If the time zone where the terminal device is located is East Eighth District, and the time zone where the server is located is East Nineth District, the time difference between the time zone where the terminal device is located and the time zone where the server is located is 1 hour, which is the time difference between the target time point and the push time point. The push time point in the request result is 14:30 on November 22, 2018, and the local target time point of the terminal device is 15:30 on November 22, 2018.

当然,在具体应用中,当服务器与终端设备未处于同一时区时,如果服务器在反馈请求结果前,已经将请求结果中的推送时间点转换为终端设备本地的目标时间点,则可以将请求结果中的推送时间点作为终端设备本地的目标时间点。Of course, in a specific application, when the server and the terminal device are not in the same time zone, if the server has converted the push time point in the request result to the local target time point of the terminal device before feeding back the request result, the request result can be converted to the local target time point of the terminal device. The push time point in is used as the local target time point of the terminal device.

另外,需要说明的是,上述本发明图3实施例中生成与请求结果匹配的日历事件的具体实现方式,可以包括如下步骤B1和B2:In addition, it should be noted that the specific implementation manner of generating the calendar event matching the request result in the above-mentioned embodiment of FIG. 3 of the present invention may include the following steps B1 and B2:

步骤B1,确定与请求结果中的推送时间点对应的、终端设备本地的提醒时间点;Step B1, determining the local reminder time point of the terminal device corresponding to the push time point in the request result;

步骤B2,构建具有请求结果中的通知内容、且输出时间点为提醒时间点的关于客户端的日历事件。Step B2, constructing a calendar event about the client with the notification content in the request result and the output time point being the reminder time point.

其中,关于确定与请求结果中的推送时间点对应的、终端设备本地的提醒时间点的具体实现方式,可以参照上述的关于步骤A1的具体实现方式。For the specific implementation manner of determining the reminder time point local to the terminal device corresponding to the push time point in the request result, reference may be made to the specific implementation manner of step A1 above.

举例而言:当终端设备与服务器处于相同时区时,终端设备本地的提醒时间点可以是与请求结果中的推送时间点相同的时间点。当终端设备与服务器处于不同时区时,终端设备本地的目标时间点可以是由请求结果中的推送时间点转换得到的终端设备所在时区对应的时间点。For example: when the terminal device and the server are in the same time zone, the local reminder time point of the terminal device may be the same time point as the push time point in the request result. When the terminal device and the server are in different time zones, the local target time point of the terminal device may be the time point corresponding to the time zone where the terminal device is located, which is converted from the push time point in the request result.

当然,在具体应用中,当服务器与终端设备未处于同一时区时,如果服务器在反馈请求结果前,已经将请求结果中的推送时间点转换为终端设备本地的提醒时间点,则可以将请求结果中的推送时间点作为终端设备本地的提醒时间点。Of course, in a specific application, when the server and the terminal device are not in the same time zone, if the server has converted the push time point in the request result to the local reminder time point of the terminal device before feeding back the request result, the request result can be converted to the local reminder time point of the terminal device. The push time point in is used as the local reminder time point of the terminal device.

相应于上述方法实施例,本发明一实施例还提供了通知推送装置。Corresponding to the above method embodiments, an embodiment of the present invention further provides a notification push device.

如图4所示,本发明一实施例的通知推送装置的结构,应用于终端设备,该装置可以包括:As shown in FIG. 4 , the structure of a notification push apparatus according to an embodiment of the present invention is applied to a terminal device, and the apparatus may include:

请求发送模块401,用于向客户端对应的服务器发送通知请求,以使得所述服务器确定所述通知请求对应的请求结果,并反馈所述请求结果;其中,所述通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;The request sending module 401 is configured to send a notification request to the server corresponding to the client, so that the server determines the request result corresponding to the notification request, and feeds back the request result; wherein, the notification request is used to request the current The notification content and push time point of the target remote notification to be pushed after the time point;

结果接收模块402,用于接收所述服务器反馈的请求结果;A result receiving module 402, configured to receive a request result fed back by the server;

通知生成模块403,用于生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配。A notification generating module 403, configured to generate a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point is the same as the request The push time points in the results match.

本发明实施例提供的一种推送装置,应用于终端设备,由于终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。A push device provided by an embodiment of the present invention is applied to a terminal device. Since the terminal device actively obtains a request result corresponding to a target remote notification to be pushed after the current time point, and generates the notification content as the notification content in the request result, And the output time point matches the push time point in the request result. Therefore, the local notification can be used to push the content of the target remote notification on time at the specified time point. It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

可选的,上述本发明图4实施例中的请求发送模块401,还可以用于:Optionally, the request sending module 401 in the above embodiment of the present invention in FIG. 4 can also be used for:

在向客户端对应的服务器发送通知请求之前,获取与客户端的服务器之间的通信信息;其中,所述通信信息为用于表征通信质量的信息;根据所述通信信息,判断所述终端设备与所述服务器之间的通信质量是否符合预设传输条件;如果符合,则执行所述向客户端对应的服务器发送通知请求。Before sending the notification request to the server corresponding to the client, obtain the communication information with the server of the client; wherein, the communication information is information used to characterize the communication quality; Whether the communication quality between the servers meets the preset transmission conditions; if so, execute the sending a notification request to the server corresponding to the client.

如图5所示,本发明另一实施例的通知推送装置的结构,应用于终端设备,该装置可以包括:As shown in FIG. 5 , the structure of a notification push apparatus according to another embodiment of the present invention is applied to a terminal device, and the apparatus may include:

请求发送模块501,用于向客户端对应的服务器发送通知请求,以使得所述服务器确定所述通知请求对应的请求结果,并反馈所述请求结果;其中,所述通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;A request sending module 501, configured to send a notification request to a server corresponding to the client, so that the server determines a request result corresponding to the notification request, and feeds back the request result; wherein, the notification request is used to request the current The notification content and push time point of the target remote notification to be pushed after the time point;

结果接收模块502,用于接收所述服务器反馈的请求结果;A result receiving module 502, configured to receive a request result fed back by the server;

判断模块503,用于获取所述终端设备的关于通知推送的设置信息;根据所述设置信息,判断是否允许推送所述客户端的本地通知;如果允许,触发通知生成模块504执行所述生成与所述请求结果匹配的关于所述客户端的本地通知;The judgment module 503 is used to obtain the setting information about the notification push of the terminal device; according to the setting information, determine whether to allow the local notification of the client to be pushed; if so, trigger the notification generation module 504 to execute the generation and a local notification about the client that matches the result of the request;

通知生成模块504,用于在判断模块503判断出允许推送所述客户端的本地通知时,生成与所述请求结果匹配的关于所述客户端的本地通知。The notification generating module 504 is configured to generate a local notification about the client that matches the request result when the determining module 503 determines that the local notification of the client is allowed to be pushed.

上述501至502为与本发明图4实施例的401至402相同的模块;上述504为与本发明图4实施例的403相同的模块。The above 501 to 502 are the same modules as 401 to 402 in the embodiment of FIG. 4 of the present invention; the above 504 is the same module as 403 in the embodiment of FIG. 4 of the present invention.

可选的,上述本发明图5实施例中的通知推送装置,还可以包括事件生成模块,用于当所述判断模块503判断出不允许推送所述客户端的本地通知时,生成与所述请求结果匹配的日历事件,其中,所述日历事件的事件内容为所述请求结果中的通知内容,且提醒时间点与所述请求结果中的推送时间点相匹配。Optionally, the notification push device in the above embodiment of the present invention in FIG. 5 may further include an event generation module, configured to generate and match the request when the determination module 503 determines that the local notification of the client is not allowed to be pushed. A calendar event with matching results, wherein the event content of the calendar event is the notification content in the request result, and the reminder time point matches the push time point in the request result.

可选的,上述本发明图5实施例中的通知生成模块504,具体可以包括:Optionally, the notification generation module 504 in the above-mentioned embodiment of the present invention in FIG. 5 may specifically include:

时间点确定子模块,用于确定与所述请求结果中的推送时间点对应的、所述终端设备本地的目标时间点;a time point determination submodule, configured to determine a local target time point of the terminal device corresponding to the push time point in the request result;

通知构建子模块,用于构建具有所述请求结果中的通知内容且输出时间点为所述目标时间点的关于所述客户端的本地通知。A notification construction sub-module, configured to construct a local notification about the client with the notification content in the request result and the output time point being the target time point.

可选的,上述可选实施例中的时间点确定子模块,具体可以用于:Optionally, the time point determination submodule in the above-mentioned optional embodiment can be specifically used for:

当所述服务器与所述终端设备处于同一时区时,将请求结果中的推送时间点作为所述终端设备本地的目标时间点;When the server and the terminal device are in the same time zone, use the push time point in the request result as the local target time point of the terminal device;

当所述服务器与所述终端设备未处于同一时区时,根据所述终端设备所在的时区和所述服务器所在的时区,将所述请求结果中的推送时间点转换为所述终端设备本地的目标时间点。When the server and the terminal device are not in the same time zone, convert the push time point in the request result to the local target of the terminal device according to the time zone where the terminal device is located and the time zone where the server is located point in time.

如图6所示,本发明又一实施例的通知推送装置的结构,应用于服务器,该装置可以包括:As shown in FIG. 6 , the structure of a notification push apparatus according to another embodiment of the present invention is applied to a server, and the apparatus may include:

请求接收模块601,用于接收所述终端设备发送的通知请求,所述通知请求用于请求在当前时间点之后进行推送的关于客户端的目标远程通知的通知内容和推送时间点;A request receiving module 601, configured to receive a notification request sent by the terminal device, where the notification request is used to request the notification content and the push time point of the target remote notification about the client to be pushed after the current time point;

结果确定模块602,用于确定所述通知请求对应的请求结果;A result determination module 602, configured to determine a request result corresponding to the notification request;

结果反馈模块603,用于将所述请求结果反馈给所述终端设备,以使得所述终端设备在接收到所述请求结果后,生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配。a result feedback module 603, configured to feed back the request result to the terminal device, so that the terminal device generates a local notification about the client that matches the request result after receiving the request result, The notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result.

可选的,上述本发明图6实施例中的结果确定模块602,具体可以用于:Optionally, the result determination module 602 in the above embodiment of the present invention in FIG. 6 may be specifically used for:

将所包含的推送时间点与当前时间点的差值满足预设时长条件的请求结果,反馈给所述终端设备。Feedback to the terminal device the request result that the included difference between the push time point and the current time point satisfies the preset duration condition.

可选的,上述本发明图6实施例中的结果确定模块602,具体可以用于:Optionally, the result determination module 602 in the above embodiment of the present invention in FIG. 6 may be specifically used for:

从关于客户端的、在当前时间点之后进行推送的多个远程通知中,确定目标远程通知;所述目标远程通知为:所对应推送时间点与当前时间点的差值满足预设时长条件的远程通知;A target remote notification is determined from a plurality of remote notifications about the client that are pushed after the current time point; the target remote notification is: the remote notification whose difference between the corresponding push time point and the current time point satisfies the preset duration condition Notice;

将所述目标远程通知的通知内容和推送时间点作为请求结果。The notification content and the push time point of the target remote notification are used as the request result.

相应于上述实施例,本发明一实施例提供了一种通知推送系统,用于实现上述本发明图2实施例的通知推送方法,如图7所示,本发明一实施例的通知推送系统的结构,该系统可以包括:终端设备701和服务器702,所述服务器702与所述终端设备701中的客户端对应;Corresponding to the above embodiment, an embodiment of the present invention provides a notification push system for implementing the notification push method in the embodiment of FIG. 2 of the present invention. As shown in FIG. 7 , the notification push system according to an embodiment of the present invention structure, the system may include: a terminal device 701 and a server 702, the server 702 corresponds to a client in the terminal device 701;

终端设备701,用于向客户端对应的服务器702发送通知请求。其中,通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;接收服务器702反馈的请求结果;终端设备701生成与请求结果匹配的关于客户端的本地通知,其中,本地通知的通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配;The terminal device 701 is configured to send a notification request to the server 702 corresponding to the client. Wherein, the notification request is used to request the notification content and push time point of the target remote notification to be pushed after the current time point; the request result fed back by the server 702 is received; the terminal device 701 generates a local notification about the client that matches the request result, wherein , the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result;

服务器702,用于接收终端设备701发送的通知请求;确定通知请求对应的请求结果;将请求结果反馈给终端设备。The server 702 is configured to receive the notification request sent by the terminal device 701; determine the request result corresponding to the notification request; and feed back the request result to the terminal device.

本发明实施例提供的一种通知推送系统,包括终端设备和服务器,服务器与终端设备中的客户端对应,由于终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现了在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。A notification push system provided by an embodiment of the present invention includes a terminal device and a server. The server corresponds to a client in the terminal device. Since the terminal device actively obtains the request result corresponding to the target remote notification to be pushed after the current time point, And generate a local notification whose notification content is the notification content in the request result, and the output time point matches the push time point in the request result. Therefore, the local notification can be used to push the content of the target remote notification on time at the specified time point. . It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

如图8所示,本发明一实施例的终端设备800,该设备可以包括:As shown in FIG. 8, a terminal device 800 according to an embodiment of the present invention may include:

处理器8001、通信接口8002、存储器8003和通信总线8004,其中,处理器8001,通信接口8002,存储器通8003过通信总线8004完成相互间的通信;A processor 8001, a communication interface 8002, a memory 8003 and a communication bus 8004, wherein the processor 8001, the communication interface 8002, and the memory communicate with each other through the communication bus 8004 through 8003;

存储器8003,用于存放计算机程序;The memory 8003 is used to store computer programs;

处理器8001,用于执行上述存储器8003上所存放的计算机程序时,实现上述实施例中任一应用于终端设备的通知推送方法的步骤。The processor 8001 is configured to, when executing the computer program stored in the above-mentioned memory 8003, implement the steps of any one of the above-mentioned embodiments of the notification push method applied to a terminal device.

本发明实施例提供的一种终端设备,由于主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。A terminal device provided by an embodiment of the present invention actively obtains a request result corresponding to a target remote notification pushed after the current time point, generates the notification content as the notification content in the request result, and outputs the time point and the request result. The push time point in the local notification matches the local notification. Therefore, the local notification can be used to push the content of the target remote notification on time at the specified time point. It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

如图9所示,本发明一实施例的服务器900,该服务器可以包括:As shown in FIG. 9, in a server 900 according to an embodiment of the present invention, the server may include:

处理器9001、通信接口9002、存储器9003和通信总线9004,其中,处理器9001,通信接口9002,存储器通9003过通信总线9004完成相互间的通信;A processor 9001, a communication interface 9002, a memory 9003 and a communication bus 9004, wherein the processor 9001, the communication interface 9002, and the memory pass 9003 through the communication bus 9004 to complete mutual communication;

存储器9003,用于存放计算机程序;The memory 9003 is used to store computer programs;

处理器9001,用于执行上述存储器9003上所存放的计算机程序时,实现上述实施例中任一应用于服务器的通知推送方法的步骤。The processor 9001 is configured to, when executing the computer program stored in the above-mentioned memory 9003, implement the steps of any one of the above-mentioned embodiments of the notification push method applied to the server.

本发明实施例提供的一种服务器,由于该服务器所对应的客户端所在的终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现了在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。In a server provided by an embodiment of the present invention, since the terminal device where the client corresponding to the server is located actively obtains the request result corresponding to the target remote notification pushed after the current time point, and generates the notification content as the content of the request result The content of the notification is output, and the local notification whose time point matches the push time point in the request result is output. Therefore, the local notification can be used to push the content of the target remote notification on time at a specified time point. It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

上述存储器可以包括RAM(Random Access Memory,随机存取存储器),也可以包括NVM(Non-Volatile Memory,非易失性存储器),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离于上述处理器的存储装置。The above-mentioned memory may include RAM (Random Access Memory, random access memory), and may also include NVM (Non-Volatile Memory, non-volatile memory), for example, at least one disk memory. Optionally, the memory may also be at least one storage device located away from the above-mentioned processor.

上述处理器可以是通用处理器,包括CPU(Central Processing Unit,中央处理器)、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processor,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a CPU (Central Processing Unit, central processing unit), NP (Network Processor, network processor), etc.; it may also be a DSP (Digital Signal Processor, digital signal processor), an ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

本发明一实施例提供的计算机可读存储介质,包含于终端设备,该计算机可读存储介质内存储有计算机程序,该计算机程序被处理器执行时,实现上述施例中任一应用于终端设备的通知推送方法的步骤。A computer-readable storage medium provided by an embodiment of the present invention is included in a terminal device, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any one of the foregoing embodiments can be applied to the terminal device. The steps of the notification push method.

本发明实施例提供的一种计算机可读存储介质,包含于终端设备,由于终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现了在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。A computer-readable storage medium provided by an embodiment of the present invention is included in a terminal device. Since the terminal device actively obtains a request result corresponding to a target remote notification that is pushed after the current time point, and generates a notification content as the content of the request result The content of the notification is output, and the local notification whose time point matches the push time point in the request result is output. Therefore, the local notification can be used to push the content of the target remote notification on time at a specified time point. It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

本发明一实施例提供的计算机可读存储介质,包含于服务器,该计算机可读存储介质内存储有计算机程序,该计算机程序被处理器执行时,实现上述施例中任一通知推送方法的步骤。A computer-readable storage medium provided by an embodiment of the present invention is included in a server, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the steps of any of the notification push methods in the foregoing embodiments are implemented. .

本发明一实施例提供的计算机可读存储介质,包含于服务器,该计算机可读存储介质内存储有计算机程序,该计算机程序被处理器执行时,由于服务器对应的客户端所在的终端设备主动获取在当前时间点之后进行推送的目标远程通知所对应的请求结果,并生成通知内容为请求结果中的通知内容,且输出时间点与请求结果中的推送时间点相匹配的本地通知,因此,可以利用本地通知实现了在指定时间点,准时推送目标远程通知的内容。可见,通过本方案可以提高远程通知的准时送达率。A computer-readable storage medium provided by an embodiment of the present invention is included in a server, and a computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the terminal device where the client corresponding to the server is located actively acquires the computer program. The request result corresponding to the target remote notification pushed after the current time point is generated, and the notification content is the notification content in the request result, and the output time point matches the push time point in the request result. The local notification is used to push the content of the target remote notification on time at a specified time point. It can be seen that the on-time delivery rate of remote notifications can be improved through this solution.

在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的通知推送方法。In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions, which, when running on a computer, cause the computer to execute the notification push method described in any one of the foregoing embodiments.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、DSL(Digital Subscriber Line,数字用户线)或无线(例如:红外线、无线电、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如:DVD(Digital Versatile Disc,数字通用光盘))、或者半导体介质(例如:SSD(Solid StateDisk,固态硬盘))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server or data center by means of wired (such as coaxial cable, optical fiber, DSL (Digital Subscriber Line, digital subscriber line) or wireless (such as: infrared, radio, microwave, etc.). A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The available media can be magnetic media, (eg, floppy disk, hard disk, etc. , magnetic tape), optical media (eg: DVD (Digital Versatile Disc, digital versatile disc)), or semiconductor media (eg: SSD (Solid StateDisk, solid-state hard disk)) and the like.

在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。In this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such existence between these entities or operations. The actual relationship or sequence. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、终端设备、服务器和通知推送系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. Especially, for the apparatus, terminal device, server, and notification push system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1.一种通知推送方法,其特征在于,应用于终端设备,所述方法包括:1. A notification push method, characterized in that, applied to a terminal device, the method comprising: 向客户端对应的服务器发送通知请求,以使得所述服务器确定所述通知请求对应的请求结果,并反馈所述请求结果;其中,所述通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;Send a notification request to the server corresponding to the client, so that the server determines the request result corresponding to the notification request, and feeds back the request result; wherein, the notification request is used to request a push target after the current time point The notification content and push time point of the remote notification; 接收所述服务器反馈的请求结果;receiving the request result fed back by the server; 生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配。Generate a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point is the same as the push time point in the request result. match. 2.根据权利要求1所述的方法,其特征在于,在所述向客户端对应的服务器发送通知请求的步骤之前,所述方法还包括:2. The method according to claim 1, wherein before the step of sending a notification request to the server corresponding to the client, the method further comprises: 获取与客户端的服务器之间的通信信息;其中,所述通信信息为用于表征通信质量的信息;Obtain the communication information with the server of the client; wherein, the communication information is information used to characterize the communication quality; 根据所述通信信息,判断所述终端设备与所述服务器之间的通信质量是否符合预设传输条件;According to the communication information, determine whether the communication quality between the terminal device and the server meets a preset transmission condition; 如果符合,则执行所述向客户端对应的服务器发送通知请求的步骤。If so, the step of sending a notification request to the server corresponding to the client is performed. 3.根据权利要求1-2任一项所述的方法,其特征在于,所述生成与所述请求结果匹配的关于所述客户端的本地通知的步骤,包括:3. The method according to any one of claims 1-2, wherein the step of generating a local notification about the client that matches the request result comprises: 确定与所述请求结果中的推送时间点对应的、所述终端设备本地的目标时间点;determining a local target time point of the terminal device corresponding to the push time point in the request result; 构建具有所述请求结果中的通知内容且输出时间点为所述目标时间点的关于所述客户端的本地通知。Constructing a local notification about the client with the notification content in the request result and the output time point being the target time point. 4.根据权利要求3所述的方法,其特征在于,所述确定与所述请求结果中的推送时间点对应的、所述终端设备本地的目标时间点,包括:4. The method according to claim 3, wherein the determining the target time point local to the terminal device corresponding to the push time point in the request result comprises: 当所述服务器与所述终端设备处于同一时区时,将请求结果中的推送时间点作为所述终端设备本地的目标时间点;When the server and the terminal device are in the same time zone, use the push time point in the request result as the local target time point of the terminal device; 当所述服务器与所述终端设备未处于同一时区时,根据所述终端设备所在的时区和所述服务器所在的时区,将所述请求结果中的推送时间点转换为所述终端设备本地的目标时间点。When the server and the terminal device are not in the same time zone, convert the push time point in the request result to the local target of the terminal device according to the time zone where the terminal device is located and the time zone where the server is located point in time. 5.一种通知推送方法,其特征在于,应用于服务器,所述服务器与终端设备中的客户端对应,所述方法包括:5. A notification push method, characterized in that it is applied to a server, and the server corresponds to a client in a terminal device, the method comprising: 接收所述终端设备发送的通知请求,所述通知请求用于请求在当前时间点之后进行推送的关于客户端的目标远程通知的通知内容和推送时间点;receiving a notification request sent by the terminal device, where the notification request is used to request the notification content and the push time point of the target remote notification about the client to be pushed after the current time point; 确定所述通知请求对应的请求结果;determining the request result corresponding to the notification request; 将所述请求结果反馈给所述终端设备,以使得所述终端设备在接收到所述请求结果后,生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配。Feedback the request result to the terminal device, so that after receiving the request result, the terminal device generates a local notification about the client that matches the request result, wherein the local notification The notification content is the notification content in the request result, and the output time point matches the push time point in the request result. 6.一种通知推送装置,其特征在于,应用于终端设备,所述装置包括:6. A notification push device, characterized in that, applied to a terminal device, the device comprising: 请求发送模块,用于向客户端对应的服务器发送通知请求,以使得所述服务器确定所述通知请求对应的请求结果,并反馈所述请求结果;其中,所述通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;A request sending module, configured to send a notification request to the server corresponding to the client, so that the server determines the request result corresponding to the notification request, and feeds back the request result; wherein, the notification request is used to request the current time The notification content and push time point of the target remote notification to be pushed after the point; 结果接收模块,用于接收所述服务器反馈的请求结果;a result receiving module, configured to receive the request result fed back by the server; 通知生成模块,用于生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配。A notification generation module, configured to generate a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point and the request result match the push time point in . 7.一种通知推送装置,其特征在于,应用于服务器,所述服务器与终端设备中的客户端对应,所述装置包括:7. A notification push device, characterized in that it is applied to a server, wherein the server corresponds to a client in a terminal device, and the device comprises: 请求接收模块,用于接收所述终端设备发送的通知请求,所述通知请求用于请求在当前时间点之后进行推送的关于客户端的目标远程通知的通知内容和推送时间点;a request receiving module, configured to receive a notification request sent by the terminal device, where the notification request is used to request the notification content and the push time point of the target remote notification about the client to be pushed after the current time point; 结果确定模块,用于确定所述通知请求对应的请求结果;a result determination module, configured to determine a request result corresponding to the notification request; 结果反馈模块,用于将所述请求结果反馈给所述终端设备,以使得所述终端设备在接收到所述请求结果后,生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配。A result feedback module, configured to feed back the request result to the terminal device, so that after receiving the request result, the terminal device generates a local notification about the client that matches the request result, wherein , the notification content of the local notification is the notification content in the request result, and the output time point matches the push time point in the request result. 8.一种通知推送系统,其特征在于,所述系统包括:终端设备和服务器,所述服务器与所述终端设备中的客户端对应;8. A notification push system, wherein the system comprises: a terminal device and a server, and the server corresponds to a client in the terminal device; 所述终端设备,用于向客户端对应的服务器发送通知请求;其中,所述通知请求用于请求在当前时间点之后进行推送的目标远程通知的通知内容和推送时间点;接收所述服务器反馈的请求结果;生成与所述请求结果匹配的关于所述客户端的本地通知,其中,所述本地通知的通知内容为所述请求结果中的通知内容,且输出时间点与所述请求结果中的推送时间点相匹配;The terminal device is used to send a notification request to the server corresponding to the client; wherein, the notification request is used to request the notification content and push time point of the target remote notification to be pushed after the current time point; receive feedback from the server the request result; generate a local notification about the client that matches the request result, wherein the notification content of the local notification is the notification content in the request result, and the output time point is the same as that in the request result match the push time point; 所述服务器,用于接收所述终端设备发送的通知请求;确定所述通知请求对应的请求结果;将所述请求结果反馈给所述终端设备。The server is configured to receive a notification request sent by the terminal device; determine a request result corresponding to the notification request; and feed back the request result to the terminal device. 9.一种终端设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过总线完成相互间的通信;9. A terminal device, characterized in that it comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the bus; 存储器,用于存放计算机程序;memory for storing computer programs; 处理器,用于执行存储器上所存放的程序,实现如权利要求1-4任一所述的方法步骤。The processor is configured to execute the program stored in the memory, and implement the method steps according to any one of claims 1-4. 10.一种服务器,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过总线完成相互间的通信;10. A server, characterized in that it comprises a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the bus; 存储器,用于存放计算机程序;memory for storing computer programs; 处理器,用于执行存储器上所存放的程序,实现如权利要求5所述的方法步骤。The processor is configured to execute the program stored in the memory to implement the method steps as claimed in claim 5 .
CN201811557935.4A 2018-12-19 2018-12-19 Notify method for pushing, device, terminal device, server and system Pending CN110012051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811557935.4A CN110012051A (en) 2018-12-19 2018-12-19 Notify method for pushing, device, terminal device, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811557935.4A CN110012051A (en) 2018-12-19 2018-12-19 Notify method for pushing, device, terminal device, server and system

Publications (1)

Publication Number Publication Date
CN110012051A true CN110012051A (en) 2019-07-12

Family

ID=67165182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811557935.4A Pending CN110012051A (en) 2018-12-19 2018-12-19 Notify method for pushing, device, terminal device, server and system

Country Status (1)

Country Link
CN (1) CN110012051A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948689A (en) * 2021-03-29 2021-06-11 湖南快乐阳光互动娱乐传媒有限公司 Information push method and device applied to MacOS system
CN114301975A (en) * 2021-11-30 2022-04-08 乐美科技股份私人有限公司 Processing method, device and equipment for pushing information in application and storage medium
CN115023922A (en) * 2020-03-12 2022-09-06 深圳市欢太科技有限公司 Information pushing method and device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973461A (en) * 2013-02-06 2014-08-06 阿里巴巴集团控股有限公司 Notification message pushing method and message server
CN104158899A (en) * 2014-08-25 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal information pushing method, device and system based on service-oriented architecture (SOA)
CN105472551A (en) * 2014-09-09 2016-04-06 中国移动通信集团公司 Multimedia information providing method, device and system
CN106657172A (en) * 2015-10-28 2017-05-10 北京金山安全软件有限公司 Method and device for realizing information push
CN108737636A (en) * 2018-03-30 2018-11-02 北京奇艺世纪科技有限公司 A kind of method and apparatus of prompting message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973461A (en) * 2013-02-06 2014-08-06 阿里巴巴集团控股有限公司 Notification message pushing method and message server
CN104158899A (en) * 2014-08-25 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal information pushing method, device and system based on service-oriented architecture (SOA)
CN105472551A (en) * 2014-09-09 2016-04-06 中国移动通信集团公司 Multimedia information providing method, device and system
CN106657172A (en) * 2015-10-28 2017-05-10 北京金山安全软件有限公司 Method and device for realizing information push
CN108737636A (en) * 2018-03-30 2018-11-02 北京奇艺世纪科技有限公司 A kind of method and apparatus of prompting message

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115023922A (en) * 2020-03-12 2022-09-06 深圳市欢太科技有限公司 Information pushing method and device, server and storage medium
CN115023922B (en) * 2020-03-12 2024-05-03 深圳市欢太科技有限公司 Information pushing method, device, server and storage medium
CN112948689A (en) * 2021-03-29 2021-06-11 湖南快乐阳光互动娱乐传媒有限公司 Information push method and device applied to MacOS system
CN114301975A (en) * 2021-11-30 2022-04-08 乐美科技股份私人有限公司 Processing method, device and equipment for pushing information in application and storage medium

Similar Documents

Publication Publication Date Title
US11303623B2 (en) Authentication mechanism
US20220150678A1 (en) Communication method and apparatus, computer-readable medium, and electronic device
WO2021237433A1 (en) Message pushing method and apparatus, and electronic device and computer-readable medium
US20160021035A1 (en) Creating a user group
WO2018171208A1 (en) Server load adjustment method and device, server, live broadcast system and computer readable storage medium
JP6655093B2 (en) Display for partial segments
CN110944220B (en) Video screen projection playing method, device, equipment and system
CN110012051A (en) Notify method for pushing, device, terminal device, server and system
CN106534280B (en) Data sharing method and device
WO2018133767A1 (en) Call control method, terminal apparatus, and data storage medium
WO2020125074A1 (en) Message arrival rate determination method and device, data statistics server and storage medium
CN110677684B (en) Video processing method, video access method, distributed storage method and distributed video access system
CN110191131A (en) A file sharing method, device, system, server and storage medium
US20140201293A1 (en) Choosing a service to provide a message
WO2019205555A1 (en) Method and apparatus for pushing message
CN105991407A (en) Message processing method, message processing device and processing server
CN110971984B (en) Wheat connecting method, device, system, equipment and storage medium
CN103561063B (en) A kind of method of Register top box and terminal
US20170164138A1 (en) Notification message transmission method and device, and computer storage medium
US20150067066A1 (en) Provisioning Communication Services using Proxy Server in a Cloud
CN109788326B (en) Video resource pre-pushing method, device and system
CN108184131A (en) Start broadcasting based reminding method, device and readable storage medium storing program for executing
US20130227027A1 (en) Method, system and apparatus for managing electronic subscriptions at a communication device
CN113612676B (en) Social group message synchronization method, device, equipment and storage medium
EP3472995B1 (en) Signaling which version information to use on byte-range file repair

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
TA01 Transfer of patent application right

Effective date of registration: 20210527

Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, Singapore

Applicant after: Zhuomi Private Ltd.

Address before: Room 1101, Santai commercial building, 139 Connaught Road Central, Hong Kong, China

Applicant before: HONG KONG LIVE.ME Corp.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712

RJ01 Rejection of invention patent application after publication