Webpage and equipment association method and equipment

By including a unique identifier determined based on the incoming parameters of the web page in the application installation file, the association between the web and the App device is realized, the problem that the server cannot perceive the recommended channel is solved, and the processing of services related to the recommended channel is realized.

CN120216219APending Publication Date: 2025-06-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311812841.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

The prior art cannot associate the application on the web side with the device that downloads the application, resulting in the server being unable to perceive the recommended channel and other related data, and cannot process services related to the recommended channel.

Method used

By responding to the user's triggering operation on the application installation file on the web page, the installation file is obtained from the server and includes a unique identifier in the installation file, which is determined based on the incoming parameters of the web page. After the installation is completed, the terminal device can obtain web page information from the server based on the unique identifier to realize the association between the web and the App device.

Benefits of technology

The connection between the web and the App device is realized, allowing the server to perceive the web page information initiated by the installation package download, thereby processing services related to the recommended channel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120216219A_ABST
    Figure CN120216219A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a webpage and device association method and device.By responding to a triggering operation on an installation file corresponding to an application program on a webpage, the installation file corresponding to the application program is obtained from a server and cached, the installation file comprises an installation package and a unique identifier of the application program, and the unique identifier of the application program is stored in the server. The unique identifier is determined according to an incoming parameter of a webpage, installing the application program according to the installation package of the application program, reading the unique identifier corresponding to the installation file from the cache when the application program is installed and started, and then updating the installation file on the basis of the unique identifier. And obtaining webpage information corresponding to the incoming parameter corresponding to the unique identifier from the server. In the technical scheme, the information of the webpage where the program link is located and the installation package are transmitted to the terminal equipment together, so that the association of the web and the App equipment is realized, and the server side can also sense the webpage information corresponding to the downloading initiation of the installation package.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer and network communication technologies, and in particular, to a method and device for associating a web page with a device. Background Art

[0002] When searching and recommending on the web side, after a user downloads a recommended application (App) and the like according to a download link on the web side, the server corresponding to the APP generally cannot perceive relevant data such as the recommended channel corresponding to the recommendation, etc., and thus cannot process some operations related to the corresponding recommended channel.

[0003] That is, to obtain relevant data, it is necessary to associate the web side with the device where the web side is located, but generally there is no information identifying the device on the web side. Therefore, a solution for associating the web with the App device needs to be proposed. Summary of the Invention

[0004] Embodiments of the present disclosure provide a method and device for associating a web page with a device to solve the problem that the web side cannot be associated with the App device.

[0005] In a first aspect, embodiments of the present disclosure provide a method for associating a web page with a device, which is applied to a terminal device. The method includes:

[0006] 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. The installation file includes an installation package of the application and a unique identifier, and the unique identifier is determined according to an incoming parameter of the web page;

[0007] Install the application according to the installation package of the application;

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

[0009] Based on the unique identifier, obtain web page information corresponding to the incoming parameter corresponding to the unique identifier from the server.

[0010] In a second aspect, embodiments of the present disclosure provide a method for associating a web page with a device, which is applied to a server. The method includes:

[0011] 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, and the unique identifier is determined according to an incoming parameter corresponding to a web page. The web page is a page on the terminal device that responds to a trigger operation on the installation file corresponding to the application.

[0012] 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;

[0013] Send the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device.

[0014] In a third aspect, an associated device between a web page and a device provided by an embodiment of the present disclosure includes:

[0015] 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 perform caching, 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;

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

[0017] 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;

[0018] 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.

[0019] In a fourth aspect, an associated device between a web page and a device provided by an embodiment of the present disclosure includes:

[0020] 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 an incoming parameter corresponding to a web page, and the web page is a page on the terminal device that responds to a trigger operation on the installation file corresponding to the application;

[0021] 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;

[0022] 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.

[0023] In a fifth aspect, an electronic device provided by an embodiment of the present disclosure includes: a processor and a memory;

[0024] The memory stores computer execution instructions;

[0025] 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 aspect and the second aspect above.

[0026] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method for associating a web page with a device as described in the first aspect and the second aspect above.

[0027] 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 aspect and the second aspect above.

