CN110297663B - Application program awakening method, device, terminal and medium - Google Patents

Application program awakening method, device, terminal and medium Download PDF

Info

Publication number
CN110297663B
CN110297663B CN201810235643.2A CN201810235643A CN110297663B CN 110297663 B CN110297663 B CN 110297663B CN 201810235643 A CN201810235643 A CN 201810235643A CN 110297663 B CN110297663 B CN 110297663B
Authority
CN
China
Prior art keywords
application program
target application
request
port
wake
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
CN201810235643.2A
Other languages
Chinese (zh)
Other versions
CN110297663A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810235643.2A priority Critical patent/CN110297663B/en
Priority to TW107140745A priority patent/TW201941576A/en
Priority to PCT/CN2019/077748 priority patent/WO2019179329A1/en
Publication of CN110297663A publication Critical patent/CN110297663A/en
Application granted granted Critical
Publication of CN110297663B publication Critical patent/CN110297663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

The embodiment of the application discloses a method, a device, a terminal and a medium for awakening an application program, which are used for improving the flexibility of awakening a target application program. The awakening method of the application program comprises the following steps: sending a request message for detecting whether a first target application program starts a port monitoring service or not to a terminal where the first target application program is located; and when a response message aiming at the request message returned by the terminal is received, determining that the first target application program starts port monitoring service, and sending a wake-up request to the terminal where the first target application program is located so as to wake up the first target application program.

Description

