TW201941576A - Application program wake-up method and device, terminal and medium - Google Patents

Application program wake-up method and device, terminal and medium Download PDF

Info

Publication number
TW201941576A
TW201941576A TW107140745A TW107140745A TW201941576A TW 201941576 A TW201941576 A TW 201941576A TW 107140745 A TW107140745 A TW 107140745A TW 107140745 A TW107140745 A TW 107140745A TW 201941576 A TW201941576 A TW 201941576A
Authority
TW
Taiwan
Prior art keywords
target application
wake
application
request
port
Prior art date
Application number
TW107140745A
Other languages
Chinese (zh)
Inventor
曲子深
Original Assignee
香港商阿里巴巴集團服務有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW201941576A publication Critical patent/TW201941576A/en

Links

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

Disclosed in the embodiments of the present application are an application program wake-up method and device, a terminal and a medium, which are used for improving the flexibility of waking up a target application program. The application program wake-up method comprises: sending, to a terminal where a first target application program is located, a request message for detecting whether the first target application program starts a port monitoring service; and after receiving a response message for the request message from the terminal, determining that the first target application program has started the 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

應用程式的喚醒方法、裝置、終端和媒體Method, device, terminal and media for awakening application

本申請涉及應用程式喚醒技術領域,尤其涉及一種應用程式的喚醒方法、裝置、終端和電腦可讀儲存媒體。The application relates to the technical field of application wake-up, and in particular, to a method, a device, a terminal, and a computer-readable storage medium for awakening an application.

在流量合作或者站外投放廣告場景中,通常習慣於採用投放超文字標記語言(Hyper Text Markup Language,HTML)5頁面(也即H5頁面)的方式介紹合作方的業務資訊。通過投放H5頁面,使得使用者能夠從一個應用程式直接跳轉進入另一個應用程式,並打開某些特定頁面。
目前,投放H5頁面通常採用schema協議的模式實現。具體來說,應用程式向作業系統註冊統一資源定位符(Uniform Resource Locator,URL)scheme,該scheme用於從流覽器或其它應用程式中喚醒本應用程式。在使用此URL喚醒應用程式時,通過指定的 URL 欄位,可以讓應用程式在被喚醒後直接打開某些特定頁面,例如,商品詳情頁、活動詳情頁等;也可以讓應用程式在被喚醒後執行某些指定動作,例如,完成支付動作等。
但是,通過投放H5頁面喚醒目標應用程式的方式,無法探測目標應用程式是否安裝,只能通過計時器等手段,在發出 schema 請求後,定時引導使用者採用手動的方式,打開目標應用程式或者進入目標應用程式的下載頁面,喚醒策略單一,靈活性較低。
In the case of traffic cooperation or off-site advertising, it is usually used to introduce the business information of the partner using a method of placing 5 pages of Hyper Text Markup Language (HTML) (that is, H5 pages). By launching H5 pages, users can jump directly from one application to another and open certain pages.
Currently, publishing H5 pages is usually implemented using the schema protocol. Specifically, the application registers a Uniform Resource Locator (URL) scheme with the operating system, and the scheme is used to wake up the application from a browser or other applications. When using this URL to wake up the application, the specified URL field allows the application to open certain specific pages directly after being awakened, such as product details pages, event details pages, etc .; it can also make the application wake up And then perform certain specified actions, such as completing a payment action.
However, by launching the H5 page to wake up the target application, it is not possible to detect whether the target application is installed. Only by means of a timer, etc., after the schema request is issued, the user is regularly guided to manually open the target application or enter the target application. The download page of the target application has a single wakeup strategy and low flexibility.

本申請實施例提供了一種應用程式的喚醒方法、裝置、終端和電腦可讀儲存媒體,用以提高喚醒目標應用程式的靈活性。
根據本申請實施例的第一方面,提供一種應用程式的喚醒方法,包括:
向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息;
在接收到第一目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
根據本申請實施例的第二方面,提供一種應用程式的喚醒方法,包括:
獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊;
基於獲取到的埠配置資訊啟動第一目標應用程式的埠監聽服務;
接收用於喚醒第一目標應用程式的喚醒請求;
基於喚醒請求,啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
根據本申請實施例的第三方面,提供一種應用程式的喚醒裝置,包括:
發送模組,用於向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息;
喚醒模組,用於在接收到第一目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
根據本申請實施例的第四方面,提供一種應用程式的喚醒裝置,包括:
獲取模組,用於獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊;
埠監聽服務啟動模組,用於基於獲取到的埠配置資訊啟動第一目標應用程式的埠監聽服務;
接收模組,用於接收用於喚醒第一目標應用程式的喚醒請求;
應用喚醒模組,用於基於喚醒請求,啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
根據本申請實施例的第五方面,提供一種應用程式的喚醒終端,包括:記憶體和處理器;該記憶體用於儲存有可執行程式碼;該處理器用於讀取記憶體中儲存的可執行程式碼以執行上述第一方面的方法。
根據本申請實施例的第六方面,提供一種電腦可讀儲存媒體,其上儲存有電腦程式指令,當電腦程式指令被處理器執行時實現上述第一方面的方法。
根據本申請實施例的第七方面,提供一種應用程式的喚醒終端,包括:記憶體和處理器;該記憶體用於儲存有可執行程式碼;該處理器用於讀取記憶體中儲存的可執行程式碼以執行上述第二方面的方法。
根據本申請實施例的第八方面,提供一種電腦可讀儲存媒體,其上儲存有電腦程式指令,當電腦程式指令被處理器執行時實現上述第二方面的方法。
根據本申請實施例中的應用程式的喚醒方法、裝置、終端和電腦可讀儲存媒體,向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息,並在接收到第一目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
本申請實施例的應用程式的喚醒方案,在向第一目標應用程式所在終端發送喚醒請求之前,向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息,通過是否接收到該請求消息的回應訊息判斷第一目標應用程式是否已啟動埠監聽服務,也即判斷第一目標應用程式是否已安裝,從而能夠根據判定結果靈活制定喚醒第一目標應用程式的策略,提高喚醒第一目標應用程式的靈活性。
The embodiments of the present application provide a method, a device, a terminal, and a computer-readable storage medium for awakening an application program, so as to improve the flexibility of awakening a target application program.
According to a first aspect of the embodiments of the present application, a method for awakening an application program is provided, including:
Sending a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service;
Upon receiving a response message to the request message returned by the terminal where the first target application is located, it is determined that the first target application has activated the port monitoring service, and sends a wake-up request to the terminal where the first target application is located to wake up the first target application. Program.
According to a second aspect of the embodiments of the present application, a method for awakening an application program is provided, including:
Obtaining the port configuration information for starting the first target application port monitoring service;
Start the port monitoring service of the first target application based on the obtained port configuration information;
Receiving a wake-up request to wake up the first target application;
Based on the wake-up request, the first target application is launched, and the target page in the first target application is opened.
According to a third aspect of the embodiments of the present application, a wake-up device for an application program is provided, including:
A sending module, configured to send a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service;
The wake-up module is configured to determine that the first target application has started the port monitoring service when receiving a response message to the request message returned by the terminal where the first target application is located, and send a wake-up request to the terminal where the first target application is located. To wake up the first target application.
According to a fourth aspect of the embodiments of the present application, an application wakeup device is provided, including:
An acquisition module for acquiring port configuration information for starting a first target application port monitoring service;
The port monitoring service startup module is used to start the port monitoring service of the first target application based on the obtained port configuration information;
A receiving module for receiving a wake-up request for waking up the first target application;
The application wake-up module is used to start the first target application program and open the target page in the first target application program based on the wake-up request.
According to a fifth aspect of the embodiments of the present application, a wake-up terminal for an application program is provided, which includes: a memory and a processor; the memory is used to store executable program code; and the processor is used to read an available program stored in the memory. Execute the code to perform the method of the first aspect described above.
According to a sixth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored, and the method of the first aspect is implemented when the computer program instructions are executed by a processor.
According to a seventh aspect of the embodiments of the present application, a wake-up terminal for an application program is provided, including: a memory and a processor; the memory is used to store executable program code; and the processor is used to read an available program stored in the memory. Execute the code to perform the method of the second aspect described above.
According to an eighth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions are executed by a processor to implement the method of the second aspect.
According to the wake-up method, device, terminal and computer-readable storage medium of the application in the embodiments of the present application, a request message for detecting whether the first target application starts the port monitoring service is sent to the terminal where the first target application is located, and Upon receiving a response message to the request message returned by the terminal where the first target application is located, it is determined that the first target application has activated the port monitoring service, and sends a wake-up request to the terminal where the first target application is located to wake up the first target application. Program.
In the wake-up scheme of the application in the embodiment of the present application, before sending a wake-up request to the terminal where the first target application is located, a request message for detecting whether the first target application starts the port monitoring service is sent to the terminal where the first target application is located. Based on whether the response message of the request message is received, it is determined whether the first target application program has started the port monitoring service, that is, whether the first target application program is installed, so that the wakeup of the first target application program can be flexibly formulated according to the determination result. Strategy to increase the agility of the first target application.

