CN105446750B - The method and apparatus that WebApp starting runs, generates image file - Google Patents

The method and apparatus that WebApp starting runs, generates image file Download PDF

Info

Publication number
CN105446750B
CN105446750B CN201410239473.7A CN201410239473A CN105446750B CN 105446750 B CN105446750 B CN 105446750B CN 201410239473 A CN201410239473 A CN 201410239473A CN 105446750 B CN105446750 B CN 105446750B
Authority
CN
China
Prior art keywords
webapp
image file
network
local
solicited message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410239473.7A
Other languages
Chinese (zh)
Other versions
CN105446750A (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.)
Banma Zhixing Network Hongkong Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410239473.7A priority Critical patent/CN105446750B/en
Priority to PCT/CN2015/079689 priority patent/WO2015180601A1/en
Publication of CN105446750A publication Critical patent/CN105446750A/en
Priority to HK16109243.8A priority patent/HK1221295A1/en
Application granted granted Critical
Publication of CN105446750B publication Critical patent/CN105446750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

This application discloses a kind of WebApp starting operations, the method and apparatus of generation image file, belong to field of communication technology.The described method includes: receiving web application WebApp enabled instruction;Wherein, WebApp solicited message is carried in the WebApp enabled instruction;Judge current interconnection net state;When the interconnection net state is no network or vulnerable network, local WebApp image file corresponding with the WebApp solicited message is obtained;According to the local WebApp image file, generates and show the WebApp page.Described device includes: receiving module, judgment module, obtains module and first processing module.Internet is eliminated the reliance on when WebApp starting operation of the present invention, in the case where no network or vulnerable network, can still stablize, quickly start up operation WebApp, access Internet service.

Description

