WO2018219061A1 - 消息推送的多路复用方法及装置、电子设备 - Google Patents

消息推送的多路复用方法及装置、电子设备 Download PDF

Info

Publication number
WO2018219061A1
WO2018219061A1 PCT/CN2018/083733 CN2018083733W WO2018219061A1 WO 2018219061 A1 WO2018219061 A1 WO 2018219061A1 CN 2018083733 W CN2018083733 W CN 2018083733W WO 2018219061 A1 WO2018219061 A1 WO 2018219061A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
push
application
applications
service
Prior art date
Application number
PCT/CN2018/083733
Other languages
English (en)
French (fr)
Inventor
方顺豹
Original Assignee
北京奇虎科技有限公司
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 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2018219061A1 publication Critical patent/WO2018219061A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • 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

Definitions

  • the present disclosure relates to the field of software, and in particular, to a multiplexing method and apparatus for message push.
  • Many applications can be installed on the terminal device, and different applications can actively push messages to the user, so as to improve application activity and user stickiness.
  • the application actively pushes a message to the user it is necessary to first establish a message push channel, and actively push the message to the user through the message push channel.
  • the present disclosure has been made in order to provide a multiplexing method and apparatus for message push that overcomes the above problems or at least partially solves the above problems.
  • a message pushing multiplexing device including:
  • the startup module is adapted to start a message push service of the application and send a broadcast message to other applications;
  • the determining module is adapted to determine whether a response message of the message push service feedback of other applications is received within a preset time
  • the receiving module is adapted to: if the response message is not received within the preset time, use the initiated message to push the service to receive the push message sent by the server to the one or more applications; if the response message is received within the preset time, according to The response message determines the message push service that should be retained, using the retained message push service to receive push messages sent by the server to one or more applications.
  • a multiplexing method of message push including:
  • the push message sent by the server to the one or more applications is transmitted by the initiated message push service
  • the message push service that should be retained is determined according to the response message, and the push message sent by the service receiving server to one or more applications is used by the reserved message push service.
  • an electronic device includes: a processor, a memory, a communication interface, and a communication bus through which a processor, a memory, and a communication interface complete communication with each other;
  • the memory is configured to store at least one executable instruction, and the executable instruction causes the processor to perform an operation corresponding to the multiplexing method of the message push.
  • a computer program comprising:
  • Computer readable code when the computer readable code is run on a computing device, causes the computing device to perform operations corresponding to the multiplexing method of the message push described above.
  • a non-transitory computer readable storage medium having stored therein at least one executable instruction that causes a processor to execute as described above The operation corresponding to the multiplexing method of message push.
  • the electronic device sends a broadcast message to other applications after starting the message push service of the application. Determining whether a response message of the message push service feedback of other applications is received within a preset time, and according to the judgment result, using the initiated message push service receiving server or the retained message push service receiving server to send to one or more applications Push messages to achieve multiplexing of message pushes.
  • the push message sent to one or more applications can be completed by using only one message push service, which saves the power consumed by the terminal device to initiate the message push service of multiple applications.
  • only one global push message sent by one message push service to one or more applications is used, only one global push message can be pushed for the global push message, which implements filtering of multiple global push messages, and avoids pushing multiple same global pushes.
  • the message is sent to the terminal device to improve the user experience.
  • FIG. 1 shows a flow chart of a multiplexing method of message push according to a first embodiment of the present disclosure
  • FIG. 2 is a flowchart showing a multiplexing method of message push according to Embodiment 2 of the present disclosure
  • FIG. 3 is a functional block diagram of a multiplexing device for message push according to Embodiment 3 of the present disclosure
  • FIG. 4 is a functional block diagram of a multiplexing device for message push according to Embodiment 4 of the present disclosure
  • FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 6 of the present disclosure.
  • the application's message push service is used to send push messages received from the server to the application.
  • an application corresponds to a message push service of its own, and the message push service only receives push messages sent by the server to the application.
  • the app's messaging service must be launched after the app is launched. If the application is not started or the application is not running in the background, the application's message push service cannot be started, that is, the application's message push service cannot send a push message received from the server to the application.
  • FIG. 1 shows a flow chart of a multiplexing method of message push according to a first embodiment of the present disclosure.
  • the multiplexing method of message push specifically includes the following steps:
  • Step S101 starting a message push service of the application, and sending a broadcast message to other applications.
  • Initiating an application's message push service sending a broadcast message to other applications after launching the application's message push service. Since the start of the message push service of each application is random, there is no fixed time or start sequence, and each application cannot know whether other applications have started their corresponding message push service before the application starts the message push service. . Therefore, by sending a broadcast message to other applications, it is confirmed whether other applications have started their corresponding message push services.
  • Step S102 Determine whether a response message of the message push service feedback of other applications is received within a preset time. If yes, go to step S104; otherwise, go to step S103.
  • the broadcast message is sent to other applications, if the message push service of an application in another application has been started, the response message of the message push service feedback of the application is received, and if the message push services of other applications are not started, The response message of the message push service feedback of any other application will not be received.
  • step S104 Since the message push service of other applications receives the broadcast message and feeds back the response message, there will be a certain time interval. In the judgment, it is determined that the response message of the message push service feedback of other applications is received within 15 seconds within the preset time. If yes, go to step S104, otherwise, go to step S103.
  • Step S103 using the initiated message push service to receive a push message sent by the server to one or more applications.
  • Step S104 Determine, according to the response message, a message push service that should be retained, and use the retained message push service to receive a push message sent by the server to one or more applications.
  • a message push service that should be retained is determined according to information such as the start time of the message push service carried in the response message. Comparing the start time of the message push service carried in the feedback response message with the start time of the message push service of the application, if the start time of the message push service of the application is before, the message push service of other applications is all closed. Only the message push service of the application is retained; if the message push service of an application in another application is in the front, only the message push service of the application is retained, and the message push service of the other application and the application is closed.
  • a message push service is used to receive a push message sent by the server to one or more applications to implement multiplexing of a message push service.
  • the message pushing service receives the push message of the server in step S103 and step S104, and the push message may be a push message sent to an application that starts the message push service, or may be sent to an application unrelated to starting the message push service. Push message.
  • the message push service can receive all kinds of push messages mentioned above.
  • the types of push messages can be classified into global push messages, application-specific push messages, user-specific push messages, and the like.
  • a global push message is the same push message that the server sends to multiple applications.
  • the message push service of different applications in the prior art receives the global push message sent by the server, thereby receiving a plurality of repeated global push messages, causing repeated message harassment for the user.
  • the present disclosure only receives a push message sent by the server to one or more applications through a message push service, so that only one global push message is received, which does not cause repeated message harassment for the user, and implements filtering of multiple global push messages. To avoid pushing multiple identical global push messages to the terminal device, improving the user experience.
  • the application-specific push message can only receive the push message specific to the application after the application's message push service is started.
  • the application does not start or the application starts but the application's message push service does not start and cannot receive the application-specific push message.
  • the present disclosure receives a push message sent by the server to one or more applications through a message push service, and even if the application corresponding to the application-specific push message is not activated or the message push service of the corresponding application is not started, the application-specific can still be received.
  • Push messages to enable users to get valid push messages in a timely manner. The same is true for the user-specific push message.
  • the user-specific push message can still be received through a message push service that has been activated or reserved.
  • the application-specific push message, the user-specific push message, etc. when the push message is received, the corresponding application does not need to be in the startup state and can also receive the push message, which greatly reduces the power consumption of the terminal device.
  • the broadcast message is sent to other applications. Determining whether a response message of the message push service feedback of other applications is received within a preset time, and according to the judgment result, using the initiated message push service receiving server or the retained message push service receiving server to send to one or more applications Push messages to achieve multiplexing of message pushes.
  • the push message sent to one or more applications can be completed by using only one message push service, which saves the power consumed by the terminal device to initiate the message push service of multiple applications.
  • FIG. 2 is a flow chart showing a multiplexing method of message push according to Embodiment 2 of the present disclosure. As shown in FIG. 2, the multiplexing method of message push specifically includes the following steps:
  • Step S201 Start a message push service of the application, and send a broadcast message to other applications.
  • step S202 it is determined whether a response message of the message push service feedback of other applications is received within a preset time. If yes, step S204 is performed; otherwise, step S203 is performed.
  • Step S203 using the initiated message push service to receive a push message sent by the server to one or more applications.
  • Step S204 Determine, according to the response message, a message push service that should be retained, and use the retained message to push the push message sent by the service receiving server to one or more applications.
  • Step S205 determining whether the client has installed at least one of the one or more applications, and if yes, executing step S207; if not, executing step S206.
  • Step S206 if the client does not install at least one of the one or more applications, that is, the one or more applications are not installed on the client, the client does not belong to the push object of the push message, and the push push needs to be discarded. Message.
  • Step S207 If the client has installed at least one of the one or more applications, the push message is displayed in the notification bar.
  • the message push service receives a push message sent by the server to one or more applications, wherein the push message points to a specific application.
  • the message push service receives the push message sent by the server to the application A, the push message sent to the application B, and the like, wherein the message push service may be the message push service of the application A, or the message push service is the message push service of the application B.
  • the message push service is neither the message push service of the application A nor the message push service of the application B, but the message push service of the application C. Therefore, the application pointed to by the push message received by the message push service may not be the application corresponding to the message push service. For such a push message, the application pointed to by the push message needs to be obtained first.
  • the notification bar displays push messages.
  • the server can send the application-specific push message to the terminal device of the user ID by filtering the user ID, and the message push service is provided. receive.
  • the user since the user only installs the application but does not register, it may result in the user being omitted. Therefore, it is possible to avoid omission by sending application-specific push messages to all users.
  • the application-specific push message it is necessary to determine whether the client has one or more applications corresponding to the push message. If the client does not install the one or more applications, step S206 is performed. The push message is discarded and no subsequent processing is performed.
  • step S207 is executed, and the push message corresponding to the installed application is displayed in the notification bar. In this way, the omission of the push message is avoided, and the message harassment of the terminal device without the application is also avoided.
  • Step S208 Determine, according to the triggering behavior of the push message by the user, whether the application pointed to by the push message is started.
  • step S209 if not activated, the application pointed to by the push message is started according to the triggering behavior.
  • the push message includes contents such as text, pictures, and the like of the message, and is generally displayed in the notification column of the terminal device.
  • the details of the push message are typically displayed in the application it points to.
  • the message push service can be started, and then the push message sent by the server to the application is received. That is, when a push message is received, the application pointed to by the push message must be in a startup state.
  • the message pushing service initiated by the embodiment may receive a push message sent by the server to one or more applications, and the push message may be an application corresponding to the message push service, or may be directed to an application not corresponding to the message push service. That is, in the case where the application is not started, the push message sent by the server to the application is received by the message push service of the other application.
  • the message pushing service of the application A receives the push message sent by the server to the application B, and the application pointed to by the push message is the application B, but the application B has not been started yet. Therefore, according to the triggering behavior of the user for the push message, the push message is first determined. Whether the pointed application is started, if not started, executing step S209 to first start the application pointed to by the push message. After the app launches, the details of the push message can be displayed in the app.
  • the push message includes, for example, a specified application call request, an application download address, a specified web page display request, and the like.
  • the user may directly jump to the application download address to download the application according to the trigger behavior of the push message.
  • the specified webpage display request included in the push message the user may directly jump to the webpage display page according to the triggering behavior of the user on the push message.
  • the specified application call request included in the push message if the push message is sent by the server to the application A, the push message includes the specified application B call request, and the application B is invoked according to the trigger action of the user on the push message.
  • the message push service when receiving the push message, in order to remind the user to pay attention, there will be a corresponding message to push the reminder ringtone.
  • the user can provide a function of setting a personalized message push reminder ringtone according to his own needs, to meet the user's personalized customization service. It is also possible to provide a setting message according to the user's own work habits to push the anti-harassment time period, push the anti-harassment time period according to the set message, and may not push the message within the time period.
  • a push message sent by a message push service receiving server to one or more applications is implemented, so that the message push multiplex is multiplexed, which greatly saves the terminal device from launching multiple applications.
  • the message pushes the amount of power consumed by the service. At the same time, it reduces the harassment of push messages to users, improves the user experience, makes push messages easier, and makes the message push service more viable.
  • FIG. 3 is a functional block diagram of a multiplexing device for message push according to Embodiment 3 of the present disclosure. As shown in FIG. 3, the message pushing multiplexing device includes the following modules:
  • the startup module 310 is adapted to start a message push service of the application and send a broadcast message to other applications.
  • the startup module 310 initiates an application's message push service, and after launching the application's message push service, the launch module 310 sends a broadcast message to other applications. Since the start of the message push service of each application is random, there is no fixed time or start sequence, and each application cannot know whether other applications have started their corresponding message push service before the application starts the message push service. . Therefore, the startup module 310 confirms whether other applications have started their corresponding message push services by sending broadcast messages to other applications.
  • the determining module 320 is adapted to determine whether a response message of the message push service feedback of other applications is received within a preset time.
  • the sending module 310 sends a broadcast message to other applications, if the message pushing service of an application in another application has been started, the determining module 320 receives the response message of the message pushing service feedback of the application, and if other applications push the message If the services are not started, the judging module 320 will not receive the response message of the message push service feedback of any other application.
  • the determining module 320 determines that a response message of the message push service feedback of other applications is received within 15 seconds within a preset time.
  • the receiving module 330 is adapted to: if the response message is not received within the preset time, use the initiated message to push the service to send the push message sent by the server to the one or more applications; if the response message is received within the preset time, The message push service that should be retained is determined according to the response message, and the push message sent by the server to one or more applications is received by the reserved message push service.
  • the judging module 320 judges that the response message of the message push service feedback of other applications is not received within the preset time, and it can be considered that only the message push service of the application is started at the current time.
  • the receiving module 330 can use the initiated message push service to receive push messages sent by the server to one or more applications to implement multiplexing of a message push service.
  • the determining module 320 determines that the response message received by other applications is received within the preset time, that is, the message pushing service of other applications has been started at the current time.
  • the receiving module 330 determines a message push service that should be retained according to information such as the start time of the message push service carried in the response message.
  • the receiving module 330 may compare the start time of the message push service carried in the feedback response information with the start time of the message push service of the application. If the start time of the message push service of the application is earlier, the receiving module 330 may use other applications.
  • the message push service is all closed, and only the message push service of the application is retained; if the message push service of one of the other applications is in the front, the receiving module 330 only retains the message push service of the application, and the other applications and the application are The message push service is turned off.
  • the manner in which the receiving module 330 determines the retained message pushing service according to the response message may be set according to the implementation, which is not limited herein.
  • the receiving module 330 implements multiplexing of a message push service by using a reserved message push service to receive a push message sent by the server to one or more applications after retaining a message push service.
  • the push message received by the receiving module 330 may be a push message sent to an application that initiates the message push service, or may be a push message sent to an application unrelated to starting the message push service.
  • the receiving module 330 can receive the above various push messages.
  • the types of push messages can be classified into global push messages, application-specific push messages, user-specific push messages, and the like.
  • a global push message is the same push message that the server sends to multiple applications.
  • the message push service of different applications in the prior art receives the global push message sent by the server, thereby receiving a plurality of repeated global push messages, causing repeated message harassment for the user.
  • the receiving module 330 receives a push message sent by the server to one or more applications through a message push service, so that only one global push message is received, which does not cause repeated message harassment for the user, and implements multiple global pushes.
  • the filtering of messages avoids pushing multiple identical global push messages to the terminal device, improving the user experience.
  • the application-specific push message can only receive the push message specific to the application after the application's message push service is started.
  • the application does not start or the application starts but the application's message push service does not start and cannot receive the application-specific push message.
  • the receiving module 330 receives the push message sent by the server to one or more applications through a message pushing service, and the receiving message corresponding to the application-specific push message is not activated, and the message pushing service of the corresponding application is not started, and can still be received.
  • the application-specific push message enables the user to obtain a valid push message in time. The same is true for the user-specific push message.
  • the receiving module 330 can still receive the user-specific push message through a message push service that has been activated or reserved.
  • the application-specific push message, the user-specific push message, etc. when the push message is received, the corresponding application does not need to be in the startup state and can also receive the push message, which greatly reduces the power consumption of the terminal device.
  • the multiplexing device sends a broadcast message to other applications after launching the message push service of the application. Determining whether a response message of the message push service feedback of other applications is received within a preset time, and according to the judgment result, using the initiated message push service receiving server or the retained message push service receiving server to send to one or more applications Push messages to achieve multiplexing of message pushes.
  • the push message sent to one or more applications can be completed by using only one message push service, which saves the power consumed by the terminal device to initiate the message push service of multiple applications.
  • the message pushing multiplexing device further includes the following modules:
  • the installation determining module 340 is configured to determine whether the client has installed at least one of the one or more applications; if the client does not install at least one of the one or more applications, the push message is discarded; if the client is installed At least one of the one or more applications displays a push message in the notification bar.
  • the message push service receives a push message sent by the server to one or more applications, wherein the push message points to a specific application.
  • the message push service receives the push message sent by the server to the application A, the push message sent to the application B, and the like, wherein the message push service may be the message push service of the application A, or the message push service is the message push service of the application B.
  • the message push service is neither the message push service of the application A nor the message push service of the application B, but the message push service of the application C. Therefore, the application pointed to by the push message received by the message push service may not be the application corresponding to the message push service. For such a push message, the application pointed to by the push message needs to be obtained first.
  • the notification bar displays push messages.
  • the server can send the application-specific push message to the terminal device of the user ID by filtering the user ID, and the message push service is provided. receive.
  • the server can avoid omissions by sending application-specific push messages to all users.
  • the installation determining module 340 first determines whether the client has installed one or more applications corresponding to the push message, and if the client does not install the one or more applications, The push message is directly discarded without subsequent processing. If the client has installed one of the one or more applications, the push message corresponding to the installed application is displayed in the notification bar. In this way, the omission of the push message is avoided, and the message harassment of the terminal device without the application is also avoided.
  • the application startup module 350 is adapted to determine, according to the triggering behavior of the push message by the user, whether the application pointed to by the push message is started; if not, the application pointed to by the push message is started according to the triggering behavior.
  • the push message includes contents such as text, pictures, and the like of the message, and is generally displayed in the notification column of the terminal device.
  • the details of the push message are typically displayed in the application it points to.
  • the message push service can be started, and then the push message sent by the server to the application is received. That is, when a push message is received, the application pointed to by the push message must be in a startup state.
  • the message pushing service initiated by the embodiment may receive a push message sent by the server to one or more applications, and the push message may be an application corresponding to the message push service, or may be directed to an application not corresponding to the message push service. That is, in the case where the application is not started, the push message sent by the server to the application is received by the message push service of the other application.
  • the message pushing service of the application A receives the push message sent by the server to the application B, and the application pointed to by the push message is the application B, but the application B has not been started. Therefore, the application startup module 350 according to the triggering behavior of the user for the push message. First, it is determined whether the application pointed to by the push message is started. If not, the application pointed to by the push message is started first. After the app launches, the details of the push message can be displayed in the app.
  • the push message includes, for example, a specified application call request, an application download address, a specified web page display request, and the like.
  • the user may directly jump to the application download address to download the application according to the trigger behavior of the push message.
  • the specified webpage display request included in the push message the user may directly jump to the webpage display page according to the triggering behavior of the user on the push message.
  • the specified application call request included in the push message if the push message is sent by the server to the application A, the push message includes the specified application B call request, and the application B is invoked according to the trigger action of the user on the push message.
  • the ringtone setting module 360 is adapted to set a personalized message push reminder ringtone.
  • the time setting module 370 is adapted to set a message push anti-harassment time period.
  • the ringtone setting module 360 can provide a function of setting a personalized message push reminder ringtone according to a user's needs to meet the user's personalized customization service.
  • the time setting module 370 can provide a setting message according to the user's own work habits to push the anti-harassment time period, push the anti-harassment time period according to the set message, and can not push the message during the time period.
  • a push message sent by a message push service receiving server to one or more applications is implemented, so that the message push multiplex is multiplexed, which greatly saves the terminal device from launching multiple applications.
  • the message pushes the amount of power consumed by the service. At the same time, it reduces the harassment of push messages to users, improves the user experience, makes push messages easier, and makes the message push service more viable.
  • Embodiment 5 of the present disclosure provides a non-transitory computer readable storage medium storing at least one executable instruction executable in any of the above method embodiments The multiplex method of message push.
  • FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 6 of the present disclosure.
  • the specific embodiment of the present disclosure does not limit the specific implementation of the electronic device.
  • the electronic device can include a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
  • Processor 502, communication interface 504, and memory 506 complete communication with one another via communication bus 508.
  • the communication interface 504 is configured to communicate with network elements of other devices, such as clients or other servers.
  • the processor 502 is configured to execute the program 510, and specifically, the related steps in the multiplexing method embodiment of the message push described above.
  • program 510 can include program code, the program code including computer operating instructions.
  • the processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
  • the one or more processors included in the electronic device may be the same type of processor, such as one or more CPUs; or may be different types of processors, such as one or more CPUs and one or more ASICs.
  • the memory 506 is configured to store the program 510.
  • Memory 506 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • Program 510 can be specifically configured to cause processor 502 to perform the following operations:
  • the program 510 is configured to enable the processor 502 to initiate a message push service of the application, send a broadcast message to other applications, and determine whether a response of the message push service feedback of other applications is received within a preset time. If the response message is not received within the preset time, the push message sent by the service receiving server to the one or more applications is used by the initiated message; if the response message is received within the preset time, the response message is determined according to the response message.
  • the message push service that should be retained, using the retained message push service to receive push messages sent by the server to one or more applications.
  • the program 510 is configured to enable the processor 502 to receive a response message in a preset time, and select a message that retains the start time according to the start time of the message push service carried in the response message. Push service.
  • the program 510 is configured to cause the processor 502 to determine whether the client has installed at least one of the one or more applications; if the client does not install at least one of the one or more applications , the push message is discarded; if the client has installed one of the applications, the push message is displayed in the notification bar.
  • the program 510 is configured to enable the processor 502 to determine, according to the triggering behavior of the push message by the user, whether the application pointed to by the push message is started; if not, start the application pointed to by the push message according to the triggering behavior. .
  • the push message includes: a specified application call request, an application download address, and/or a specified web page display request.
  • the program 510 is configured to cause the processor 502 to set a personalized message push reminder ringtone and/or set a message push anti-harassment time period.
  • the broadcast message is sent to other applications. Determining whether a response message of the message push service feedback of other applications is received within a preset time, and according to the judgment result, using the initiated message push service receiving server or the retained message push service receiving server to send to one or more applications Push messages to achieve multiplexing of message pushes.
  • the push message sent to one or more applications can be completed by using only one message push service, which saves the power consumed by the terminal device to initiate the message push service of multiple applications.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • Various component embodiments of the present disclosure may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • Those skilled in the art will appreciate that some or all of some or all of the components of the multiplexing device for message pushing in accordance with embodiments of the present disclosure may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • the present disclosure may also be implemented as a device or device program (eg, a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

Abstract

本公开公开了一种消息推送的多路复用方法及装置、电子设备,其方法包括:启动应用的消息推送服务,向其它应用发送广播消息;判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息;若在预设时间内未接收到响应消息,则利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息;若在预设时间内接收到响应消息,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。

Description

消息推送的多路复用方法及装置、电子设备
相关申请的交叉参考
本申请要求于2017年5月27日提交中国专利局、申请号为201710390182.1、名称为“消息推送的多路复用方法及装置、电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及软件领域,具体涉及一种消息推送的多路复用方法及装置。
背景技术
终端设备上可以安装很多应用,不同的应用都可以向用户主动推送消息,以便于提高应用的活跃度和用户粘性。在应用向用户主动推送消息时,需要先建立一个消息推送通道,通过消息推送通道向用户主动推送消息。
但不同的应用均需要建立各自的消息推送通道,通过各自的消息推送通道向用户推送消息,这样就使得在终端设备上会同时存在多个消息推送通道,对于终端设备的电量消耗巨大。另外,若多个应用均推送同样的全局推送消息,则会使得用户收到多条一样的消息,对用户而言体验效果不佳。
因此,需要一种可以解决以上推送方式所存在的问题的消息推送的多路复用的方法及装置。
发明内容
鉴于上述问题,提出了本公开以便提供一种克服上述问题或者至少部分地解决上述问题的消息推送的多路复用方法及装置。
根据本公开的一方面,提供了一种消息推送的多路复用装置,其包括:
启动模块,适于启动应用的消息推送服务,向其它应用发送广播消息;
判断模块,适于判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息;
接收模块,适于若在预设时间内未接收到响应消息,则利用所启动的消 息推送服务接收服务器向一个或多个应用发送的推送消息;若在预设时间内接收到响应消息,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
根据本公开的另一方面,提供了一种消息推送的多路复用方法,其包括:
启动应用的消息推送服务,向其它应用发送广播消息;
判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息;
若在预设时间内未接收到响应消息,则利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息;
若在预设时间内接收到响应消息,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
根据本公开的又一方面,提供了一种电子设备,包括:处理器、存储器、通信接口和通信总线,处理器、存储器和通信接口通过所述通信总线完成相互间的通信;
存储器用于存放至少一可执行指令,可执行指令使处理器执行上述消息推送的多路复用方法对应的操作。
根据本公开的又一方面,提供了一种计算机程序,包括:
计算机可读代码,当计算机可读代码在计算设备上运行时,导致计算设备执行上述消息推送的多路复用方法对应的操作。
根据本公开的再一方面,提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质中存储有至少一可执行指令,可执行指令使处理器执行如上述消息推送的多路复用方法对应的操作。
根据本公开提供的消息推送的多路复用方法及装置、电子设备,在启动应用的消息推送服务后,向其它应用发送广播消息。判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息,根据判断结果,利用所启动的消息推送服务接收服务器或所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息,实现了消息推送的多路复用。仅利用一个消息推送服务就可以完成向一个或多个应用发送的推送消息,节省了终端设备启动多个应用的消息推送服务所消耗的电量。同时,由于仅利用一个消息推送 服务向一个或多个应用发送的推送消息,对于全局推送消息可以仅推送一条全局推送消息,实现了多条全局推送消息的过滤,避免推送多条同样的全局推送消息给终端设备,提高了用户体验。
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。
附图概述
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本公开实施例一的消息推送的多路复用方法的流程图;
图2示出了根据本公开实施例二的消息推送的多路复用方法的流程图;
图3示出了根据本公开实施例三的消息推送的多路复用装置的功能框图;
图4示出了根据本公开实施例四的消息推送的多路复用装置的功能框图;
图5示出了根据本公开实施例六的一种电子设备的结构示意图。
本公开的较佳实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
应用的消息推送服务用于向应用发送接收自服务器的推送消息。一般一个应用对应一个其本身的消息推送服务,该消息推送服务仅接收服务器发给该应用的推送消息。该应用的消息推送服务必须在该应用启动后才能启动。 若没有启动该应用或者没有在后台运行该应用,该应用的消息推送服务无法启动,即该应用的消息推送服务无法向该应用发送接收自服务器的推送消息。
实施例一
图1示出了根据本公开实施例一的消息推送的多路复用方法的流程图。如图1所示,消息推送的多路复用方法具体包括如下步骤:
步骤S101,启动应用的消息推送服务,向其它应用发送广播消息。
启动一个应用的消息推送服务,在启动该应用的消息推送服务后向其它应用发送一个广播消息。由于每个应用的消息推送服务的启动是随机性的,没有固定的时间或启动顺序,每个应用无法了解是否在本应用启动消息推送服务前,已经有其它应用启动了其对应的消息推送服务。因此,通过向其它应用发送广播消息,进而来确认是否有其它应用已经启动其对应的消息推送服务。
步骤S102,判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息,若是,执行步骤S104;否则,执行步骤S103。
在向其它应用发送广播消息后,若其它应用中某一应用的消息推送服务已经启动,会接收到该应用的消息推送服务反馈的响应消息,若其它各应用的消息推送服务均未启动,则不会接收到任何其它应用的消息推送服务反馈的响应消息。
由于其它应用的消息推送服务在接收到广播消息后并反馈响应消息,会有一定时间的间隔。在判断时,判断预设时间内如15秒内接收到其它应用的消息推送服务反馈的响应消息。若接收到,执行步骤S104,否则,执行步骤S103。
步骤S103,利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息。
由于在预设时间内没有接收到其它应用的消息推送服务反馈的响应消息,可以认为当前时间只有本应用的消息推送服务启动。利用所启动的消息推送服务可以接收服务器向一个或多个应用发送的推送消息,实现一个消息 推送服务的多路复用。
步骤S104,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
当接收到其它应用反馈的响应消息后,即当前时间已经有其它应用的消息推送服务启动。根据响应消息中携带的如消息推送服务的启动时间等信息来确定应保留的一个消息推送服务。将反馈的响应信息中携带的消息推送服务的启动时间与本应用的消息推送服务的启动时间进行比较,若本应用的消息推送服务的启动时间在前,则将其它应用的消息推送服务全部关闭,仅保留本应用的消息推送服务;若其它应用中的某一应用的消息推送服务在前,则仅保留该应用的消息推送服务,将其它应用和本应用的消息推送服务均关闭。根据响应消息来确定保留的消息推送服务的方式可以根据实施情况进行设置,此处不做限定。在保留一个消息推送服务后,利用所保留的一个消息推送服务接收服务器向一个或多个应用发送的推送消息,实现一个消息推送服务的多路复用。
其中,步骤S103和步骤S104中消息推送服务接收到服务器的推送消息,该推送消息可以是向启动该消息推送服务的应用发送的推送消息,也可以是向与启动该消息推送服务无关的应用发送的推送消息。消息推送服务均可以接收以上各种推送消息。
推送消息的类型可以分为如全局推送消息、应用专属的推送消息、用户专属的推送消息等。全局推送消息是服务器向多个应用发送的相同的推送消息。现有技术中不同应用的消息推送服务都会接收到服务器发送的全局推送消息,从而接收到多条重复的全局推送消息,对用户而言造成重复消息骚扰。本公开仅通过一个消息推送服务接收服务器向一个或多个应用发送的推送消息,使得仅接收到一条全局推送消息,对用户而言不会造成重复消息骚扰,实现了多条全局推送消息的过滤,避免推送多条同样的全局推送消息给终端设备,提高了用户体验。现有技术中对应用专属的推送消息,只有当应用的消息推送服务启动后,才能接收到该应用专属的推送消息。应用没有启动或者应用启动但应用的消息推送服务没有启动,无法接收到该应用专属的推送消息。本公开通过一个消息推送服务接收服务器向一个或多个应用发送的推 送消息,即使应用专属的推送消息对应的应用没有启动或者对应的应用的消息推送服务没有启动,依然可以接收到该应用专属的推送消息,使用户及时获取到有效的推送消息。对于用户专属的推送消息也是如此,当用户所注册的应用没有启动或者应用的消息推送服务没有启动时,依然可以通过已启动或保留的一个消息推送服务接收到用户专属的推送消息。对于应用专属的推送消息、用户专属的推送消息等,在接收推送消息时不需要其对应的应用必须在启动状态也可以接收到推送消息,极大地减少了终端设备的耗电量。
根据本公开提供的消息推送的多路复用方法,在启动应用的消息推送服务后,向其它应用发送广播消息。判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息,根据判断结果,利用所启动的消息推送服务接收服务器或所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息,实现了消息推送的多路复用。仅利用一个消息推送服务就可以完成向一个或多个应用发送的推送消息,节省了终端设备启动多个应用的消息推送服务所消耗的电量。
实施例二
图2示出了根据本公开实施例二的消息推送的多路复用方法的流程图。如图2所示,消息推送的多路复用方法具体包括如下步骤:
步骤S201,启动应用的消息推送服务,向其它应用发送广播消息。
步骤S202,判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息,若是,执行步骤S204;否则,执行步骤S203。
步骤S203,利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息。
步骤S204,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
以上步骤可以参照实施例一中步骤S101-S104的描述,在此不再赘述。
步骤S205,判断客户端是否已安装一个或多个应用中的其中至少一个应用,若是,则执行步骤S207;若否,执行步骤S206。
步骤S206,若客户端未安装一个或多个应用的其中至少一个应用,即 该一个或多个应用在客户端上均未安装,则该客户端不属于该推送消息的推送对象,需要丢弃推送消息。
步骤S207,若客户端已安装一个或多个应用中的其中至少一个应用,则在通知栏显示推送消息。
消息推送服务接收到服务器向一个或多个应用发送的推送消息,其中,推送消息指向具体应用。如消息推送服务接收到服务器向应用A发送的推送消息、向应用B发送的推送消息等,其中,消息推送服务可以是应用A的消息推送服务,或者消息推送服务是应用B的消息推送服务,或者,消息推送服务既不是应用A的消息推送服务,也不是应用B的消息推送服务,而是应用C的消息推送服务。因此,消息推送服务接收到的推送消息指向的应用有可能不是该消息推送服务对应的应用。对于这种推送消息,需要先获取该推送消息指向的应用。判断客户端是否已经安装了该推送消息指向的应用,若客户端未安装该应用,该客户端不属于该推送消息的推送对象,需要丢弃推送消息,若客户端已安装了该应用,则在通知栏显示推送消息。
如对于有些应用专属的推送消息,由于用户在使用应用时会在服务器注册用户ID,服务器通过筛选用户ID的方式,可以将应用专属的推送消息向该用户ID的终端设备发送,由消息推送服务接收。但当用户仅安装了应用却没有进行注册时,可能导致遗漏该用户。因此,可以通过向全部用户发送应用专属的推送消息以避免遗漏。在接收到这种应用专属的推送消息时,需要先判断客户端是否安装了该推送消息对应的一个或多个应用,若客户端未安装该一个或多个应用,执行步骤S206,直接将该推送消息丢弃,不做后续处理。若客户端已安装一个或多个应用中的其中一个应用,执行步骤S207,在通知栏对应的显示安装的应用的推送消息。这样,避免了发送推送消息的遗漏,也避免了对未安装应用的终端设备的消息骚扰。
步骤S208,根据用户对推送消息的触发行为,判断推送消息指向的应用是否启动。
步骤S209,若未启动,则根据触发行为启动推送消息指向的应用。
推送消息包括了如消息的文字、图片等内容,一般显示在终端设备的通知栏中进行显示。当用户需要了解推送消息的具体内容时,可以去点击该推 送消息,进而可以显示推送消息的详细内容。推送消息的详细内容一般在其指向的应用中进行显示。现有技术在应用启动后,才能启动其消息推送服务,进而接收服务器向该应用发送的推送消息。即在接收到推送消息时,推送消息指向的应用一定是启动状态。但本实施例启动的消息推送服务可以接收服务器向一个或多个应用发送的推送消息,推送消息可以是指向该消息推送服务对应的应用,也可以指向非该消息推送服务对应的应用。即在不启动应用的情况下,由其它应用的消息推送服务接收服务器向该应用发送的推送消息。如应用A的消息推送服务接收到服务器向应用B发送的推送消息,该推送消息指向的应用为应用B,但应用B还未启动,因此,根据用户对推送消息的触发行为,先判断推送消息指向的应用是否启动,若未启动,执行步骤S209,先启动该推送消息指向的应用。在应用启动之后,可以在应用中显示推送消息的详细内容。
推送消息除包括上述的文字、图片等内容外,还包括了如指定的应用调用请求、应用下载地址、指定网页展示请求等。对于推送消息中包括的应用的下载地址,可以根据用户对推送消息的触发行为,直接跳转至应用下载地址进行应用的下载。对于推送消息中包括的指定网页展示请求,可以根据用户对推送消息的触发行为,直接跳转至网页展示页面。对于推送消息中包括的指定的应用调用请求,如推送消息为服务器向应用A发送的,推送消息中包括了指定的应用B调用请求,根据用户对推送消息的触发行为,调用应用B。以上均为举例说明,具体根据实施情况进行设置,此处不做限定。
进一步,对于消息推送服务本身,其在接收到推送消息时,为提醒用户注意,会有相应的消息推送提醒铃声。在此,可以由用户根据自己的需要提供设置个性化消息推送提醒铃声的功能,以满足用户的个性化定制服务。还可以根据用户自身的作息习惯提供设置消息推送防骚扰时间段,根据设置的消息推送防骚扰时间段,可以不在该时间段内进行消息推送等。
根据本公开提供的消息推送的多路复用方法,实现了一个消息推送服务接收服务器向一个或多个应用发送的推送消息,使消息推送多路复用,大大节省了终端设备启动多个应用的消息推送服务所消耗的电量。同时,减少了对用户的推送消息骚扰,提高了用户体验,使推送消息更简便,也使得消息 推送服务更易存活。
实施例三
图3示出了根据本公开实施例三的消息推送的多路复用装置的功能框图。如图3所示,消息推送的多路复用装置包括如下模块:
启动模块310,适于启动应用的消息推送服务,向其它应用发送广播消息。
启动模块310启动一个应用的消息推送服务,并在启动该应用的消息推送服务后,启动模块310向其它应用发送一个广播消息。由于每个应用的消息推送服务的启动是随机性的,没有固定的时间或启动顺序,每个应用无法了解是否在本应用启动消息推送服务前,已经有其它应用启动了其对应的消息推送服务。因此,启动模块310通过向其它应用发送广播消息,进而来确认是否有其它应用已经启动其对应的消息推送服务。
判断模块320,适于判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息。
启动模块310在向其它应用发送广播消息后,若其它应用中某一应用的消息推送服务已经启动,判断模块320会接收到该应用的消息推送服务反馈的响应消息,若其它各应用的消息推送服务均未启动,则判断模块320不会接收到任何其它应用的消息推送服务反馈的响应消息。
由于其它应用的消息推送服务在接收到广播消息后并反馈响应消息,会有一定时间的间隔。判断模块320在判断时,判断预设时间内如15秒内接收到其它应用的消息推送服务反馈的响应消息。
接收模块330,适于若在预设时间内未接收到响应消息,则利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息;若在预设时间内接收到响应消息,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
判断模块320判断在预设时间内没有接收到其它应用的消息推送服务反馈的响应消息,可以认为当前时间只有本应用的消息推送服务启动。接收模块330利用所启动的消息推送服务可以接收服务器向一个或多个应用发 送的推送消息,实现一个消息推送服务的多路复用。
判断模块320判断预设时间内接收到其它应用反馈的响应消息,即当前时间已经有其它应用的消息推送服务启动。接收模块330根据响应消息中携带的如消息推送服务的启动时间等信息来确定应保留的一个消息推送服务。接收模块330可以将反馈的响应信息中携带的消息推送服务的启动时间与本应用的消息推送服务的启动时间进行比较,若本应用的消息推送服务的启动时间在前,接收模块330将其它应用的消息推送服务全部关闭,仅保留本应用的消息推送服务;若其它应用中的某一应用的消息推送服务在前,接收模块330仅保留该应用的消息推送服务,将其它应用和本应用的消息推送服务均关闭。接收模块330根据响应消息来确定保留的消息推送服务的方式可以根据实施情况进行设置,此处不做限定。接收模块330在保留一个消息推送服务后,利用所保留的一个消息推送服务接收服务器向一个或多个应用发送的推送消息,实现一个消息推送服务的多路复用。
其中,接收模块330接收到的推送消息,可以是向启动该消息推送服务的应用发送的推送消息,也可以是向与启动该消息推送服务无关的应用发送的推送消息。接收模块330均可以接收以上各种推送消息。
推送消息的类型可以分为如全局推送消息、应用专属的推送消息、用户专属的推送消息等。全局推送消息是服务器向多个应用发送的相同的推送消息。现有技术中不同应用的消息推送服务都会接受到服务器发送的全局推送消息,从而接收到多条重复的全局推送消息,对用户而言造成重复消息骚扰。本公开中接收模块330通过一个消息推送服务接收服务器向一个或多个应用发送的推送消息,使得仅接收到一条全局推送消息,对用户而言不会造成重复消息骚扰,实现了多条全局推送消息的过滤,避免推送多条同样的全局推送消息给终端设备,提高了用户体验。现有技术中对应用专属的推送消息,只有当应用的消息推送服务启动后,才能接收到该应用专属的推送消息。应用没有启动或者应用启动但应用的消息推送服务没有启动,无法接收到该应用专属的推送消息。本公开中接收模块330通过一个消息推送服务接收服务器向一个或多个应用发送的推送消息,即使应用专属的推送消息对应的应用没有启动或者对应的应用的消息推送服务没有启动,依然可以接收到该应用 专属的推送消息,使用户及时获取到有效的推送消息。对于用户专属的推送消息也是如此,当用户所注册的应用没有启动或者应用的消息推送服务没有启动时,接收模块330依然可以通过已启动或保留的一个消息推送服务接收到用户专属的推送消息。对于应用专属的推送消息、用户专属的推送消息等,在接收推送消息时不需要其对应的应用必须在启动状态也可以接收到推送消息,极大的减少了终端设备的耗电量。
根据本公开提供的消息推送的多路复用装置,在启动应用的消息推送服务后,向其它应用发送广播消息。判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息,根据判断结果,利用所启动的消息推送服务接收服务器或所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息,实现了消息推送的多路复用。仅利用一个消息推送服务就可以完成向一个或多个应用发送的推送消息,节省了终端设备启动多个应用的消息推送服务所消耗的电量。
实施例四
图4示出了根据本公开实施例四的消息推送的多路复用装置的流程图。如图4所示,与图3相比,消息推送的多路复用装置还包括如下模块:
安装判断模块340,适于判断客户端是否已安装一个或多个应用中的至少一个应用;若客户端未安装一个或多个应用中的至少一个应用,则丢弃推送消息;若客户端已安装一个或多个应用中的至少一个应用,则在通知栏显示推送消息。
消息推送服务接收到服务器向一个或多个应用发送的推送消息,其中,推送消息指向具体应用。如消息推送服务接收到服务器向应用A发送的推送消息、向应用B发送的推送消息等,其中,消息推送服务可以是应用A的消息推送服务,或者消息推送服务是应用B的消息推送服务,或者,消息推送服务既不是应用A的消息推送服务,也不是应用B的消息推送服务,而是应用C的消息推送服务。因此,消息推送服务接收到的推送消息指向的应用有可能不是该消息推送服务对应的应用。对于这种推送消息,需要先获取该推送消息指向的应用。判断客户端是否已经安装了该推送消息指向的应用,若客户端未安装该应用,该客户端不属于该推送消息的推送对象,需 要丢弃推送消息,若客户端已安装了该应用,则在通知栏显示推送消息。如对于有些应用专属的推送消息,由于用户在使用应用时会在服务器注册用户ID,服务器通过筛选用户ID的方式,可以将应用专属的推送消息向该用户ID的终端设备发送,由消息推送服务接收。但当用户仅安装了应用却没有进行注册时,可能导致遗漏该用户。因此,服务器可以通过向全部用户发送应用专属的推送消息以避免遗漏。接收模块330在接收到这种应用专属的推送消息时,需要安装判断模块340先判断客户端是否安装了该推送消息对应的一个或多个应用,若客户端未安装该一个或多个应用,直接将该推送消息丢弃,不做后续处理。若客户端已安装一个或多个应用中的其中一个应用,则在通知栏对应的显示安装的应用的推送消息。这样,避免了发送推送消息的遗漏,也避免了对未安装应用的终端设备的消息骚扰。
应用启动模块350,适于根据用户对推送消息的触发行为,判断推送消息指向的应用是否启动;若未启动,则根据触发行为启动推送消息指向的应用。
推送消息包括了如消息的文字、图片等内容,一般显示在终端设备的通知栏中进行显示。当用户需要了解推送消息的具体内容时,可以去点击该推送消息,进而可以显示推送消息的详细内容。推送消息的详细内容一般在其指向的应用中进行显示。现有技术在应用启动后,才能启动其消息推送服务,进而接收服务器向该应用发送的推送消息。即在接收到推送消息时,推送消息指向的应用一定是启动状态。但本实施例启动的消息推送服务可以接收服务器向一个或多个应用发送的推送消息,推送消息可以是指向该消息推送服务对应的应用,也可以指向非该消息推送服务对应的应用。即在不启动应用的情况下,由其它应用的消息推送服务接收服务器向该应用发送的推送消息。如应用A的消息推送服务接收到服务器向应用B发送的推送消息,该推送消息指向的应用为应用B,但应用B还未启动,因此,应用启动模块350根据用户对推送消息的触发行为,先判断推送消息指向的应用是否启动,若未启动,先启动该推送消息指向的应用。在应用启动之后,可以在应用中显示推送消息的详细内容。
推送消息除包括上述的文字、图片等内容外,还包括了如指定的应用调 用请求、应用下载地址、指定网页展示请求等。对于推送消息中包括的应用的下载地址,可以根据用户对推送消息的触发行为,直接跳转至应用下载地址进行应用的下载。对于推送消息中包括的指定网页展示请求,可以根据用户对推送消息的触发行为,直接跳转至网页展示页面。对于推送消息中包括的指定的应用调用请求,如推送消息为服务器向应用A发送的,推送消息中包括了指定的应用B调用请求,根据用户对推送消息的触发行为,调用应用B。以上均为举例说明,具体根据实施情况进行设置,此处不做限定。
铃声设置模块360,适于设置个性化消息推送提醒铃声。
时间设置模块370,适于设置消息推送防骚扰时间段。
对于消息推送服务本身,其在接收到推送消息时,为提醒用户注意,会有相应的消息推送提醒铃声。在此,铃声设置模块360可以由用户根据自己的需要提供设置个性化消息推送提醒铃声的功能,以满足用户的个性化定制服务。时间设置模块370可以根据用户自身的作息习惯提供设置消息推送防骚扰时间段,根据设置的消息推送防骚扰时间段,可以不在该时间段内进行消息推送等。
根据本公开提供的消息推送的多路复用方法,实现了一个消息推送服务接收服务器向一个或多个应用发送的推送消息,使消息推送多路复用,大大节省了终端设备启动多个应用的消息推送服务所消耗的电量。同时,减少了对用户的推送消息骚扰,提高了用户体验,使推送消息更简便,也使得消息推送服务更易存活。
实施例五
本公开实施例五提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质存储有至少一可执行指令,该计算机可执行指令可执行上述任意方法实施例中的消息推送的多路复用方法。
实施例六
图5示出了根据本公开实施例六的一种电子设备的结构示意图,本公开具体实施例并不对电子设备的具体实现做限定。
如图5所示,该电子设备可以包括:处理器(processor)502、通信接口 (Communications Interface)504、存储器(memory)506、以及通信总线508。
其中:
处理器502、通信接口504、以及存储器506通过通信总线508完成相互间的通信。
通信接口504,用于与其它设备比如客户端或其它服务器等的网元通信。
处理器502,用于执行程序510,具体可以执行上述消息推送的多路复用方法实施例中的相关步骤。
具体地,程序510可以包括程序代码,该程序代码包括计算机操作指令。
处理器502可能是中央处理器CPU,或者是特定集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本公开实施例的一个或多个集成电路。电子设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。
存储器506,用于存放程序510。存储器506可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
程序510具体可以用于使得处理器502执行以下操作:
在一种可选的实施方式中,程序510用于使得处理器502启动应用的消息推送服务,向其它应用发送广播消息;判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息;若在预设时间内未接收到响应消息,则利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息;若在预设时间内接收到响应消息,根据响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
在一种可选的实施方式中,程序510用于使得处理器502若在预设时间内接收到响应消息,根据响应消息中携带的消息推送服务的启动时间,选择保留启动时间在前的消息推送服务。
在一种可选的实施方式中,程序510用于使得处理器502判断客户端是 否已安装一个或多个应用中的至少一个应用;若客户端未安装一个或多个应用中的至少一个应用,则丢弃推送消息;若客户端已安装一个或多个应用中的其中一个应用,则在通知栏显示推送消息。
在一种可选的实施方式中,程序510用于使得处理器502根据用户对推送消息的触发行为,判断推送消息指向的应用是否启动;若未启动,则根据触发行为启动推送消息指向的应用。
在一种可选的实施方式中,推送消息包括:指定的应用调用请求、应用下载地址和/或指定网页展示请求。
在一种可选的实施方式中,程序510用于使得处理器502设置个性化消息推送提醒铃声和/或设置消息推送防骚扰时间段。
程序510中各步骤的具体实现可以参见上述消息推送的多路复用实施例中的相应步骤和单元中对应的描述,在此不赘述。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程描述,在此不再赘述。
通过本实施例提供的方案,在启动应用的消息推送服务后,向其它应用发送广播消息。判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息,根据判断结果,利用所启动的消息推送服务接收服务器或所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息,实现了消息推送的多路复用。仅利用一个消息推送服务就可以完成向一个或多个应用发送的推送消息,节省了终端设备启动多个应用的消息推送服务所消耗的电量。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本公开也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个公开方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,公开方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本公开的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本公开的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的消息推送的多路复用装置中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号 上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。

Claims (15)

  1. 一种消息推送的多路复用装置,其包括:
    启动模块,适于启动应用的消息推送服务,向其它应用发送广播消息;
    判断模块,适于判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息;
    接收模块,适于若在预设时间内未接收到所述响应消息,则利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息;若在预设时间内接收到所述响应消息,根据所述响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
  2. 根据权利要求1所述的装置,其中,所述接收模块进一步适于:
    若在预设时间内接收到所述响应消息,根据所述响应消息中携带的消息推送服务的启动时间,选择保留启动时间在前的消息推送服务。
  3. 根据权利要求1所述的装置,其中,在所述接收模块之后,所述装置还包括:
    安装判断模块,适于判断客户端是否已安装所述一个或多个应用中的至少一个应用;若所述客户端未安装所述一个或多个应用中的至少一个应用,则丢弃所述推送消息;若所述客户端已安装所述一个或多个应用中的其中一个应用,则在通知栏显示所述推送消息。
  4. 根据权利要求3所述的装置,其中,在所述安装判断模块之后,所述装置还包括:
    应用启动模块,适于根据用户对所述推送消息的触发行为,判断所述推送消息指向的应用是否启动;若未启动,则根据所述触发行为启动所述推送消息指向的应用。
  5. 根据权利要求1所述的装置,其中,所述推送消息包括:
    指定的应用调用请求、应用下载地址和/或指定网页展示请求。
  6. 根据权利要求1所述的装置,其中,所述装置还包括:
    铃声设置模块,适于设置个性化消息推送提醒铃声;
    时间设置模块,适于设置消息推送防骚扰时间段。
  7. 一种消息推送的多路复用方法,其包括:
    启动应用的消息推送服务,向其它应用发送广播消息;
    判断在预设时间内是否接收到其它应用的消息推送服务反馈的响应消息;
    若在预设时间内未接收到所述响应消息,则利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息;
    若在预设时间内接收到所述响应消息,根据所述响应消息确定应保留的消息推送服务,利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息。
  8. 根据权利要求7所述的方法,其中,所述若在预设时间内接收到所述响应消息,根据所述响应消息确定应保留的消息推送服务进一步包括:
    若在预设时间内接收到所述响应消息,根据所述响应消息中携带的消息推送服务的启动时间,选择保留启动时间在前的消息推送服务。
  9. 根据权利要求7所述的方法,其中,在所述利用所启动的消息推送服务接收服务器向一个或多个应用发送的推送消息之后,或者在所述利用所保留的消息推送服务接收服务器向一个或多个应用发送的推送消息之后,所述方法还包括:
    判断客户端是否已安装所述一个或多个应用中的至少一个应用;
    若所述客户端未安装所述一个或多个应用中的至少一个应用,则丢弃所述推送消息;
    若所述客户端已安装所述一个或多个应用中的其中一个应用,则在通知栏显示所述推送消息。
  10. 根据权利要求9所述的方法,其中,在所述在通知栏显示所述推送消息之后,所述方法还包括:
    根据用户对所述推送消息的触发行为,判断所述推送消息指向的应用是否启动;
    若未启动,则根据所述触发行为启动所述推送消息指向的应用。
  11. 根据权利要求7所述的方法,其中,所述推送消息包括:
    指定的应用调用请求、应用下载地址和/或指定网页展示请求。
  12. 根据权利要求7所述的方法,其中,所述方法还包括:
    设置个性化消息推送提醒铃声和/或设置消息推送防骚扰时间段。
  13. 一种电子设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;
    所述存储器用于存放至少一可执行指令,所述可执行指令使所述处理器执行如权利要求7-12中任一项所述的消息推送的多路复用方法对应的操作。
  14. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求7-12中的任一项所述的消息推送的多路复用方法对应的操作。
  15. 一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质中存储有至少一可执行指令,所述可执行指令使所述处理器执行如权利要求7-12中任一项所述的消息推送的多路复用方法对应的操作。
PCT/CN2018/083733 2017-05-27 2018-04-19 消息推送的多路复用方法及装置、电子设备 WO2018219061A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710390182.1 2017-05-27
CN201710390182.1A CN107229528B (zh) 2017-05-27 2017-05-27 消息推送的多路复用方法及装置、电子设备

Publications (1)

Publication Number Publication Date
WO2018219061A1 true WO2018219061A1 (zh) 2018-12-06

Family

ID=59933962

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083733 WO2018219061A1 (zh) 2017-05-27 2018-04-19 消息推送的多路复用方法及装置、电子设备

Country Status (2)

Country Link
CN (1) CN107229528B (zh)
WO (1) WO2018219061A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244974A (zh) * 2019-05-24 2019-09-17 苏州达家迎信息技术有限公司 应用程序维护控制方法、装置、服务器、终端及存储介质
CN112367345A (zh) * 2020-09-14 2021-02-12 长沙市到家悠享网络科技有限公司 数据处理方法、服务端设备及计算机可读存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229528B (zh) * 2017-05-27 2021-07-23 北京奇虎科技有限公司 消息推送的多路复用方法及装置、电子设备
CN107872528B (zh) * 2017-11-21 2020-11-06 口碑(上海)信息技术有限公司 消息推送方法及装置
CN108733498A (zh) * 2018-05-23 2018-11-02 百度在线网络技术(北京)有限公司 推送进程常驻方法、装置、终端及存储介质
CN110677442A (zh) * 2018-07-02 2020-01-10 曹桂水 一种互联网应用的实现方法
CN109769214A (zh) * 2018-12-26 2019-05-17 彩讯科技股份有限公司 一种消息推送方法、装置、终端及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490981A (zh) * 2013-09-11 2014-01-01 曹欢欢 一种跨移动应用的消息推送方法和装置
US20150373048A1 (en) * 2014-06-24 2015-12-24 Kashif Ali Siddiqui Enterprise Mobile Notification Solution
CN105847366A (zh) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 一种共享推送服务的方法和装置
CN105871981A (zh) * 2015-11-30 2016-08-17 乐视致新电子科技(天津)有限公司 一种推送服务实现方法、装置、终端设备及系统
CN107229528A (zh) * 2017-05-27 2017-10-03 北京奇虎科技有限公司 消息推送的多路复用方法及装置、电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000060706A (ko) * 1999-03-18 2000-10-16 서평원 이동 단말기의 패킷 데이터 서비스를 이용한 웹 브로드 캐스팅 푸시 방법
US6819669B2 (en) * 2000-07-26 2004-11-16 International Business Machines Corporation Method and system for data communication
KR101086418B1 (ko) * 2006-11-29 2011-11-25 삼성전자주식회사 Ip 네트워크에서 정보를 송수신하는 방법 및 장치
CN103401896B (zh) * 2013-07-15 2016-06-22 四川公用信息产业有限责任公司 一种多Android客户端服务共享方法及系统
CN105897814A (zh) * 2015-07-08 2016-08-24 乐视致新电子科技(天津)有限公司 推送消息检测方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490981A (zh) * 2013-09-11 2014-01-01 曹欢欢 一种跨移动应用的消息推送方法和装置
US20150373048A1 (en) * 2014-06-24 2015-12-24 Kashif Ali Siddiqui Enterprise Mobile Notification Solution
CN105871981A (zh) * 2015-11-30 2016-08-17 乐视致新电子科技(天津)有限公司 一种推送服务实现方法、装置、终端设备及系统
CN105847366A (zh) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 一种共享推送服务的方法和装置
CN107229528A (zh) * 2017-05-27 2017-10-03 北京奇虎科技有限公司 消息推送的多路复用方法及装置、电子设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244974A (zh) * 2019-05-24 2019-09-17 苏州达家迎信息技术有限公司 应用程序维护控制方法、装置、服务器、终端及存储介质
CN110244974B (zh) * 2019-05-24 2022-10-11 苏州达家迎信息技术有限公司 应用程序维护控制方法、装置、服务器、终端及存储介质
CN112367345A (zh) * 2020-09-14 2021-02-12 长沙市到家悠享网络科技有限公司 数据处理方法、服务端设备及计算机可读存储介质
CN112367345B (zh) * 2020-09-14 2023-06-23 长沙市到家悠享网络科技有限公司 数据处理方法、服务端设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN107229528B (zh) 2021-07-23
CN107229528A (zh) 2017-10-03

Similar Documents

Publication Publication Date Title
WO2018219061A1 (zh) 消息推送的多路复用方法及装置、电子设备
US11915020B2 (en) Method and arrangement for managing persistent rich internet applications
US10201750B2 (en) Method and apparatus of preloading browser game on client
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
US9275006B2 (en) Configuration file updater
WO2020207454A1 (zh) 信息推送方法和装置
US10187445B2 (en) System, method and browser client for enabling browser data synchronization
US20150304440A1 (en) Systems and Methods for Pushing Applications
US8862696B2 (en) Interconnecting applications on personal computers and mobile terminals through a web server
JP2018537783A5 (zh)
WO2015055073A1 (zh) 一种消息提醒的方法和装置、以及系统
WO2013135133A1 (zh) 一种插件管理控制方法及装置、计算机存储介质
CN107193609B (zh) 应用中功能模块调用方法及装置、电子设备
US10506400B2 (en) Data download method and apparatus
CN110971596A (zh) 消息监听方法、装置、电子设备和机器可读存储介质
JP7111907B2 (ja) 自動的なリンクベースのメッセージ検証
CN111666113A (zh) 一种应用程序启动管理方法、装置、电子设备及存储介质
CN104052757A (zh) 基于手机中的客户端应用的身份识别系统及方法
CN108287737B (zh) Service Worker启动方法、装置及电子设备
CN108111565B (zh) 消息传输方法和装置
US20150142918A1 (en) Method and apparatus for invoking content of contact list
CN108460042B (zh) 一种页面显示的方法、相关设备及系统
US20150373182A1 (en) Method and system for telecommunication session output integration
WO2022171058A1 (zh) 应用程序的处理方法、装置及电子设备
CN105446803A (zh) 一种应用程序管理方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18810830

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18810830

Country of ref document: EP

Kind code of ref document: A1