下面將詳細描述本申請的各個方面的特徵和示例性實施例,為了使本申請的目的、技術方案及優點更加清楚明白,以下結合附圖及實施例,對本申請進行進一步詳細描述。應理解,此處所描述的具體實施例僅被配置為解釋本申請,並不被配置為限定本申請。對於本領域技術人員來說,本申請可以在不需要這些具體細節中的一些細節的情況下實施。下面對實施例的描述僅僅是為了通過示出本申請的示例來提供對本申請更好的理解。
需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語「包括」、「包含」或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者設備所固有的要素。在沒有更多限制的情況下,由語句「包括……」限定的要素,並不排除在包括所述要素的過程、方法、物品或者設備中還存在另外的相同要素。
目前,在流量合作或者站外投放廣告場景中,通常習慣於採用投放H5頁面的方式介紹合作方的業務資訊,也即通過投放H5頁面使得使用者從一個應用程式直接跳轉進入另一個應用程式,並打開某些特定頁面。
現有技術中,投放H5頁面通常採用schema協議的模式實現。具體來說,應用程式向作業系統註冊URL scheme,該scheme用於從流覽器或其它應用程式中喚醒本應用程式。在使用此URL喚醒應用程式時,通過指定的 URL 欄位,可以讓應用程式在被喚醒後直接打開某些特定頁面,例如,商品詳情頁、活動詳情頁等;也可以讓應用程式在被喚醒後執行某些指定動作,例如,完成支付動作等。
但是,通過投放H5頁面喚醒目標應用程式的方式,無法探測目標應用程式是否安裝,只能通過計時器等手段,在發出 schema 請求後,定時引導使用者採用手動的方式,打開目標應用程式或者進入目標應用程式的下載頁面,喚醒策略單一,靈活性較低。
鑒於此,本申請實施例提供了一種應用程式的喚醒方案,包括:向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息,並在接收到第一目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
本申請實施例提供的應用程式喚醒方案,在向第一目標應用程式所在終端發送喚醒請求之前,向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息,通過是否接收到該請求消息的回應訊息判斷第一目標應用程式是否已啟動埠監聽服務,也即判斷第一目標應用程式是否已安裝,從而能夠根據判定結果靈活制定喚醒第一目標應用程式的策略,提高喚醒第一目標應用程式的靈活性。
下面結合圖1以外部應用程式使用H5頁面喚醒第一目標應用程式為例,對本申請實施例提供的應用程式的喚醒方案進行詳細說明。
本申請實施例提供的應用程式的喚醒方法,首先需要第一目標應用程式啟動埠監聽服務,而第一目標應用程式啟動埠監聽服務需要獲取最新的埠配置資訊。
在一個實施方式中,第一目標應用程式所在終端獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊,並基於獲取到的埠配置資訊啟動第一目標應用程式的埠監聽服務。其中,埠配置資訊,包括但不限於:埠標識(用於唯一標識每個監聽埠,例如,埠號)、埠協議格式、及埠配置資訊的時間戳記。
其中,埠配置資訊的時間戳記用於標識當前埠配置資訊的版本,在基於埠配置資訊中的時間戳記資訊判定第一目標應用程式的埠配置資訊失效時,需要重新獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊。具體實施時,可以基於埠配置資訊的時間戳記週期性或者定時獲取埠配置資訊。
具體實施時,獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊,可以主動向第一目標應用程式的伺服器發送請求進行獲取,也可以接收用於配置第一目標應用程式埠配置資訊的配置模組發送的第一目標應用程式的埠配置資訊,本申請對此不做限定。
第一目標應用程式啟動埠監聽服務之後,外部應用程式可以通過向第一目標應用程式所在終端發送用於檢測所述第一目標應用程式是否啟動埠監聽服務的請求消息,探測第一目標應用程式是否安裝,具體來說:
外部應用程式向第一目標應用程式所在終端發送用於檢測所述第一目標應用程式是否啟動埠監聽服務的請求消息,若第一目標應用程式已啟動埠監聽服務,則第一目標應用程式能夠對該請求消息作出回應,也即外部應用程式能夠接收到第一目標應用程式所在終端返回的針對該請求消息的回應訊息。外部應用程式接收到第一目標應用程式所在終端針對該請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,則判定終端中安裝有第一目標應用程式,則外部應用程式可以向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
外部應用程式向第一目標應用程式所在終端發送用於檢測所述第一目標應用程式是否啟動埠監聽服務的請求消息,若第一目標應用程式未啟動埠監聽服務,則第一目標應用程式無法接收該請求消息,無法對該請求消息作出回應,也即外部應用程式將接收不到第一目標應用程式所在終端針對該請求消息的回應訊息。外部應用程式將接收不到第一目標應用程式所在終端針對該請求消息的回應訊息時,外部應用程式判定終端中未安裝第一目標應用程式或者第一目標應用程式啟動埠監聽服務失敗,則外部應用程式採用原生schema協議的方式喚醒第一目標應用程式。
在一個實施方式中,外部應用程式在向第一目標應用程式所在終端發送喚醒請求時,首先獲取第一目標應用程式的屬性資訊,根據獲取到的第一目標應用程式的屬性資訊判斷是否能夠喚醒第一目標應用程式,並在基於第一目標應用程式的屬性資訊判定能夠喚醒第一目標應用程式時,向第一目標應用程式所在終端發送喚醒請求。
在一個實施方式中,第一目標應用程式的屬性資訊中可以包括但不限於:不同版本的外部應用程式是否能夠喚醒第一目標應用程式、不同管道下載的外部應用程式是否能夠喚醒第一目標應用程式等。
在一個實施方式中,若獲取到的第一目標應用程式的屬性資訊中包括第一目標應用程式的設備號,則基於此設備號可採用 JS localstorage或者 cookies 等方式將此設備號持久化保存在外部應用程式所在終端,並可以基於此設備號精確的建立外部應用程式和第一目標應用程式及此設備的唯一性關係。基於此唯一性關係,可以做到基於設備號場景的業務判斷定制邏輯。
在一個實施方式中,外部應用程式獲取第一目標應用程式的屬性資訊時,可以向第一目標應用程式所在終端發送用於獲取第一目標應用程式的屬性資訊的資訊獲取請求,然後接收終端返回的第一目標應用程式的屬性資訊。
在一個實施方式中,外部應用程式向第一目標應用程式所在終端發送喚醒請求時,獲取第一目標應用程式的埠配置資訊,並基於第一目標應用程式的埠配置資訊,拼裝產生用於喚醒第一目標應用程式的喚醒請求,然後採用ajax請求方式向第一目標應用程式所在終端發送喚醒請求。
具體實施時,外部應用程式利用埠配置資訊中的埠標識和埠協議格式、以及預先獲取的第一目標應用程式的URL位址,拼裝產生用於喚醒第一目標應用程式的喚醒請求。
在一個實施方式中,外部應用程式獲取第一目標應用程式的埠配置資訊時,可以週期性向第一目標應用程式所在終端發送用於獲取第一目標應用程式的埠配置資訊的資訊獲取請求,並接收第一目標應用程式所在終端返回的第一目標應用程式的埠配置資訊,也可以接收用於配置第一目標應用程式埠配置資訊的配置模組發送的第一目標應用程式的埠配置資訊,本申請對此不做限定。
在一個實施方式中,外部應用程式還可以保存第一目標應用程式的埠配置資訊。當然,需要說明的是,第一目標應用程式的埠配置資訊中包含用於標識埠配置資訊版本的時間戳記,外部應用程式可以基於時間戳記週期性或定時獲取第一目標應用程式的埠配置資訊,以確保基於埠配置資訊拼裝產生的喚醒請求能夠喚醒第一目標應用程式。
在一個實施方式中,為了避免外部應用程式利用第一目標應用程式的埠監聽服務盜取資訊,本申請實施例中採用固定協議格式的方式,也即第一目標應用程式的監聽埠僅接收約定協議格式的請求,對於非約定協議格式的請求將不執行任何操作。
在一個實施方式中,第一目標應用程式所在終端接收到外部應用程式發送的喚醒請求時,可以進行協議安全處理。具體來說,接收到外部應用程式發送的喚醒請求時,判斷接收到的喚醒請求是否是基於埠協議格式的喚醒請求,並在判定喚醒請求為基於埠協議格式的喚醒請求時,執行該喚醒請求,也即啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
在一個實施方式中,執行喚醒請求時,從喚醒請求中解析出URL位址,並存取URL位址以啟動URL位址對應的應用程式,也即啟動第一目標應用程式,然後根據URL中傳遞的參數打開URL位址標識的頁面,也即打開第一目標應用程式中的目標頁面。
在一個實施方式中,對於一些需要隨時替換監聽埠標識和監聽協議格式的場景,可以通過埠與協議動態運維服務發佈埠配置資訊給外部應用程式和第一目標應用程式,以控制外部應用程式和第一目標應用程式中使用相同的埠配置資訊,避免喚醒第一目標應用程式失敗。
上述實施例中介紹了外部應用程式喚醒第一目標應用程式的過程,實際應用中,外部應用程式可以和第一目標應用程式處在同一終端中,也可以和第一目標應用程式處在不同終端中,本申請實施例對此不做限定。
在一個實施方式中,外部應用程式所在終端中的應用程式同樣可以被其它應用程式所喚醒。換句話說,外部應用程式所在終端在喚醒第一目標應用程式時,還可以獲取用於啟動第二目標應用程式埠監聽服務的埠配置資訊,基於獲取到的埠配置資訊啟動第二目標應用程式的埠監聽服務,接收用於喚醒第二目標應用程式的喚醒請求,並基於接收到的喚醒請求,啟動第二目標應用程式,並打開第二目標應用程式中的目標頁面。
需要說明的是,本申請實施例中所提到的第一目標應用程式和第二目標應用程式,並不用於具體限定。第一目標應用程式和第二目標應用程式僅用於區分兩個不同的應用程式。
下面結合具體的系統處理流程對上述應用程式的喚醒方法的執行過程進行說明,然而,值得注意的是,該具體實施例僅是為了更好地說明本申請,並不構成對本申請的不當限定。
在喚醒側,從整體流程而言,如圖2所示,應用程式的喚醒方法200,可以包括以下步驟:
步驟201,向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息。
步驟202,在接收到第一目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
在被喚醒側,從整體流程而言,如圖3所示,應用程式的喚醒方法300,可以包括以下步驟:
步驟301,獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊。
步驟302,基於獲取到的埠配置資訊啟動第一目標應用程式的埠監聽服務。
步驟303,接收用於喚醒第一目標應用程式的喚醒請求。
步驟304,基於喚醒請求,啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
在喚醒側實現的時候,上述實施例中的應用程式的喚醒方法可以通過應用程式的喚醒裝置來實現。如圖4所示,應用程式的喚醒裝置400,可以包括:
發送模組401,用於向第一目標應用程式所在終端發送用於檢測第一目標應用程式是否啟動埠監聽服務的請求消息。
喚醒模組402,用於在接收到第一目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第一目標應用程式已啟動埠監聽服務,向第一目標應用程式所在終端發送喚醒請求,以喚醒第一目標應用程式。
在一個實施方式中,喚醒模組402具體用於:獲取第一目標應用程式的屬性資訊;基於第一目標應用程式的屬性資訊判定能夠喚醒第一目標應用程式時,向第一目標應用程式所在終端發送喚醒請求。
在一個實施方式中,喚醒模組402具體用於:向第一目標應用程式所在終端發送用於獲取第一目標應用程式的屬性資訊的資訊獲取請求;接收終端返回的第一目標應用程式的屬性資訊。
在一個實施方式中,喚醒模組402具體用於:獲取第一目標應用程式的埠配置資訊;基於埠配置資訊,拼裝產生用於喚醒第一目標應用程式的喚醒請求;採用ajax請求方式向第一目標應用程式所在終端發送喚醒請求。
在一個實施方式中,喚醒模組402具體用於:週期性向第一目標應用程式所在終端發送用於獲取第一目標應用程式的埠配置資訊的資訊獲取請求;接收終端返回的第一目標應用程式的埠配置資訊。
在一個實施方式中,喚醒模組402具體用於:接收用於配置第一目標應用程式埠配置資訊的配置模組發送的第一目標應用程式的埠配置資訊。
在一個實施方式中,應用程式的喚醒裝置還包括:儲存模組403,用於:保存第一目標應用程式的埠配置資訊。
在一個實施方式中,埠配置資訊包括:埠標識和埠協議格式;喚醒模組402具體用於:利用埠標識、埠協議格式、及預先獲取的第一目標應用程式的統一資源定位符URL位址,拼裝產生用於喚醒第一目標應用程式的喚醒請求。
在一個實施方式中,應用程式的喚醒裝置,還包括:獲取模組404,用於獲取用於啟動第二目標應用程式埠監聽服務的埠配置資訊;埠監聽服務啟動模組405,用於基於獲取到的埠配置資訊啟動第二目標應用程式的埠監聽服務,接收模組406,用於接收用於喚醒第二目標應用程式的喚醒請求,應用喚醒模組407,用於基於喚醒請求,啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
在被喚醒側實現的時候,上述實施例中的應用程式的喚醒方法可以通過應用程式的喚醒裝置來實現。如圖5所示,應用程式的喚醒裝置500,可以包括:
獲取模組501,用於獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊。
埠監聽服務啟動模組502,用於基於獲取到的埠配置資訊啟動第一目標應用程式的埠監聽服務。
接收模組503,用於接收用於喚醒第一目標應用程式的喚醒請求。
應用喚醒模組504,用於基於喚醒請求,啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
在一個實施方式中,埠配置資訊包括埠協議格式;應用喚醒模組504具體用於:在判定喚醒請求為基於埠協議格式的喚醒請求時,基於喚醒請求,啟動第一目標應用程式,並打開第一目標應用程式中的目標頁面。
在一個實施方式中,應用喚醒模組504具體用於:從喚醒請求中解析出統一資源定位符URL位址;存取URL位址啟動URL位址對應的應用程式,並打開URL位址標識的頁面。
在一個實施方式中,接收模組503還用於:接收用於獲取第一目標應用程式的屬性資訊的資訊獲取請求;回應於資訊獲取請求,返回第一目標應用程式的屬性資訊。
在一個實施方式中,獲取模組501具體用於:接收用於配置第一目標應用程式埠配置資訊的配置模組發送的第一目標應用程式的埠配置資訊。
在一個實施方式中,埠配置資訊,包括:用於標識當前埠配置資訊版本的時間戳記資訊;應用程式的喚醒裝置還包括:配置更新模組505,用於:在基於時間戳記資訊判定第一目標應用程式的埠配置資訊失效時,重新獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊。
在一個實施方式中,應用程式的喚醒裝置,還包括:發送模組506,用於向第二目標應用程式所在終端發送用於檢測第二目標應用程式是否啟動埠監聽服務的請求消息,喚醒模組507,用於在接收到第二目標應用程式所在終端返回的針對請求消息的回應訊息時,判定第二目標應用程式已啟動埠監聽服務,向第二目標應用程式所在終端發送喚醒請求,以喚醒第二目標應用程式。
圖6示出了能夠實現根據本申請實施例的應用程式的喚醒方法和裝置的應用程式的喚醒終端的示例性硬體架構的結構圖。如圖6所示,應用程式的喚醒終端600包括輸入裝置601、輸入介面602、中央處理器603、記憶體604、輸出介面605、以及輸出設備606。其中,輸入介面602、中央處理器603、記憶體604、以及輸出介面605通過匯流排610相互連接,輸入裝置601和輸出設備606分別通過輸入介面602和輸出介面605與匯流排610連接,進而與應用程式的喚醒終端600的其他元件連接。
具體地,輸入裝置601接收來自外部的輸入資訊,並通過輸入介面602將輸入資訊傳送到中央處理器603;中央處理器603基於記憶體604中儲存的電腦可執行指令對輸入資訊進行處理以產生輸出資訊,將輸出資訊臨時或者永久地儲存在記憶體604中,然後通過輸出介面605將輸出資訊傳送到輸出設備606;輸出設備606將輸出資訊輸出到應用程式的喚醒終端600的外部供使用者使用。
也就是說,圖6所示的應用程式的喚醒終端也可以被實現為應用程式的喚醒設備,該應用程式的喚醒設備可以包括:儲存有電腦可執行指令的記憶體;以及處理器,該處理器在執行電腦可執行指令時可以實現結合圖2-圖5描述的應用程式的喚醒方法和裝置。
在上述實施例中,可以全部或部分地通過軟體、硬體、韌體或者其任意組合來實現。當使用軟體實現時,可以全部或部分地以電腦程式產品或電腦可讀儲存媒體的形式實現。所述電腦程式產品或電腦可讀儲存媒體包括一個或多個電腦指令。在電腦上載入和執行所述電腦程式指令時,全部或部分地產生按照本申請實施例所述的流程或功能。所述電腦可以是通用電腦、專用電腦、電腦網路、或者其他可程式設計裝置。所述電腦指令可以儲存在電腦可讀儲存媒體中,或者從一個電腦可讀儲存媒體向另一個電腦可讀儲存媒體傳輸,例如,所述電腦指令可以從一個網站網站、電腦、伺服器或資料中心通過有線(例如同軸電纜、光纖、數位用戶線路(DSL))或無線(例如,紅外線、無線、微波等)方式向另一個網站站點、電腦、伺服器或資料中心進行傳輸。所述電腦可讀儲存媒體可以是電腦能夠存取的任何可用媒體或者是包含一個或多個可用媒體集成的伺服器、資料中心等資料儲存設備。所述可用媒體可以是磁性媒體,(例如,軟碟、硬碟、磁帶)、光媒體(例如,DVD)、或者半導體媒體(例如,固態硬碟Solid State Disk (SSD))等。
另外,結合上述實施例中的應用程式的喚醒方法,本申請實施例可提供一種電腦可讀儲存媒體來實現。該電腦可讀儲存媒體上儲存有電腦程式指令;該電腦程式指令被處理器執行時實現上述實施例中的任意一種應用程式的喚醒方法。
需要明確的是,本申請並不局限於上文所描述並在圖中示出的特定配置和處理。為了簡明起見,這裡省略了對已知方法的詳細描述。在上述實施例中,描述和示出了若干具體的步驟作為示例。但是,本申請的方法過程並不限於所描述和示出的具體步驟,本領域的技術人員可以在領會本申請的精神後,作出各種改變、修改和添加,或者改變步驟之間的順序。
還需要說明的是,本申請中提及的示例性實施例,基於一系列的步驟或者裝置描述一些方法或系統。但是,本申請不局限於上述步驟的順序,也就是說,可以按照實施例中提及的循序執行步驟,也可以不同於實施例中的順序,或者若干步驟同時執行。
以上所述,僅為本申請的具體實施方式,所屬領域的技術人員可以清楚地瞭解到,為了描述的方便和簡潔,上述描述的系統、模組和單元的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。應理解,本申請的保護範圍並不局限於此,任何熟悉本技術領域的技術人員在本申請揭露的技術範圍內,可輕易想到各種等效的修改或替換,這些修改或替換都應涵蓋在本申請的保護範圍之內。
The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions, and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only configured to explain the application, and are not configured to limit the application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely for providing a better understanding of the present application by showing an example of the present application.
It should be noted that in this article, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order among them. Moreover, the terms "including", "including" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements, but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including ..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
At present, in traffic cooperation or off-site advertising scenarios, it is usually accustomed to use H5 pages to introduce business information of partners, that is, by placing H5 pages, users can jump directly from one application to another. And open some specific pages.
In the prior art, launching H5 pages is usually implemented using a schema protocol. Specifically, the application registers the URL scheme with the operating system, which is used to wake up the application from the browser or other applications. When using this URL to wake up the application, the specified URL field allows the application to open certain specific pages directly after being awakened, such as product details pages, event details pages, etc .; it can also make the application wake up And then perform certain specified actions, such as completing a payment action.
However, by launching the H5 page to wake up the target application, it is not possible to detect whether the target application is installed. Only by means of a timer, etc., after the schema request is issued, the user is regularly guided to manually open the target application or enter the target application. The download page of the target application has a single wakeup strategy and low flexibility.
In view of this, an embodiment of the present application provides an application wake-up solution, including: sending a request message for detecting whether the first target application starts a port monitoring service to a terminal where the first target application is located, and upon receiving the first When responding to the request message returned by the terminal where the target application is located, it is determined that the first target application has activated the port monitoring service, and sends a wake-up request to the terminal where the first target application is located to wake up the first target application.
In the application wake-up solution provided in the embodiment of the present application, before sending a wake-up request to the terminal where the first target application is located, sending a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service. Based on whether the response message of the request message is received, it is determined whether the first target application program has started the port monitoring service, that is, whether the first target application program is installed, so that it is possible to flexibly formulate the Strategy to increase the agility of the first target application.
The following uses the external application program to wake up the first target application program using the H5 page as an example to describe in detail the application program wake-up scheme provided in the embodiment of the present application.
The application wakeup method provided in the embodiment of the present application first requires the first target application to start the port monitoring service, and the first target application to start the port monitoring service to obtain the latest port configuration information.
In one embodiment, the terminal where the first target application is located obtains the port configuration information for starting the port monitoring service of the first target application, and starts the port monitoring service of the first target application based on the obtained port configuration information. The port configuration information includes, but is not limited to, a port identifier (used to uniquely identify each listening port, for example, a port number), a port protocol format, and a time stamp of the port configuration information.
The timestamp of the port configuration information is used to identify the version of the current port configuration information. When the port configuration information of the first target application is determined to be invalid based on the timestamp information in the port configuration information, the port target information needs to be obtained again to start the first target. Port configuration information for the application port listening service. In specific implementation, the port configuration information can be obtained periodically or periodically based on the time stamp of the port configuration information.
In specific implementation, the port configuration information used to start the first target application port monitoring service can be actively sent to the server of the first target application for acquisition, or it can be used to configure the first target application port configuration. The port configuration information of the first target application sent by the information configuration module is not limited in this application.
After the first target application starts the port monitoring service, the external application can detect the first target application by sending a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service. Whether to install, specifically:
The external application sends a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service. If the first target application has started the port monitoring service, the first target application can Respond to the request message, that is, the external application can receive a response message to the request message returned by the terminal where the first target application is located. When the external application receives a response message from the terminal where the first target application is located to the request message, it determines that the first target application has activated the port monitoring service, and then determines that the first target application is installed in the terminal, and the external application can Send a wake-up request to the terminal where the first target application is located to wake up the first target application.
The external application sends a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service. If the first target application does not start the port monitoring service, the first target application cannot After receiving the request message, it cannot respond to the request message, that is, the external application will not receive a response message to the request message from the terminal where the first target application is located. When the external application cannot receive the response message from the terminal where the first target application is located to the request message, the external application determines that the first target application is not installed in the terminal or the first target application startup port monitoring service fails, then the external The application uses the native schema protocol to wake up the first target application.
In one embodiment, when an external application sends a wake-up request to the terminal where the first target application is located, it first obtains the attribute information of the first target application, and determines whether it can wake up based on the obtained attribute information of the first target application. The first target application sends a wake-up request to the terminal where the first target application is located when it is determined that the first target application can be awakened based on the attribute information of the first target application.
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, and whether external applications downloaded from different channels can wake up the first target application. Programs, etc.
In one embodiment, if the obtained attribute information of the first target application includes the device number of the first target application, based on this device number, the device number may be persistently stored in JS localstorage or cookies, etc. The terminal where the external application is located can accurately establish the unique relationship between the external application and the first target application and the device based on the device number. Based on this unique relationship, custom logic for service judgment based on the device number scenario can be achieved.
In one embodiment, when the external application obtains the attribute information of the first target application, the external application may send an information acquisition request for acquiring the attribute information of the first target application to the terminal where the first target application is located, and then the receiving terminal returns Attribute information for the first target application of.
In one embodiment, when an external application sends a wake-up request to a terminal where the first target application is located, the port configuration information of the first target application is obtained, and based on the port configuration information of the first target application, assembly is generated for wake-up. The wakeup request of the first target application, and then using the ajax request method to send a wakeup request to the terminal where the first target application is located.
In specific implementation, the external application program uses the port identification and port protocol format in the port configuration information and the URL address of the first target application program obtained in advance to assemble and generate a wake-up request for awakening the first target application program.
In one embodiment, when the external application obtains the port configuration information of the first target application, it may periodically send an information acquisition request to the terminal where the first target application is located to obtain the port configuration information of the first target application, and Receiving the port configuration information of the first target application returned by the terminal where the first target application is located, or receiving the port configuration information of the first target application sent by the configuration module for configuring the first target application port configuration information, This application does not limit this.
In one embodiment, the external application can also save the port configuration information of the first target application. Of course, it should be noted that the port configuration information of the first target application includes a time stamp for identifying the version of the port configuration information. The external application can obtain the port configuration information of the first target application periodically or periodically based on the time stamp. To ensure that the wake-up request generated based on the port configuration information assembly can wake up the first target application.
In one embodiment, in order to prevent external applications from stealing information by using the port monitoring service of the first target application, a fixed protocol format is adopted in the embodiment of the present application, that is, the monitoring port of the first target application only receives an appointment. Requests in protocol format, no action will be performed for requests that are not in the agreed protocol format.
In one embodiment, when the terminal where the first target application is located receives a wake-up request sent by an external application, it can perform protocol security processing. Specifically, when receiving a wake-up request from an external application, determine whether the received wake-up request is a wake-up request based on the port protocol format, and execute the wake-up request when determining that the wake-up request is a wake-up request based on the port protocol format. , That is, launch the first target application and open the target page in the first target application.
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 according to the URL, The passed parameter opens the page identified by the URL address, that is, the target page in the first target application.
In one embodiment, for some scenarios where the monitoring port identification and monitoring protocol format need to be replaced at any time, the port and protocol dynamic operation and maintenance service can be used to publish the port configuration information to the external application and the first target application to control the external application. Use the same port configuration information as the first target application to avoid failing to wake up the first target application.
In the above embodiment, the process of awakening the first target application by the external application is described. In actual applications, the external application may be in the same terminal as the first target application, or may be in a different terminal from the first target application. However, this embodiment of the present application does not limit this.
In one embodiment, the application in the terminal where the external application is located can also be awakened by other applications. In other words, when the terminal where the external application is located wakes up the first target application, it can also obtain the port configuration information for starting the second target application port monitoring service, and start the second target application based on the acquired port configuration information. The port monitoring service receives a wake-up request for waking up the second target application, and launches the second target application based on the received wake-up request, and opens a target page in the second target application.
It should be noted that the first target application and the second target application mentioned in the embodiments of the present application are not specifically limited. The first target application and the second target application are only used to distinguish two different applications.
The following describes the execution process of the above-mentioned application wake-up method with reference to a specific system processing flow. However, it is worth noting that this specific embodiment is only for better description of the present application, and does not constitute an improper limitation on the present application.
On the wake-up side, from the perspective of the overall process, as shown in FIG. 2, the wake-up method 200 of the application may include the following steps:
Step 201: Send a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service.
Step 202: upon receiving a response message to the request message returned by the terminal where the first target application is located, determine that the first target application has activated the port monitoring service, and send a wake-up request to the terminal where the first target application is located to wake up the first A target application.
On the awakened side, from the perspective of the overall process, as shown in FIG. 3, the application wake-up method 300 may include the following steps:
Step 301: Obtain port configuration information for starting a first target application port monitoring service.
Step 302: Start the port monitoring service of the first target application based on the obtained port configuration information.
Step 303: Receive a wake-up request for waking up the first target application.
Step 304: Start the first target application based on the wake-up request, and open the target page in the first target application.
When the wake-up side is implemented, the wake-up method of the application in the above embodiment may be implemented by the wake-up device of the application. As shown in FIG. 4, the wake-up device 400 of the application may include:
The sending module 401 is configured to send a request message to a terminal where the first target application is located to detect whether the first target application starts a port monitoring service.
The wake-up module 402 is configured to determine that the first target application has activated the port monitoring service when receiving a response message to the request message returned by the terminal where the first target application is located, and send a wake-up request to the terminal where the first target application is located. To wake up the first target application.
In one embodiment, the wake-up module 402 is specifically configured to: obtain the attribute information of the first target application; when determining that the first target application can be awakened based on the attribute information of the first target application, report to the first target application The terminal sends a wake-up request.
In one embodiment, the wake-up module 402 is specifically configured to: send an information acquisition request for acquiring the attribute information of the first target application to the terminal where the first target application is located; receive the attributes of the first target application returned by the terminal Information.
In one embodiment, the wake-up module 402 is specifically configured to: obtain port configuration information of the first target application program; based on the port configuration information, assemble to generate a wake-up request for waking up the first target application program; A terminal where a target application is located sends a wake-up request.
In one embodiment, the wake-up module 402 is specifically configured to: periodically send an information acquisition request to the terminal where the first target application is located to obtain port configuration information of the first target application; and receive the first target application returned by the terminal Port configuration information.
In one embodiment, the wake-up module 402 is specifically configured to receive the port configuration information of the first target application sent by the configuration module configured to configure the first target application port configuration information.
In one embodiment, the wake-up device of the application further includes: a storage module 403, configured to store port configuration information of the first target application.
In one embodiment, the port configuration information includes: a port identifier and a port protocol format; the wake-up module 402 is specifically configured to use the port identifier, the port protocol format, and a uniform resource locator URL bit of the first target application obtained in advance Address, the assembly generates a wake-up request to wake up the first target application.
In one embodiment, the application wakeup device further includes: an acquisition module 404 for acquiring port configuration information for starting a second target application port monitoring service; and a port monitoring service activation module 405 for The obtained port configuration information starts a port monitoring service of the second target application. The receiving module 406 is configured to receive a wake-up request for waking up the second target application. The application wake-up module 407 is configured to start based on the wake-up request. First target application, and open the target page in the first target application.
When the wake-up side is implemented, the wake-up method of the application in the above embodiment may be implemented by the wake-up device of the application. As shown in FIG. 5, the wake-up device 500 of the application may include:
The obtaining module 501 is configured to obtain port configuration information for starting a first target application port monitoring service.
The port monitoring service startup module 502 is configured to start the port monitoring service of the first target application based on the obtained port configuration information.
The receiving module 503 is configured to receive a wake-up request for waking up the first target application.
The application wake-up module 504 is configured to start the first target application based on the wake-up request and open a target page in the first target application.
In one embodiment, the port configuration information includes a port protocol format; the application wake-up module 504 is specifically configured to: when determining that the wake-up request is a wake-up request based on the port protocol format, start the first target application based on the wake-up request and open The target page in the first target application.
In one embodiment, the application wake-up module 504 is specifically configured to: resolve the uniform resource locator URL address from the wake-up request; access the URL address to start the application corresponding to the URL address, and open the URL address identifier. page.
In one embodiment, the receiving module 503 is further configured to: receive an information acquisition request for acquiring attribute information of the first target application program; and return the attribute information of the first target application program in response to the information acquisition request.
In one embodiment, the obtaining module 501 is specifically configured to receive the port configuration information of the first target application sent by the configuration module configured to configure the first target application port configuration information.
In one embodiment, the port configuration information includes: time stamp information for identifying a version of the current port configuration information; the wake-up device of the application program further includes: a configuration update module 505, configured to: determine a first based on the time stamp information When the port configuration information of the target application is invalid, re-obtain the port configuration information used to start the first target application port monitoring service.
In one embodiment, the wake-up device of the application program further includes: a sending module 506, configured to send a request message to the terminal where the second target application program is located to detect whether the second target application program starts the port monitoring service, and the wake-up module Group 507 is used for determining that the second target application has activated the port monitoring service when receiving a response message to the request message returned by the terminal where the second target application is located, and sending a wake-up request to the terminal where the second target application is located, so as to Wake up the second target application.
FIG. 6 shows a structural diagram of an exemplary hardware architecture of an application wake-up terminal capable of implementing an application wake-up method and a device according to embodiments of the present application. As shown in FIG. 6, the wake-up terminal 600 of the application includes an input device 601, an input interface 602, a central processing unit 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. The input device 601 and the output device 606 are connected to the bus 610 through an input interface 602 and an output interface 605, respectively, and are further connected to the bus 610. Other components of the application wake up the terminal 600 are connected.
Specifically, the input device 601 receives input information from the outside and transmits the input information to the central processing unit 603 through the input interface 602. The central processing unit 603 processes the input information based on computer-executable instructions stored in the memory 604 to generate the input information. Output information, temporarily or permanently store the output information in the memory 604, and then transmit 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 for the user use.
That is, the wake-up terminal of the application shown in FIG. 6 can also be implemented as a wake-up device of the application. The wake-up device of the application can include: a memory storing computer executable instructions; and a processor, which processes The device can implement the wake-up method and device of the application program described in conjunction with FIG. 2 to FIG. 5 when executing computer-executable instructions.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product or a computer-readable storage medium. The computer program product or computer-readable storage medium includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are wholly or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be from a website, a computer, a server, or data. The center transmits to another website site, computer, server, or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available media that can be accessed by a computer or a data storage device such as a server, a data center, and the like that includes one or more available media integrations. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)), or the like.
In addition, in combination with the application program wake-up method in the above embodiment, the embodiment of the present application may provide a computer-readable storage medium for implementation. A computer program instruction is stored on the computer-readable storage medium; when the computer program instruction is executed by a processor, the method for awakening any application program in the foregoing embodiment is implemented.
It should be clear that this application is not limited to the specific configurations and processes described above and shown in the figures. For brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps have been described and shown as examples. However, the method of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications, and additions, or change the order between the steps after understanding 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, or may be different from the order in the embodiments, or several steps may be performed simultaneously.
The foregoing is only a specific implementation of this application, and those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working processes of the systems, modules, and units described above can be implemented by referring to the foregoing methods The corresponding process in the example is not repeated here. It should be understood that the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application. These modifications or replacements should be covered in Within the scope of this application.

