Method for associating webpage with device, and device

By generating a unique identifier and cacheing the installation file when clicking on the web page, the problem that the application server cannot perceive the download channel is solved, the connection between the web end and the App device is realized, and the application startup speed and business functions are improved.

WO2025139876A1PCT designated stage expired Publication Date: 2025-07-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/139573
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-26
Filing Date
2024-12-16
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

In the prior art, the server of the application cannot sense the relevant data on the network end of the application, resulting in the inability to process services related to the corresponding recommended channels.

Method used

When clicking on the program link on the web page, the information of the web page is transmitted to the server, a unique identifier is generated and packaged into an installation file. The terminal device caches the identifier and installation package. After installing the application, the web page information is obtained from the server based on the identification to realize the association between the device and the web page.

Benefits of technology

The connection between the web end and the application terminal device is realized. The server can sense the web page information of the download application, improve the application startup speed and response speed, and provide the application's business function permissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024139573_03072025_PF_FP_ABST
    Figure CN2024139573_03072025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a method for associating a webpage with a device, and a device. The method comprises: in response to a triggering operation on an installation file corresponding to an application on a webpage, obtaining from a server the installation file corresponding to the application, and caching the installation file, wherein the installation file comprises an installation package and a unique identifier of the application, and the unique identifier is determined on the basis of incoming parameters of the webpage; installing the application on the basis of the installation package of the application; when the application is installed and the application is started, reading from a cache the unique identifier corresponding to the installation file; and then, on the basis of the unique identifier, obtaining, from the server, webpage information corresponding to the incoming parameters corresponding to the unique identifier.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for associating webpage with device

[0001] This application claims priority to Chinese patent application No. 202311812841.8 filed on December 26, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] The embodiments of the present disclosure relate to a method and device for associating a webpage with a device. Background Art

[0003] When searching for recommendations on the web, after the user downloads the corresponding application (Application, App) according to the download link on the web, the server corresponding to the App is generally unable to perceive the relevant data such as the corresponding recommendation channel, and therefore cannot process some business related to the corresponding recommendation channel.

[0004] In other words, if you want to get relevant data, you need to associate the web terminal with the device where the web terminal is located, but the web terminal generally does not have information to identify the device. Therefore, a solution is needed to associate the web with the App device. Summary of the Invention

[0005] The embodiments of the present disclosure provide a method and device for associating a web page with a device, so as to solve the problem of being unable to associate the web side with the App device.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for associating a webpage with a device, which is applied to a terminal device, and the method includes:

[0007] In response to a triggering operation on an installation file corresponding to an application on a webpage, obtaining the installation file corresponding to the application from a server and caching it, wherein the installation file includes an installation package of the application and a unique identifier, wherein the unique identifier is determined based on parameters input from the webpage;

[0008] Installing the application according to the installation package of the application;

[0009] When the application is installed and started, reading the unique identifier corresponding to the installation file from the cache;

[0010] Based on the unique identifier, webpage information corresponding to the input parameter corresponding to the unique identifier is obtained from the server.

[0011] In a second aspect, an embodiment of the present disclosure provides a method for associating a webpage with a device, which is applied to a server, and the method includes:

[0012] Sending an installation file of an application to a terminal device, the installation file including an installation package of the application and a unique identifier, the unique identifier being determined based on an input parameter corresponding to a webpage, the webpage being a page displayed on the terminal device in response to a triggering operation on the installation file corresponding to the application;

[0013] Determining, based on the unique identifier sent by the terminal device, webpage information corresponding to the input parameter corresponding to the unique identifier;

[0014] Sending web page information corresponding to the input parameter corresponding to the unique identifier to the terminal device.

[0015] In a third aspect, an embodiment of the present disclosure provides a device for associating a webpage with a device, including:

[0016] a first processing unit, configured to, in response to a triggering operation on an installation file corresponding to an application on a webpage, obtain the installation file corresponding to the application from a server and cache the installation file, wherein the installation file includes an installation package of the application and a unique identifier, where the unique identifier is determined based on parameters input from the webpage;

[0017] a second processing unit, configured to install the application according to the installation package of the application;

[0018] a third processing unit, configured to read the unique identifier corresponding to the installation file from a cache when the application is installed and started;

[0019] The acquiring unit is configured to acquire, based on the unique identifier, web page information corresponding to the input parameter corresponding to the unique identifier from the server.

[0020] In a fourth aspect, an embodiment of the present disclosure provides a device for associating a webpage with a device, including:

[0021] a sending unit, configured to send an installation file of an application to a terminal device, wherein the installation file includes an installation package of the application and a unique identifier, wherein the unique identifier is determined based on an input parameter corresponding to a webpage, wherein the webpage is a page displayed on the terminal device in response to a triggering operation on the installation file corresponding to the application;