[0028] The method and device for associating a web page with a device provided in this embodiment obtain the installation file corresponding to the application program from the server and cache it by responding to a trigger operation on the installation file corresponding to the application program on the web page. The installation file includes the installation package of the application program and a unique identifier, and the unique identifier is determined according to the incoming parameters of the web page. The application program is installed according to the installation package of the application program. When the application program is installed and started, the unique identifier corresponding to the installation file is read from the cache, and then based on the unique identifier, the web page information corresponding to the incoming parameters corresponding to the unique identifier is obtained from the server. In this technical solution, by transmitting the information of the web page where the program link is located and the installation package to the terminal device together, the association between the web and the App device is realized, and the server side can also perceive the web page information corresponding to the initiation of the installation package download. Description of the Drawings

[0029] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following briefly introduces the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

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

[0031] Figure 2 It is a schematic flowchart of the method for associating a web page with a device provided by an embodiment of the present disclosure Figure 1 ;

[0032] Figure 3 It is a schematic flowchart of the method for associating a web page with a device provided by an embodiment of the present disclosure Figure 2 ;

[0033] Figure 4 Schematic flow of the method for associating a web page with a device provided by an embodiment of the present disclosure Figure 3 ;

[0034] Figure 5 Schematic structural diagram of Device 1 for associating a web page with a device provided by an embodiment of the present disclosure;

[0035] Figure 6 Schematic structural diagram of Device 2 for associating a web page with a device provided by an embodiment of the present disclosure;

[0036] Figure 7 Schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners

[0037] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

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

[0039] That is to say, the server corresponding to the App cannot perceive the network side from which the application is downloaded, that is, through which web page the download link is clicked; when the application downloaded by clicking the download link on the web page needs to grant the user the usage permission of the service function of the application, it cannot be achieved either.

[0040] Therefore, to obtain relevant data, the web side needs to be associated with the device where the web side is located. However, generally, there is no information identifying the device on the web side. Therefore, a solution for associating the web with the App device needs to be proposed, 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 browser page of the PC side with the decentralized identifier (DiD) of the application side of the PC application.

[0041] Based on the above technical problems, the inventor's technical concept is as follows: If there is a program link on a web page, when a 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 at the same time, and when the server sends an installation file to the terminal device, the identifier corresponding to the information of the web page where it is located and the installation package can be packaged into an installation file so that the terminal device can perform caching. When the application program is installed and opened subsequently, the terminal device can obtain the web page information corresponding to the identifier from the server according to the identifier, so as to associate the web with the terminal device where the application program is located.

[0042] Figure 1 The application scenario diagram provided by this disclosure embodiment is as Figure 1 shown. This application scenario includes: a server and a terminal device.

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

[0044] Further, if the incoming parameter also carries an application invitation code, the terminal device can also receive the usage permission information of the business function of the application program corresponding to the application invitation code sent by the server.

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

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

[0047] Figure 2 The flow schematic diagram of the method for associating a web page with a device provided by this disclosure embodiment Figure 1 . As Figure 2 shown, the method for associating a web page with a device includes:

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

[0049] Among them, the installation file includes the installation package of the application and a unique identifier, which is determined according to the incoming 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 can be that the user clicks on the program link corresponding to the installation file on the web page. At this time, the terminal device responds to the click and obtains the corresponding installation file from the server corresponding to the program link.

[0052] Furthermore, after obtaining the installation file of the application sent by the server, cache the installation file. A possible implementation is global caching, which can avoid the application from repeatedly downloading the required resources from the server, reduce network latency, and also avoid repeated calculations of the same resources, improving the startup speed and response speed of the application.

[0053] In addition, in order to uniquely identify the installation file in the cache and quickly find and obtain the installation file in the cache by key value, that is, generate the key value corresponding to the installation file based on the installation file.

[0054] Optionally, the installation file includes the installation package of the application and a unique identifier. One possible implementation is: 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 according to the incoming parameters of the web page, and the incoming parameters include the web page, that is, it can be 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 can also parse the installation file to obtain the unique identifier, and then share the unique identifier to the relevant application programs of other devices.

[0058] In this implementation, the terminal device can also perform a parsing operation on the installation file to obtain the unique identifier in the installation file and share the unique identifier to the relevant application programs of other devices.

[0059] For example, the Mac side can achieve data sharing between multiple Apps through the technology of writing to the keychain; Windows can achieve data sharing between multiple Apps by writing to the registry.

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