200、300‧‧‧喚醒方法200, 300‧‧‧ wake-up method

201、202、301、302、303、304‧‧‧步骤 201, 202, 301, 302, 303, 304‧‧‧ steps

400、500‧‧‧喚醒裝置 400, 500‧‧‧ wake device

401‧‧‧發送模組 401‧‧‧ sending module

402‧‧‧喚醒模組 402‧‧‧ wake module

403‧‧‧儲存模組 403‧‧‧Storage Module

404‧‧‧獲取模組 404‧‧‧Get Module

405‧‧‧埠監聽服務啟動模組 405‧‧‧Port monitoring service activation module

406‧‧‧接收模組 406‧‧‧Receiving module

407‧‧‧應用喚醒模組 407‧‧‧App wake up module

501‧‧‧獲取模組 501‧‧‧Get Module

502‧‧‧埠監聽服務啟動模組 502‧‧‧Port monitoring service activation module

503‧‧‧接收模組 503‧‧‧Receiving module

504‧‧‧應用喚醒模組 504‧‧‧Apply wake module

505‧‧‧配置更新模組 505‧‧‧Configuration update module

506‧‧‧發送模組 506‧‧‧Send Module

507‧‧‧喚醒模組 507‧‧‧ wake module

600‧‧‧喚醒終端 600‧‧‧ wake up terminal