The method and apparatus that WebApp starting runs, generates image file
Technical field
This application involves fields of communication technology, and in particular to a kind of method that WebApp starting runs, generates image file And device.
Background technique
With the development of communication technology, internet WebApp (web application) the access service end on the mobile terminals such as mobile phone Also more and more, such as Baidu, wechat etc..The application that user can directly open the offer of internet WebApp access service end is flat On platform WebApp (such as click Baidu light application in icon starting third party WebApp, click wechat public's account number Menu starting public's account number WebApp etc.), using Internet service, without installing relevant application program.
Currently, the method for WebApp starting operation is as follows: receiving WebApp enabled instruction, by internet and provide The WebApp service providing end of WebApp service is attached, and obtains the corresponding WebApp of WebApp from WebApp service providing end Page info generates according to WebApp page info and shows the WebApp page.
The internet however, method of existing WebApp starting operation places one's entire reliance upon, when network be not connected with (no network) or In the case where network speed very slow (vulnerable network), WebApp can not start operation or starting operation is very slow.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of method that WebApp starting runs, generates image file And device generates and shows the WebApp page according to local WebApp image file so that WebApp starting operation when no longer according to Rely internet, in the case where no network or vulnerable network, can still stablize, quickly start up operation WebApp, access interconnection Net service.
To solve the above-mentioned problems, this application discloses a kind of methods of WebApp starting operation, which comprises
Receive web application WebApp enabled instruction;Wherein, WebApp request letter is carried in the WebApp enabled instruction Breath, the WebApp solicited message are directed toward corresponding local WebApp image file;
Judge current interconnection net state;
When the interconnection net state is no network or vulnerable network, local corresponding with the WebApp solicited message is obtained WebApp image file;Wherein, the local WebApp image file is mentioned by WebApp access service end according to WebApp service WebApp starting operation operation for end generates and is pushed to local;
According to the local WebApp image file, generates and show the WebApp page.
Further, judge current interconnection net state, comprising:
Inquire local network;
If not inquiring network, it is determined that current interconnection net state is no network.
Further, it inquires after local network, further includes:
If inquiring network, judge whether to have in preset time interval corresponding with the WebApp solicited message WebApp page info return;
If it is not, determining that current interconnection net state is vulnerable network.
Further, the WebApp solicited message includes:
WebApp network address, or, WebApp network address and Post required parameter.
Further, local WebApp image file corresponding with the WebApp solicited message is obtained, comprising:
Calculate the md5-challenge md5 value of the WebApp solicited message;
Locating file title local WebApp image file corresponding with the md5 value.
Further, the local WebApp image file includes member meta image file and caching cache image file.
Further, for storing WebApp solicited message, the cache image file is used for the meta image file Store WebApp page info corresponding with the WebApp solicited message.
Further, the WebApp starting operation operation includes: access WebApp network address, opens and needs in no net The WebApp page accessed under network or vulnerable network state.
Further, the WebApp solicited message is also directed to corresponding WebApp service providing end, judges current mutual After connected state, further includes:
It is corresponding with the WebApp solicited message by internet when the interconnection net state is positive normal network WebApp service providing end is attached;
WebApp page info corresponding with the WebApp solicited message is obtained from the WebApp service providing end;
The WebApp page is generated and shown according to the WebApp page info obtained from the WebApp service providing end, and The local WebApp image file is carried out more according to the WebApp page info obtained from the WebApp service providing end Newly.
To solve the above-mentioned problems, disclosed herein as well is a kind of methods for generating image file, which comprises
Web application WebApp service providing end utilizes Virtual network computer client VNC Client, passes through WebApp The port Virtual network computer server-side VNC Server that WebApp access server in access service end provides, accesses institute The VNC Server on the remote mobile terminal in WebApp access service end is stated, in the network built in the remote mobile terminal WebApp starting operation operation is carried out in Web running environment;
When the WebApp service providing end is carried out WebApp starting operation operation by the remote mobile terminal, submission WebApp solicited message, the WebApp page info corresponding with WebApp solicited message obtained are recorded in local WebApp mirror image In file.
Further, the WebApp starting operation operation includes: access WebApp network address, opens and needs in no net The WebApp page accessed under network or vulnerable network state.
Further, the method also includes:
The local WebApp image file is pushed in preset mobile terminal by the WebApp access server.
Further, the file name of the local WebApp image file is to be calculated according to the WebApp solicited message Obtained md5-challenge md5 value.
Further, the local WebApp image file includes member meta image file and caching cache image file.
Further, for storing WebApp solicited message, the cache image file is used for the meta image file Store WebApp page info corresponding with WebApp solicited message.
To solve the above-mentioned problems, disclosed herein as well is a kind of device of WebApp starting operation, described device includes:
Receiving module, for receiving web application WebApp enabled instruction;Wherein, it is carried in the WebApp enabled instruction WebApp solicited message, the WebApp solicited message are directed toward corresponding local WebApp image file;
Judgment module, for judging current interconnection net state;
Module is obtained, is the interconnection net state for no network or vulnerable network for the judging result when the judgment module When, obtain local WebApp image file corresponding with the WebApp solicited message;Wherein, the local WebApp mirror image text Part starts operation operation generation according to the WebApp of WebApp service providing end by WebApp access service end and is pushed to local;
First processing module, for generating and showing the WebApp page according to the local WebApp image file.
Further, the judgment module includes:
Query unit, for inquiring local network;
First determination unit, if not inquiring network for the query unit, it is determined that current interconnection is netted State is no network.
Further, the judgment module further include:
Judging unit, if inquiring network for the query unit, judge in preset time interval whether There is WebApp page info corresponding with the WebApp solicited message to return;
Second determination unit, if the judging result for the judging unit is that do not have, it is determined that current internet State is vulnerable network.
Further, the WebApp solicited message includes:
WebApp network address, or, WebApp network address and Post required parameter.
Further, the acquisition module includes:
Computing unit, for calculating the md5-challenge md5 value of the WebApp solicited message;
Searching unit is used for locating file title local WebApp image file corresponding with the md5 value.
Further, the local WebApp image file includes member meta image file and caching cache image file.
Further, for storing WebApp solicited message, the cache image file is used for the meta image file Store WebApp page info corresponding with the WebApp solicited message.
Further, the WebApp starting operation operation includes: access WebApp network address, opens and needs in no net The WebApp page accessed under network or vulnerable network state.
Further, the WebApp solicited message is also directed to corresponding WebApp service providing end, and described device is also wrapped It includes:
Link block, for when the judging result of the judgment module be the interconnection net state be positive normal network when, lead to Internet WebApp service providing end corresponding with the WebApp solicited message is crossed to be attached;
Second processing module, it is corresponding with the WebApp solicited message for being obtained from the WebApp service providing end WebApp page info generates according to the WebApp page info obtained from the WebApp service providing end and shows WebApp The page, and according to the WebApp page info obtained from the WebApp service providing end to the local WebApp image file It is updated.
To solve the above-mentioned problems, disclosed herein as well is it is a kind of generate image file system, the system comprises: WebApp service providing end and WebApp access service end;
Wherein, VNC Client is provided in the WebApp service providing end;
Wherein, WebApp access service end includes: WebApp access server and remote mobile terminal;It is described long-range VNC Server is provided in mobile terminal;
The WebApp service providing end is provided for utilizing the VNC Client by WebApp access server The port VNC Server, the VNCServer on the remote mobile terminal is accessed, built in the remote mobile terminal WebApp starting operation operation is carried out in Web running environment;
The remote mobile terminal, for the method by port mapping, by the VNC on the remote mobile terminal In Server port mapping to the WebApp access server;The WebApp service providing end is subjected to WebApp starting fortune When row operation, the WebApp solicited message of submission, the WebApp page info corresponding with the WebApp solicited message obtained It is recorded in local WebApp image file.
Further, the WebApp starting operation operation includes: access WebApp network address, opens and needs in no net The WebApp page accessed under network or vulnerable network state.
Further, the WebApp access server, it is default for the local WebApp image file to be pushed to Mobile terminal in.
Further, the file name of the local WebApp image file is to be calculated according to WebApp solicited message Md5-challenge md5 value.
Further, the local WebApp image file includes member meta image file and caching cache image file.
Further, for storing WebApp solicited message, the cache image file is used for the meta image file Store WebApp page info corresponding with WebApp solicited message.
Compared with prior art, the application can be obtained including following technical effect:
When interconnecting net state is no network or vulnerable network, corresponding with the WebApp solicited message local WebApp mirror of acquisition As file according to local WebApp image file generates and shows the WebApp page so that when WebApp starting operation no longer according to Rely internet, in the case where no network or vulnerable network, can still stablize, quickly start up operation WebApp, access interconnection Net service.The md5-challenge md5 value being calculated according to WebApp solicited message searches local WebApp image file, The accuracy of the local WebApp image file corresponding with WebApp solicited message got can be improved.According to from WebApp The WebApp page info that service providing end obtains is updated local WebApp image file, guarantee next time in no network or When vulnerable network, the real-time of the local WebApp image file used.
Certainly, any product for implementing the application must be not necessarily required to reach all the above technical effect simultaneously.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the method flow diagram of the first WebApp starting operation of the embodiment of the present application;
Fig. 2 is the method flow diagram of second of WebApp starting operation of the embodiment of the present application;
Fig. 3 is a kind of method flow diagram of generation image file of the embodiment of the present application;
Fig. 4 is the method flow diagram of the third WebApp starting operation of the embodiment of the present application;
Fig. 5 is the method flow diagram of the 4th kind of WebApp starting operation of the embodiment of the present application;
Fig. 6 is the apparatus structure schematic diagram of the first WebApp starting operation of the embodiment of the present application;
Fig. 7 is the apparatus structure schematic diagram of second of WebApp starting operation of the embodiment of the present application;
Fig. 8 is a kind of apparatus structure schematic diagram of generation image file of the embodiment of the present application.
Specific embodiment
Presently filed embodiment is described in detail below in conjunction with accompanying drawings and embodiments, how the application is applied whereby Technological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is showing for computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Embodiment description
The realization of the application method is described further with an embodiment below.As shown in Figure 1, being the embodiment of the present application A kind of WebApp starting operation method flow diagram, this method comprises:
S101: WebApp enabled instruction is received;Wherein, WebApp solicited message is carried in WebApp enabled instruction, WebApp solicited message is directed toward corresponding local WebApp image file.
Specifically, various WebApp can be shown in the interface of mobile terminal for providing WebApp in the form of icon etc., When user needs in use, corresponding icon etc. can be clicked directly on, WebApp is used.
Wherein, WebApp solicited message includes:
WebApp network address, or, WebApp network address and Post required parameter.
Specifically, WebApp enabled instruction can be sent by Get mode or Post mode, be sent when by Get mode When WebApp solicited message in include WebApp network address, include in WebApp solicited message when being sent by Post mode WebApp network address and Post required parameter.
S102: judge current interconnection net state.
S103: when interconnecting net state is no network or vulnerable network, corresponding with the WebApp solicited message local of acquisition WebApp image file.
Wherein, local WebApp image file is by WebApp access service end according to the WebApp of WebApp service providing end Starting operation operation generates and is pushed to local.The file name of local WebApp image file is according to WebApp solicited message 5 value of md (md5-challenge) being calculated.The md5-challenge md5 that will be calculated according to WebApp solicited message It is worth the file name as local WebApp image file, it is ensured that the uniqueness of file name avoids file name from repeating, Improve the accuracy of the local WebApp image file corresponding with WebApp solicited message got.
Wherein, local WebApp image file includes meta (member) image file and cache (caching) image file.
Wherein, meta image file is for storing WebApp solicited message, and cache image file is for storage and WebApp The corresponding WebApp page info of solicited message.
Specifically, local WebApp image file corresponding with WebApp solicited message is obtained, comprising:
Calculate the md5-challenge md5 value of WebApp solicited message;
Locating file title local WebApp image file corresponding with md5 value.
S104: it according to local WebApp image file, generates and shows the WebApp page.
Specifically, according to the WebApp page info corresponding with WebApp solicited message stored in cache image file, It generates and shows the WebApp page.
When interconnecting net state as no network or vulnerable network, it can generate and show according to local WebApp image file The WebApp page, so that WebApp can also be used in no network or vulnerable network.
Wherein, referring to fig. 2, judge current interconnection net state, may include:
S102a: inquiring local network, if not inquiring network, executes S102b;Otherwise, S102c is executed.
S102b: determine that current interconnection net state for no network, then executes S103.
S102c: judge whether there is the WebApp page corresponding with WebApp solicited message to believe in preset time interval Breath returns, if it is not, executing S102d;Otherwise, S102e is executed.
Wherein, it can be configured, be such as set as 0.1 second, 1 second according to practical application situation in preset time interval Deng.
S102d: it determines that current interconnection net state is vulnerable network, then executes S103.
S102e: determining that current interconnection net state is positive normal network, corresponding with WebApp solicited message by internet WebApp service providing end is attached.
S102f: obtaining WebApp page info corresponding with WebApp solicited message from WebApp service providing end, according to The WebApp page info obtained from WebApp service providing end generates and shows the WebApp page, and services according to from WebApp The WebApp page info that end obtains is provided to be updated local WebApp image file.
Specifically, it is attached when by internet WebApp service providing end corresponding with WebApp solicited message, net When network is connected to, it can be serviced in Web running environment through the WebApp solicited message stored in meta image file to WebApp End is provided and requests actual WebApp page info, the above process is the automatism on backstage in Web running environment, be will not influence The normal operation of upper layer WebApp.
Specifically, according to the WebApp page info obtained from WebApp service providing end to local WebApp image file It is updated, comprising:
With the WebApp page info obtained from WebApp service providing end, replace in the WebApp image file of local WebApp page info in cache image file.
Or, in the WebApp page info that will be obtained from WebApp service providing end, with local WebApp image file WebApp page info in cache image file is compared;
When the WebApp page info obtained from WebApp service providing end, with WebApp pages in cache image file There is difference in face information, then with the WebApp page info obtained from WebApp service providing end, replace local WebApp mirror image The WebApp page info in cache image file in file.
No matter whether current WebApp page info changes, and can directly be obtained with from WebApp service providing end WebApp page info, replace local WebApp image file in cache image file in WebApp page info, it is right The WebApp page info in cache image file in local WebApp image file is updated.Or, will be taken from WebApp Business provides the WebApp page info that end obtains, with the WebApp in the cache image file in local WebApp image file Page info is compared, when the WebApp page info obtained from WebApp service providing end, in cache image file When WebApp page info has different (i.e. current WebApp page info changes), Cai Yongcong WebApp service is provided The WebApp page info obtained is held, the WebApp page in the cache image file in the WebApp image file of local is replaced Information is updated.
Also, when being updated to local WebApp image file, it can be calculated according to WebApp solicited message Md5-challenge md5 value, local WebApp image file is found according to md5 value.
The method of the starting operation of WebApp described in the present embodiment is obtained when interconnecting net state as no network or vulnerable network Local WebApp image file corresponding with WebApp solicited message is taken to generate and show according to local WebApp image file The WebApp page in the case where no network or vulnerable network, still may be used so that eliminating the reliance on internet when WebApp starting operation With stabilization, operation WebApp is quickly started up, accesses Internet service.The information-being calculated according to WebApp solicited message Digest algorithm md5 value searches local WebApp image file, corresponding with WebApp solicited message got can be improved The accuracy of ground WebApp image file.According to the WebApp page info obtained from WebApp service providing end to local WebApp image file is updated, and guarantees next time in no network or vulnerable network, the local WebApp image file used Real-time.
Referring to Fig. 3, a kind of method for generating image file is present embodiments provided, comprising:
S201: web application WebApp service providing end utilizes Virtual network computer client VNCClient (Virtual Network Computer Client, Virtual network computer client), by WebApp access service end WebApp access server provide Virtual network computer server-side VNC Server (Virtual network computer server-side) Port accesses the VNC Server on the remote mobile terminal in WebApp access service end, built in remote mobile terminal WebApp starting operation operation is carried out in network Web running environment.
S202: when WebApp service providing end is carried out WebApp starting operation operation by remote mobile terminal, submission WebApp solicited message, the WebApp page info corresponding with WebApp solicited message obtained are recorded in local WebApp mirror image In file.
Wherein, WebApp starting operation operation includes: access WebApp network address, opens and needs in no network or weak net The WebApp page accessed under network state.
Wherein, this method further include:
Local WebApp image file is pushed in preset mobile terminal by WebApp access server.
Wherein, preset mobile terminal is the mobile terminal using the WebApp of the present embodiment.
Wherein, the file name of local WebApp image file is the information-being calculated according to WebApp solicited message Digest algorithm md5 value.
Wherein, local WebApp image file includes member meta image file and caching cache image file.
Wherein, meta image file is for storing WebApp solicited message, and cache image file is for storage and WebApp The corresponding WebApp page info of solicited message.
The method that image file is generated described in the present embodiment, WebApp service providing end only need remotely to carry out WebApp Network request can be obtained data automatically and generate image file, is not necessarily to by starting operation operation, WebApp access service end WebApp service providing end generates, and can save time and the cost of WebApp service providing end.WebApp access server will Local WebApp image file is pushed in preset mobile terminal, when the interconnection net state of preset mobile terminal is no network Or when vulnerable network, local WebApp image file corresponding with WebApp solicited message is obtained, according to local WebApp mirror image text Part generates and shows the WebApp page, so that internet is eliminated the reliance on when WebApp starting operation, in no network or vulnerable network In the case of, it can still stablize, quickly start up operation WebApp, access Internet service.It will be according to WebApp solicited message File name of the md5-challenge md5 value being calculated as local WebApp image file, it is ensured that file name Uniqueness, avoid file name from repeating, improve get local WebApp mirror image corresponding with WebApp solicited message text The accuracy of part.
In order to make it easy to understand, being further described by taking concrete application as an example below, mentioned referring to fig. 4 with Fig. 5, the present embodiment A kind of method for having supplied WebApp starting operation, this method comprises:
S301:WebApp service providing end issues WebApp.
Before WebApp service providing end issues WebApp, need the relevant information of WebApp to be distributed to WebApp access Server-side, the relevant information of WebApp include WebApp title, WebApp icon and WebApp network address, WebApp mirror image text Part etc..
In the present embodiment, the method for generating image file is as follows:
WebApp service providing end utilizes VNC Client, passes through the WebApp access service in WebApp access service end The port VNC Server that device provides accesses VNC Server, In on the remote mobile terminal in WebApp access service end WebApp starting operation operation is carried out in network Web running environment built in remote mobile terminal.Remote mobile terminal will When WebApp service providing end carries out WebApp starting operation operation, the WebApp solicited message of submission, obtain and WebApp The corresponding WebApp page info of solicited message is recorded in local WebApp image file.WebApp access server will be local WebApp image file is pushed in preset mobile terminal.
The present embodiment WebApp service providing end only needs to access remote mobile terminal on a web browser, at remote mobile end The WebApp that will be issued is accessed by WebApp network address on end, the WebApp page browsing for needing to be made into image file One time, can automatic recording go out required for WebApp image file.
Wherein, the file name of local WebApp image file is the information-being calculated according to WebApp solicited message Digest algorithm md5 value.Local WebApp image file includes member meta image file and caching cache image file.Such as: when WebApp solicited message is http://lifecard.aliapp.com/lifecard/src/tpl/ Serviceaddpage.tpl, obtained meta image file and cache image file are as follows: 1, meta image file are as follows: 0b The content of fe8652d4843033d657801cbb90dc7c.meta, meta image file are as follows:
2, cache image file are as follows: 0bfe8652d4843033d657801cbb90dc7c.cache, cache mirror image text The content of part are as follows:
Method by generating image file above, it is in Web running environment that all WebApp pages of browsing are all raw As image file described above.
S302:WebApp access service end pushes WebApp to mobile terminal.
When there is new WebApp access, WebApp access service end can pass through its channel Push between mobile terminal Mobile terminal is sent by new WebApp notice, has network environment (such as wifi environment or 3G wireless network when mobile terminal is in Environment etc.) under when, can by WebApp access service end issue WebApp and WebApp image file download in mobile terminal. Later, the WebApp newly issued can be accessed in the application platform at the WebApp access service end of mobile terminal in user.
S303: mobile terminal passes through local image file realization WebApp service when no network or vulnerable network.
When user starts WebApp in the application platform at the WebApp access service end of mobile terminal, pass through Fig. 2's Method when determining current interconnection net state for no network or vulnerable network, accesses local mirror image.Wherein, local mirror image is accessed Detailed process is as described in step S103, S104.The md5-challenge md5 value for calculating WebApp solicited message, passes through md5 value The meta image file and cache image file generated in step S301 can be found.The content of cache image file is exactly Return to the result of upper layer network calling.Strategy in this way can make the exploitation of upper layer WebApp without concerned about network Situation, still through standard HTML network protocol carry out Internet resources calling, by Web running environment it is automatic detection with Match, achieve the purpose that Internet resources still can be successfully loaded under no network or vulnerable network, to realize the effect of offline access.
S304: mobile terminal realizes WebApp service by WebApp service providing end when proper network.
When proper network, mobile terminal is attached by internet and WebApp service providing end, after connection, In By the WebApp solicited message recorded in meta image file in Web running environment, work as from the request of WebApp service providing end Preceding WebApp page info, the automatism on backstage when this process is Web running environment, will not influence upper layer WebApp's It operates normally.
S305: mobile terminal to update local image file.
Mobile terminal gets WebApp pages from WebApp service providing end in Web running environment in step s 304 After the information of face, corresponding cache image file is found according to md5 value, and according to obtaining from WebApp service providing end WebApp page info updates cache image file, uses when in case of next time without network or vulnerable network.Specific update method referring to The explanation of step S102f, details are not described herein again.
As shown in fig. 6, being a kind of device of WebApp starting operation of the embodiment of the present application, which includes:
Receiving module 401, for receiving web application WebApp enabled instruction;Wherein, it is carried in WebApp enabled instruction WebApp solicited message, WebApp solicited message are directed toward corresponding local WebApp image file;
Judgment module 402, for judging current interconnection net state;
Module 403 is obtained, the judging result for working as judgment module 402 is that interconnection net state is no network or vulnerable network When, obtain local WebApp image file corresponding with WebApp solicited message;Wherein, local WebApp image file by WebApp access service end starts operation operation generation according to the WebApp of WebApp service providing end and is pushed to local;
First processing module 404, for generating and showing the WebApp page according to local WebApp image file.
Further, judgment module 402 includes:
Query unit, for inquiring local network;
First determination unit, if not inquiring network for query unit, it is determined that current interconnection net state is Without network.
Further, judgment module 402 further include:
Judging unit, if inquiring network for query unit, judge whether to have in preset time interval with The corresponding WebApp page info of WebApp solicited message returns;
Second determination unit, for if it is determined that the judging result of unit is that do not have, it is determined that current interconnection net state For vulnerable network.
Further, WebApp solicited message includes:
WebApp network address, or, WebApp network address and Post required parameter.
Further, obtaining module 403 includes:
Computing unit, for calculating the md5-challenge md5 value of WebApp solicited message;
Searching unit is used for locating file title local WebApp image file corresponding with md5 value.
Further, local WebApp image file includes member meta image file and caching cache image file.
Further, meta image file is for storing WebApp solicited message, cache image file for store with The corresponding WebApp page info of WebApp solicited message.
Further, WebApp starting operation operation includes: access WebApp network address, open need in no network or The WebApp page accessed under vulnerable network state.
Further, referring to Fig. 7, WebApp solicited message is also directed to corresponding WebApp service providing end, and the device is also Include:
Link block 405, for when the judging result of judgment module 402 be interconnection net state be positive normal network when, pass through Internet WebApp service providing end corresponding with WebApp solicited message is attached;
Second processing module 406, it is corresponding with WebApp solicited message for being obtained from WebApp service providing end WebApp page info generates according to the WebApp page info obtained from WebApp service providing end and shows WebApp pages Face, and local WebApp image file is updated according to the WebApp page info obtained from WebApp service providing end.
The device of the starting operation of WebApp described in the present embodiment is obtained when interconnecting net state as no network or vulnerable network Local WebApp image file corresponding with WebApp solicited message is taken to generate and show according to local WebApp image file The WebApp page in the case where no network or vulnerable network, still may be used so that eliminating the reliance on internet when WebApp starting operation With stabilization, operation WebApp is quickly started up, accesses Internet service.The information-being calculated according to WebApp solicited message Digest algorithm md5 value searches local WebApp image file, corresponding with WebApp solicited message got can be improved The accuracy of ground WebApp image file.According to the WebApp page info obtained from WebApp service providing end to local WebApp image file is updated, and guarantees next time in no network or vulnerable network, the local WebApp image file used Real-time.
Referring to Fig. 8, disclosed herein as well is a kind of systems for generating image file, which includes: that WebApp service mentions For holding 50 and WebApp access service end 60;
Wherein, VNC Client is provided in WebApp service providing end 50;
Wherein, WebApp access service end 60 includes: WebApp access server 601 and remote mobile terminal 602;Remotely VNC Server is provided in mobile terminal 602;
WebApp service providing end 50, for utilizing VNC Client, the VNC provided by WebApp access server The port Server accesses the VNC Server on remote mobile terminal 602, runs ring in the Web built in remote mobile terminal 602 WebApp starting operation operation is carried out in border;
Remote mobile terminal 602, for the method by port mapping, by the VNC on remote mobile terminal 602 In Server port mapping to WebApp access server;WebApp service providing end 50 is subjected to WebApp starting operation operation When, the WebApp solicited message of submission, the WebApp page info corresponding with WebApp solicited message obtained are recorded in local In WebApp image file.
Further, WebApp starting operation operation includes: access WebApp network address, open need in no network or The WebApp page accessed under vulnerable network state.
Further, WebApp access server 601, for local WebApp image file to be pushed to preset movement In terminal.
Further, the file name of local WebApp image file is the letter being calculated according to WebApp solicited message Breath-digest algorithm md5 value.
Further, local WebApp image file includes member meta image file and caching cache image file.
Further, meta image file is for storing WebApp solicited message, cache image file for store with The corresponding WebApp page info of WebApp solicited message.
The system that image file is generated described in the present embodiment, WebApp service providing end only need remotely to carry out WebApp Network request can be obtained data automatically and generate image file, is not necessarily to by starting operation operation, WebApp access service end WebApp service providing end generates, and can save time and the cost of WebApp service providing end.WebApp access server will Local WebApp image file is pushed in preset mobile terminal, when the interconnection net state of preset mobile terminal is no network Or when vulnerable network, local WebApp image file corresponding with WebApp solicited message is obtained, according to local WebApp mirror image text Part generates and shows the WebApp page, so that internet is eliminated the reliance on when WebApp starting operation, in no network or vulnerable network In the case of, it can still stablize, quickly start up operation WebApp, access Internet service.It will be according to WebApp solicited message File name of the md5-challenge md5 value being calculated as local WebApp image file, it is ensured that file name Uniqueness, avoid file name from repeating, improve get local WebApp mirror image corresponding with WebApp solicited message text The accuracy of part.
Described device, system are corresponding with method flow above-mentioned description, and shortcoming refers to the narration of above method process, No longer repeat one by one.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through within that scope of the inventive concept describe herein It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen It please be in the protection scope of appended claims.