[0061] In this step, after the terminal device obtains the installation file, it 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 on the terminal device, 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 and starts the application, the terminal device can read the unique identifier corresponding to the installation file from the cache.

[0064] In a possible implementation, it can be the key value determined above. According to the key value, the unique identifier corresponding to the installation file is read from the path pointed to by the key value.

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

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

[0067] Optionally, before this step 24, the terminal device can also encrypt the unique identifier to obtain the encrypted unique identifier. The encrypted unique identifier is used to verify with the encrypted identifier on the server side. The encryption method of the server is the same as that of the terminal device.

[0068] In this implementation, in order to prevent data brushing through id collision, the process of interface signature verification can be added. For example, it can be through the method of sha256Hmac+key to encrypt and verify all incoming parameters.

[0069] The same encryption method of the server and the terminal device can enable the subsequent verification of the unique identifier on the server side to pass.

[0070] Step 25: The server determines the web page information corresponding to the incoming parameters corresponding to the unique identifier according to the unique identifier sent by the terminal device;

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

[0072] Optionally, the implementation of step 25 can also be: The server verifies the encrypted unique identifier sent by the terminal device based on the encrypted unique identifier of the server; after the verification passes, the server sends the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device.

[0073] That is, it determines the encrypted unique identifier sent from the terminal device side and the encrypted unique identifier of the server. If the two are similar, the verification passes.

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

[0075] In this implementation, that is, when the App application starts, it reads the mapped 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. In this way, the closed loop of the entire link is completed, and the parameters passed in from the Web are obtained from the App.

[0076] The method for associating a web page with a device provided by the embodiments of the present disclosure includes: in response to a trigger operation on a web page for an installation file corresponding to an application program, the terminal device obtains the installation file corresponding to the application program from the server and caches it. The installation file includes an installation package of the application program and a unique identifier, and the unique identifier is determined according to the incoming parameter of the web page. The application program is installed according to the installation package of the application program. When the application program is installed and the application program starts, the unique identifier corresponding to the installation file is read from the cache, and based on the unique identifier, the web page information corresponding to the incoming parameter corresponding to the unique identifier is obtained from the server. In this technical solution, by transmitting the information of the web page where the program link is located and the installation package to the terminal device together, the association between the web and the App device is realized, 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 embodiments, Figure 3 is a schematic flowchart of the method for associating a web page with a device provided by the embodiments of the present disclosure Figure 2 . As Figure 3 shown, the method for associating a web page with a device includes:

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

[0079] Among them, the installation file acquisition request includes an incoming parameter.

[0080] In this step, when the terminal device detects the trigger operation, it generates an installation file acquisition request corresponding to the trigger operation and sends the installation file acquisition request to the server.

[0081] In a possible implementation, when the terminal device detects that the user clicks on a program link on a web page, it sends a request to obtain an installation file to the server pointed to by the program link.

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

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

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

[0085] Optionally, the incoming parameter also includes the application invitation code of the web page.

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

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

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

[0089] In this step, after the server obtains the request to obtain the installation file, it parses the request to obtain the incoming parameter, and generates a unique identifier corresponding to the incoming parameter based on the incoming parameter.

[0090] Continuing with the above possible implementation, parse the query key-value pairs in the domain name to generate a json, and cache it to the server using the Api, generating a mapping from the id to the web page, that is, the unique identifier corresponding to the incoming parameter.

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

[0092] Furthermore, the cached data (i.e., the data transmitted in the web page link) mapped can be obtained from the server through the generated id.

[0093] Further, optionally, the server can also encrypt the obtained unique identifier to obtain an encrypted unique identifier, and the encrypted unique identifier is used to verify with the encrypted identifier on the terminal device. The encryption method of the server is the same as that of the terminal device;

[0094] In this implementation, to prevent data brushing through ID collisions, the process of interface signature verification can be added. For example, it can be in the way of sha256Hmac + key to encrypt and verify the signature of all incoming parameters.

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

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

[0097] Among them, the installation file carries a unique identifier and the installation package of the application program.

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

[0099] In a possible implementation, the installation file can be the file named after the installation package based on the unique identifier.

[0100] Furthermore, optionally, when the incoming parameters also include the application invitation code of the web page, the terminal device receives the usage permission information of at least one service function of the application program corresponding to the application invitation code sent by the server.