[0022] a processing unit, configured to determine, based on the unique identifier sent by the terminal device, webpage information corresponding to the input parameter corresponding to the unique identifier;

[0023] The sending unit is further configured to send web page information corresponding to the input parameter corresponding to the unique identifier to the terminal device.

[0024] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0025] The memory stores computer-executable instructions;

[0026] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for associating a web page with a device as described in the first and second aspects above.

[0027] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method of associating a web page with a device as described in the first and second aspects above is implemented.

[0028] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method for associating a web page with a device as described in the first and second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0030] FIG1 is a diagram of an application scenario provided by an embodiment of the present disclosure;

[0031] FIG2 is a flowchart of a method for associating a web page with a device according to an embodiment of the present disclosure;

[0032] FIG3 is a second flow chart of a method for associating a web page with a device according to an embodiment of the present disclosure;

[0033] FIG4 is a third flow chart of a method for associating a web page with a device according to an embodiment of the present disclosure;

[0034] FIG5 is a structural diagram of a first device for associating a web page with a device according to an embodiment of the present disclosure;

[0035] FIG6 is a structural diagram of a second device for associating a web page with a device according to an embodiment of the present disclosure; and

[0036] FIG7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0038] When searching for recommendations on the network (web) side where the terminal device is located, for example, an application (Application, App), after the user downloads the corresponding application such as the recommendation according to the download link on the web side, the server corresponding to the App is generally unable to perceive the relevant data such as the corresponding recommendation channel, and therefore cannot process some services related to the corresponding recommendation channel.

[0039] That is, the server corresponding to the App cannot perceive the network end through which the application was downloaded, that is, through which web page the download link was clicked; when the application is downloaded from the web page by clicking the download link, the corresponding user needs to be given the permission to use the application's business functions, etc., but this cannot be done.

[0040] Therefore, to access relevant data, the web client needs to be associated with the device where the web client is located, but the web client generally does not have device identification information. Therefore, a solution is needed to associate the web with the app device, that is, to build a data transmission channel from the web to the personal computer (PC) app, and associate the web identity document (ID) in the PC browser page with the decentralized identity (DiD) of the PC application.

[0041] Based on the above technical problems, the inventor's technical conception is as follows: if there is a program link on a web page, when the user clicks on the program link, if the information of the web page where the program link is located is transmitted to the server corresponding to the program link, and when the server sends the installation file to the terminal device, the identifier corresponding to the information of the web page and the installation package can be packaged into an installation file so that the terminal device can cache it. When the application is subsequently installed and opened, the terminal device can obtain the web page information corresponding to the identifier from the server based on the identifier, so that the web is associated with the terminal device where the application is located.

[0042] FIG1 is a diagram of an application scenario provided by an embodiment of the present disclosure. As shown in FIG1 , the application scenario includes: a server and a terminal device.

[0043] In the user interface of the terminal device, a web page with browser A is opened, and on this web page, the download link "www.xxxx.aaaa" of application B is displayed. At this time, the user moves the mouse and clicks on the download link. At this time, a request for obtaining the installation file is sent to the server pointed to by the link. The request carries the incoming parameters that identify the web page where the program link is located. The server then sends the identifier and installation package corresponding to the incoming parameters to the terminal device. The terminal device caches the obtained information. After that, after the application is successfully installed and the application is started, based on the identifier, the web page information corresponding to the incoming parameters corresponding to the identifier is obtained from the server.

[0044] Furthermore, if the input parameter also carries an application invitation code, the terminal device may also receive usage permission information of the service function of the application corresponding to the application invitation code sent by the server.

[0045] The above is an example of an application scenario shown in the present disclosure and does not limit the application scenario. The following is a detailed technical solution of an embodiment of the present disclosure.

[0046] It should be understood that the execution subject of the embodiment of the present disclosure is an electronic device, which may be a terminal device or a server based on the specific steps of execution.

[0047] FIG2 is a flow chart of a method for associating a web page with a device according to an embodiment of the present disclosure. As shown in FIG2 , the method for associating a web page with a device includes:

[0048] Step 21: In response to a triggering operation on the installation file corresponding to the application on the web page, the terminal device obtains the installation file corresponding to the application from the server and caches it;

[0049] The installation file includes the installation package of the application and a unique identifier, which is determined based on the input parameters of the web page;

[0050] In this step, the user can obtain the installation file corresponding to the application from the server by triggering the installation file corresponding to the application on the web page of the terminal device.

[0051] Optionally, the triggering operation may be a user clicking a program link corresponding to an installation file on a web page, and in this case, the terminal device obtains the corresponding installation file from the server corresponding to the program link in response to the click.