Application program awakening method, device, terminal and medium
Technical Field
The present application relates to the field of application program wake-up technologies, and in particular, to a method, an apparatus, a terminal, and a computer-readable storage medium for waking up an application program.
Background
In the scenario of traffic collaboration or off-site advertisement delivery, it is generally customary to introduce service information of a partner by delivering hypertext Markup Language (HTML) 5 pages (i.e., H5 pages). By dropping H5 pages, the user is enabled to jump directly from one application to another and open certain specific pages.
Currently, H5 page delivery is usually implemented in schema of schema protocol. Specifically, an application registers a Uniform Resource Locator (URL) scheme with an operating system, which is used to wake up the application from a browser or other application. When the URL is used for awakening the application program, the application program can directly open certain specific pages, such as a commodity detail page, an activity detail page and the like, after being awakened through the specified URL field; it is also possible to let the application perform some specified action after being woken up, e.g. completing a payment action, etc.
However, by means of releasing the H5 page to wake up the target application program, whether the target application program is installed cannot be detected, and only by means of a timer and the like, after a schema request is sent, a user is guided to open the target application program or enter a download page of the target application program in a manual mode at regular time, so that the wake-up strategy is single, and the flexibility is low.
Content of application
The embodiment of the application program awakening method and device, the terminal and the computer readable storage medium are used for improving the flexibility of awakening a target application program.
According to a first aspect of the embodiments of the present application, there is provided a method for waking up an application program, including:
sending a request message for detecting whether the first target application program starts a port monitoring service to a terminal where the first target application program is located;
when a response message aiming at the request message returned by the terminal where the first target application program is located is received, the fact that the first target application program starts the port monitoring service is determined, and a wake-up request is sent to the terminal where the first target application program is located so as to wake up the first target application program.
According to a second aspect of the embodiments of the present application, there is provided a method for waking up an application program, including:
acquiring port configuration information for starting a first target application program port monitoring service;
starting a port monitoring service of a first target application program based on the acquired port configuration information;
receiving a wake-up request for waking up a first target application;
and starting the first target application program based on the awakening request, and opening a target page in the first target application program.
According to a third aspect of the embodiments of the present application, there is provided a wake-up apparatus for an application program, including:
the sending module is used for sending a request message for detecting whether the first target application program starts the port monitoring service or not to a terminal where the first target application program is located;
and the awakening module is used for determining that the first target application program starts port monitoring service when receiving a response message which is returned by the terminal where the first target application program is located and aims at the request message, and sending an awakening request to the terminal where the first target application program is located so as to awaken the first target application program.
According to a fourth aspect of the embodiments of the present application, there is provided a wake-up apparatus for an application program, including:
the acquisition module is used for acquiring port configuration information for starting a first target application program port monitoring service;
the port monitoring service starting module is used for starting the port monitoring service of the first target application program based on the acquired port configuration information;
a receiving module, configured to receive a wake-up request for waking up a first target application program;
and the application awakening module is used for starting the first target application program based on the awakening request and opening a target page in the first target application program.
According to a fifth aspect of the embodiments of the present application, there is provided a wake-up terminal for an application program, including: a memory and a processor; the memory is used for storing executable program codes; the processor is adapted to read executable program code stored in the memory to perform the method of the first aspect described above.
According to a sixth aspect of embodiments herein, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of the first aspect described above.
According to a seventh aspect of the embodiments of the present application, there is provided a wake-up terminal for an application, including: a memory and a processor; the memory is used for storing executable program codes; the processor is adapted to read executable program code stored in the memory to perform the method of the second aspect described above.
According to an eighth aspect of embodiments herein, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of the second aspect described above.
According to the application program awakening method, device, terminal and computer readable storage medium in the embodiment of the application program, a request message for detecting whether the first target application program starts the port monitoring service is sent to the terminal where the first target application program is located, when a response message aiming at the request message and returned by the terminal where the first target application program is located is received, it is determined that the first target application program starts the port monitoring service, and an awakening request is sent to the terminal where the first target application program is located so as to awaken the first target application program.
According to the awakening scheme of the application program, before the awakening request is sent to the terminal where the first target application program is located, the request message for detecting whether the first target application program starts the port monitoring service is sent to the terminal where the first target application program is located, whether the first target application program starts the port monitoring service is judged through whether the response message of the request message is received, namely whether the first target application program is installed is judged, so that a strategy for awakening the first target application program can be flexibly formulated according to the judgment result, and the flexibility for awakening the first target application program is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram illustrating a system architecture for an external application to wake a target application according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a wake-up method for an application according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a wake-up method for another application according to an embodiment of the application;
FIG. 4 is a schematic structural diagram illustrating a wake-up apparatus for an application according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a wake-up apparatus of another application according to an embodiment of the present application;
fig. 6 is a block diagram illustrating an exemplary hardware architecture of a wake-up terminal of an application program capable of implementing the wake-up method and apparatus of an application program according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
At present, in a traffic cooperation or off-site advertisement delivery scene, it is generally used to introduce service information of a partner by delivering an H5 page, that is, a user directly jumps from one application program to another application program and opens certain specific pages by delivering the H5 page.
In the prior art, H5 page delivery is usually implemented in a schema protocol mode. Specifically, an application registers a URL scheme with an operating system, which is used to wake up the application from a browser or other application. When the URL is used for awakening the application program, the application program can directly open certain specific pages, such as a commodity detail page, an activity detail page and the like, after being awakened through the specified URL field; it is also possible to let the application perform some specified action after being woken up, e.g. completing a payment action, etc.
However, whether the target application program is installed cannot be detected by a mode of launching the H5 page to wake up the target application program, and the user can be guided to open the target application program or enter a download page of the target application program in a manual mode regularly only by means of a timer and the like after sending a schema request, so that the wake-up strategy is single and the flexibility is low.
In view of this, an embodiment of the present application provides a wake-up scheme for an application program, including: the method comprises the steps of sending a request message for detecting whether a first target application program starts port monitoring service to a terminal where the first target application program is located, determining that the first target application program starts the port monitoring service when receiving a response message which is returned by the terminal where the first target application program is located and aims at the request message, and sending a wake-up request to the terminal where the first target application program is located so as to wake up the first target application program.
According to the application program awakening scheme provided by the embodiment of the application program awakening method and the application program awakening device, before the awakening request is sent to the terminal where the first target application program is located, the request message for detecting whether the first target application program starts the port monitoring service or not is sent to the terminal where the first target application program is located, whether the first target application program starts the port monitoring service or not is judged through whether the response message of the request message is received or not, namely whether the first target application program is installed or not is judged, so that a strategy for awakening the first target application program can be flexibly formulated according to the judgment result, and the flexibility for awakening the first target application program is improved.
The following describes in detail a wake-up scheme of an application provided in an embodiment of the present application, with reference to fig. 1, by taking an example that an external application wakes up a first target application using an H5 page.
According to the method for waking up the application program, the first target application program is required to start the port monitoring service, and the first target application program is required to start the port monitoring service and acquire the latest port configuration information.
In one embodiment, a terminal where a first target application program is located acquires port configuration information for starting a port listening service of the first target application program, and starts the port listening service of the first target application program based on the acquired port configuration information. The port configuration information includes, but is not limited to: port identification (to uniquely identify each listening port, e.g., port number), port protocol format, and timestamp of port configuration information.
The timestamp of the port configuration information is used for identifying the version of the current port configuration information, and when determining that the port configuration information of the first target application program is invalid based on the timestamp information in the port configuration information, the port configuration information for starting the port listening service of the first target application program needs to be obtained again. In particular, the port configuration information may be obtained periodically or at regular time based on the timestamp of the port configuration information.
In specific implementation, the port configuration information used for starting the port listening service of the first target application program is obtained, a request may be actively sent to the server of the first target application program to obtain the port configuration information, and the port configuration information of the first target application program sent by the configuration module for configuring the port configuration information of the first target application program may also be received, which is not limited in this application.
After the first target application starts the port listening service, the external application may detect whether the first target application is installed by sending a request message for detecting whether the first target application starts the port listening service to a terminal where the first target application is located, specifically:
the external application program sends a request message for detecting whether the first target application program starts the port monitoring service to the terminal where the first target application program is located, if the first target application program starts the port monitoring service, the first target application program can respond to the request message, namely the external application program can receive a response message which is returned by the terminal where the first target application program is located and aims at the request message. When the external application program receives a response message of the terminal where the first target application program is located to the request message, the external application program determines that the first target application program starts the port monitoring service, and then determines that the first target application program is installed in the terminal, and the external application program can send a wake-up request to the terminal where the first target application program is located so as to wake up the first target application program.
The external application program sends a request message for detecting whether the first target application program starts the port monitoring service to the terminal where the first target application program is located, if the first target application program does not start the port monitoring service, the first target application program cannot receive the request message and cannot respond to the request message, namely the external application program cannot receive the response message of the terminal where the first target application program is located for the request message. When the external application program cannot receive the response message of the terminal where the first target application program is located to the request message, the external application program determines that the first target application program is not installed in the terminal or the first target application program fails to start the port listening service, and then the external application program wakes up the first target application program in a mode of a native schema protocol.
In one embodiment, when sending a wake-up request to a terminal where a first target application program is located, an external application program first acquires attribute information of the first target application program, determines whether the first target application program can be woken up according to the acquired attribute information of the first target application program, and sends the wake-up request to the terminal where the first target application program is located when determining that the first target application program can be woken up based on the attribute information of the first target application program.
In one embodiment, the attribute information of the first target application may include, but is not limited to: whether different versions of external applications can wake up the first target application, whether different channels of downloaded external applications can wake up the first target application, and the like.
In an embodiment, if the acquired attribute information of the first target application includes a device number of the first target application, the device number may be persistently stored in the terminal where the external application is located by adopting a manner such as JS localstorage or cookies based on the device number, and a unique relationship between the external application and the first target application and between the external application and the device may be accurately established based on the device number. Based on the uniqueness relation, service judgment and customization logic based on the equipment number scene can be achieved.
In one embodiment, when the external application program acquires the attribute information of the first target application program, an information acquisition request for acquiring the attribute information of the first target application program may be sent to a terminal where the first target application program is located, and then the attribute information of the first target application program returned by the terminal is received.
In one embodiment, when an external application program sends an awakening request to a terminal where a first target application program is located, port configuration information of the first target application program is obtained, the awakening request for awakening the first target application program is generated by splicing based on the port configuration information of the first target application program, and then the awakening request is sent to the terminal where the first target application program is located by adopting an ajax request mode.
When the method is specifically implemented, the external application program assembles and generates a wake-up request for waking up the first target application program by using the port identifier and the port protocol format in the port configuration information and the pre-acquired URL address of the first target application program.
In an embodiment, when the external application program obtains the port configuration information of the first target application program, an information obtaining request for obtaining the port configuration information of the first target application program may be periodically sent to the terminal where the first target application program is located, and the port configuration information of the first target application program returned by the terminal where the first target application program is located may be received, and the port configuration information of the first target application program sent by the configuration module for configuring the port configuration information of the first target application program may also be received, which is not limited in this application.
In one embodiment, the external application may also save port configuration information for the first target application. Certainly, it should be noted that the port configuration information of the first target application includes a timestamp used for identifying a version of the port configuration information, and the external application may acquire the port configuration information of the first target application periodically or regularly based on the timestamp, so as to ensure that the wake-up request generated based on the port configuration information splicing can wake up the first target application.
In one embodiment, in order to avoid the external application program stealing information by using the port listening service of the first target application program, a fixed protocol format is adopted in the embodiment of the present application, that is, the listening port of the first target application program only receives the request in the agreed protocol format, and no operation is performed on the request in the unconfigured protocol format.
In one embodiment, when the terminal where the first target application program is located receives a wake-up request sent by an external application program, protocol security processing may be performed. Specifically, when a wake-up request sent by an external application program is received, whether the received wake-up request is a wake-up request based on a port protocol format is judged, and when the wake-up request is determined to be the wake-up request based on the port protocol format, the wake-up request is executed, that is, the first target application program is started, and a target page in the first target application program is opened.
In one embodiment, when the wake-up request is executed, the URL address is parsed from the wake-up request, and the URL address is accessed to start the application program corresponding to the URL address, that is, the first target application program is started, and then the page identified by the URL address is opened according to the parameter transmitted in the URL, that is, the target page in the first target application program is opened.
In one embodiment, for some scenarios requiring replacement of the listening port identifier and the listening protocol format at any time, the port configuration information may be issued to the external application program and the first target application program by the port and protocol dynamic operation and maintenance service, so as to control the external application program and the first target application program to use the same port configuration information, thereby avoiding a failure in waking up the first target application program.
In the above embodiment, a process of waking up the first target application program by the external application program is described, in practical application, the external application program may be located in the same terminal as the first target application program or may be located in a different terminal from the first target application program, which is not limited in this embodiment of the present application.
In one embodiment, the application in the terminal where the external application is located may be woken up by other applications as well. In other words, when waking up the first target application program, the terminal where the external application program is located may further obtain port configuration information for starting a port listening service of the second target application program, start the port listening service of the second target application program based on the obtained port configuration information, receive a wake-up request for waking up the second target application program, start the second target application program based on the received wake-up request, and open a target page in the second target application program.
It should be noted that, the first target application and the second target application mentioned in the embodiments of the present application are not limited in particular. The first target application and the second target application are used only to distinguish between two different applications.
The following describes the execution process of the wake-up method of the application program with reference to a specific system processing flow, however, it should be noted that this specific embodiment is only for better describing the present application, and does not constitute a limitation to the present application.
On the wake-up side, from the overall flow, as shown in fig. 2, the wake-up method 200 of the application program may include the following steps:
step 201, sending a request message for detecting whether the first target application starts a port listening service to a terminal where the first target application is located.
Step 202, when receiving a response message for the request message returned by the terminal where the first target application program is located, determining that the first target application program has started the port listening service, and sending a wake-up request to the terminal where the first target application program is located to wake up the first target application program.
On the awakened side, from the overall flow, as shown in fig. 3, the awakening method 300 of the application program may include the following steps:
step 301, acquiring port configuration information for starting a port listening service of a first target application program.
Step 302, starting a port listening service of a first target application program based on the obtained port configuration information.
Step 303, receiving a wake-up request for waking up the first target application.
Step 304, starting the first target application program based on the wake-up request, and opening a target page in the first target application program.
When the wake-up side is implemented, the wake-up method of the application program in the above embodiment may be implemented by a wake-up device of the application program. As shown in fig. 4, the wake-up apparatus 400 for an application program may include:
a sending module 401, configured to send a request message for detecting whether the first target application starts a port listening service to a terminal where the first target application is located.
The wakeup module 402 is configured to, when receiving a response message for the request message returned by the terminal where the first target application is located, determine that the first target application has started the port listening service, and send a wakeup request to the terminal where the first target application is located to wake up the first target application.
In an embodiment, the wake-up module 402 is specifically configured to: acquiring attribute information of a first target application program; and when determining that the first target application program can be awakened based on the attribute information of the first target application program, sending an awakening request to a terminal where the first target application program is located.
In an embodiment, the wake-up module 402 is specifically configured to: sending an information acquisition request for acquiring the attribute information of the first target application program to a terminal where the first target application program is located; and receiving the attribute information of the first target application program returned by the terminal.
In an embodiment, the wake-up module 402 is specifically configured to: acquiring port configuration information of a first target application program; based on the port configuration information, assembling and generating a wake-up request for waking up the first target application program; and sending an awakening request to the terminal where the first target application program is located by adopting an ajax request mode.
In an embodiment, the wake-up module 402 is specifically configured to: periodically sending an information acquisition request for acquiring port configuration information of a first target application program to a terminal where the first target application program is located; and receiving port configuration information of the first target application program returned by the terminal.
In an embodiment, the wake-up module 402 is specifically configured to: and receiving port configuration information of the first target application program, which is sent by a configuration module for configuring the port configuration information of the first target application program.
In one embodiment, the wake-up apparatus of the application further includes: a storage module 403, configured to: port configuration information for the first target application is saved.
In one embodiment, the port configuration information includes: port identification and port protocol format; the wake-up module 402 is specifically configured to: and assembling and generating a wake-up request for waking up the first target application program by using the port identification, the port protocol format and the pre-acquired Uniform Resource Locator (URL) address of the first target application program.
In one embodiment, the wake-up apparatus for an application further includes: an obtaining module 404, configured to obtain port configuration information for starting a port monitoring service of a second target application; the system comprises a port monitoring service starting module 405 for starting a port monitoring service of a second target application program based on the obtained port configuration information, a receiving module 406 for receiving a wake-up request for waking up the second target application program, and an application wake-up module 407 for starting a first target application program based on the wake-up request and opening a target page in the first target application program.
When the awakened side is implemented, the awakening method of the application program in the above embodiment may be implemented by an awakening device of the application program. As shown in fig. 5, the wake-up apparatus 500 of the application program may include:
an obtaining module 501, configured to obtain port configuration information for starting a port listening service of a first target application.
A port listening service starting module 502, configured to start a port listening service of the first target application based on the obtained port configuration information.
A receiving module 503, configured to receive a wake request for waking up the first target application.
The application wakeup module 504 is configured to start the first target application program based on the wakeup request, and open a target page in the first target application program.
In one embodiment, the port configuration information includes a port protocol format; the application wakeup module 504 is specifically configured to: and when the wake-up request is determined to be a wake-up request based on the port protocol format, starting a first target application program based on the wake-up request, and opening a target page in the first target application program.
In one embodiment, the application wakeup module 504 is specifically configured to: resolving a Uniform Resource Locator (URL) address from the wake-up request; and accessing the URL address to start an application program corresponding to the URL address, and opening a page identified by the URL address.
In one embodiment, the receiving module 503 is further configured to: receiving an information acquisition request for acquiring attribute information of a first target application program; and responding to the information acquisition request, and returning the attribute information of the first target application program.
In one embodiment, the obtaining module 501 is specifically configured to: and receiving port configuration information of the first target application program, which is sent by a configuration module for configuring the port configuration information of the first target application program.
In one embodiment, the port configuration information includes: timestamp information for identifying a current port configuration information version; the wake-up device of the application program further comprises: a configuration update module 505 for: and when determining that the port configuration information of the first target application program is invalid based on the timestamp information, re-acquiring the port configuration information for starting the port listening service of the first target application program.
In one embodiment, the wake-up apparatus for an application further includes: a sending module 506, configured to send a request message for detecting whether the second target application starts the port listening service to the terminal where the second target application is located, and a waking module 507, configured to determine that the second target application starts the port listening service when receiving a response message, which is returned by the terminal where the second target application is located, to the request message, and send a waking request to the terminal where the second target application is located, so as to wake up the second target application.
Fig. 6 is a block diagram illustrating an exemplary hardware architecture of a wake-up terminal of an application program capable of implementing the wake-up method and apparatus of an application program according to an embodiment of the present application. As shown in fig. 6, the wake-up terminal 600 of the application program includes an input device 601, an input interface 602, a central processor 603, a memory 604, an output interface 605, and an output device 606. The input interface 602, the central processing unit 603, the memory 604, and the output interface 605 are connected to each other through a bus 610, and the input device 601 and the output device 606 are connected to the bus 610 through the input interface 602 and the output interface 605, respectively, and further connected to other components of the application program wake-up terminal 600.
Specifically, the input device 601 receives input information from the outside, and transmits the input information to the central processor 603 through the input interface 602; the central processor 603 processes input information based on computer-executable instructions stored in the memory 604 to generate output information, stores the output information temporarily or permanently in the memory 604, and then transmits the output information to the output device 606 through the output interface 605; the output device 606 outputs the output information to the outside of the wake-up terminal 600 of the application program for use by the user.
That is, the wake-up terminal of the application shown in fig. 6 may also be implemented as a wake-up device of the application, which may include: a memory storing computer executable instructions; and a processor which, when executing computer executable instructions, may implement the application program wake-up method and apparatus described in connection with fig. 2-5.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product or computer-readable storage medium. The computer program product or computer-readable storage medium includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
In addition, in combination with the wake-up method of the application program in the foregoing embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a wake-up method for an application program of any of the above embodiments.
It is to be understood that the present application is not limited to the particular arrangements and instrumentality described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed at the same time.
As described above, only the specific embodiments of the present application are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.