[0101] In this implementation, when the incoming parameters also include the application invitation code of the web page, after the application program logs in, based on the application invitation code, the server can send the usage permission information of at least one service function of the application program 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 service function in the application program.

[0102] For example, based on the invitation code of the 7-day membership of the application program, the user can use the rights and interests of the 7-day membership of the application program.

[0103] The method for associating a web page with a device provided by the embodiments of the present disclosure sends an installation file acquisition request corresponding to a trigger operation to the server through the terminal device. The installation file acquisition request includes incoming parameters. The server generates a unique identifier according to the incoming parameters, and the server sends an installation file to the terminal device. The installation file carries a unique identifier and the installation package of the application program. In this technical solution, the incoming parameters corresponding to the web page where the program link is located are sent to the server for subsequent association between the terminal device and the web page.

[0104] On the basis of the above embodiments Figure 4 Schematic diagram of the process of the method for associating a web page with a device provided by the embodiments of the present disclosureFigure 3 As shown in Figure 4 the figure, 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: Open the sharing page with the web page link of the browser, 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 web page downloads the installation package according to the channel request in the Content Delivery Network (CDN);

[0110] Step 6: The web page caches the installation package after naming it with the unique identifier;

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

[0112] Step 8: The downloader installs and starts the PC App, reads the cache in the PC App, and obtains the unique identifier;

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

[0114] Step 10: The server returns the query information value carried by the lift to the PC App;

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

[0116] For the method for associating a web page with a device provided by the embodiments of the present disclosure, the technical solution and technical effect are similar to those of the above embodiments, and will not be elaborated here.

[0117] Based on the above method embodiments, Figure 5 The following is a schematic structural diagram of the device for associating a web page with a device one provided by the embodiments of the present disclosure. As shown in Figure 5 the figure, the device for associating a web page with a device is applied to a terminal device and includes:

[0118] A first processing unit 51, configured to, in response to a trigger operation on the installation file corresponding to the application program on the web page, obtain the installation file corresponding to the application program from the server and perform caching. The installation file includes an installation package of the application program and a unique identifier, and the unique identifier is determined according to the incoming parameters of the web page;

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

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

[0121] An obtaining unit 54, configured to obtain web page information corresponding to the incoming parameter corresponding to the unique identifier from a server based on the unique identifier.

[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] Send an installation file obtaining request corresponding to a trigger operation to the server, where the installation file obtaining request includes an incoming parameter;

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

[0125] In one or more embodiments, the incoming parameter includes an application invitation code of a web page, 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 to obtain a unique identifier;

[0129] Share the unique identifier to relevant applications of other devices.

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

[0131] Encrypt the unique identifier to obtain an encrypted unique identifier, where the encrypted unique identifier is used to verify the encrypted identifier with the server, and the encryption method of the server is the same as that of the terminal device.

[0132] Based on the above method embodiments, Figure 6 FIG. is a schematic structural diagram of an associated device two between a web page and a device provided by an embodiment of the present disclosure. As Figure 6 shown, the associated device between the web page and the device is applied to a server and includes:

[0133] A sending unit 61, 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, and the unique identifier is determined according to an incoming parameter corresponding to a web page. The web page is a page on the terminal device that responds to a trigger operation on the installation file corresponding to the application.

[0134] A processing unit 62, configured to determine web page information corresponding to the incoming parameter corresponding to the unique identifier according to the unique identifier sent by the terminal device.

[0135] The sending unit 61 is further configured to send the web page information corresponding to the incoming 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, an obtaining unit 61 is configured to receive an installation file obtaining request corresponding to the trigger operation sent by the terminal device. The installation file obtaining request includes an incoming parameter.

[0137] The processing unit 62 is configured to generate a unique identifier according to the incoming parameter.

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

[0139] In one or more embodiments, the incoming parameter includes an application invitation code of the web page. The sending unit 61 is further configured to:

[0140] Send usage permission information of at least one service function of the application corresponding to the application invitation code to the terminal device.

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

[0142] Encrypt the unique identifier to obtain an encrypted unique identifier. The encrypted unique identifier is used to verify with the encrypted identifier on the terminal device. The encryption method of the server is the same as that of the terminal device.

[0143] Correspondingly, the sending unit 61 sends the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device, specifically configured to:

[0144] Verify the encrypted unique identifier sent by the terminal device according to the encrypted unique identifier of the server.