Claims (28)

1. a kind of method of WebApp starting operation, which is characterized in that the described method includes:
Receive web application WebApp enabled instruction;Wherein, WebApp solicited message, institute are carried in the WebApp enabled instruction It states WebApp solicited message and is directed toward corresponding local WebApp image file;It include WebApp net in the WebApp solicited message Network address;
Judge current interconnection net state, when the interconnection net state is no network or vulnerable network, obtains and the WebApp The corresponding local WebApp image file of solicited message;Wherein, the local WebApp image file is by WebApp access service End starts operation operation generation according to the WebApp of WebApp service providing end and is pushed to local;
According to the local WebApp image file, generates and show the WebApp page;
Wherein, described to obtain local WebApp image file corresponding with the WebApp solicited message, comprising: described in calculating The md5-challenge md5 value of WebApp solicited message, locating file title local WebApp mirror corresponding with the md5 value As file, the file name of local WebApp image file is the md5 value being calculated according to WebApp solicited message.
2. the method as described in claim 1, which is characterized in that judge current interconnection net state, comprising:
Inquire local network;
If not inquiring network, it is determined that current interconnection net state is no network.
3. method according to claim 2, which is characterized in that inquire after local network, further includes:
If inquiring network, judge whether to have in preset time interval corresponding with the WebApp solicited message WebApp page info returns;
If it is not, determining that current interconnection net state is vulnerable network.
4. the method as described in claim 1, which is characterized in that the WebApp solicited message includes:
WebApp network address, or, WebApp network address and Post required parameter.
5. the method as described in claim 1, which is characterized in that the local WebApp image file includes member meta mirror image text Part and caching cache image file.
6. method as claimed in claim 5, which is characterized in that the meta image file is for storing WebApp request letter Breath, the cache image file is for storing WebApp page info corresponding with the WebApp solicited message.
7. the method as described in claim 1-4 any claim, which is characterized in that the WebApp starting operation operation packet Include: access WebApp network address opens the WebApp page for needing to access under no network or vulnerable network state.
8. the method as described in claim 1-4 any claim, which is characterized in that the WebApp solicited message is also directed to Corresponding WebApp service providing end, after judging current interconnection net state, further includes:
When the interconnection net state is positive normal network, taken by internet WebApp corresponding with the WebApp solicited message Business provides end and is attached;
WebApp page info corresponding with the WebApp solicited message is obtained from the WebApp service providing end;
The WebApp page is generated and shown according to the WebApp page info obtained from the WebApp service providing end, and according to The WebApp page info obtained from the WebApp service providing end is updated the local WebApp image file.
9. a kind of method for generating image file, which is characterized in that the described method includes:
Web application WebApp service providing end utilizes Virtual network computer client VNC Client, is accessed by WebApp The port Virtual network computer server-side VNC Server that WebApp access server in server-side provides, described in access The VNC Server on remote mobile terminal in WebApp access service end, in the network built in the remote mobile terminal WebApp starting operation operation is carried out in Web running environment;
When the WebApp service providing end is carried out WebApp starting operation operation by the remote mobile terminal, submission WebApp solicited message, the WebApp page info corresponding with the WebApp solicited message obtained are recorded in local WebApp In image file;
WebApp access service end pushes the local WebApp image file to mobile terminal, so that the mobile terminal WebApp service is realized by the local WebApp image file in no network or vulnerable network.
10. method as claimed in claim 9, which is characterized in that the WebApp starting operation operation includes: access WebApp Network address opens the WebApp page for needing to access under no network or vulnerable network state.
11. method as claimed in claim 9, which is characterized in that the method also includes:
The local WebApp image file is pushed in preset mobile terminal by the WebApp access server.
12. the method as described in claim 9-11 any claim, which is characterized in that the local WebApp image file File name be the md5-challenge md5 value being calculated according to the WebApp solicited message.
13. the method as described in claim 9-11 any claim, which is characterized in that the local WebApp image file Including first meta image file and caching cache image file.
14. method as claimed in claim 13, which is characterized in that the meta image file is for storing WebApp request letter Breath, the cache image file is for storing WebApp page info corresponding with the WebApp solicited message.
15. a kind of device of WebApp starting operation, which is characterized in that described device includes:
Receiving module, for receiving web application WebApp enabled instruction;Wherein, it is carried in the WebApp enabled instruction WebApp solicited message, the WebApp solicited message are directed toward corresponding local WebApp image file;The WebApp request It include WebApp network address in information;
Judgment module, for judging current interconnection net state;
Module is obtained, for when the judging result of the judgment module is the interconnection net state for no network or vulnerable network, Obtain local WebApp image file corresponding with the WebApp solicited message;Wherein, the local WebApp image file Operation operation generation is started according to the WebApp of WebApp service providing end by WebApp access service end and is pushed to local;
First processing module, for generating and showing the WebApp page according to the local WebApp image file;
Wherein, the acquisition module includes:
Computing unit, for calculating the md5-challenge md5 value of the WebApp solicited message;
Searching unit is used for locating file title local WebApp image file corresponding with the md5 value, local WebApp mirror As the file name of file is the md5 value being calculated according to WebApp solicited message.
16. device as claimed in claim 15, which is characterized in that the judgment module includes:
Query unit, for inquiring local network;
First determination unit, if not inquiring network for the query unit, it is determined that current interconnection net state is Without network.
17. device as claimed in claim 16, which is characterized in that the judgment module further include:
Judging unit, if inquiring network for the query unit, judge whether to have in preset time interval with The corresponding WebApp page info of the WebApp solicited message returns;
Second determination unit, if the judging result for the judging unit is that do not have, it is determined that current interconnection net state For vulnerable network.
18. device as claimed in claim 15, which is characterized in that the WebApp solicited message includes:
WebApp network address, or, WebApp network address and Post required parameter.
19. device as claimed in claim 15, which is characterized in that the local WebApp image file includes member meta mirror image File and caching cache image file.
20. device as claimed in claim 19, which is characterized in that the meta image file is for storing WebApp request letter Breath, the cache image file is for storing WebApp page info corresponding with the WebApp solicited message.
21. the device as described in claim 15-18 any claim, which is characterized in that the WebApp starting operation behaviour Work includes: access WebApp network address, opens the WebApp page for needing to access under no network or vulnerable network state.
22. the device as described in claim 15-18 any claim, which is characterized in that the WebApp solicited message is also It is directed toward corresponding WebApp service providing end, described device further include:
Link block, for when the judging result of the judgment module be the interconnection net state be positive normal network when, by mutual WebApp service providing end corresponding with the WebApp solicited message of networking is attached;
Second processing module, it is corresponding with the WebApp solicited message for being obtained from the WebApp service providing end WebApp page info generates according to the WebApp page info obtained from the WebApp service providing end and shows WebApp The page, and according to the WebApp page info obtained from the WebApp service providing end to the local WebApp image file It is updated.
23. a kind of system for generating image file, which is characterized in that the system comprises: WebApp service providing end and WebApp access service end;
Wherein, VNC Client is provided in the WebApp service providing end;
Wherein, WebApp access service end includes: WebApp access server and remote mobile terminal;The remote mobile VNC Server is provided in terminal;
The WebApp service providing end, for utilizing the VNC Client, the VNC provided by WebApp access server The port Server accesses the VNC Server on the remote mobile terminal, in the Web operation built in the remote mobile terminal WebApp starting operation operation is carried out in environment;
The remote mobile terminal, for the method by port mapping, by the VNC Server on the remote mobile terminal In port mapping to the WebApp access server;The WebApp service providing end is subjected to WebApp starting operation operation When, the WebApp solicited message of submission, the WebApp page info corresponding with the WebApp solicited message obtained are recorded in In local WebApp image file;
WebApp access service end is also used to push the local WebApp image file to mobile terminal, so that described Mobile terminal realizes WebApp service by the local WebApp image file in no network or vulnerable network.
24. system as claimed in claim 23, which is characterized in that the WebApp starting operation operation includes: access WebApp network address opens the WebApp page for needing to access under no network or vulnerable network state.
25. system as claimed in claim 23, which is characterized in that the WebApp access server is used for the local WebApp image file is pushed in preset mobile terminal.
26. the system as described in claim 23-25 any claim, which is characterized in that the local WebApp mirror image text The file name of part is the md5-challenge md5 value being calculated according to the WebApp solicited message.
27. the system as described in claim 23-25 any claim, which is characterized in that the local WebApp mirror image text Part includes member meta image file and caching cache image file.
28. system as claimed in claim 27, which is characterized in that the meta image file is for storing WebApp request letter Breath, the cache image file is for storing WebApp page info corresponding with the WebApp solicited message.
CN201410239473.7A 2014-05-30 2014-05-30 The method and apparatus that WebApp starting runs, generates image file Active CN105446750B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201410239473.7A CN105446750B (en) 2014-05-30 2014-05-30 The method and apparatus that WebApp starting runs, generates image file
PCT/CN2015/079689 WO2015180601A1 (en) 2014-05-30 2015-05-25 Method and device for starting operation of webapp and generating mirror image file
HK16109243.8A HK1221295A1 (en) 2014-05-30 2016-08-03 Method and device for running webapp enablement and generating image file webapp

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410239473.7A CN105446750B (en) 2014-05-30 2014-05-30 The method and apparatus that WebApp starting runs, generates image file