[0052] Furthermore, after obtaining the installation file of the application sent by the server, the installation file is cached. One possible implementation is global caching, which can avoid the application from repeatedly downloading the required resources from the server, reducing network delays, and also avoiding repeated calculations on the same resources, thereby improving the startup speed and response speed of the application.

[0053] In addition, in order to uniquely identify the installation file in the cache, the installation file in the cache can be quickly found and obtained through the key value, that is, the key value corresponding to the installation file is generated based on the installation file.

[0054] Optionally, the installation file includes an installation package of the application and a unique identifier. One possible implementation is that the file name of the installation package can be named based on the unique identifier to obtain the installation file.

[0055] For example, the installation file name is "capcut_123456789_installer.dmg", where the unique identifier can be "123456789".

[0056] Optionally, the unique identifier is determined by the server based on input parameters of the web page, and the input parameters include the web page, that is, the web page where the program link is located, so that the terminal device can determine the web page where the download link corresponding to the installation file is located.

[0057] Optionally, the terminal device may also parse the installation file to obtain a unique identifier, and then share the unique identifier with related applications on other devices.

[0058] Under this implementation, the terminal device can also parse the installation file to obtain a unique identifier in the installation file, and share the unique identifier with related applications of other devices.

[0059] For example, Mac can share data between multiple apps through keychain writing technology; Windows can share data between multiple apps by writing to the registry.

[0060] Step 22: The terminal device installs the application according to the application installation package;

[0061] In this step, after obtaining the installation file, the terminal device parses the installation file to obtain the installation package corresponding to the application, and then runs the installation package to complete the installation of the application.

[0062] Step 23: When the application is installed and started, the terminal device reads the unique identifier corresponding to the installation file from the cache;

[0063] In this step, after the terminal device completes the installation of the application, when starting the application, the terminal device can read the unique identifier corresponding to the installation file from the cache.

[0064] In a possible implementation, the key value determined above may be used to read the unique identifier corresponding to the installation file from the path indicated by the key value according to the key value.

[0065] Optionally, the operation of starting the application can be triggered by the user or by the system default of the terminal device.

[0066] Step 24: The terminal device sends a unique identifier to the server;

[0067] Optionally, before step 24, the terminal device may also encrypt the unique identifier to obtain an encrypted unique identifier, and the encrypted unique identifier is used to verify the encrypted identifier of the server, and the encryption method of the server is consistent with the encryption method of the terminal device.

[0068] In this implementation, in order to prevent data from being swiped through ID collision, an interface signature verification process can be added. For example, all incoming parameters can be encrypted and signed using sha256Hmac+key.

[0069] The encryption method of the server is consistent with that of the terminal device, which allows subsequent unique identification verification on the server side to pass.

[0070] Step 25: The server determines the webpage information corresponding to the input parameter corresponding to the unique identifier based on the unique identifier sent by the terminal device;

[0071] In this step, the server determines the webpage information corresponding to the incoming parameters in the pre-cache based on the unique identifier sent by the terminal device.

[0072] Optionally, step 25 may be implemented as follows: the server verifies the encrypted unique identifier sent by the terminal device according to the unique identifier encrypted by the server; after the verification is passed, the server sends web page information corresponding to the input parameters corresponding to the unique identifier to the terminal device.

[0073] That is, the encrypted unique identifier sent from the terminal device side and the unique identifier encrypted by the server are judged. If the two are similar, the verification is successful.

[0074] Step 26: The terminal device obtains web page information corresponding to the input parameter corresponding to the unique identifier from the server.

[0075] In this implementation, the app starts, reads the mapping unique identifier written in the previous step from the terminal device, and uses the obtained unique identifier to obtain the mapped data from the server. This completes the entire link, obtaining the parameters passed in from the app to the web.

[0076] The method for associating a web page with a device provided by the embodiment of the present disclosure is that, in response to a triggering operation on the installation file corresponding to the application on the web page, the terminal device obtains the installation file corresponding to the application from the server and caches it. The installation file includes the installation package of the application and a unique identifier. The unique identifier is determined based on the input parameters of the web page. The application is installed according to the installation package of the application. When the application is installed and the application is started, the unique identifier corresponding to the installation file is read from the cache. Based on the unique identifier, the web page information corresponding to the input parameters corresponding to the unique identifier is obtained from the server. In this technical solution, the association between the web and the App device is achieved by transmitting the information of the web page where the program link is located together with the installation package to the terminal device, and the server side can also perceive the web page information corresponding to the initiation of the installation package download.

[0077] Based on the above embodiment, FIG3 is a second flow chart of the method for associating a web page with a device provided by the embodiment of the present disclosure. As shown in FIG3 , the method for associating a web page with a device includes:

[0078] Step 31: The terminal device sends a request to the server for obtaining the installation file corresponding to the trigger operation;

[0079] The installation file acquisition request includes input parameters.

[0080] In this step, upon detecting a triggering operation, the terminal device generates an installation file acquisition request corresponding to the triggering operation and sends the installation file acquisition request to the server.

[0081] In a possible implementation, upon detecting a user clicking a program link on a web page, the terminal device sends a request for obtaining an installation file to a server pointed to by the program link.

[0082] In a possible implementation, the input parameter carried in the request may be query information.

[0083] For example, the link on the browser page:

[0084] www.capcut.com?activity_type=XXX&utm_source=XXX&utm_medium=referral

[0085] Optionally, the incoming parameters also include the application invitation code from the web page.

[0086] Under this implementation, an application invitation code can be assigned in advance to the web page where the program link is located. For example, if a user clicks on the program link through this web page, the installed application will have the application invitation code.

[0087] For example, an invitation code for a 7-day membership of an application.

[0088] Step 32: The server generates a unique identifier based on the input parameters;

[0089] In this step, after obtaining the installation file acquisition request, the server parses the installation file acquisition request to obtain input parameters, and generates a unique identifier corresponding to the input parameters based on the input parameters.

[0090] Continuing with the above possible implementation, the query key-value pair in the domain name is parsed to generate a json, and the API is used to cache it to the server, generating a mapping id to the web page, that is, a unique identifier corresponding to the incoming parameters.

[0091] Among them, the API interface provides a unified data consumption entry.

[0092] Furthermore, the mapped cache data (ie, the data transmitted in the web page link) can be obtained from the server through the generated ID.

[0093] Furthermore, optionally, the server may also encrypt the obtained unique identifier to obtain an encrypted unique identifier, and the encrypted unique identifier is used to verify the encrypted identifier on the terminal device. The encryption method of the server is consistent with the encryption method of the terminal device.

[0094] In this implementation, in order to prevent data from being swiped through ID collision, an interface signature verification process can be added. For example, all incoming parameters can be encrypted and signed using sha256Hmac+key.

[0095] That is, in the subsequent implementation, the server judges the encrypted unique identifier sent from the terminal device side and the unique identifier encrypted by the server itself. If the two are similar, the verification is successful and the following steps can be executed.

[0096] Step 33: The server sends the installation file to the terminal device;

[0097] The installation file carries a unique identifier and an installation package of the application.

[0098] In this step, after the unique identifier is determined, the server sends the installation file including the unique identifier and the installation package of the application to the terminal device.

[0099] In a possible implementation, the installation file may be a file obtained by naming the installation package based on the unique identifier.

[0100] Further, optionally, when the input parameters also include an application invitation code from a web page, the terminal device receives usage permission information of at least one business function of the application corresponding to the application invitation code sent by the server.

[0101] Under this implementation, when the incoming parameters also include the application invitation code of the web page, after the application is logged in, based on the application invitation code, the server can send the usage permission information of at least one business function of the application corresponding to the application invitation code to the terminal device, so that the user corresponding to the terminal device can have the usage permission of at least one business function in the application.

[0102] For example, based on the invitation code of a 7-day membership of an application, the user can use the benefits of the 7-day membership of the application.

[0103] In a method for associating a webpage with a device, an embodiment of the present disclosure provides a method in which a terminal device sends a request to a server for obtaining an installation file corresponding to a triggering operation. The request includes input parameters, and the server generates a unique identifier based on the input parameters. The server then sends an installation file to the terminal device, the installation file containing the unique identifier and the application's installation package. In this technical solution, the input parameters corresponding to the webpage containing the program link are sent to the server for subsequent association between the terminal device and the webpage.

[0104] Based on the above embodiment, FIG4 is a flow chart of a method for associating a web page with a device according to an embodiment of the present disclosure. As shown in FIG4 , the method for associating a web page with a device may include:

[0105] Step 1. Open the sharing page and copy the sharing link;

[0106] Step 2: The browser opens the shared page and the user clicks to download.

[0107] Step 3: The web page uploads query information to the server;

[0108] Step 4: The server returns a unique identifier;

[0109] Step 5: The webpage downloads the installation package from the Content Delivery Network (CDN) according to the channel request;

[0110] Step 6: The webpage will cache the installation package after naming it with a unique identifier;

[0111] Step 7. Start the downloader to install the installation package;

[0112] Step 8. Install the downloader and start the PC App. Read the cache in the PC App to obtain the unique identifier.

[0113] Step 9: The PC App obtains the query information of the web page cache through the unique identifier on the server side;

[0114] Step 10. The server returns the query information value PC App carried by the hoist;

