CN110309476A - The method and device of web browser calling local application - Google Patents

The method and device of web browser calling local application Download PDF

Info

Publication number
CN110309476A
CN110309476A CN201910602357.XA CN201910602357A CN110309476A CN 110309476 A CN110309476 A CN 110309476A CN 201910602357 A CN201910602357 A CN 201910602357A CN 110309476 A CN110309476 A CN 110309476A
Authority
CN
China
Prior art keywords
application
port information
program
destination
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910602357.XA
Other languages
Chinese (zh)
Other versions
CN110309476B (en
Inventor
吴斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Tunji Network Technology Co Ltd
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Tunji Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Tunji Network Technology Co Ltd filed Critical Shanghai Tunji Network Technology Co Ltd
Priority to CN201910602357.XA priority Critical patent/CN110309476B/en
Publication of CN110309476A publication Critical patent/CN110309476A/en
Application granted granted Critical
Publication of CN110309476B publication Critical patent/CN110309476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • G06F9/4486Formation of subprogram jump address

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the method and devices that a kind of web browser calls local application, including, receive the Address requests of destination application, Address requests carry port information and parameter information, identify port information and parameter information, based on port information and parameter information, installation directory corresponding with destination application is inquired in preset registration table, destination application is opened by installation directory, entire calling process user's unaware, without nuisance operation, both the flexibility of local application calling had been enhanced, the efficiency of local program calling is effectively improved again.

Description

The method and device of web browser calling local application
Technical field
The present invention relates to local application calling technology fields, and in particular to a kind of web browser calling is locally applied The method and device of program.
Background technique
As the speed and stability of mobile network communication are continuously improved, web application software is more used in terminal In equipment, web application software is the application software run by form web page, may be implemented several operation systems across The operation of platform reduces development cost, and runs the problem of software upgrading is not present in application software by Webpage, subtracts The maintenance cost of few software, and improve user's impression.
Currently, most of browser opens local program by the specific control of calling, when specific control is disabled Afterwards, custom protocol is borrowed mostly to open local program, and a usual agreement corresponds to an application program, efficiency is relatively It is low.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of methods that web browser calls local application And device, with realize user's unaware realization local application calling, can enhance routine call flexibility and Effectively improve the efficiency of local application calling.
In order to achieve the above object, the present invention adopts the following technical scheme:
A kind of method that web browser calls local application, comprising:
The Address requests of destination application are received, the Address requests carry port information and parameter information;
Identify the port information and the parameter information;
Based on the port information and the parameter information, inquiry and the destination application in preset registration table Corresponding installation directory;
The destination application is opened by the installation directory.
Optionally, the identification described above port information and the parameter information, comprising:
Network monitoring application program in invocation target service routine;
The port information and the parameter information are identified by the network monitoring application program.
Optionally, before the network monitoring application program in invocation target service routine described above, further includes:
Detect returned content associated with the port information;
Judge whether be monitored with the port information appropriate ports according to the returned content;
If the returned content expression is not monitored with the port information appropriate ports, destination service program is sent Installation link, so as to destination service program described in user installation.
Optionally, described above to judge whether supervised with the port information appropriate ports according to the returned content It listens, comprising:
The returned content is analyzed, analysis result is obtained;
If the analysis result is Address requests mistake or the returned content is sky, show and the port information The port matched is not monitored.
Optionally, the method that a kind of web browser described above calls local application, further includes:
Receive the bind request of the destination service program;
Identify the bound object in the bind request;
The destination service program and the bound object are bound, so as to the destination service program and the bound object Synchronous operation.
It is optionally, described above that the destination application is opened by the installation directory, comprising:
Start the corresponding application program installation kit of the destination application using the instruction of process class;
Call the event handling to match with the application program installation kit entrust and with the application program installation kit phase Incoming parameter is entrusted in matched action;
Incoming parameter is entrusted based on event handling commission and the action, application programming function is called to open institute State destination application.
A kind of web browser calls the device of local application characterized by comprising
Receiving module, for receiving the Address requests of destination application, the Address requests carry port information and ginseng Number information;
Identification module, for identification port information and the parameter information;
Enquiry module, for being based on the port information and the parameter information, inquiry and institute in preset registration table State the corresponding installation directory of destination application;
Execution module, for opening the destination application by the installation directory.
Optionally, identification module described above is specifically used for:
Network monitoring application program in invocation target service routine;
The port information and the parameter information are identified by the network monitoring application program.
Optionally, a kind of web browser described above calls the device of local application, further includes:
Detection module, for detecting returned content associated with the port information;
Judgment module, for judging whether be monitored with the port information appropriate ports according to the returned content;
Module is installed, if indicating not to be monitored with the port information appropriate ports for the returned content, is sent out The installation of destination service program is sent to link, so as to destination service program described in user installation.
Optionally, execution module described above is specifically used for:
Start the corresponding application program installation kit of the destination application using the instruction of process class;
Call the event handling to match with the application program installation kit entrust and with the application program installation kit phase Incoming parameter is entrusted in matched action;
Incoming parameter is entrusted based on event handling commission and the action, application programming function is called to open institute State destination application.
Technical solution of the present invention may include have it is following the utility model has the advantages that
A kind of web browser of the invention calls the method and device of local application, by receiving target application journey The Address requests of sequence, Address requests carry port information and parameter information, identify port information and parameter information, are believed based on port Breath and parameter information are inquired installation directory corresponding with destination application in preset registration table, are beaten by installation directory The mode for opening the destination application realizes the locally applied journey different with parameter information automatic identification according to port information The function of sequence completes the calling of local application in the state of unaware, passes through port information parameter information and registration table It is corresponding, it is no longer limited to many and diverse operation of the corresponding application program of a custom protocol, by inquiring installation directory It realizes and opens application program, whole process user is not necessarily to nuisance operation, improves the efficiency of local application calling.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of method that web browser provided in an embodiment of the present invention calls local application.
Fig. 2 is the method another kind flow chart that web browser provided in an embodiment of the present invention calls local application.
Fig. 3 is a kind of another knot for the device that web browser provided in an embodiment of the present invention calls local application Structure schematic diagram.
Fig. 4 is that web browser provided in an embodiment of the present invention calls another structure of the device of local application to show It is intended to.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work Other embodiment belongs to the range that the present invention is protected.
Fig. 1 is a kind of flow chart of method that web browser provided in an embodiment of the present invention calls local application.
As shown in Figure 1, the method that a kind of web browser of the present embodiment calls local application, including following step It is rapid:
S11, the Address requests for receiving destination application.
Corresponding destination application is directly opened by way of web browser, reduces software in this way more New operation, the use for the user that is more convenient for, defining the application that user needs to open is destination application, and user can directly lead to The form for crossing shortcut goes input to open the request of destination application, can also directly input address information, user is direct Request is delivered to browser, solicited message is stored, received and handled by browser, for inputting target in the present embodiment The mode of the Address requests of application program is asked without specifically limiting, as long as can be realized and receive the address of destination application It asks.
Address requests are HTTP request, refer to the request message from client to server end, comprising: message first trip In, to the requesting method of resource, the identifier of resource and the agreement used, when browser is issued to web page server requests, It delivers a data block, that is, solicited message to server, and HTTP request information is made of 3 parts: requesting method URI Agreement/version, request header (Request Header), request text.
Port information and parameter information in S12, identification Address requests.
The identification of port information and parameter information is mainly passed through, the network monitoring application in invocation target service routine Program, and then using network monitoring application program identification port information and parameter information, first with the net in Website server Network monitor goes to monitor the port of local host, can grasp the address parameter information of application program at any time by port, whole The process of a identification is the process that web browser and local host establish network communication, and port therein can carry out arbitrarily Configuration.Port is the free translation of English port, it is believed that is the outlet of equipment and extraneous Communication, port can be divided into virtual terminal Mouth and physical port, wherein virtual port refers to the port in computer-internal or switch router, invisible, such as computer In 80 ports, 21 ports, 23 ports etc., physical port is also known as interface, is visible port, the RJ45 net of computer back panel Mouthful, the port the RJ45 such as switch router hub.
Port information and parameter information are carried in the Address requests of the destination application received, the same port may Corresponding multiple functions, i.e. same port may correspond to multiple application programs, recognize this using journey by port information first The corresponding port of sequence, then recognizes parameter information by ground port, it is understood that obtains port information and parameter to intercept Information.During specific implementation, destination service program can be made into installable application software by user, be deployed to The website of web browser, website, that is, website abbreviation of web browser refer on the internet, according to certain rule, Using the set of the related web page for showing specific content of the tool makings such as HTML, briefly, website is a kind of communication Tool, just as notice board, user can be issued by website oneself wants disclosed information, or utilizes a website to mention For relevant network service, user can access website by web browser, obtain the information or enjoyment of oneself needs Network service.When browser receives the Address requests of destination application, destination service program voluntarily completes work, about The deployment process of destination service program and the detail location of deployment can be realized in the present embodiment without specifically limiting Effectively monitor identification port information and parameter information.
S13, it is based on port information and parameter information, peace corresponding with destination application is inquired in preset registration table Fill catalogue.
After obtaining port information and parameter information, corresponding information can be directly inquired in preset registration table, it is first The range that port information reduces inquiry is first passed through, specific application program is then locked to by specific parameter information, then It can obtain the installation directory of destination application.For example, a port design of local host has 5 application programs, it is first It first is contracted to the port according to the Address requests of destination application, if can only only inquire in registration table by the port All application programs corresponding to it, the purpose of port are exactly the range of diminution inquiry, then accurate by specific parameter information Inquire destination application, its detailed installation directory can be directly obtained.
Registration table is preset, that is, includes the installation directory of each application program, is pacified in local application It, will be corresponding also to will be deleted if delete any application program by its installation directory typing registration table when dress Its specific installation targets similarly if increasing an application program newly, just can be updated to this simultaneously by its information in registration table In registration table, i.e., registration table can be modified, and have timeliness, can reflect the information of all local applications, The one-to-one correspondence of application program and registration table also may be implemented by port information and parameter information.Setting in relation to registration table, It can be and artificially modify, be also possible to automatically generate, in the present embodiment without specifically limiting, can be realized registration table In the value of information and local application one-to-one correspondence.
S14, destination application is opened by installation directory.
The installation directory of destination application has been obtained by above-mentioned steps, has directly opened locally applied journey by installation targets Sequence, the mode opening local application by way of installation directory, as scanning in layer are last straight It takes out, if it is more conventional to open application program either manually or by such mode, in the present embodiment, is realized by program automatic Destination application is opened according to installation directory, eliminates the nuisance operation of user, whole process user's unaware, and react speed Degree is fast, and the detailed process for opening application program includes, and first with process class instruction starting, destination application is corresponding answers With program installation kit, then call the event handling to match with application program installation kit entrust and with application program installation kit phase Incoming parameter is entrusted in matched action, is finally entrusted and is taken action based on event handling and entrust incoming parameter, application program is called to compile Eikonal number opens destination application.Its entire process is the communication of browser and local program to be realized, then according to clear The port information and parameter information that device of looking at is sent, calls application interface judge whether start completion, recycle application programming Function guarantees the correct starting of destination application, and application program connects as (API, Application Program Interface) application programming interfaces be one group define, the set of program and agreement, by api interface realize computer software it Between be in communication with each other, a major function of API is to provide general utility functions collection, by API Function to application program carry out Exploitation can mitigate programmed tasks, and API is also simultaneously a kind of middleware, provide data sharing for various different platforms.
Browser can send Address requests to the port of the machine address, go to intercept address by network monitoring program and ask Corresponding program can be opened by asking, and solved and gone to open target application journey by customized label protocol mode under the prior art The problem of sequence, without going every time the connection of click website or user to go a safety instruction of confirmation request browser again, so that Realize that web browser can directly open the function of local application after allowing user once to install in the case where unaware Energy.
The method that a kind of web browser of the present embodiment calls local application, by receiving destination application Address requests, Address requests carry port information and parameter information, identify port information and parameter information, based on port information and Parameter information inquires installation directory corresponding with destination application in preset registration table, opens institute by installation directory The mode for stating destination application is realized according to the port information local application different with parameter information automatic identification Function completes the calling of local application in the state of unaware, corresponding with registration table by port information parameter information, It is no longer limited to many and diverse operation of the corresponding application program of a custom protocol, is beaten by inquiry installation directory realization Application program is opened, whole process user is not necessarily to nuisance operation, improves the efficiency of local application calling.
Fig. 2 is the method another kind flow chart that web browser provided in an embodiment of the present invention calls local application.
As shown in Fig. 2, the method that a kind of web browser of the present embodiment calls local application, including following step It is rapid:
S21, the Address requests for receiving destination application.
Returned content associated with port information in S22, detection Address requests.
After receiving the Address requests of destination application transmitted by browser, while local host can also receive This address solicited message, local host can export return value according to the port information in Address requests at this time, to indicate this port Working condition.
S23, judge whether be monitored with port information appropriate ports according to returned content, if so, step S25 is executed, If it is not, executing step S24.
When detecting returned content through the above steps, this returned content is analyzed, is analyzed as a result, analyzing the tool of content Body avatar can be artificial settings, such as returned content is 404, indicates that this port is unoccupied, i.e., is not monitored, Can other contents, be only illustrated by way of example in the present embodiment, if being judged based on the analysis results for address Request error or returned content are sky, then show not to be monitored with port information appropriate ports, the process of judgement can be by Returned content is compared with preset content, clearly to judge to contain representated by returned content according to comparison result Justice, such as by the way that the different meaning of different coded representations is arranged.
S24, the installation link for sending destination service program.
This more port are known through the above steps not to be monitored, show that the non-installation targets service routine of local host is realized With the communication of local host and local application, at this point, just automatic spring destination service program installation link, one key of user The communication of local host and local application can be realized in installation, if judging based on the analysis results, this port is supervised It listens, shows that this port has been completed the communication of local host and application program, be then not necessarily to extra operation, directly address is asked It asks and is responded.
Port information and parameter information in S25, identification Address requests.
S26, it is based on port information and parameter information, peace corresponding with destination application is inquired in preset registration table Fill catalogue.
S27, destination application is opened by installation directory.
S28, the bind request for receiving destination service program.
Bound object in S29, identification bind request.
For the ease of the use of destination service program, destination service program can be bound with target object, be bound Object can be local host and also complete to start to destination service program, need to illustrate while that is, local host start It is that bound object can be local host, be also possible to web browser in the present embodiment without specifically limiting, it can also To be other application programs, user can be according to the actual conditions of oneself selection bound object, can be according to bound object The speed of service and running memory select bound object, the efficient operation that both can guarantee in this way, in the present embodiment preferably with Local host bind or bound with web browser.
S30, bound targets service routine and bound object.
After destination service program and bound object binding, it can realize that destination service program is synchronous with local host Operation, reduces the operation for going isolated operation destination service program again, so that operating process is more convenient.
Step S21-S27 in this present embodiment is closed, has been discussed in detail in the above-described embodiments, in the present embodiment not It is described in detail again, about step S28-S30, is indicated clear in flow chart, there is no first with other steps Point of sequence afterwards, as long as within being able to achieve and belonging to the scope of protection of the present invention.
For example, realize that a windows service, this service can open 60000 ports of computer by destination service program, This port snoop Address requests.When with web browser website is opened, get request is initiated by browser and goes to request Http: // 127.0.0.1:60000? parameters=XXXX port discovery returns to 404, and it is occupied to show that this port does not have, Illustrate to be fitted without the program of windows service, at this moment can automatic spring allow user to download packed windows service journey Sequence, user download installation windows service, 60000 ports of meeting AM automatic monitoring the machine, user after windows service installs Do you when opening web browser website, http be requested again: // 127.0.0.1:60000? the address parameters=XXXX, program The destination application that parameters parameter opens corresponding the machine computer can be captured.
For example, opening local qq by web browser, qq is opened by way of webpage, goes to update again so that eliminating Destination service program is first deployed in website before by the operation of qq software, the information of each port is monitored, when monitoring for the first time The installation of automatic spring destination service program links, so that user voluntarily installs, then passes through webpage clicking version qq, target Service routine just voluntarily retrieves corresponding port information, and the parameter information that need to run qq is monitored by port information, is then existed Its installation directory is directly retrieved in registration table, which is opened by API, is directly run, whole process user's Operation is only the qq icon of webpage clicking version, realizes unaware operation.Qq is one of those for example, other Application software principle is similar, is no longer described in detail, and also includes the function of oneself exploitation, such as monitors, and directly passes through click The number of monitor inquires corresponding monitoring area etc..
Fig. 3 is a kind of structural representation for the device that web browser provided in an embodiment of the present invention calls local application Figure.
As shown in figure 3, a kind of web browser of the present embodiment calls the device of local application, comprising:
Receiving module 10, for receiving the Address requests of destination application, Address requests carry port information and parameter Information;
Identification module 20, for identification port information and parameter information;
Enquiry module 30, for being based on port information and parameter information, inquiry and target application in preset registration table The corresponding installation directory of program;
Execution module 40, for opening destination application by installation directory.
A kind of web browser of the present embodiment calls local application device, by the ground for receiving destination application Location request, Address requests carry port information and parameter information, identify port information and parameter information, are based on port information and ginseng Number information, inquire corresponding with destination application installation directory in preset registration table, opened by installation directory described in The mode of destination application realizes the function according to the port information local application different with parameter information automatic identification Can, the calling of local application is completed in the state of unaware, it is corresponding with registration table by port information parameter information, no It is confined to many and diverse operation of the corresponding application program of a custom protocol again, realizes opening by inquiring installation directory Application program, whole process user are not necessarily to nuisance operation, improve the efficiency of local application calling.
Further, on the basis of the above embodiments, the identification module 30 of the present embodiment is specifically used for:
Network monitoring application program in invocation target service routine;
Port information and parameter information are identified by network monitoring application program.
Fig. 4 is that web browser provided in an embodiment of the present invention calls another structure of the device of local application to show It is intended to.
Further, as shown in figure 4, on the basis of the above embodiments, the web browser of the present embodiment calls local The device of application program, further includes:
Detection module 50, for detecting returned content associated with port information;
Judgment module 60, for judging whether be monitored with port information appropriate ports according to returned content;
Module 70 is installed, if indicating not to be monitored with port information appropriate ports for returned content, sends target The installation of service routine links, so as to user installation destination service program.
Further, on the basis of the above embodiments, the judgment module 60 of the present embodiment is specifically used for:
Returned content is analyzed, analysis result is obtained;
If analysis result be Address requests mistake or returned content be it is empty, show with port information appropriate ports not by It monitors.
Further, as shown in figure 4, on the basis of the above embodiments, the web browser of the present embodiment calls local The device of application program, further includes:
Binding module 80 identifies the bound object in bind request, ties up for receiving the bind request of destination service program Set the goal service routine and bound object, so as to the synchronous operation of destination service program and bound object.
Further, on the basis of the above embodiments, the execution module 40 of the present embodiment is specifically used for:
The corresponding application program installation kit of starting destination application is instructed using process class;
The row for calling the event handling to match with application program installation kit commission and matching with application program installation kit It is dynamic to entrust incoming parameter;
It is entrusted and is taken action based on event handling and entrust incoming parameter, application programming function is called to open target application journey Sequence.
About the embodiment of device part, detailed introduction explanation has been carried out in the embodiment of method, it can Reference method embodiment is understood, is no longer described in detail in the embodiment in relation to device.
The present invention can also protect a kind of browser, one of browser execution above-described embodiment web browser tune With the method for local application.This method is combined with browser, so that the function of browser is more powerful, is more able to satisfy A variety of demands of user.
The present invention can also protect a kind of storage medium, comprising: processor, and the memory being connected with processor, Memory is called for storing computer program, the web browser that computer program is at least used to execute any of the above-described embodiment The method of local application, processor is for calling and executing the computer program in memory.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple " Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of method that web browser calls local application characterized by comprising
The Address requests of destination application are received, the Address requests carry port information and parameter information;
Identify the port information and the parameter information;
Based on the port information and the parameter information, inquired in preset registration table corresponding with the destination application Installation directory;
The destination application is opened by the installation directory.
2. the method according to claim 1, wherein the identification port information and the parameter information, Include:
Network monitoring application program in invocation target service routine;
The port information and the parameter information are identified by the network monitoring application program.
3. according to the method described in claim 2, it is characterized in that, network monitoring application in the invocation target service routine Before program, further includes:
Detect returned content associated with the port information;
Judge whether be monitored with the port information appropriate ports according to the returned content;
If the returned content expression is not monitored with the port information appropriate ports, the peace of destination service program is sent Dress link, so as to destination service program described in user installation.
4. according to the method described in claim 3, it is characterized in that, described believe according to returned content judgement with the port Whether breath appropriate ports are monitored, comprising:
The returned content is analyzed, analysis result is obtained;
If the analysis result is Address requests mistake or the returned content is sky, show matched with the port information Port is not monitored.
5. according to the method described in claim 2, it is characterized by further comprising:
Receive the bind request of the destination service program;
Identify the bound object in the bind request;
The destination service program and the bound object are bound, it is same so as to the destination service program and the bound object Step operation.
6. the method according to claim 1, wherein described open the target application by the installation directory Program, comprising:
Start the corresponding application program installation kit of the destination application using the instruction of process class;
It calls the event handling to match with the application program installation kit commission and matches with the application program installation kit Action entrust incoming parameter;
Incoming parameter is entrusted based on event handling commission and the action, application programming function is called to open the mesh Mark application program.
7. the device that a kind of web browser calls local application characterized by comprising
Receiving module, for receiving the Address requests of destination application, the Address requests carry port information and parameter letter Breath;
Identification module, for identification port information and the parameter information;
Enquiry module, for being based on the port information and the parameter information, inquiry and the mesh in preset registration table Mark the corresponding installation directory of application program;
Execution module, for opening the destination application by the installation directory.
8. device according to claim 7, which is characterized in that the identification module is specifically used for:
Network monitoring application program in invocation target service routine;
The port information and the parameter information are identified by the network monitoring application program.
9. device according to claim 8, which is characterized in that further include:
Detection module, for detecting returned content associated with the port information;
Judgment module, for judging whether be monitored with the port information appropriate ports according to the returned content;
Module is installed, if indicating not to be monitored with the port information appropriate ports for the returned content, sends mesh The installation link of service routine is marked, so as to destination service program described in user installation.
10. device according to claim 7, which is characterized in that the execution module is specifically used for:
Start the corresponding application program installation kit of the destination application using the instruction of process class;
It calls the event handling to match with the application program installation kit commission and matches with the application program installation kit Action entrust incoming parameter;
Incoming parameter is entrusted based on event handling commission and the action, application programming function is called to open the mesh Mark application program.
CN201910602357.XA 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser Active CN110309476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910602357.XA CN110309476B (en) 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910602357.XA CN110309476B (en) 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser

Publications (2)

Publication Number Publication Date
CN110309476A true CN110309476A (en) 2019-10-08
CN110309476B CN110309476B (en) 2021-05-25

Family

ID=68079087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910602357.XA Active CN110309476B (en) 2019-07-05 2019-07-05 Method and device for calling local application program by webpage browser

Country Status (1)

Country Link
CN (1) CN110309476B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309399A (en) * 2020-02-26 2020-06-19 北京思特奇信息技术股份有限公司 Method, system, medium and device for starting easy-to-ask native client
CN112379896A (en) * 2020-11-24 2021-02-19 中教云智数字科技有限公司 Software communication interaction method based on registry and http protocol
CN112468611A (en) * 2020-11-27 2021-03-09 深圳市欢太科技有限公司 Application program starting method, terminal device and computer storage medium
CN112637121A (en) * 2020-11-17 2021-04-09 中信银行股份有限公司 Data port updating method and device, electronic equipment and readable storage medium
CN113268277A (en) * 2021-04-27 2021-08-17 深圳震有科技股份有限公司 Web-based client access method and terminal equipment
CN113507529A (en) * 2021-07-26 2021-10-15 上海中通吉网络技术有限公司 Method for realizing file downloading based on Web application
CN114268840A (en) * 2021-12-20 2022-04-01 中国电信股份有限公司 Video pushing method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN103279375A (en) * 2013-06-19 2013-09-04 百度在线网络技术(北京)有限公司 Method and device for running application programs in browser
CN103473367A (en) * 2013-09-27 2013-12-25 北京奇虎科技有限公司 Method for using local application program in browser and web browser
CN103617055A (en) * 2013-11-20 2014-03-05 北京奇虎科技有限公司 Browser and method and device of starting applications in browser
CN104239063A (en) * 2014-09-23 2014-12-24 福建星网视易信息***有限公司 Web browser and method for calling local application program through web browser
CN105897902A (en) * 2016-05-05 2016-08-24 北京思特奇信息技术股份有限公司 Method and system for starting local application by browser
CN106873961A (en) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 The method and device that APP is applied is waken up by mobile browser
CN109710331A (en) * 2018-12-27 2019-05-03 武汉益模科技股份有限公司 A method of calling local application from webpage
CN109947582A (en) * 2019-03-29 2019-06-28 深圳市永兴元科技股份有限公司 The exchange method of browser and local application, equipment and readable storage medium storing program for executing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN103279375A (en) * 2013-06-19 2013-09-04 百度在线网络技术(北京)有限公司 Method and device for running application programs in browser
CN103473367A (en) * 2013-09-27 2013-12-25 北京奇虎科技有限公司 Method for using local application program in browser and web browser
CN103617055A (en) * 2013-11-20 2014-03-05 北京奇虎科技有限公司 Browser and method and device of starting applications in browser
CN104239063A (en) * 2014-09-23 2014-12-24 福建星网视易信息***有限公司 Web browser and method for calling local application program through web browser
CN105897902A (en) * 2016-05-05 2016-08-24 北京思特奇信息技术股份有限公司 Method and system for starting local application by browser
CN106873961A (en) * 2016-07-27 2017-06-20 阿里巴巴集团控股有限公司 The method and device that APP is applied is waken up by mobile browser
CN109710331A (en) * 2018-12-27 2019-05-03 武汉益模科技股份有限公司 A method of calling local application from webpage
CN109947582A (en) * 2019-03-29 2019-06-28 深圳市永兴元科技股份有限公司 The exchange method of browser and local application, equipment and readable storage medium storing program for executing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309399A (en) * 2020-02-26 2020-06-19 北京思特奇信息技术股份有限公司 Method, system, medium and device for starting easy-to-ask native client
CN112637121A (en) * 2020-11-17 2021-04-09 中信银行股份有限公司 Data port updating method and device, electronic equipment and readable storage medium
CN112379896A (en) * 2020-11-24 2021-02-19 中教云智数字科技有限公司 Software communication interaction method based on registry and http protocol
CN112468611A (en) * 2020-11-27 2021-03-09 深圳市欢太科技有限公司 Application program starting method, terminal device and computer storage medium
CN113268277A (en) * 2021-04-27 2021-08-17 深圳震有科技股份有限公司 Web-based client access method and terminal equipment
CN113507529A (en) * 2021-07-26 2021-10-15 上海中通吉网络技术有限公司 Method for realizing file downloading based on Web application
CN114268840A (en) * 2021-12-20 2022-04-01 中国电信股份有限公司 Video pushing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110309476B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN110309476A (en) The method and device of web browser calling local application
US6098067A (en) Remote computer management system
JP4806357B2 (en) Method, system, and program for identifying, reserving, and logically provisioning resources in a provisioning data processing system
CN104536981A (en) Browser safety achieving method, browser client-side and device
CN101539911A (en) Device and method for accelerating display of web page of browser
KR20040019334A (en) System and method for field diagnosis of wireless communications device system software
CN105024839B (en) A kind of method and device of software release upgrade
CN102141925A (en) Applicability detection using third party target state
CN108234164A (en) Clustered deploy(ment) method and device
CN113709810B (en) Method, equipment and medium for configuring network service quality
CN110286922A (en) Using downloading updating method, device, computer equipment and storage medium
CN106844489A (en) A kind of file operation method, device and system
EP1899833A1 (en) Device management system and method for setting configuration-value therein
EP3060987A1 (en) Emulating test distributed application on server
CN106897162A (en) The communication mode system of selection of component, communication system and mobile terminal in a kind of application
EP1440587A1 (en) System-wide optimization integration model
AU2003214947B2 (en) System and method for policy-enabled, contract-based management of network operational support systems
CN109598427A (en) Management method, device and the electronic equipment of robot
JP5613295B2 (en) Storage medium for providing system, method and program for managing distribution of contents to apparatus
EP2212783A1 (en) Methods and systems for dynamic code extension
KR20010031862A (en) Method and apparatus for updating databases
CN110347659A (en) Data processing method and device, transaction data processing method and device
CN104734914A (en) Method, device and system used for monitoring network
CN102868562B (en) The method that maintaining network application platform is run and service equipment
CN105282233A (en) Method, device and system for controlling intelligent equipment

Legal Events

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