Publications (2)

Publication Number Publication Date
CN105446750A CN105446750A (en) 2016-03-30
CN105446750B true CN105446750B (en) 2019-12-03

Family

ID=54698088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410239473.7A Active CN105446750B (en) 2014-05-30 2014-05-30 The method and apparatus that WebApp starting runs, generates image file

Country Status (3)

Country Link
CN (1) CN105446750B (en)
HK (1) HK1221295A1 (en)
WO (1) WO2015180601A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649595B (en) * 2016-11-22 2020-10-27 腾讯科技(深圳)有限公司 Object pool-based webpage starting acceleration method and device and terminal
CN106897095B (en) * 2017-02-24 2020-10-13 网易(杭州)网络有限公司 Method and device for hot repairing application program, readable storage medium and computing equipment
CN108809922B (en) * 2017-07-31 2019-07-05 视联动力信息技术股份有限公司 A kind of audio fault handling method, conference dispatching end and view networked terminals
CN110869907B (en) * 2018-03-28 2021-10-01 华为技术有限公司 Method and terminal for browsing application page
CN108228282B (en) * 2018-04-04 2021-08-27 北京三快在线科技有限公司 Method and device for loading website page
CN108959455B (en) * 2018-06-15 2020-12-04 未鲲(上海)科技服务有限公司 Single-page Web application implementation method and device, computer equipment and storage medium
CN108845816B (en) * 2018-06-22 2021-09-10 平安科技(深圳)有限公司 Application program updating method, system, computer device and storage medium
CN109120615B (en) * 2018-08-14 2022-04-26 未鲲(上海)科技服务有限公司 Information viewing method and device, computer equipment and storage medium
CN109376323B (en) * 2018-09-11 2023-06-16 平安科技(深圳)有限公司 Application running method, device, computer device and storage medium
CN109213560B (en) * 2018-09-12 2020-11-27 南京尚网网络科技有限公司 Method and equipment for displaying information page
CN111338949A (en) * 2020-02-25 2020-06-26 深圳忆联信息系统有限公司 Method and device for batch access to winpe through wireless start, computer equipment and storage medium
CN111597021B (en) * 2020-05-07 2023-07-18 东软集团股份有限公司 Method, device, system and related equipment for realizing application program operation
CN111782989B (en) * 2020-07-03 2022-11-18 Oppo广东移动通信有限公司 Fast application association method and related device
CN114706622B (en) * 2022-03-10 2023-08-18 北京百度网讯科技有限公司 Method, device, equipment, medium and product for starting model service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523207A (en) * 2011-12-06 2012-06-27 北京航空航天大学 VNC (Virtual Network Computer)-based remote resource access method and proxy device
CN102833350A (en) * 2012-09-11 2012-12-19 优视科技有限公司 Processing method and processing device of WebApp updating
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying
CN103186594A (en) * 2011-12-29 2013-07-03 盛乐信息技术(上海)有限公司 WebAPP dynamic offline memory system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459571B (en) * 2008-12-16 2011-04-06 北京大学 Method, system and apparatus for website mirroring
US8930548B2 (en) * 2012-03-06 2015-01-06 Mobile Helix, Inc. Mobile link system, method and apparatus
CN103473082A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Method and device for starting WebApp

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523207A (en) * 2011-12-06 2012-06-27 北京航空航天大学 VNC (Virtual Network Computer)-based remote resource access method and proxy device
CN103186594A (en) * 2011-12-29 2013-07-03 盛乐信息技术(上海)有限公司 WebAPP dynamic offline memory system and method
CN102833350A (en) * 2012-09-11 2012-12-19 优视科技有限公司 Processing method and processing device of WebApp updating
CN103051684A (en) * 2012-12-07 2013-04-17 百度在线网络技术(北京)有限公司 Method, system and device for converting website into Web App for displaying