[0115] Step 11: The PC App parses and consumes the query information.

[0116] The method for associating a web page with a device provided in the embodiment of the present disclosure has a technical solution and technical effects similar to those of the above embodiment and will not be described in detail here.

[0117] Based on the above method embodiment, FIG5 is a structural diagram of a first device for associating a webpage with a device provided in an embodiment of the present disclosure. As shown in FIG5 , the device for associating a webpage with a device is applied to a terminal device and includes:

[0118] A first processing unit 51 is configured to, in response to a triggering operation on a webpage for an installation file corresponding to an application, obtain the installation file corresponding to the application from a server and cache it, wherein the installation file includes the application installation package and a unique identifier, where the unique identifier is determined based on parameters input from the webpage;

[0119] A second processing unit 52 is configured to install the application according to the application installation package;

[0120] The third processing unit 53 is configured to read the unique identifier corresponding to the installation file from the cache when the application is installed and started;

[0121] The acquiring unit 54 is configured to acquire, based on the unique identifier, webpage information corresponding to the input parameter corresponding to the unique identifier from the server.

[0122] In one or more embodiments, before obtaining the installation file corresponding to the application from the server and caching it, the first processing unit 51 is further configured to:

[0123] Sending a request to the server for obtaining the installation file corresponding to the trigger operation, where the request includes the input parameters;

[0124] Receive the installation file sent by the server.

[0125] In one or more embodiments, the input parameter includes an application invitation code of the webpage, and the second processing unit 52 is further configured to:

[0126] Receive usage permission information of at least one business function of the application corresponding to the application invitation code sent by the server.

[0127] In one or more embodiments, the second processing unit 52 is further configured to:

[0128] Parse the installation file and obtain a unique identifier;

[0129] Share the unique ID with related applications on other devices.

[0130] In one or more embodiments, before obtaining webpage information corresponding to the input parameter corresponding to the unique identifier from the server based on the unique identifier, the second processing unit 52 is further configured to:

[0131] The unique identifier is encrypted to obtain an encrypted unique identifier, and the encrypted unique identifier is used to verify the encrypted identifier of the server. The encryption method of the server is consistent with the encryption method of the terminal device.

[0132] Based on the above method embodiment, FIG6 is a structural diagram of a second device for associating a webpage with a device provided in an embodiment of the present disclosure. As shown in FIG6 , the device for associating a webpage with a device is applied to a server and includes:

[0133] A sending unit 61 is configured to send an installation file of an application to a terminal device. The installation file includes an installation package of the application and a unique identifier. The unique identifier is determined based on input parameters corresponding to a webpage. The webpage is a page displayed on the terminal device in response to a triggering operation on the installation file corresponding to the application.

[0134] The processing unit 62 is configured to determine, based on the unique identifier sent by the terminal device, webpage information corresponding to the input parameter corresponding to the unique identifier;

[0135] The sending unit 61 is further configured to send web page information corresponding to the input parameter corresponding to the unique identifier to the terminal device.

[0136] In one or more embodiments, before sending the installation file of the application to the terminal device, the sending unit 61 is configured to receive an installation file acquisition request corresponding to a triggering operation sent by the terminal device, where the installation file acquisition request includes an input parameter;

[0137] The processing unit 62 is used to generate a unique identifier according to the input parameters;

[0138] The sending unit 61 is further configured to send an installation file to the terminal device, where the installation file carries a unique identifier and an installation package of the application.

[0139] In one or more embodiments, the input parameters include an application invitation code of a web page, and the sending unit 61 is further configured to:

[0140] The terminal device is sent usage permission information of at least one business function of the application corresponding to the application invitation code.

[0141] In one or more embodiments, before sending the webpage information corresponding to the input parameter corresponding to the unique identifier to the terminal device, the processing unit 62 is further configured to:

[0142] The unique identifier is encrypted to obtain an encrypted unique identifier, which is used to verify the encrypted identifier on the terminal device. The encryption method of the server is consistent with the encryption method of the terminal device;

[0143] Accordingly, the sending unit 61 sends the webpage information corresponding to the input parameter corresponding to the unique identifier to the terminal device, specifically for:

[0144] Verify the encrypted unique identifier sent by the terminal device based on the unique identifier encrypted by the server;

[0145] After the verification is passed, the web page information corresponding to the input parameters corresponding to the unique identifier is sent to the terminal device.

[0146] The technical solutions and technical effects of the web page and device association device provided in the embodiments of the present disclosure are similar to those in the above embodiments and will not be repeated here.

[0147] To implement the above embodiment, the present disclosure further provides an electronic device. FIG7 is a schematic diagram of the structure of the electronic device provided by the present disclosure. Referring to FIG7 , the electronic device can be a terminal device or a server, and the corresponding method of the corresponding device is executed according to actual conditions.