[0145] After the verification passes, send the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device.

[0146] The associated device between a web page and a device provided by an embodiment of the present disclosure has a technical solution and technical effect similar to those in the above embodiments, and will not be described in detail here.

[0147] To implement the above embodiments, an embodiment of the present disclosure further provides an electronic device. Figure 7 It is a schematic structural diagram of the electronic device provided by an embodiment of the present disclosure. Refer to Figure 7 , this electronic device can be a terminal device or a server, and execute the method corresponding to the corresponding device according to the actual situation.

[0148] Among them, the terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, 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., and fixed terminals such as digital TVs, desktop computers, etc.; the server is the server to which the application program belongs.

[0149] Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present disclosure.

[0150] As Figure 7 shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 71, which can execute 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. In the RAM 73, various programs and data required for the operation of the electronic device are also stored. The processing device 71, the ROM 72, and the RAM 73 are connected to each other through a bus 74. An input / output (I / O) interface 75 is also connected to the bus 74.

[0151] Generally, the following devices can 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 77 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 79. The communication device 79 can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 7An electronic device having various devices is shown, but it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0152] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 79, or installed from a storage device 77, or installed from a ROM 72. When the computer program is executed by a processing device 71, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

[0153] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection having 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 can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program codes contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0154] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; or it can exist separately and not be assembled into the electronic device.

[0155] The above computer-readable medium stores one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0156] Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of 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., through the Internet using an Internet service provider).

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

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

[0159] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can 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 so on.

[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 connection with an instruction execution system, apparatus, or device. 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM or Flash Memory), optical fibers, portable compact disc read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

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

[0162] 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 perform caching. 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;

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

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

[0165] Based on the unique identifier, obtain web page information corresponding to the incoming parameters corresponding to the unique identifier from the server.

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

[0167] Send an installation file acquisition request corresponding to the trigger operation to the server. The installation file acquisition request includes the incoming parameters;

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

[0169] In one or more embodiments, the incoming parameter includes an application invitation code of the web page, 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 includes:

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

[0173] Share the unique identifier to the relevant application of other devices.

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

[0175] Encrypt the unique identifier to obtain an encrypted unique identifier, and 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.

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

[0177] 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 an incoming parameter corresponding to a web page, and the web page is a page on the terminal device that responds to a trigger operation on the installation file corresponding to the application;

[0178] 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;

[0179] Send the web page information corresponding to the incoming 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] Receive an installation file acquisition request corresponding to a trigger operation sent by the terminal device, where the installation file acquisition request includes the incoming parameter;

[0182] Generate the unique identifier according to the incoming parameter;

[0183] Send the installation file to the terminal device, where the installation file carries the unique identifier and the installation package of the application program.

[0184] In one or more embodiments, the incoming parameter includes the application invitation code of the web page, and the method further includes:

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

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

[0187] Encrypt the unique identifier to obtain an encrypted unique identifier, which 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;

[0188] Correspondingly, sending the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device includes:

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

[0190] After the verification passes, send the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device.

[0191] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an associated device between a web page and a device, which is applied to a terminal device and includes:

[0192] A first processing unit, configured to, in response to a trigger operation on an installation file corresponding to an application program on a web page, obtain the installation file corresponding to the application program from a server and cache it, where the installation file includes the installation package and the unique identifier of the application program, and the unique identifier is determined according to the incoming parameter of the web page;

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

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

[0195] An acquisition unit, configured to obtain, based on the unique identifier, web page information corresponding to the incoming 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] Send an installation file acquisition request corresponding to the trigger operation to the server, where the installation file acquisition request includes the incoming parameter;

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

[0199] In one or more embodiments, the incoming parameter includes an application invitation code of the web page, 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] Parse the installation file to obtain the unique identifier;

[0203] Share the unique identifier to relevant application programs of other devices.

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

[0205] Encrypt 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.

[0206] Fourthly, according to one or more embodiments of the present disclosure, there is provided an associated device between a web page and a device, 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, where the installation file includes an installation package of the application and a unique identifier, and the unique identifier is determined according to an incoming parameter corresponding to a web page, and the web page is a page on the terminal device that responds to a trigger operation on the installation file corresponding to the application;