601‧‧‧輸入裝置 601‧‧‧ input device

602‧‧‧輸入介面 602‧‧‧ input interface

603‧‧‧中央處理器 603‧‧‧Central Processing Unit

604‧‧‧記憶體 604‧‧‧Memory

605‧‧‧輸出介面 605‧‧‧output interface

606‧‧‧輸出設備 606‧‧‧ output device

610‧‧‧匯流排 610‧‧‧Bus

為了更清楚地說明本申請實施例中的技術方案,下面將對實施例描述中所需要使用的附圖作簡要介紹,顯而易見地,下面描述中的附圖僅僅是本申請的一些實施例,對於本領域的普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings according to these drawings without paying creative labor.

圖1示出了根據本申請實施例外部應用程式喚醒目標應用程式的系統架構圖; FIG. 1 illustrates a system architecture diagram of an external application awakening a target application according to an embodiment of the present application; FIG.

圖2示出了根據本申請實施例的一種應用程式的喚醒方法的流程示意圖; FIG. 2 is a schematic flowchart of an application wakeup method according to an embodiment of the present application; FIG.

圖3示出了根據本申請實施例的另一應用程式的喚醒方法的流程示意圖; FIG. 3 is a schematic flowchart of another wakeup method of an application according to an embodiment of the present application; FIG.