Claims (21)

1. A method for waking up an application program, the method comprising:
sending a request message for detecting whether a first target application program starts a port monitoring service to a terminal where the first target application program is located;
when a response message aiming at the request message returned by the terminal is received, determining that the first target application program starts port monitoring service, and sending a wake-up request to the terminal where the first target application program is located to wake up the first target application program;
the sending of the wake-up request to the terminal where the first target application program is located includes:
acquiring port configuration information of the first target application program;
based on the port configuration information, assembling and generating a wake-up request for waking up the first target application program;
and sending an awakening request to the terminal where the first target application program is located by adopting an ajax request mode.
2. The method of claim 1, wherein sending a wake-up request to a terminal where the first target application resides comprises:
acquiring attribute information of the first target application program;
and sending a wake-up request to a terminal where the first target application program is located when the first target application program can be woken up based on the attribute information of the first target application program.
3. The method of claim 2, wherein the obtaining attribute information of the first target application comprises:
sending an information acquisition request for acquiring the attribute information of the first target application program to a terminal where the first target application program is located;
and receiving the attribute information of the first target application program returned by the terminal.
4. The method of claim 1, wherein obtaining port configuration information of the first target application comprises:
periodically sending an information acquisition request for acquiring port configuration information of the first target application program to a terminal where the first target application program is located;
and receiving port configuration information of the first target application program returned by the terminal.
5. The method of claim 1, wherein obtaining port configuration information of the first target application comprises:
and receiving port configuration information of the first target application program, which is sent by a configuration module for configuring the port configuration information of the first target application program.
6. The method according to claim 4 or 5, characterized in that the method further comprises: and saving the port configuration information of the first target application program.
7. The method of claim 1, wherein the port configuration information comprises: port identification and port protocol format;
the assembling and generating a wake-up request for waking up the first target application program based on the port configuration information of the first target application program includes:
and assembling and generating a wake-up request for waking up the first target application program by using the port identification, the port protocol format and the pre-acquired Uniform Resource Locator (URL) address of the first target application program.
8. The method of claim 1, further comprising:
acquiring port configuration information for starting a port monitoring service of a second target application program;
starting a port monitoring service of the second target application program based on the acquired port configuration information;
receiving a wake-up request for waking up the second target application;
and starting the second target application program based on the awakening request, and opening a target page in the second target application program.
9. A method for waking up an application program, the method comprising:
acquiring port configuration information for starting a first target application program port monitoring service;
starting a port monitoring service of the first target application program based on the acquired port configuration information;
receiving a wake-up request for waking up the first target application program, wherein the wake-up request is generated by assembling based on the port configuration information and is sent in an ajax request mode;
starting the first target application program based on the awakening request, and opening a target page in the first target application program.
10. The method of claim 9, wherein the port configuration information comprises a port protocol format;
the starting the first target application program and opening a target page in the first target application program based on the wake-up request includes:
and when the awakening request is determined to be the awakening request based on the port protocol format, starting the first target application program based on the awakening request, and opening a target page in the first target application program.
11. The method of claim 9, wherein the starting the first target application and opening a target page in the first target application based on the wake-up request comprises:
resolving a Uniform Resource Locator (URL) address from the wake-up request;
and accessing the URL address to start an application program corresponding to the URL address, and opening a page identified by the URL address.
12. The method of claim 9, further comprising:
receiving an information acquisition request for acquiring attribute information of the first target application program;
and responding to the information acquisition request, and returning the attribute information of the first target application program.
13. The method of claim 9, wherein obtaining port configuration information for initiating the port listening service for the first target application comprises:
and receiving port configuration information of the first target application program, which is sent by a configuration module for configuring the port configuration information of the first target application program.
14. The method of claim 9, wherein the port configuration information comprises: timestamp information for identifying a current port configuration information version;
the method further comprises the following steps: and when determining that the port configuration information of the first target application program is invalid based on the timestamp information, re-acquiring the port configuration information for starting the port listening service of the first target application program.
15. The method of claim 9, further comprising:
sending a request message for detecting whether a second target application program starts a port monitoring service or not to a terminal where the second target application program is located;
and when a response message aiming at the request message returned by the terminal is received, determining that the second target application program starts the port monitoring service, and sending a wake-up request to the terminal where the second target application program is located to wake up the second target application program.
16. An apparatus for waking up an application, the apparatus comprising:
a sending module, configured to send a request message for detecting whether a first target application starts a port listening service to a terminal where the first target application is located;
the awakening module is used for determining that the first target application program starts port monitoring service when receiving a response message which is returned by the terminal and aims at the request message, and sending an awakening request to the terminal where the first target application program is located so as to awaken the first target application program;
the wake-up module is specifically configured to: acquiring port configuration information of the first target application program; based on the port configuration information, assembling and generating a wake-up request for waking up the first target application program; and sending an awakening request to the terminal where the first target application program is located by adopting an ajax request mode.
17. An apparatus for waking up an application, the apparatus comprising:
the acquisition module is used for acquiring port configuration information for starting a first target application program port monitoring service;
a port monitoring service starting module, configured to start a port monitoring service of the first target application program based on the obtained port configuration information;
a receiving module, configured to receive a wake-up request for waking up the first target application program, where the wake-up request is generated by assembling based on the port configuration information and is sent in an ajax request manner;
and the application awakening module is used for starting the first target application program based on the awakening request and opening a target page in the first target application program.
18. The wake-up terminal of the application program is characterized by comprising a memory and a processor; the memory is used for storing executable program codes; the processor is configured to read executable program code stored in the memory to perform the method of any of claims 1-8.
19. A computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any one of claims 1-8.
20. The wake-up terminal of the application program is characterized by comprising a memory and a processor; the memory is used for storing executable program codes; the processor is configured to read executable program code stored in the memory to perform the method of any of claims 9-15.
21. A computer-readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 9-15.
CN201810235643.2A 2018-03-21 2018-03-21 Application program awakening method, device, terminal and medium Active CN110297663B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201810235643.2A CN110297663B (en) 2018-03-21 2018-03-21 Application program awakening method, device, terminal and medium
TW107140745A TW201941576A (en) 2018-03-21 2018-11-16 Application program wake-up method and device, terminal and medium
PCT/CN2019/077748 WO2019179329A1 (en) 2018-03-21 2019-03-12 Application program wake-up method and device, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810235643.2A CN110297663B (en) 2018-03-21 2018-03-21 Application program awakening method, device, terminal and medium