[0148] Among them, the terminal devices may include but are not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc.; the server is the server to which the application belongs.

[0149] The electronic device shown in FIG7 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0150] As shown in FIG7 , the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 71, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 72 or a program loaded from a storage device 78 into a random access memory (RAM) 73. Various programs and data required for the operation of the electronic device are also stored in RAM 73. The processing device 71, ROM 72, and RAM 73 are connected to each other via a bus 74. An input / output (I / O) interface 75 is also connected to the bus 74.

[0151] Typically, the following devices may be connected to the I / O interface 75: an input device 76 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 77 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 78 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 79. The communication device 79 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 7 illustrates an electronic device having various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0152] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 79, or installed from the storage device 78, or installed from the ROM 72. When the computer program is executed by the processing device 71, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0153] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0154] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0155] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0156] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0157] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0159] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0160] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0161] In a first aspect, according to one or more embodiments of the present disclosure, a method for associating a webpage with a device is provided, which is applied to a terminal device, and the method includes:

[0162] In response to a triggering operation on an installation file corresponding to an application on a webpage, obtaining the installation file corresponding to the application from a server and caching it, wherein the installation file includes an installation package of the application and a unique identifier, wherein the unique identifier is determined based on parameters input from the webpage;

[0163] Installing the application according to the installation package of the application;

[0164] When the application is installed and started, reading the unique identifier corresponding to the installation file from the cache;

[0165] Based on the unique identifier, webpage information corresponding to the input parameter corresponding to the unique identifier is obtained from the server.

[0166] In one or more embodiments, before obtaining the installation file corresponding to the application from the server and caching it, the method further includes:

[0167] Sending an installation file acquisition request corresponding to the trigger operation to the server, wherein the installation file acquisition request includes the input parameter;

[0168] Receive the installation file sent by the server.

[0169] In one or more embodiments, the input parameter includes an application invitation code of the webpage, and the method further includes:

[0170] Receive usage permission information of at least one business function of the application corresponding to the application invitation code sent by the server.

[0171] In one or more embodiments, the method further comprises:

[0172] Parsing the installation file to obtain the unique identifier;

[0173] The unique identifier is shared with related applications on other devices.

[0174] In one or more embodiments, before obtaining, from the server based on the unique identifier, webpage information corresponding to the input parameter corresponding to the unique identifier, the method further includes:

[0175] The unique identifier is encrypted to obtain an encrypted unique identifier, and the encrypted unique identifier is used to verify with the identifier encrypted by the server, and the encryption method of the server is consistent with the encryption method of the terminal device.

[0176] In a second aspect, according to one or more embodiments of the present disclosure, a method for associating a webpage with a device is provided, which is applied to a server, and the method includes:

[0177] Sending an installation file of an application to a terminal device, the installation file including an installation package of the application and a unique identifier, the unique identifier being determined based on an input parameter corresponding to a webpage, the webpage being a page displayed on the terminal device in response to a triggering operation on the installation file corresponding to the application;

[0178] Determining, based on the unique identifier sent by the terminal device, webpage information corresponding to the input parameter corresponding to the unique identifier;

[0179] Sending web page information corresponding to the input parameter corresponding to the unique identifier to the terminal device.

[0180] In one or more embodiments, before sending the installation file of the application to the terminal device, the method further includes:

[0181] Receiving an installation file acquisition request corresponding to the trigger operation sent by the terminal device, the installation file acquisition request including the input parameter;

[0182] Generate the unique identifier according to the input parameters;

[0183] The installation file is sent to the terminal device, where the installation file carries the unique identifier and the installation package of the application.

[0184] In one or more embodiments, the input parameter includes an application invitation code of the webpage, and the method further includes:

[0185] Sending usage permission information of at least one business function of the application corresponding to the application invitation code to the terminal device.

[0186] In one or more embodiments, before sending the webpage information corresponding to the input parameter corresponding to the unique identifier to the terminal device, the method further includes:

[0187] Encrypting the unique identifier to obtain an encrypted unique identifier, wherein the encrypted unique identifier is used to verify the encrypted identifier on the terminal device, wherein the encryption method of the server is consistent with the encryption method of the terminal device;

[0188] Accordingly, the sending of webpage information corresponding to the input parameter corresponding to the unique identifier to the terminal device includes:

[0189] Verifying the encrypted unique identifier sent by the terminal device according to the unique identifier encrypted by the server;

[0190] After the verification is passed, the web page information corresponding to the input parameter corresponding to the unique identifier is sent to the terminal device.

[0191] In a third aspect, according to one or more embodiments of the present disclosure, a device for associating a webpage with a device is provided, which is applied to a terminal device and includes:

[0192] a first processing unit, configured to, in response to a triggering operation on an installation file corresponding to an application on a webpage, obtain the installation file corresponding to the application from a server and cache the installation file, wherein the installation file includes an installation package of the application and a unique identifier, where the unique identifier is determined based on parameters input from the webpage;

[0193] a second processing unit, configured to install the application according to the installation package of the application;

[0194] a third processing unit, configured to read the unique identifier corresponding to the installation file from a cache when the application is installed and started;

[0195] The acquiring unit is configured to acquire, based on the unique identifier, web page information corresponding to the input parameter corresponding to the unique identifier from the server.

[0196] In one or more embodiments, before obtaining the installation file corresponding to the application from the server and caching it, the first processing unit is further configured to:

[0197] Sending an installation file acquisition request corresponding to the trigger operation to the server, wherein the installation file acquisition request includes the input parameter;

[0198] Receive the installation file sent by the server.

[0199] In one or more embodiments, the input parameter includes an application invitation code of the webpage, and the second processing unit is further configured to:

[0200] Receive usage permission information of at least one business function of the application corresponding to the application invitation code sent by the server.

[0201] In one or more embodiments, the second processing unit is further configured to:

[0202] Parsing the installation file to obtain the unique identifier;

[0203] The unique identifier is shared with related applications on other devices.

[0204] In one or more embodiments, before obtaining, from the server based on the unique identifier, webpage information corresponding to the input parameter corresponding to the unique identifier, the second processing unit is further configured to:

[0205] The unique identifier is encrypted to obtain an encrypted unique identifier, and the encrypted unique identifier is used to verify with the identifier encrypted by the server, and the encryption method of the server is consistent with the encryption method of the terminal device.

[0206] In a fourth aspect, according to one or more embodiments of the present disclosure, a device for associating a webpage with a device is provided, which is applied to a server and includes:

[0207] a sending unit, configured to send an installation file of an application to a terminal device, wherein the installation file includes an installation package of the application and a unique identifier, wherein the unique identifier is determined based on an input parameter corresponding to a webpage, wherein the webpage is a page displayed on the terminal device in response to a triggering operation on the installation file corresponding to the application;

[0208] a processing unit, configured to determine, based on the unique identifier sent by the terminal device, webpage information corresponding to the input parameter corresponding to the unique identifier;

[0209] The sending unit is further configured to send web page information corresponding to the input parameter corresponding to the unique identifier to the terminal device.

[0210] In one or more embodiments, before sending the installation file of the application to the terminal device, the obtaining unit is configured to receive an installation file obtaining request corresponding to the triggering operation sent by the terminal device, wherein the installation file obtaining request includes the input parameter;

[0211] A processing unit, configured to generate the unique identifier according to the input parameters;

[0212] The sending unit is further configured to send the installation file to the terminal device, where the installation file carries the unique identifier and the installation package of the application.

[0213] In one or more embodiments, the input parameter includes the application invitation code of the webpage, and the sending unit is further configured to:

[0214] Sending usage permission information of at least one business function of the application corresponding to the application invitation code to the terminal device.

[0215] In one or more embodiments, before sending the webpage information corresponding to the input parameter corresponding to the unique identifier to the terminal device, the processing unit is further configured to:

[0216] Encrypting the unique identifier to obtain an encrypted unique identifier, wherein the encrypted unique identifier is used to verify the encrypted identifier on the terminal device, wherein the encryption method of the server is consistent with the encryption method of the terminal device;

[0217] Accordingly, the sending unit sends the webpage information corresponding to the input parameter corresponding to the unique identifier to the terminal device, specifically for:

[0218] Verifying the encrypted unique identifier sent by the terminal device according to the unique identifier encrypted by the server;

[0219] After the verification is passed, the web page information corresponding to the input parameter corresponding to the unique identifier is sent to the terminal device.

[0220] In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0221] The memory stores computer-executable instructions;

[0222] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method of associating a web page with a device as described in the first or second aspect and various possible designs of the first or second aspect.

[0223] In a sixth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method of associating a web page with a device as described in the first or second aspect and various possible designs of the first or second aspect is implemented.

[0224] In the seventh aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the method of associating a web page with a device as described in the first or second aspect and various possible designs of the first or second aspect.

[0225] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0226] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0227] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for associating a web page with a device, which is applied to a terminal device. The association method includes: Responding to a trigger operation on an installation file corresponding to an application on a web page, obtaining the installation file corresponding to the application from a server and caching it. Wherein, the installation file includes an installation package of the application and a unique identifier, and the unique identifier is determined according to the incoming parameters of the web page; Installing the application according to the installation package of the application; When the application is installed and started, reading the unique identifier corresponding to the installation file from the cache; Based on the unique identifier, obtaining the web page information corresponding to the incoming parameters corresponding to the unique identifier from the server.