圖4示出了根據本申請實施例的一種應用程式的喚醒裝置的結構示意圖; 4 is a schematic structural diagram of a wake-up device for an application according to an embodiment of the present application;

圖5示出了根據本申請實施例的另一應用程式的喚醒裝置的結構示意圖; 5 is a schematic structural diagram of a wake-up device for another application according to an embodiment of the present application;

圖6示出了能夠實現根據本申請實施例的應用程式的喚醒方法和裝置的應用程式的喚醒終端的示例性硬體架構的結構圖。 FIG. 6 shows a structural diagram of an exemplary hardware architecture of an application wake-up terminal capable of implementing an application wake-up method and a device according to embodiments of the present application.

Claims (22)

一種應用程式的喚醒方法,所述方法包括: 向第一目標應用程式所在終端發送用於檢測所述第一目標應用程式是否啟動埠監聽服務的請求消息; 在接收到所述終端返回的針對所述請求消息的回應訊息時,判定所述第一目標應用程式已啟動埠監聽服務,向所述第一目標應用程式所在終端發送喚醒請求,以喚醒所述第一目標應用程式。A method for awakening an application program, the method includes: Sending a request message to the terminal where the first target application is located to detect whether the first target application starts the port monitoring service; Upon receiving a response message to the request message returned by the terminal, determining that the first target application has activated a port listening service, and sending a wake-up request to the terminal where the first target application is located to wake up the First target app. 如申請專利範圍第1項所述的方法,其中所述向所述第一目標應用程式所在終端發送喚醒請求,包括: 獲取所述第一目標應用程式的屬性資訊; 基於所述第一目標應用程式的屬性資訊判定能夠喚醒所述第一目標應用程式時,向所述第一目標應用程式所在終端發送喚醒請求。The method of claim 1, wherein the sending a wake-up request to a terminal where the first target application is located includes: Obtaining attribute information of the first target application; When it is determined that the first target application can be awakened based on the attribute information of the first target application, a wake-up request is sent to a terminal where the first target application is located. 如申請專利範圍第2項所述的方法,其中所述獲取所述第一目標應用程式的屬性資訊,包括: 向所述第一目標應用程式所在終端發送用於獲取所述第一目標應用程式的屬性資訊的資訊獲取請求; 接收所述終端返回的所述第一目標應用程式的屬性資訊。The method according to item 2 of the scope of patent application, wherein the acquiring attribute information of the first target application comprises: Sending an information acquisition request to the terminal where the first target application is located to obtain attribute information of the first target application; Receiving attribute information of the first target application program returned by the terminal. 如申請專利範圍第1項所述的方法,其中所述向所述第一目標應用程式所在終端發送喚醒請求,包括: 獲取所述第一目標應用程式的埠配置資訊; 基於所述埠配置資訊,拼裝產生用於喚醒所述第一目標應用程式的喚醒請求; 採用ajax請求方式向所述第一目標應用程式所在終端發送喚醒請求。The method of claim 1, wherein the sending a wake-up request to a terminal where the first target application is located includes: Obtaining port configuration information of the first target application; Based on the port configuration information, assembling to generate a wake-up request for waking up the first target application; Using an ajax request to send a wake-up request to the terminal where the first target application is located. 如申請專利範圍第4項所述的方法,其中所述獲取所述第一目標應用程式的埠配置資訊,包括: 週期性向所述第一目標應用程式所在終端發送用於獲取所述第一目標應用程式的埠配置資訊的資訊獲取請求; 接收所述終端返回的所述第一目標應用程式的埠配置資訊。The method according to item 4 of the scope of patent application, wherein the obtaining port configuration information of the first target application comprises: Periodically sending an information acquisition request to the terminal where the first target application is located to obtain port configuration information of the first target application; Receiving port configuration information of the first target application returned by the terminal. 如申請專利範圍第4項所述的方法,其中所述獲取所述第一目標應用程式的埠配置資訊,包括: 接收用於配置所述第一目標應用程式埠配置資訊的配置模組發送的所述第一目標應用程式的埠配置資訊。The method according to item 4 of the scope of patent application, wherein the obtaining port configuration information of the first target application comprises: Receiving port configuration information of the first target application sent by a configuration module configured to configure the first target application port configuration information. 如申請專利範圍第5或6項所述的方法,其中所述方法還包括:保存所述第一目標應用程式的埠配置資訊。The method according to item 5 or 6 of the scope of patent application, wherein the method further comprises: saving port configuration information of the first target application. 如申請專利範圍第4項所述的方法,其中所述埠配置資訊包括:埠標識和埠協議格式; 所述基於所述第一目標應用程式的埠配置資訊,拼裝產生用於喚醒所述第一目標應用程式的喚醒請求,包括: 利用所述埠標識、所述埠協議格式、及預先獲取的所述第一目標應用程式的統一資源定位符URL位址,拼裝產生用於喚醒所述第一目標應用程式的喚醒請求。The method according to item 4 of the scope of patent application, wherein the port configuration information includes: a port identifier and a port protocol format; Based on the port configuration information of the first target application, assembling and generating a wake-up request for awakening the first target application includes: Use the port identifier, the port protocol format, and the uniform resource locator URL address of the first target application program obtained in advance to assemble and generate a wake-up request for awakening the first target application program. 如申請專利範圍第1項所述的方法,其中所述方法還包括: 獲取用於啟動第二目標應用程式埠監聽服務的埠配置資訊; 基於獲取到的埠配置資訊啟動所述第二目標應用程式的埠監聽服務; 接收用於喚醒所述第二目標應用程式的喚醒請求; 基於所述喚醒請求,啟動所述第二目標應用程式,並打開所述第二目標應用程式中的目標頁面。The method of claim 1, wherein the method further comprises: Obtaining port configuration information for starting a second target application port monitoring service; Starting the port monitoring service of the second target application based on the obtained port configuration information; Receiving a wake-up request for waking up the second target application; Based on the wake-up request, the second target application is started, and a target page in the second target application is opened. 一種應用程式的喚醒方法,所述方法包括: 獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊; 基於獲取到的埠配置資訊啟動所述第一目標應用程式的埠監聽服務; 接收用於喚醒所述第一目標應用程式的喚醒請求; 基於所述喚醒請求,啟動所述第一目標應用程式,並打開所述第一目標應用程式中的目標頁面。A method for awakening an application program, the method includes: Obtaining the port configuration information for starting the first target application port monitoring service; Starting the port monitoring service of the first target application based on the obtained port configuration information; Receiving a wake-up request for waking up the first target application; Based on the wake-up request, the first target application is started, and a target page in the first target application is opened. 如申請專利範圍第10項所述的方法,其中所述埠配置資訊包括埠協議格式; 所述基於所述喚醒請求,啟動所述第一目標應用程式,並打開所述第一目標應用程式中的目標頁面,包括: 在判定所述喚醒請求為基於所述埠協議格式的喚醒請求時,基於所述喚醒請求,啟動所述第一目標應用程式,並打開所述第一目標應用程式中的目標頁面。The method of claim 10, wherein the port configuration information includes a port protocol format; Starting the first target application based on the wake-up request and opening a target page in the first target application includes: When it is determined that the wake-up request is a wake-up request based on the port protocol format, based on the wake-up request, the first target application is started, and a target page in the first target application is opened. 如申請專利範圍第10項所述的方法,其中所述基於所述喚醒請求,啟動所述第一目標應用程式,並打開所述第一目標應用程式中的目標頁面,包括: 從所述喚醒請求中解析出統一資源定位符URL位址; 存取所述URL位址啟動所述URL位址對應的應用程式,並打開所述URL位址標識的頁面。The method according to item 10 of the patent application scope, wherein, based on the wake-up request, starting the first target application and opening a target page in the first target application includes: Parsing a uniform resource locator URL address from the wake-up request; Accessing the URL address starts an application corresponding to the URL address, and opens a page identified by the URL address. 如申請專利範圍第10項所述的方法,其中所述方法還包括: 接收用於獲取所述第一目標應用程式的屬性資訊的資訊獲取請求; 回應於所述資訊獲取請求,返回所述第一目標應用程式的屬性資訊。The method of claim 10, wherein the method further comprises: Receiving an information acquisition request for acquiring attribute information of the first target application; In response to the information acquisition request, attribute information of the first target application is returned. 如申請專利範圍第10項所述的方法,其中所述獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊,包括: 接收用於配置所述第一目標應用程式埠配置資訊的配置模組發送的所述第一目標應用程式的埠配置資訊。The method according to item 10 of the scope of patent application, wherein the obtaining port configuration information for starting a first target application port monitoring service includes: Receiving port configuration information of the first target application sent by a configuration module configured to configure the first target application port configuration information. 如申請專利範圍第10項所述的方法,其中所述埠配置資訊,包括:用於標識當前埠配置資訊版本的時間戳記資訊; 所述方法還包括:在基於所述時間戳記資訊判定所述第一目標應用程式的埠配置資訊失效時,重新獲取用於啟動所述第一目標應用程式埠監聽服務的埠配置資訊。The method according to item 10 of the scope of patent application, wherein the port configuration information includes: time stamp information for identifying a version of the current port configuration information; The method further includes: when it is determined that the port configuration information of the first target application is invalid based on the timestamp information, re-obtaining the port configuration information used to start the first target application port monitoring service. 如申請專利範圍第10項所述的方法,其中所述方法還包括: 向第二目標應用程式所在終端發送用於檢測所述第二目標應用程式是否啟動埠監聽服務的請求消息; 在接收到所述終端返回的針對所述請求消息的回應訊息時,判定所述第二目標應用程式已啟動埠監聽服務,向所述第二目標應用程式所在終端發送喚醒請求,以喚醒所述第二目標應用程式。The method of claim 10, wherein the method further comprises: Sending a request message to the terminal where the second target application is located to detect whether the second target application starts the port monitoring service; Upon receiving a response message to the request message returned by the terminal, determining that the second target application has activated a port monitoring service, and sending a wake-up request to the terminal where the second target application is located to wake up the Second target application. 一種應用程式的喚醒裝置,所述裝置包括: 發送模組,用於向第一目標應用程式所在終端發送用於檢測所述第一目標應用程式是否啟動埠監聽服務的請求消息; 喚醒模組,用於在接收到所述終端返回的針對所述請求消息的回應訊息時,判定所述第一目標應用程式已啟動埠監聽服務,向所述第一目標應用程式所在終端發送喚醒請求,以喚醒所述第一目標應用程式。An application wakeup device, the device includes: A sending module, configured to send a request message to a terminal where the first target application is located to detect whether the first target application starts a port monitoring service; A wake-up module, configured to determine that the first target application has activated a port monitoring service when receiving a response message to the request message returned by the terminal, and send a wake-up to the terminal where the first target application is Request to wake up the first target application. 一種應用程式的喚醒裝置,所述裝置包括: 獲取模組,用於獲取用於啟動第一目標應用程式埠監聽服務的埠配置資訊; 埠監聽服務啟動模組,用於基於獲取到的埠配置資訊啟動所述第一目標應用程式的埠監聽服務; 接收模組,用於接收用於喚醒所述第一目標應用程式的喚醒請求; 應用喚醒模組,用於基於所述喚醒請求,啟動所述第一目標應用程式,並打開所述第一目標應用程式中的目標頁面。An application wakeup device, the device includes: An acquisition module for acquiring port configuration information for starting a first target application port monitoring service; A port monitoring service startup module, configured to start the port monitoring service of the first target application based on the obtained port configuration information; A receiving module, configured to receive a wake-up request for waking up the first target application; An application wake-up module is configured to start the first target application based on the wake-up request and open a target page in the first target application. 一種應用程式的喚醒終端,其包括記憶體和處理器;所述記憶體用於儲存有可執行程式碼;所述處理器用於讀取所述記憶體中儲存的可執行程式碼以執行申請專利範圍第1-9項中任一項所述的方法。An application wake-up terminal includes a memory and a processor; the memory is used to store executable program code; the processor is used to read the executable program code stored in the memory to execute a patent application The method according to any one of the scope items 1-9. 一種電腦可讀儲存媒體,其上儲存有電腦程式指令,其中當所述電腦程式指令被處理器執行時實現如申請專利範圍第1-9項中任一項所述的方法。A computer-readable storage medium having computer program instructions stored therein, wherein when the computer program instructions are executed by a processor, the method according to any one of claims 1-9 of the scope of patent application is implemented. 一種應用程式的喚醒終端,其包括記憶體和處理器;所述記憶體用於儲存有可執行程式碼;所述處理器用於讀取所述記憶體中儲存的可執行程式碼以執行申請專利範圍第10-16項中任一項所述的方法。An application wake-up terminal includes a memory and a processor; the memory is used to store executable program code; the processor is used to read the executable program code stored in the memory to execute a patent application The method according to any one of the scope items 10-16. 一種電腦可讀儲存媒體,其上儲存有電腦程式指令,其中當所述電腦程式指令被處理器執行時實現如申請專利範圍第10-16項中任一項所述的方法。A computer-readable storage medium having computer program instructions stored therein, wherein when the computer program instructions are executed by a processor, the method according to any one of claims 10-16 of the scope of patent application is implemented.
TW107140745A 2018-03-21 2018-11-16 Application program wake-up method and device, terminal and medium TW201941576A (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
TW201941576A true TW201941576A (en) 2019-10-16

Family

ID=67988131

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107140745A TW201941576A (en) 2018-03-21 2018-11-16 Application program wake-up method and 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

Family Cites Families (15)

* 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
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
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
CN104468592B (en) * 2014-12-12 2017-10-31 北京百度网讯科技有限公司 Login method and login system
CN105871976A (en) * 2015-11-24 2016-08-17 乐视体育文化产业发展(北京)有限公司 Data cross-domain request method and system, and devices
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
CN107659641B (en) * 2017-09-22 2020-10-13 百度在线网络技术(北京)有限公司 Method, device, server, equipment and storage medium for web awakening client

Also Published As

Publication number Publication date
WO2019179329A1 (en) 2019-09-26
CN110297663B (en) 2022-10-04
CN110297663A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
TW201941576A (en) Application program wake-up method and device, terminal and medium
CN110908879B (en) Reporting method, reporting device, reporting terminal and recording medium of buried point data
WO2019029457A1 (en) Method and apparatus for updating application program on client, and electronic device
US20140289366A1 (en) Service providing method and system for instance hosting
WO2019042311A1 (en) Software project setup task configuration method and device using jenkins
WO2020134545A1 (en) Method for updating configuration, and related product
US20160241659A1 (en) Workflow-based push notifications
US20210219117A1 (en) Thing description to resource directory mapping
US10715603B2 (en) Systems and methods for sharing application data between isolated applications executing on one or more application platforms
CN111355622A (en) Container traffic monitoring method, system and computer readable storage medium
US9723062B2 (en) System for dynamic service collaboration through identification and context of plurality of heterogeneous devices
US10554726B1 (en) Remote device drivers for internet-connectable devices
US20150088930A1 (en) Management system and method for a big data processing device
Yao et al. Design and implementation of IOT gateway based on embedded μTenux operating system
Fok et al. Enhanced coordination in sensor networks through flexible service provisioning
EP3367255B1 (en) Method and device for semantic verification
Jin et al. A sleep scheme based on MQ broker using subscribe/publish in IoT network
US20130007766A1 (en) Method and apparatus for intelligence-oriented service using context information estimation in mobile terminal
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN105824656A (en) Method, mobile terminal and server for detecting installation status of application
CN111314147B (en) Intelligent device configuration method, cloud platform and storage medium
KR20150109720A (en) Method for releasing applications and server-client system using the same
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
US10171970B2 (en) Resource notification method and system, local CSE, remote CSE and storage medium
TWI791316B (en) Method and system for implementing inter-process communications