CN109995877B - Information pushing method and device - Google Patents

Information pushing method and device Download PDF

Info

Publication number
CN109995877B
CN109995877B CN201910293145.8A CN201910293145A CN109995877B CN 109995877 B CN109995877 B CN 109995877B CN 201910293145 A CN201910293145 A CN 201910293145A CN 109995877 B CN109995877 B CN 109995877B
Authority
CN
China
Prior art keywords
applet
host application
information
application
push path
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.)
Active
Application number
CN201910293145.8A
Other languages
Chinese (zh)
Other versions
CN109995877A (en
Inventor
崔英林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chenlian Technology Co.,Ltd.
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910293145.8A priority Critical patent/CN109995877B/en
Publication of CN109995877A publication Critical patent/CN109995877A/en
Priority to PCT/CN2020/084113 priority patent/WO2020207454A1/en
Application granted granted Critical
Publication of CN109995877B publication Critical patent/CN109995877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

The embodiment of the application discloses an information pushing method and device. One embodiment of the method comprises: in response to receiving a start instruction for an applet running platform of a first hosted application of the at least one hosted application, determining whether an established push path exists between a server and the applet running platform of the at least one hosted application; in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first hosted application, taking the established push path as a push path for the applet running platform of the first hosted application. The method and the device for pushing the small program can avoid repeated establishment of the pushing path aiming at the same small program running platform. Meanwhile, the method can also ensure that repeated small program running platform related information cannot be pushed to the user of the terminal equipment.

Description

Information pushing method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to an information pushing method and device.
Background
For the applet running platforms with the same architecture among different host applications, each applet running platform in each host application has a respective applet message push channel, so that if a plurality of host applications are installed on one user terminal, a plurality of message push channels exist. Therefore, when a plurality of applet running platforms all send a certain applet, and the applet server pushes messages to a user, the applet running platforms of a plurality of host applications can receive the same message pushed by the applet, so that the same user terminal can receive a plurality of pushed messages, thereby wasting running resources of the user terminal and influencing user experience.
Disclosure of Invention
The embodiment of the application provides an information pushing method and device.
In a first aspect, an embodiment of the present application provides an information pushing method, including: 1. an information push method is applied to a terminal device, the terminal device is provided with at least one host application, and the method comprises the following steps: in response to receiving a start instruction for an applet running platform of a first hosted application of the at least one hosted application, determining whether an established push path exists between the server and the applet running platform of the at least one hosted application; and in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first host application, taking the established push path as the push path of the applet running platform of the first host application.
In a second aspect, an embodiment of the present application provides an information pushing apparatus, including: the terminal equipment is provided with at least one host application, and the device comprises: the receiving unit is configured to respond to the received starting instruction of the small program running platform of the first host application in the at least one host application, and determine whether an established push path exists between the server and the small program running platform of the at least one host application; and the determining unit is configured to respond to the determination that the established push path exists, and if the established push path does not comprise the push path for pushing the information to the applet running platform of the first host application, use the established push path as the push path of the applet running platform of the first host application.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement a method such as an information push method.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method such as an information push method.
In the information push scheme provided in the embodiment of the present application, first, in response to receiving a start instruction for an applet running platform of a first hosted application in at least one host application, it is determined whether an established push path exists between a server and the applet running platform of the at least one host application. And then, in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first host application, taking the established push path as the push path of the applet running platform of the first host application. The scheme provided by the embodiment of the application can reduce the time consumption for establishing the push path for each application, and avoids repeatedly establishing the push path for the same applet running platform, so that the running resources of the terminal equipment are saved. Meanwhile, the embodiment of the application can also ensure that repeated small program running platform related information cannot be pushed to the user of the terminal equipment.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of an information push method according to the present application;
FIG. 3 is a schematic diagram of an application scenario of an information push method according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of an information push method according to the present application;
FIG. 5 is a schematic diagram of an embodiment of an information pushing device according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the information pushing method or information pushing apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various communication client applications, such as an information push application, a video application, a live application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
Here, the terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and perform other processing on the received data such as the push path establishment request, and feed back a processing result (e.g., a push path establishment completion message) to the terminal device.
It should be noted that the information push method provided in the embodiment of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the information push apparatus may be disposed in the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an information push method according to the present application is shown. The information pushing method is applied to terminal equipment, and at least one host application is installed on the terminal equipment. The method comprises the following steps:
step 201, in response to receiving a start instruction for the applet running platform of a first hosted application in the at least one hosted application, determining whether an established push path exists between the server and the applet running platform of the at least one hosted application.
In this embodiment, an execution main body (for example, the terminal device shown in fig. 1) of the information push method may determine whether a push path to the applet running platform, that is, an established push path, has been established when receiving a start instruction to the applet in the applet running platform. The start instruction for the applet platform may be generated by triggering when the first host application is started, or may be generated by triggering when the applet of the applet running platform is started. Specifically, the push path is used to connect the server and the terminal device, and the server may push information to the applet running platform in the host application of the terminal device through the push path. The push path here may be a push path established for any one of the at least one host application. The push path may be a long connection established between the server and the terminal device for pushing information. A host application refers to an application that has an applet running platform.
The applet runs on the applet running platform. The first host application can be any host application installed by the terminal device and having the applet running platform. In particular, the applet running platform is used for providing a running environment for the applet in the host application, and is a necessary condition for the applet to be able to start and run in the host application. The applet running platform can provide the applet with templates of interfaces to be displayed, a browser and personalized services for different host applications or different operating systems.
In practice, an enumeration method may be used to determine the push path established for the applet running platform. Further, it may be determined whether an established push path exists for the applet running platform.
Step 202, in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first host application, taking the established push path as the push path of the applet running platform of the first host application.
In this embodiment, in response to determining that a push path has been established for the applet running platform, the execution main body may use the established push path as the push path of the applet running platform of the first host application in a case that the push path does not include a push path for pushing information to the applet running platform of the first host application. In this way, the first host application may share the same push path with the original host application corresponding to the established push path. The server may push information to the applet running platform of the first hosted application. Here, the pushed information may be information for displaying to a user, or may be an instruction or a piece of code to be executed. In practice, the number of enumerated established push paths is typically one. In some cases, if the enumerated number of the established push paths is multiple, one push path may be selected from the enumerated multiple established push paths randomly or according to a preset selection manner, and the selected push path is used as the push path of the applet running platform of the first host application.
In some optional implementations of this embodiment, the taking the established push path as the push path of the applet running platform of the first host application in step 202 includes:
and adding the host application identifier of the first host application into a host application identifier set corresponding to the established push path.
In these optional implementations, the execution subject may add the host application identifier of the first host application to the set of host application identifiers corresponding to the established push path. Specifically, the set of host application identifiers corresponding to the established push path refers to a set of host applications that can be pushed by the server through the push information of the established push path. After the host application identifier of the first host application is added into the host application identifier set, the server may push a message to the applet running platform of the first host application through the established push path.
In practice, the set may be embodied in the naming of the services of the established push path described above. The designation may include the identity of the respective host application in which the applet running platform is located. In this way, the host application indicated by the identifier of the host application existing in the naming of the service can receive the information pushed by the server through the established push path.
According to the implementation modes, the first host application and the original host application corresponding to the established push path can share the same push path under the condition that the established push path can not realize information push to the applet running platform of the first host application, and time consumption and resource occupation for establishing the push path are reduced.
In some optional implementations of this embodiment, after step 201, the method further includes:
in response to determining that there is no established push path, establishing a push path for pushing information to the applet running platform.
In these alternative implementations, the execution agent may establish a push path for pushing information to the applet running platform in response to determining that there is no established push path between the server and the applet running platform of the at least one host application. The push path established here is established for the first application, i.e. the server may push information to the applet running platform of the first application via the push path. Other applications can add their application identifications to the application identification set corresponding to the push path, so that the server can push information to the applet running platform in the other applications through the push path.
With continuing reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the information push method according to the present embodiment. In the application scenario of fig. 3, the executing agent 301 may determine, in response to receiving a start instruction 302 for a game applet y in the applet running platform a of an instant messaging application W of the 10 applications, whether an established push path 303 between the server and the applet running platform of the at least one hosting application exists. In response to the existence of the established push path 303, if the established push path does not include a push path for pushing information to the instant messaging application W, the established push path 303 is used as a push path of the applet running platform a of the instant messaging application W.
The method provided by the embodiment of the application can reduce the time consumption for establishing the push path for each application, and avoids repeatedly establishing the push path for the same applet running platform, so that the running resources of the terminal equipment are saved. Meanwhile, the embodiment can also ensure that repeated small program running platform related information cannot be pushed to the user of the terminal equipment.
With further reference to fig. 4, a flow 400 of yet another embodiment of an information push method is shown. The process 400 of the information pushing method includes the following steps:
step 401, in response to receiving a start instruction for the applet running platform of a first hosted application in the at least one hosted application, determining whether an established push path exists between the server and the applet running platform of the at least one hosted application.
In this embodiment, if an execution main body (for example, the terminal device shown in fig. 1) of the information push method receives a start instruction for an applet in an applet running platform, it may detect whether a push path for the applet running platform, that is, the established push path, is already established. The start instruction for the applet platform may be generated by triggering when the first host application is started, or may be generated by triggering when the applet of the applet running platform is started. Specifically, the push path is used to connect the server and the terminal device, and the server may push information to the applet running platform in the host application of the terminal device through the push path.
Step 402, in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first host application, taking the established push path as the push path of the applet running platform of the first host application.
In this embodiment, in response to determining that a push path has been established for the applet running platform, the execution main body may use the established push path as the push path of the applet running platform of the first host application in a case that the push path does not include a push path for pushing information to the applet running platform of the first host application. In this way, the first host application may share the same push path with the original host application corresponding to the established push path. The server may push information to the applet running platform of the first hosted application.
And step 403, receiving information pushed by the server through the established pushing path.
In this embodiment, the server may push information to the applet running platform of the terminal device through the established push path. Thus, the execution agent can receive the information pushed by the server.
In some optional implementations of this embodiment, step 403 may include:
and responding to the situation that the application of the applet running platform is not in operation, and receiving information pushed by the server through the established push path.
In these alternative implementations, the execution subject may receive information pushed by the server through the established push path when any application of the applet running platform is not running. That is, the information is pushed to the applet running platform through the push path without being affected by whether the application where the platform is located is in running. Whether the application is in operation or is already in an exit state, the applet operating platform of the application can receive the information pushed by the server through the push path.
In response to determining that the pushed information includes receiving host information, the host application indicated by the receiving host information is taken as the receiving host application of the pushed information, wherein the receiving host application information includes a host application identification of the host application that will receive the pushed information, step 404.
In this embodiment, if the execution main body determines that the information pushed by the server includes the receiving host information, the host application indicated by the receiving host information may be used as the receiving host application. That is, the server may push the applet running platform of the host application as a push target, and then the host application of the terminal device may receive the pushed information. The host application identification may reflect which host application applet's applet running platform the server designates as a push target.
In some optional implementations of this embodiment, the method further includes:
in response to determining that the pushed information does not include the receiving host information, determining whether an active host application exists, wherein an active small program exists in an small program running platform of the active host application; in response to determining that there is an active host application, a receiving host application of the pushed information is determined from the active host application.
In these alternative implementations, the execution main body may determine whether there is an active host application in a case that the pushed information does not include the receiving host application information. If so, it may in turn be determined from the active host application that the receiving host application received the pushed information. Here, at least one applet of the above applet running platform of the active host application is running. The number of active host applications may be one or more. If so, the active host application is taken as the receiving host application. If there are more than one, a selection can be made from them to determine the receiving host application.
These implementations may take the hosted application corresponding to the running applet as the receiving hosted application, in the case where the server does not specify which hosted application's applet running platform receives the pushed information. In this way, information can be acted upon in a timely manner to update an applet or present a visual message to a user as quickly as possible.
In some optional application scenarios of these implementations, the determining the receiving application of the pushed information from the active host application includes:
determining a target active host application in the active host applications in response to the number of the active host applications being at least two, wherein an applet in an applet running platform of the target active host application runs in a foreground within a preset historical time period; and determining a receiving host application from the target active host applications.
In these optional host application scenarios, when the number of active host applications is at least two, the execution subject may determine the target active host application from each of the active host applications. For example, the target active host application may be a host application in which an applet platform, on which an applet that has been run in the foreground, was running in the last 10 minutes. Running in the foreground here means that the visualized content of the applet is shown to the user on the display of the terminal device during running. Specifically, if the number of the target active host applications is one, the target active host application is taken as the receiving host application. If the number of the target active host applications is at least two, the receiving host application can be selected from the target active host applications to determine the receiving host application.
In the application scenes, the applet which is just operated in the foreground can be selected to determine the applet which is most likely to be used next by the user, and the host application corresponding to the applet is used as the receiving application of the information, so that the function of the pushed information is further exerted in time.
In some optional cases of these application scenarios, the applet identity is included in the pushed information; the determining the receiving host application from the target active host application includes:
in response to the number of the target active host applications being at least two, determining the target host applications in the target active host applications, wherein the applet running platform of the target host applications runs the applet indicated by the applet identification in a preset historical time period; a receiving host application is determined from the target host applications.
In these optional cases, the execution subject may determine the target application host application from the number of the target active application host applications when the number of the target active application host applications is at least two, and use one or more application host applications in the target application host applications as the receiving application host application. Specifically, the execution main body may determine the applet according to the applet identifier specified by the server in the pushed information, and further determine the target application host application.
These situations can accurately determine the receiving host application indicated by the server through the applet identification in the pushed information.
Further, determining the receiving host application from the target host application may include:
in response to the number of the target host applications being at least two, determining the applet running in the foreground and indicated by the applet identification within a preset historical time period as a candidate applet; and determining the last candidate applet at the last foreground running time from the candidate applets as a target applet, and taking the target host application corresponding to the target applet as a receiving host application.
Specifically, if the number of the target host applications is at least two, the execution main body may use the applet that is last in the last foreground running time of the applet running platform as the receiving host application. Specifically, the last foreground operation time refers to the time when a certain applet last operates in the foreground. Specifically, the last foreground operating time of each candidate applet may be sorted in time order, the latest operating time is selected, and the candidate applet that is operated in the foreground at that time is taken as the target applet. The difference between the last foreground running time of each candidate applet and the current time can be determined, and the candidate applet corresponding to the last foreground running time with the minimum difference is the target applet.
The target host application corresponding to the candidate applet refers to the target host application where the applet running platform, which is run by the last candidate applet, is located in the last foreground running time. Through the last foreground running time, the target host application corresponding to the applet just used or even being used by the user can be determined, so that the pushed information can play a role at the highest speed.
In some optional implementations of this embodiment, the receiving information pushed by the server through the established push path includes: receiving information to be displayed pushed by a server through an established pushing path; the method further comprises the following steps: and displaying the information to be displayed through the small program operated by the small program operation platform of the first host application.
In these alternative implementations, the information pushed by the server is information to be displayed to the user. After the application host application identifier of the first application host application is added into the application host application identifier set corresponding to the established push path, the server can push information to the applet running platform and display the information to a user through the terminal equipment.
These alternative implementations push the information to be displayed through the established push path to avoid the user from seeing the same information multiple times in different host applications.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an information pushing apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 5, the information pushing apparatus 500 of the present embodiment includes: a receiving unit 501 and a determining unit 502. The detecting unit receiving unit 501 is configured to receive a start instruction for an applet running platform of a first hosted application in the at least one hosted application, and determine whether an established push path exists between the server and the applet running platform of the at least one hosted application; a determining unit 502 configured to, in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first host application, take the established push path as the push path of the applet running platform of the first host application.
In some embodiments, the receiving unit 501 of the information pushing apparatus 500 may determine whether a push path to the applet running platform, that is, an established push path, is already established if it receives a start instruction for the applet in the applet running platform. The start instruction for the applet platform may be generated by triggering when the first host application is started, or may be generated by triggering when the applet of the applet running platform is started. Specifically, the push path is used to connect the server and the terminal device, and the server may push information to the applet running platform in the host application of the terminal device through the push path.
In some embodiments, the determining unit 502 may, in response to determining that a push path has been established for the applet running platform, in the case that the push path does not include a push path for pushing information to the applet running platform of the first host application, then use the established push path as the push path of the applet running platform of the first host application. In this way, the first host application may share the same push path with the original host application corresponding to the established push path.
In some optional implementations of the embodiment, the determining unit is further configured to perform the step of using the established push path as a push path of an applet running platform of the first hosted application as follows: and adding the host application identifier of the first host application into a host application identifier set corresponding to the established push path.
In some optional implementations of this embodiment, the apparatus further includes: an information receiving unit configured to receive information pushed by a server through an established push path; an application determination unit configured to, in response to determining that the pushed information includes receiving host information, treat the host application indicated by the receiving host information as the receiving host application of the pushed information, wherein the receiving host application information includes a host application identification of the host application that will receive the pushed information.
In some optional implementations of this embodiment, the apparatus further includes: a determining unit configured to determine whether an active host application exists in response to determining that the pushed information does not include the receiving host information, wherein an applet that is running exists in an applet running platform of the active host application; a reception determination unit configured to determine a receiving host application of the pushed information from the active host applications in response to determining that the active host application exists.
In some optional implementations of this embodiment, the receiving determining unit executes the receiving host application that determines the pushed information from the active host applications as follows: determining a target active host application in the active host applications in response to the number of the active host applications being at least two, wherein an applet in an applet running platform of the target active host application runs in a foreground within a preset historical time period; and determining a receiving host application from the target active host applications.
In some optional implementations of this embodiment, the pushed information includes an applet identifier; the receiving determination unit is used for determining the receiving host application from the target active host application according to the following modes: in response to the number of the target active host applications being at least two, determining the target host applications in the target active host applications, wherein the applet running platform of the target host applications runs the applet indicated by the applet identification in a preset historical time period; a receiving host application is determined from the target host applications.
In some optional implementations of this embodiment, the receiving determining unit performs determining the receiving host application from the target host application as follows: in response to the number of the target host applications being at least two, determining the applet running in the foreground and indicated by the applet identification within a preset historical time period as a candidate applet; and determining the last candidate applet at the last foreground running time from the candidate applets as a target applet, and taking the target host application corresponding to the target applet as a receiving host application.
In some optional implementations of this embodiment, the information receiving unit performs receiving information pushed by the server through the established push path as follows: receiving information to be displayed pushed by a server through an established pushing path; the device still includes: and the display unit is configured to display the information to be displayed through the small program operated by the small program operation platform of the first host application.
In some optional implementations of this embodiment, the apparatus further includes: an establishing unit configured to establish a push path for pushing information to the applet running platform in response to determining that there is no established push path.
In some optional implementations of this embodiment, the information receiving unit performs receiving information pushed by the server through the established push path as follows: and responding to the situation that the application of the applet running platform is not in operation, and receiving information pushed by the server through the established push path.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the electronic apparatus 600 may include a processing device (e.g., a central processing unit, a graphic processor, etc.) 601 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage portion 606 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices including, for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; a storage portion 606; and a communication section 607. The communication portion 607 may allow the electronic apparatus 600 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired. Fig. 6 also shows a drive 608 and a removable media 609.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication portion 607, or installed from the storage portion 606, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium of the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit and a determining unit. Where the names of the units do not in some cases constitute a limitation on the units themselves, for example, the receiving unit may also be described as a "unit for determining whether there is an established push path between the server and the applet running platform of the at least one host application in response to receiving a start instruction for the applet running platform of a first host application of the at least one host application".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: in response to receiving a start instruction for an applet running platform of a first hosted application of the at least one hosted application, determining whether an established push path exists between a server and the applet running platform of the at least one hosted application; in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first hosted application, taking the established push path as a push path of the applet running platform of the first hosted application.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (12)

1. An information pushing method is applied to a terminal device, wherein at least one host application is installed in the terminal device, and the method comprises the following steps:
in response to receiving a starting instruction of an applet running platform of a first host application in the at least one host application, determining whether an established push path exists between a server and the applet running platform of the at least one host application, wherein the push path is used for pushing information to the applet running platform;
in response to determining that the established push path exists, if the established push path does not include a push path for pushing information to the applet running platform of the first hosted application, taking the established push path as a push path of the applet running platform of the first hosted application.
2. The method of claim 1, wherein the taking the established push path as a push path for the applet running platform of the first hosted application comprises:
and adding the host application identifier of the first host application into the host application identifier set corresponding to the established push path.
3. The method of claim 1, wherein after the taking the established push path as a push path for the applet running platform of the first hosted application, the method further comprises:
receiving information pushed by the server through the established pushing path;
in response to determining that the pushed information includes receiving host information, the host application indicated by the receiving host information is taken as the receiving host application of the pushed information, wherein the receiving host information includes a host application identification of the host application that will receive the pushed information.
4. The method of claim 3, wherein the method further comprises:
in response to determining that the pushed information does not include the receiving host information, determining whether an active host application exists, wherein an active applet exists in the applet running platform of the active host application;
in response to determining that there is an active host application, a receiving host application of the pushed information is determined from the active host application.
5. The method of claim 4, wherein the determining a receiving host application of the pushed information from the active host applications comprises:
in response to the number of the active host applications being at least two, determining a target active host application in the active host applications, wherein an applet in the applet running platform of the target active host application runs in the foreground within a preset historical time period;
and determining the receiving host application from the target active host application.
6. The method of claim 5, wherein the pushed information includes applet identities;
the determining the receiving host application from the target active host application comprises:
in response to the number of the target active host applications being at least two, determining a target host application in the target active host applications, wherein the applet running platform of the target host application runs the applet indicated by the applet identification within the preset historical time period;
determining the receiving host application from the target host application.
7. The method of claim 6, wherein said determining the receiving host application from the target host application comprises:
in response to the number of the target host applications being at least two, determining the applet which runs in the foreground within a preset historical time period and is indicated by the applet identification as a candidate applet;
and determining the last candidate applet at the last foreground running time from the candidate applets as a target applet, and taking the target host application corresponding to the target applet as the receiving host application.
8. The method of claim 3, wherein the receiving the information pushed by the server through the established push path comprises:
receiving information to be displayed pushed by the server through the established pushing path;
the method further comprises the following steps:
displaying the information to be displayed through the applet operated by the applet operating platform of the first host application.
9. The method of claim 1, wherein after the determining whether there is an established push path between a server and an applet running platform of the at least one hosting application, the method further comprises:
in response to determining that the established push path does not exist, establishing the push path for pushing information to the applet running platform.
10. The method of claim 3, wherein the receiving the information pushed by the server through the established push path comprises:
and receiving information pushed by the server through the established pushing path in response to that the application of the applet running platform is not in operation.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-10.
12. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN201910293145.8A 2019-04-12 2019-04-12 Information pushing method and device Active CN109995877B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910293145.8A CN109995877B (en) 2019-04-12 2019-04-12 Information pushing method and device
PCT/CN2020/084113 WO2020207454A1 (en) 2019-04-12 2020-04-10 Information pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910293145.8A CN109995877B (en) 2019-04-12 2019-04-12 Information pushing method and device

Publications (2)

Publication Number Publication Date
CN109995877A CN109995877A (en) 2019-07-09
CN109995877B true CN109995877B (en) 2021-10-12

Family

ID=67133487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910293145.8A Active CN109995877B (en) 2019-04-12 2019-04-12 Information pushing method and device

Country Status (2)

Country Link
CN (1) CN109995877B (en)
WO (1) WO2020207454A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995877B (en) * 2019-04-12 2021-10-12 上海连尚网络科技有限公司 Information pushing method and device
CN110389936B (en) * 2019-07-25 2021-05-14 上海连尚网络科技有限公司 Method, equipment and computer storage medium for starting small program
CN110865855B (en) * 2019-11-18 2023-10-27 百度在线网络技术(北京)有限公司 Applet processing method and related equipment
CN110929233B (en) * 2019-11-22 2022-11-15 连尚(新昌)网络科技有限公司 Information processing method and device
CN111586128B (en) * 2020-04-28 2023-06-09 百度在线网络技术(北京)有限公司 Method, device, equipment and storage medium for acquiring applet data
CN112000880B (en) * 2020-07-31 2024-01-23 北京百度网讯科技有限公司 Push message processing method and device, electronic equipment and readable storage medium
CN112559980B (en) * 2020-11-24 2023-05-05 深圳凡泰极客科技有限责任公司 Applet runtime capable of embedding a plurality of random APP
CN112653769A (en) * 2021-01-08 2021-04-13 青岛海尔科技有限公司 Message pushing method and system
CN114125047A (en) * 2021-11-10 2022-03-01 携程商旅信息服务(上海)有限公司 Message pushing method, system, equipment and storage medium based on third-party system
CN114168215B (en) * 2021-11-17 2024-03-19 广东太平洋互联网信息服务有限公司 Plug-in processing method, system and medium for multiple small program function modules
CN114553949A (en) * 2022-02-15 2022-05-27 北京京东乾石科技有限公司 Page message pushing method and device

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006074072A2 (en) * 2004-12-30 2006-07-13 Citrix Systems, Inc. Systems and methods for providing client-side acceleration techniques
JP2008282088A (en) * 2007-05-08 2008-11-20 Up-Frontier Inc Blog parts, widget cooperation system, and cooperation method
CN104426893B (en) * 2013-09-09 2017-11-21 中国移动通信集团公司 Wake up the method, apparatus and system of mobile terminal
CN103617218A (en) * 2013-11-21 2014-03-05 北京奇虎科技有限公司 Light application creating method and clients
CN105306418B (en) * 2014-06-24 2019-03-01 博雅网络游戏开发(深圳)有限公司 The method and system of multiple utility program shared communication connection
CN104065729B (en) * 2014-06-27 2017-12-05 广州猎豹网络科技有限公司 Information-pushing method and device
CN104536776B (en) * 2014-11-28 2018-11-23 百度在线网络技术(北京)有限公司 A kind of method and apparatus running plug-in application in the plug-in component operation environment of host end
CN104539740A (en) * 2015-01-26 2015-04-22 北京奇艺世纪科技有限公司 Information push method and device
CN105847366A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Method and apparatus for sharing push service
CN106487928B (en) * 2016-12-09 2019-12-13 北京小米移动软件有限公司 Message pushing method and device
CN108287836B (en) * 2017-01-09 2022-09-13 腾讯科技(深圳)有限公司 Resource caching method and device
CN107169134A (en) * 2017-06-08 2017-09-15 北京金山安全软件有限公司 Promotion information display method and device and electronic equipment
CN109428923A (en) * 2017-08-29 2019-03-05 努比亚技术有限公司 Information push method, server, terminal and computer readable storage medium
CN108833521B (en) * 2018-06-06 2021-01-08 广州视源电子科技股份有限公司 Message pushing method, device, system, computer equipment and storage medium
CN109558536A (en) * 2018-11-15 2019-04-02 安徽信果网络科技有限公司 One kind obtained automatically based on wechat small routine news, screening system and method
CN109995877B (en) * 2019-04-12 2021-10-12 上海连尚网络科技有限公司 Information pushing method and device

Also Published As

Publication number Publication date
WO2020207454A1 (en) 2020-10-15
CN109995877A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109995877B (en) Information pushing method and device
CN110007936B (en) Data processing method and device
CN110377440B (en) Information processing method and device
CN110069919B (en) Information acquisition method and device
CN112311841B (en) Information pushing method and device, electronic equipment and computer readable medium
CN110098998B (en) Method and apparatus for processing information
CN110022260B (en) Cross-environment receipt message processing method and system
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN108011949B (en) Method and apparatus for acquiring data
KR20200120288A (en) Method, system, and non-transitory computer readable record medium for providing multiple group call in one chat room
CN111857858A (en) Method and apparatus for processing information
CN110704760B (en) Data processing method and device
CN108549586B (en) Information processing method and device
CN108733527B (en) System, method and apparatus for testing server functionality
CN115671723A (en) Resource processing method, device, equipment and medium
CN115865852A (en) Instant messaging session information processing method and device and electronic equipment
CN109947528B (en) Information processing method and device
CN109218338B (en) Information processing system, method and device
CN113238944A (en) Test method, device and system
CN111580883A (en) Application program starting method, device, computer system and medium
CN109348298B (en) Method and equipment for pushing and playing multimedia data stream
CN106933449B (en) Icon processing method and device
CN112822089B (en) Method and device for adding friends
CN111290873B (en) Fault processing method and device
CN110545296A (en) Log data acquisition method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231108

Address after: 200240 building 41, 398 Heqing Road, Minhang District, Shanghai

Patentee after: Shanghai Chenlian Technology Co.,Ltd.

Address before: 201306 N2025 room 24, 2 New Town Road, mud town, Pudong New Area, Shanghai

Patentee before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right