2. The association method according to claim 1, wherein Before obtaining the installation file corresponding to the application from the server and caching it, the association method further includes: Sending a request for obtaining the installation file corresponding to the trigger operation to the server, and the request for obtaining the installation file includes the incoming parameters; Receiving the installation file sent by the server.

3. The association method according to claim 1 or 2, wherein, The incoming parameters include an application invitation code of the web page, and the association method further includes: Receiving the usage permission information of at least one business function of the application corresponding to the application invitation code sent by the server.

4. The association method according to any one of claims 1-3 further includes: Parsing the installation file to obtain the unique identifier; Sharing the unique identifier to a related application of other devices.

5. The association method according to any one of claims 1-4, wherein, Before obtaining the web page information corresponding to the incoming parameters corresponding to the unique identifier from the server based on the unique identifier, the association method further includes: Encrypting the unique identifier to obtain an encrypted unique identifier, where the encrypted unique identifier is used to verify with the encrypted identifier of the server, and the encryption method of the server is the same as that of the terminal device.

6. A method for associating a web page with a device, which is applied to a server. The association method includes: Sending an installation file of an application to a terminal device. The installation file includes an installation package of the application and a unique identifier, and the unique identifier is determined according to the incoming parameters corresponding to the web page. The web page is the page on the terminal device that responds to the trigger operation on the installation file corresponding to the application; Determining the web page information corresponding to the incoming parameters corresponding to the unique identifier according to the unique identifier sent by the terminal device; Sending the web page information corresponding to the incoming parameters corresponding to the unique identifier to the terminal device.

7. The association method according to claim 6, wherein, Before sending the installation file of the application to the terminal device, the association method further includes: Receiving a request for obtaining the installation file corresponding to the trigger operation sent by the terminal device, and the request for obtaining the installation file includes the incoming parameters; Generating the unique identifier according to the incoming parameters; Sending the installation file to the terminal device, and the installation file carries the unique identifier and the installation package of the application.

8. The association method according to claim 6 or 7, wherein, The incoming parameters include an application invitation code of the web page, and the association method further includes: Send usage permission information of at least one service function of the application corresponding to the application invitation code to the terminal device.

9. The association method according to any one of claims 6-8, wherein, Before sending the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device, the association method further includes: Encrypt the unique identifier to obtain an encrypted unique identifier, where the encrypted unique identifier is used to verify with the encrypted identifier on the terminal device, and the encryption method of the server is the same as that of the terminal device; Correspondingly, sending the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device includes: Verify the encrypted unique identifier sent by the terminal device according to the encrypted unique identifier of the server; After the verification passes, send the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device.

10. An associated device between a web page and a device, applied to a terminal device, the associated device includes: A first processing unit, configured to, in response to a trigger operation on an installation file corresponding to an application on a web page, obtain the installation file corresponding to the application from a server and cache it, where the installation file includes an installation package of the application and a unique identifier, and the unique identifier is determined according to the incoming parameter of the web page; A second processing unit, configured to install the application according to the installation package of the application; A third processing unit, configured to, when the application is installed and the application is started, read the unique identifier corresponding to the installation file from the cache; An obtaining unit, configured to obtain the web page information corresponding to the incoming parameter corresponding to the unique identifier from the server based on the unique identifier.

11. An associated device between a web page and a device, applied to a server, the associated device includes: A sending unit, configured to send an installation file of an application to a terminal device, where the installation file includes an installation package of the application and a unique identifier, and the unique identifier is determined according to the incoming parameter corresponding to the web page, and the web page is the page on the terminal device in response to a trigger operation on the installation file corresponding to the application; A processing unit, configured to determine the web page information corresponding to the incoming parameter corresponding to the unique identifier according to the unique identifier sent by the terminal device; The sending unit is further configured to send the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device.

12. An electronic device, comprising: A processor and a memory; Wherein, the memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the processor executes the web page and device association method according to any one of claims 1 to 9.

13. A computer-readable storage medium, wherein, Computer execution instructions are stored in the computer-readable storage medium, and when the processor executes the computer execution instructions, the web page and device association method according to any one of claims 1 to 9 is implemented.

14. A computer program product comprising a computer program, wherein, When the computer program is executed by the processor, the web page and device association method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Webpage cache warm-up method and apparatus, electronic device and computer readable medium

    CN108694215A

  • Application program installation package generation method and device

    CN110401717A

  • Channel tracing method and related device

    CN110825424A

  • Installation package permission providing method and device, equipment and storage medium

    CN112347465A

  • Typeless secure login to web-based services

    US9077713B1