[0208] A processing unit, configured to determine web page information corresponding to incoming parameters corresponding to the unique identifier according to the unique identifier sent by the terminal device;

[0209] A sending unit, further configured to send the web page information corresponding to the incoming parameters corresponding to the unique identifier to the terminal device.

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

[0211] A processing unit, configured to generate the unique identifier according to the incoming parameter;

[0212] A sending unit, 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 program.

[0213] In one or more embodiments, the incoming parameter includes an application program invitation code of the web page, and the sending unit is further configured to:

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

[0215] In one or more embodiments, before sending the web page information corresponding to the incoming parameters corresponding to the unique identifier to the terminal device, the processing unit is further configured to:

[0216] 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;

[0217] Correspondingly, the sending unit sending the web page information corresponding to the incoming parameters corresponding to the unique identifier to the terminal device is specifically configured to:

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

[0219] After the verification is passed, send the web page information corresponding to the incoming parameters corresponding to the unique identifier to the terminal device.

[0220] In a fifth aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, including: 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 executes the method for associating a web page with a device as described in the first or second aspect above 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, there is provided a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method for associating a web page with a device as described in the first or second aspect above and various possible designs of the first or second aspect.

[0224] In a seventh aspect, according to one or more embodiments of the present disclosure, there is provided 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 or second aspect above and various possible designs of the first or second aspect

[0225] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. 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 technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with the (but not limited to) technical features having similar functions disclosed in the present disclosure.

[0226] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[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, characterized in that Applied to a terminal device, the method includes: In response to a trigger operation on the installation file corresponding to an application on a web page, obtain the installation file corresponding to the application from a server and cache it. 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; Install the application according to the installation package of the application; When the application is installed and started, read the unique identifier corresponding to the installation file from the cache; Based on the unique identifier, obtain the web page information corresponding to the incoming parameters corresponding to the unique identifier from the server.

2. The method according to claim 1, wherein Before obtaining and caching the installation file corresponding to the application from the server, the method further includes: Send 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; Receive the installation file sent by the server.

3. The method according to claim 2, wherein The incoming parameters include an application invitation code of the web page, and the method further includes: Receive 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 method according to any one of claims 1-3, characterized in that The method further includes: Parse the installation file to obtain the unique identifier; Share the unique identifier to relevant applications of other devices.

5. The method according to any one of claims 1-3, characterized in that, 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 method further includes: Encrypt the unique identifier to obtain an encrypted unique identifier, and 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, characterized in that, Applied to a server, the method includes: 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, and the unique identifier is determined according to the incoming parameters corresponding to a 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; Determine the web page information corresponding to the incoming parameters corresponding to the unique identifier according to the unique identifier sent by the terminal device; Send the web page information corresponding to the incoming parameters corresponding to the unique identifier to the terminal device.

7. The method according to claim 6, characterized in that, Before sending the installation file of the application to the terminal device, the method further includes: Receive the 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; Generate the unique identifier according to the incoming parameters; Send the installation file to the terminal device, and the installation file carries the unique identifier and the installation package of the application.

8. The method according to claim 7, characterized in that The incoming parameters include an application invitation code of the web page, and the method further includes: Send the usage permission information of at least one business function of the application corresponding to the application invitation code to the terminal device.

9. The method according to any one of claims 6-8, characterized in that, Before sending the web page information corresponding to the incoming parameter corresponding to the unique identifier to the terminal device, the 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 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: verifying the encrypted unique identifier sent by the terminal device according to the encrypted unique identifier of the server; after the verification passes, sending 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, characterized in that, Applied to a terminal device, the device includes: a first processing unit, configured to, in response to a trigger operation on an installation file corresponding to an application program on a web page, obtain the installation file corresponding to the application program from a server and cache it, where the installation file includes an installation package of the application program 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 program according to the installation package of the application program; a third processing unit, configured to, when the application program is installed and the application program 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 device includes: a sending unit, configured to send an installation file of an application program to a terminal device, where the installation file includes an installation package of the application program and a unique identifier, and the unique identifier is determined according to an incoming parameter corresponding to a web page, and the web page is a page on the terminal device in response to a trigger operation on the installation file corresponding to the application program; 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, characterized in that, including: a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the method for associating a web page with a device according to any one of claims 1 to 9.

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

14. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, the method for associating a web page with a device according to any one of claims 1 to 9 is implemented.