Publications (2)

Publication Number Publication Date
CN110297663A CN110297663A (en) 2019-10-01
CN110297663B true CN110297663B (en) 2022-10-04

Family

ID=67988131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810235643.2A Active CN110297663B (en) 2018-03-21 2018-03-21 Application program awakening method, device, terminal and medium

Country Status (3)

Country Link
CN (1) CN110297663B (en)
TW (1) TW201941576A (en)
WO (1) WO2019179329A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433836A (en) * 2020-11-23 2021-03-02 杭州涂鸦信息技术有限公司 Automatic application program awakening method and device and computer equipment
CN113986379B (en) * 2021-10-26 2023-12-15 抖音视界有限公司 Application starting method and device, computer equipment and storage medium
CN114443152B (en) * 2022-01-19 2023-07-14 苏州浪潮智能科技有限公司 Network wake-up starting-up method and computer equipment
CN115460554A (en) * 2022-08-25 2022-12-09 拉扎斯网络科技(上海)有限公司 Application program awakening method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752292B1 (en) * 2007-11-30 2010-07-06 Sprint Communications Company L.P. System and method for provisioning personalized data into mobile device
CN102981812A (en) * 2011-09-07 2013-03-20 深圳市金蝶中间件有限公司 Manner of execution and device of webpage scripting language
CN104468592A (en) * 2014-12-12 2015-03-25 北京百度网讯科技有限公司 Login method and system
CN105871976A (en) * 2015-11-24 2016-08-17 乐视体育文化产业发展(北京)有限公司 Data cross-domain request method and system, and devices
CN107659641A (en) * 2017-09-22 2018-02-02 百度在线网络技术(北京)有限公司 Web wakes up method, apparatus, server, equipment and the storage medium of client

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7065768B1 (en) * 2002-07-16 2006-06-20 Unisys Corporation Servicing method for script monitor COM object
JPWO2008078684A1 (en) * 2006-12-25 2010-04-22 株式会社Access Network system
US20140129860A1 (en) * 2012-11-06 2014-05-08 Nokia Corporation Method and apparatus for enabling mobile device power management using a shared worker
CN103064391B (en) * 2012-12-28 2015-11-18 广州数控设备有限公司 Based on the long-range DNC control method of digital control system of ICP/IP protocol and Linux network programming
CN105094862B (en) * 2014-05-07 2019-04-09 阿里巴巴集团控股有限公司 The method and browser whether detection application program is installed
CN103970577B (en) * 2014-05-27 2016-07-13 合一网络技术(北京)有限公司 The method and system that mobile appliance applications starts is aroused based on browser downloads
CN106547569A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of page access method and apparatus in application
CN106899455A (en) * 2017-03-07 2017-06-27 广州优视网络科技有限公司 The method and apparatus that a kind of client is interacted with webpage
CN107092534A (en) * 2017-04-22 2017-08-25 李虎 A kind of web site calls the method and device of local program
CN107463453B (en) * 2017-08-10 2023-06-27 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for communication between different applications of same terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752292B1 (en) * 2007-11-30 2010-07-06 Sprint Communications Company L.P. System and method for provisioning personalized data into mobile device
CN102981812A (en) * 2011-09-07 2013-03-20 深圳市金蝶中间件有限公司 Manner of execution and device of webpage scripting language
CN104468592A (en) * 2014-12-12 2015-03-25 北京百度网讯科技有限公司 Login method and system
CN105871976A (en) * 2015-11-24 2016-08-17 乐视体育文化产业发展(北京)有限公司 Data cross-domain request method and system, and devices
CN107659641A (en) * 2017-09-22 2018-02-02 百度在线网络技术(北京)有限公司 Web wakes up method, apparatus, server, equipment and the storage medium of client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于HTTP的实时信息传输方法;姜毅等;《计算机工程与设计》;20080528(第10期);全文 *