Also Published As

Publication number Publication date
WO2015180601A1 (en) 2015-12-03
HK1221295A1 (en) 2017-05-26
CN105446750A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105446750B (en) The method and apparatus that WebApp starting runs, generates image file
US10412176B2 (en) Website access method, apparatus, and website system
US8910132B2 (en) Client-side script bundle management system
CN108984170A (en) The multilingual rendering method of the H5 page and device
CN103942225A (en) Method and system for invoking resources of Hybrid App client and client
CN109388766A (en) The method and apparatus of page load
CN104113576A (en) Method and device for updating client
IL270524B2 (en) Matching and attribution of user device events
CN103200231B (en) Policy control method and system
CN102567339A (en) Method, device and system for acquiring start page
CN104967644A (en) Message push method, apparatus and system
US20150207691A1 (en) Preloading content based on network connection behavior
US11962680B2 (en) Blockchain ledger growth management
CN104869135B (en) The method and terminal of data interaction
TWI677223B (en) Page display method and device
US20170134179A1 (en) Techniques to transform network resource requests to zero rated network requests
CN103440281A (en) Method, device and equipment for acquiring download file
CN109446445A (en) A kind of resource acquiring method and device
US10771578B2 (en) Webpage loading method and apparatus
EP3119044B1 (en) Page insertion method and device
CN102752401B (en) Content acquisition method and device
CN104780181A (en) Method of displaying equipment in network and network equipment
CN107959929A (en) One kind switching Proxy Method and device
CN111538926A (en) Automatic offline package publishing method and device, electronic equipment and storage medium
US20150149596A1 (en) Sending mobile applications to mobile devices from personal computers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1221295

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201230

Address after: Room 603, 6 / F, Roche Plaza, 788 Cheung Sha Wan Road, Kowloon, China

Patentee after: Zebra smart travel network (Hong Kong) Limited

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right