Also Published As

Publication number Publication date
WO2019179329A1 (en) 2019-09-26
CN110297663A (en) 2019-10-01
TW201941576A (en) 2019-10-16

Similar Documents

Publication Publication Date Title
CN110297663B (en) Application program awakening method, device, terminal and medium
CN107608689B (en) Method and device for updating application program on client and electronic equipment
US9823920B2 (en) Method for updating firmware and configuration file and a firmware-configuration file management system therefor
CN110489391B (en) Data processing method and related equipment
CN112367246B (en) Message pushing method and device, electronic equipment and storage medium
CN106888233B (en) Data updating system and method
CN111028902A (en) Request processing method, device, equipment and medium based on node switching
US9176798B2 (en) Computer-readable recording medium, failure prediction device and applicability determination method
WO2019140656A1 (en) Firmware upgrade method and apparatus, electronic device and control device
CN112486629A (en) Micro-service state detection method and device, electronic equipment and storage medium
CN110097157B (en) Electronic shelf label awakening method and system and related components
CN112650606B (en) Message processing method, device, system, electronic equipment and storage medium
CN106341244A (en) Method and system for updating configuration file, client and server
CN109150977B (en) Method for automatically generating global serial number based on transaction link
CN110647739A (en) Software installation detection method, device, terminal and storage medium
CN103905441A (en) Data acquisition method and device
CN114722437A (en) Cross-APP unique identifier generation method, device, equipment and storage medium
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN110545309B (en) Internet of things terminal eUICC card management method, device and system
CN114978883A (en) Network wake-up management method and device, electronic equipment and storage medium
CN111125257B (en) Dictionary updating method, device, equipment and storage medium
CN111726450B (en) Control method of intelligent express cabinet and intelligent express cabinet
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
US20160219429A1 (en) Nomination of a primary cell phone from a pool of cell phones
CN111314147A (en) Intelligent device configuration method, cloud platform and storage medium

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