CN105808282A - Method and device for updating webpage contents of application program - Google Patents

Method and device for updating webpage contents of application program Download PDF

Info

Publication number
CN105808282A
CN105808282A CN201410855670.1A CN201410855670A CN105808282A CN 105808282 A CN105808282 A CN 105808282A CN 201410855670 A CN201410855670 A CN 201410855670A CN 105808282 A CN105808282 A CN 105808282A
Authority
CN
China
Prior art keywords
web page
page contents
compressed file
renewal
application program
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.)
Pending
Application number
CN201410855670.1A
Other languages
Chinese (zh)
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.)
Beijing Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software 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 Beijing Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN201410855670.1A priority Critical patent/CN105808282A/en
Publication of CN105808282A publication Critical patent/CN105808282A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for updating the webpage contents of an application program. The method comprises the following steps: sending verification information for determining whether the application program needs to update the webpage contents or not to a server side; when a verification result shows that the webpage contents need to be updated, sending a network request for obtaining a compression file which comprises the updated webpage contents to the server side; receiving the compression file which is returned from the server side and comprises the updated webpage contents; decompressing and storing the compression file which comprises the updated webpage contents for loading when the application program is used. The technical scheme loads the updated webpage contents to the locality, so that the application program can display a webpage effect through loading local webpage contents under a situation that the network is in the absence or the network state is poor, and a user can normally use. In addition, the scheme only needs to update the webpage contents of the application program, inconvenience brought by that the webpage contents only can be updated while a client side must be frequently upgraded is avoided, and user experience is improved.

Description

A kind of method and apparatus updating application program web page contents
Technical field
The present invention relates to network communication technology field, be specifically related to a kind of method and apparatus updating application program web page contents.
Background technology
The progress of Internet communication technology, drive developing rapidly of application program, at present, the realization of most of function of application generally requires and presents webpage effect, and the many functional modules of efficiency of writing in order to improve application program directly adopt the form loading HTML HTML (HyperTextMark-upLanguage) file to complete.
The existing implementation presenting webpage effect in the application mainly has two kinds: a kind of scheme is: html file is placed on server end, and client is loaded directly into the html file content of server end and presents webpage effect by calling the uniform resource position mark URL (UniformResourceLocator) of html file.But the program has the drawback that: owing to client needs to directly invoke the URL address of html file, therefore, html file content cannot be loaded when without network service;Even and if having network service, the URL address of request html file is also required to wait for a long time, consumes the substantial amounts of time, greatly reduces Consumer's Experience.Another kind of scheme is: when client application is downloaded, client and html file are packaged with.During use, client presents webpage effect by loading the html file of local preservation.But this scheme there is also lower column defects: 1, substantial amounts of html file leaves this locality in, consuming the memory source of this locality greatly, when particularly in the limited memory of mobile terminal, this drawback is more prominent;2, data maintenance cannot individually be carried out when the content change of html file.In client application running, it is frequently necessary to html file content is updated, add or the data maintenance work such as amendment, under this mode, user can only re-download upgrading after client to realize data maintenance, frequently updating client also result in user satisfaction decline.
Summary of the invention
The invention provides a kind of method and apparatus updating application program web page contents, to solve the problem that the existing technical scheme presenting webpage effect in the application causes poor user experience.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
According to an aspect of the invention, it is provided a kind of method updating application program web page contents, the method includes:
Application program is sent the need of the checking information updating web page contents to server end;
According to the result when needs update, send the network request of the compressed file obtaining the web page contents after comprising renewal to server end;
Receive the compressed file comprising the web page contents after renewal that server end returns;
The compressed file of the web page contents after comprising renewal carries out decompression contract preservation, load when using in order to application program.
Alternatively, the network request of the compressed file sending the web page contents after acquisition comprises renewal to server end includes:
Obtain in application program the URL interface IP address of the character string type being pre-configured with, the URL interface IP address of character string type is converted to network request can address date;
Send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date.
Alternatively, the network request sending the compressed file obtaining the web page contents after comprising renewal to server end also includes: the network request of the compressed file of the web page contents obtained after comprising renewal is set to GET request, utilize network request can address date, send GET request by AFNetworking instrument to server end;
Wherein, comprising successfully and two bricks of failure in GET request, when GET request success, call successful procedure block and return the compressed file of the web page contents after comprising renewal, when GET request failure, malloc failure malloc brick returns failure cause.
Alternatively, the compressed file that compressed file is Zip form of the web page contents after renewal is comprised;
The compressed file of the web page contents after comprising renewal is carried out decompression include:
Search the storing path of the compressed file of the described Zip form received;
Found the compressed file of described Zip form by described storing path, and it is carried out decompression.Alternatively, the method also includes: what receive user checks instruction, and according to checking instruction, the web page contents after loading, by application program, the renewal preserved is shown to user.
According to another aspect of the present invention, it is provided that a kind of update the device of web page contents in application program, this device includes:
Update authentication unit, for sending application program the need of the checking information updating web page contents to server end;
Web page content request unit, is used for the result according to renewal authentication unit when needs update, sends the network request of the compressed file obtaining the web page contents after comprising renewal to server end;
Web page contents receives unit, for receiving the compressed file comprising the web page contents after renewal that server end returns;
Compressed file processing unit, contracts preservations for the compressed file of the web page contents after comprising renewal carries out decompression, loading when using in order to application program.
Alternatively, web page content request unit specifically for, obtain in application program the URL interface IP address of the character string type being pre-configured with, the URL interface IP address of character string type is converted to network request can address date;
Send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date.
Alternatively, web page content request unit specifically for: the network request of compressed file of the web page contents obtained after comprising renewal is set to GET request, utilize network request can address date, send GET request by AFNetworking instrument to server end;
Wherein, comprising successfully and two bricks of failure in GET request, when GET request success, call successful procedure block and return the compressed file of the web page contents after comprising renewal, when GET request failure, malloc failure malloc brick returns failure cause.
Alternatively, the compressed file that compressed file is Zip form of the web page contents after renewal is comprised;
Compressed file processing unit specifically for, search the storing path of the compressed file of described Zip form received;Found the compressed file of described Zip form by described storing path, and it is carried out decompression.Alternatively, this device also includes: web page contents loading unit, and for receiving the instruction of checking of user, and according to checking instruction, the web page contents after loading, by application program, the renewal preserved is shown to user.
Technical scheme is first verified the need of the web page contents updating application program, if needing to update, web page contents after updating to server end acquisition request again, and receive the compressed file comprising the web page contents after renewal that service end returns, this locality it is saved in after decompression, during use, application program is loaded directly into the web page contents of this locality to carry out representing without asking to server end again.Therefore technical scheme makes application program be in quickly to present webpage effect by reading and saving at local html file without network state or network state when not good, from without hindering user to use.Additionally, by web page contents is judged the need of renewal, if needing to update, just when application program is in network on-state, the web page contents of disposable application programs is updated, without updating client, the web page contents ensured in application program is all up-to-date, and also eliminating needs customer upgrade client could realize web page contents to update the inconvenience brought to user, improve the satisfaction of user.
Accompanying drawing explanation
Fig. 1 is that a kind of of one embodiment of the invention offer updates the flow chart of the method for web page contents in application program;
Fig. 2 is that a kind of of one embodiment of the invention offer updates the block diagram of the device of web page contents in application program.
Detailed description of the invention
The core concept of the present invention is: for existing scheme when updating the web page contents of application program, need to be always maintained at network on-state or require over updating client and complete and the problem that causes poor user experience, the scheme of a kind of web page contents updating application program is proposed, by first judging the need of the web page contents updating application program, if needing to update, web page contents after updating to server end acquisition request again, and receive the compressed file of the web page contents after the renewal that service end returns, then decompress and be saved in this locality (being namely saved on the terminal unit running application program), during use, application program is loaded directly into the web page contents of this locality and carries out representing without asking to server end again, without waiting for consuming time short, thus without influence on the use of user.Additionally, if the web page contents wanting application programs is updated safeguarding, only need to disposable when network is connected web page contents be updated (multiple web content files be encapsulated in a compressed package disposable download complete), the web page contents of guarantee application program is all up-to-date, without updating client, also solve the technical problem needing user's updating client again just can complete data update, be greatly improved the satisfaction of user.
Fig. 1 is that a kind of of one embodiment of the invention offer updates the flow chart of the method for web page contents in application program, and referring to Fig. 1, in this renewal application program, the method for web page contents includes:
Step S110, sends application program the need of the checking information updating web page contents to server end;
Step S120, according to the result when needs update, sends the network request of the compressed file obtaining the web page contents after comprising renewal to server end;
Step S130, receives the compressed file comprising the web page contents after renewal that server end returns;
Step S140, carries out decompression and contracts preservation, load when using in order to application program the compressed file of the web page contents after comprising renewal.
Through above-mentioned steps, it is achieved that represented at local html file by reading and saving when not good without network state or network state when application program is in, consuming time short, do not interfere with the effect that user uses.Additionally, judged the need of renewal by the web page contents of application programs, if needing to update, just when network is connected, the web page contents of disposable application programs is updated, ensure that the web page contents of application program is all up-to-date (namely consistent with the web page contents of the application program that server end preserves), additionally, if the web page contents wanting application programs is updated safeguarding, only need to disposable when network is connected web page contents be updated, the web page contents of guarantee application program is all up-to-date, without updating client, also the technical problem needing user's updating client again just can complete data update is solved, improve the satisfaction of user.
In the present embodiment, step S120, the network request sending the compressed file obtaining the web page contents after comprising renewal to server end includes:
Obtain in application program the URL interface IP address of the character string type being pre-configured with, the URL interface IP address of character string type is converted to network request can address date;Send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date.
And, the network request of compressed file of the web page contents obtained after comprising renewal is set to GET request, utilize network request can address date, send GET request by AFNetworking instrument to server end;
Wherein, comprising successfully and two bricks of failure in GET request, when GET request success, call successful procedure block and return the compressed file of the web page contents after comprising renewal, when GET request failure, malloc failure malloc brick returns failure cause.
In the present embodiment, comprise the compressed file that compressed file is Zip form of the web page contents after renewal;
Step S140, carries out decompression to the compressed file of the web page contents after comprising renewal and includes:
Search the storing path of the compressed file of the described Zip form received;Found the compressed file of described Zip form by described storing path, and it is carried out decompression.Below for application program for supporting that the method for this renewal application program web page contents of the present invention is specifically described by (Mobile operating system of Apple's exploitation of the U.S.) application program of iOS operating system.It should be noted that, although being that the application program supporting iOS operating system illustrates in the present embodiment, but it is understood that, the method of this renewal application program of the present invention is not limited to support the application program of iOS operating system, in other embodiments, it is also possible to be applied in the application program supporting other operating systems.
Step one, the web page contents of application programs is verified the need of renewal.
Here, web page contents refers to be employed program and loads and be presented as the content of webpage effect, specifically referring to HTML HTML (HypertextMarkupLanguage) file content, HTML is a kind of markup language for describing web document.It carrys out the various piece in the webpage that labelling to show by label symbol.Web page files itself is a kind of text, by adding marker character in text, it is possible to tell how browser shows content therein.
Wherein, to web page contents the need of updating a kind of mode being verified it is, Message Digest Algorithm 5 MD5 (Message-DigestAlgorithm5) check code is sent to server end by application program, MD5 check code is carried out Hash operation by server end, then the MD5 check code removing and being saved in server end again compares, and then determines the need for updating the web page contents of application program and returning the result.
Step 2, the result according to step one, if needing to update application program web page contents, send the network request of the compressed file obtaining the web page contents after comprising renewal to server end;And receive the compressed file comprising the web page contents after renewal that server end returns.
The present embodiment to server end transmission network request and receives the response data that server end returns by AFNetworking network tool.AFNetworking is the iOS network service class libraries of a lightweight, it is implemented on NSURLConnection, NSOperation and other Foundation technology being familiar with, it has good framework, abundant application programming interface API (ApplicationProgrammingInterface) and built modular mode.
Wherein, the network request sending the compressed file obtaining the web page contents after comprising renewal to server end includes: obtains the interface IP address URL being pre-configured with in application program, and this URL is made requests on thus obtaining the compressed file of the html web page content after comprising renewal.
In process of application development, server can with application program one interface document of agreement, defining URL interface IP address, parameter and return value in interface document, then application program is conducted interviews (server) by the URL address of interface document in use and asks.Here the interface IP address URL being pre-configured with in application program is exactly for accessing server or sending that URL address of network request in interface document.Such as,http://60.247.77.179/circle/message/message!query.actionBeing exactly a URL address, by this URL address is made requests on, when asking successfully, the program that just can be applied needs the compressed file comprising the html web page content after renewal downloaded.
URL address owing to providing in interface document is character string type, the address data type specified when carrying out network request from application program is different, therefore before sending network request, first the URL address of character string type is carried out type conversion, the URL interface IP address of this character string type is converted to when carrying out network request can data type NSMutableURLRequest, and send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date, GET request is sent again through AFNetworking network tool to server after being provided with.Wherein, NSMutableURLRequest is that application program carries out the data type of requirement during network request, and AFNetworking network tool is by a kind of instrument of network request.
In GET request, comprise a brick successblock called when asking successfully (when GET request success, can enter in successful brick successblock, obtain the data obtained after asking successfully) and brick failureblock called when asking unsuccessfully (the failed words of GET request can enter in the brick failureblock of failure, and prompting user asks failure).
So, by calling the URL interface IP address being pre-configured with in application program, send GET request to server, just obtain the compressed file of the Zip form of the html web page content after comprising renewal when GET request success.
Step 3, to step 2 obtains comprise renewal after the compressed file of Zip form of html web page content carry out decompression and be saved in local folders.
In the present embodiment, by ZipArchive decompression technique, the compressed file of Zip form being carried out decompression, ZipArchive is a Zip development kit increased income, by calling ZipArchive class, find the Zip compressed file being saved in local folders, then it is decompressed.Wherein, class is the template for creating instance objects, and different instance objects methods can be used to carry out creating different instance objects, in embodiments of the present invention,
Implement and be:
Call ZipArchive class, create the instance objects of ZipArchive class;
Obtain the storing path documentpath of the Zip compressed file downloaded;
The Zip compressed file of download is found by storing path documentpath;
Zip compressed file is opened by the method UnzipOpenFile of the instance objects of ZipArchive class;
Method UnzipFileTo:documentpathoverWrite by the instance objects of ZipArchive class: decompress Zip file;
Carry out logical operations judgement, if decompressing successfully, returning and decompressing successfully;If de-compression failure, return de-compression failure;
The compressed file having already turned on is closed by the instance objects method UnzipCloseFile of ZipArchive class.
It should be noted that due in the present embodiment, it is determined that what server returned is the compressed file of Zip form, rather than the data of JSON form.Thus, when by AFNetworking network tool download package containing the compressed file of web page contents after updating, need to resolve the JOSN of encapsulation in AFNetworking network tool content to delete (AFNetworking is an integrated third-party application class libraries, and JSON is resolved content and is encapsulated in its class libraries by it) and prevent AFNetworking program crashing from cannot use.JSON (JavaScriptObjectNotation) is the data interchange format of a kind of lightweight.Suitable in iOS and Android operation system.
Through said process, complete the decompression of the Zip compressed file that application programs is downloaded and be saved in this locality.
Step 4, in the html web page content decompressed after being updated and after being saved in this locality, application program can pass through to load the web page contents after the renewal of this locality and present webpage effect confession user and checks.
The present embodiment is saved in by UIWebView tool loads the html file after the renewal of this locality and presents webpage effect.UIWebView is browser control part built-in in application program, and it is a most frequently used control in iOS SDK, it is possible to browse webpage with it.
To sum up, by when the web page contents of application program needs to update, first send the request download package compressed file containing the web page contents after updating to server and be saved in this locality after the download is complete, then compressed file is carried out decompression, application program presents the technical scheme of webpage effect by directly reading the html file being saved in this locality after decompression, achieve and still can quickly present webpage effect when not having network or network state not good, do not affect the purpose that user uses.
It is emphasized that in actual applications, it is possible to the web page contents method of this renewal application program of the present invention is packaged into a packet, arrange in the application.Only it is to be understood that server just can be automatically obtained, with URL address in the interface document of application program, the effect updating application program web page contents.
In one embodiment of the invention, application program can be GT grand touring APP (application program, Application), this APP can show the tourism attack strategy of multiple tourist attractions, (namely loading html file corresponding to these tourist attractions in the application to present the information of tourist attractions) is shown by a html file in usual tourist attractions, when the tourism attack strategy of tourist attractions needs to update, it is saved in this locality from server end download package containing the Zip compressed file of html file after updating and after carrying out decompression by this method of the present invention, then APP can show the content of tourism attack strategy by loading up-to-date html file.Go also without user the client after downloading upgrading could realize tourism attack strategy by this method again to update, eliminate the inconvenience that frequent updating client brings to user.And this method of the present invention be by be there is a need to update web page contents disposable locally downloading from server end, when user wants the information checking different tourist attractions, it is just passable that APP has only to load local corresponding html file, when the tourist attractions that user's switching is checked, APP obtains from server end also without initiating network request again, thus when not having network or network state not good, user still can check the information use without influence on user of different tourist attractions.
Fig. 2 is that a kind of of one embodiment of the invention offer updates the block diagram of the device of web page contents in application program.In this renewal application program, the device 200 of web page contents includes:
Update authentication unit 210, for sending application program the need of the checking information updating web page contents to server end;
Web page content request unit 220, is used for the result according to renewal authentication unit 210 when needs update, sends the network request of the compressed file obtaining the web page contents after comprising renewal to server end;
Web page contents receives unit 230, for receiving the compressed file comprising the web page contents after renewal that server end returns;
Compressed file processing unit 240, contracts preservations for the compressed file of the web page contents after comprising renewal carries out decompression, loading when using in order to application program.
In the present embodiment, web page content request unit 220 specifically for, obtain in application program the URL interface IP address of the character string type being pre-configured with, URL interface IP address is converted to network request can the address of data type;Send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date.
In the present embodiment, web page content request unit 220 specifically for, the network request of compressed file of the web page contents obtained after comprising renewal is set to GET request, utilize network request can the address of data type, send GET request by AFNetworking instrument to server;
Wherein, comprising successfully and two bricks of failure in GET request, when GET request success, call successful procedure block and return the compressed file of the web page contents after comprising renewal, when GET request failure, malloc failure malloc brick returns failure cause.
To server end transmission network request and the response data that server end returns is received by AFNetworking network tool.Concrete, first obtain the interface IP address URL being pre-configured with in application program, and this URL address is carried out data type conversion, then send the GET request obtaining the compressed file comprising html web page content again through the data type after conversion.Wherein, URL interface IP address is to specify with the interface document of server commitment in process of application development, and application program accesses server by the URL address of interface document.By this URL address is made requests on, when asking successfully, the program that just can be applied needs the compressed file comprising the html web page content after renewal downloaded.
In the present embodiment, comprise the compressed file that compressed file is Zip form of the web page contents after renewal;
Compressed file processing unit 240 specifically for, search the storing path of the compressed file of described Zip form received;Found the compressed file of described Zip form by described storing path, and it is carried out decompression.
Concrete processing procedure is: call ZipArchive class, creates the instance objects of ZipArchive class;Obtain the storing path documentpath of the Zip compressed file downloaded;The Zip compressed file of download is found by storing path documentpath;Zip compressed file is opened by the method UnzipOpenFile of the instance objects of ZipArchive class;Method UnzipFileTo:documentpathoverWrite by the instance objects of ZipArchive class: decompress Zip file;Carry out logical operations judgement, if decompressing successfully, returning and decompressing successfully;If de-compression failure, return de-compression failure;The compressed file having already turned on is closed by the instance objects method UnzipCloseFile of ZipArchive class.
In the present embodiment, this device also includes:
Web page contents loading unit, for receiving the instruction of checking of user, and according to checking instruction, the web page contents after loading, by application program, the renewal preserved is shown to user.
It should be noted that, in this renewal application program of the present embodiment, the device of web page contents is corresponding with the method for web page contents in previously described renewal application program, what the specific works process of the device of web page contents in application program that updates may refer to above to update the method part of web page contents in application program realizes step, repeats no more herein.
Technical scheme is by judging the need of the web page contents updating application program, if needing to update, web page contents after updating to server end acquisition request again, and receive the compressed file of the web page contents after the renewal that service end sends, be saved in this locality after decompression, it is achieved that when user checks application program be loaded directly into this locality html file quickly present webpage effect without again to server end request purpose.Therefore technical scheme make application program be in without network state or network state not good when still quickly displaying web page content can present webpage effect, do not interfere with user use.Additionally, if the web page contents wanting application programs is updated safeguarding, only need to disposable when network is connected be updated web page contents (by a compressed package, the html file that be there is a need to update being downloaded to this locality, and load after carrying out decompression), the web page contents of guarantee application program is all up-to-date, without updating client, also solve the technical problem needing user's updating client again just can complete data update, be greatly improved the satisfaction of user.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. one kind updates the method for web page contents in application program, it is characterised in that the method includes:
Application program is sent the need of the checking information updating web page contents to server end;
According to the result when needs update, send the network request of the compressed file obtaining the web page contents after comprising renewal to server end;
Receive the compressed file comprising the web page contents after renewal that server end returns;
To described comprise renewal after the compressed file of web page contents carry out decompression and contract preservation, load when using in order to described application program.
2. the method for claim 1, it is characterised in that the network request of the described compressed file sending the web page contents after acquisition comprises renewal to server end includes:
Obtain the URL interface IP address of the character string type being pre-configured with in described application program, the URL interface IP address of described character string type is converted to described network request can address date;
Send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date.
3. method as claimed in claim 2, it is characterised in that the network request of the described compressed file sending the web page contents after acquisition comprises renewal to server end also includes:
The network request of the compressed file of the web page contents after described acquisition is comprised renewal is set to GET request, utilize described network request can address date, send GET request by AFNetworking instrument to server end;
Wherein, comprising successfully and two bricks of failure in described GET request, when described GET request success, call successful procedure block and return the compressed file of the web page contents after comprising renewal, when described GET request failure, malloc failure malloc brick returns failure cause.
4. the method for claim 1, it is characterised in that described in comprise the compressed file that compressed file is Zip form of the web page contents after renewal;
Described to described comprise renewal after the compressed file of web page contents carry out decompression and include:
Search the storing path of the compressed file of the described Zip form received;
Found the compressed file of described Zip form by described storing path, and it is carried out decompression.
5. the method as described in any one of claim 1-4, it is characterised in that the method also includes:
What receive user checks instruction, and checks instruction according to described, and the web page contents after loading, by application program, the described renewal preserved is shown to user.
6. one kind updates the device of web page contents in application program, it is characterised in that this device includes:
Update authentication unit, for sending application program the need of the checking information updating web page contents to server end;
Web page content request unit, is used for the result according to described renewal authentication unit when needs update, sends the network request of the compressed file obtaining the web page contents after comprising renewal to server end;
Web page contents receives unit, for receiving the compressed file comprising the web page contents after renewal that server end returns;
Compressed file processing unit, for described comprise renewal after the compressed file of web page contents carry out decompression and contract preservations, loading when using in order to described application program.
7. device as claimed in claim 6, it is characterised in that described web page content request unit specifically for,
Obtain the URL interface IP address of the character string type being pre-configured with in described application program, the URL interface IP address of described character string type is converted to described network request can address date;
Send the network request of the compressed file obtaining the web page contents after comprising renewal to server end with described available address date.
8. device as claimed in claim 7, it is characterised in that described web page content request unit specifically for:
The network request of the compressed file of the web page contents after described acquisition is comprised renewal is set to GET request, utilize described network request can address date, send GET request by AFNetworking instrument to server end;
Wherein, comprising successfully and two bricks of failure in described GET request, when described GET request success, call successful procedure block and return the compressed file of the web page contents after comprising renewal, when described GET request failure, malloc failure malloc brick returns failure cause.
9. device as claimed in claim 6, it is characterised in that described in comprise the compressed file that compressed file is Zip form of the web page contents after renewal;
Described compressed file processing unit specifically for, search the storing path of the compressed file of described Zip form received;Found the compressed file of described Zip form by described storing path, and it is carried out decompression.
10. the device as described in any one of claim 6-9, it is characterised in that this device also includes:
Web page contents loading unit, for receiving the instruction of checking of user, and checks instruction according to described, and the web page contents after loading, by application program, the described renewal preserved is shown to user.
CN201410855670.1A 2014-12-31 2014-12-31 Method and device for updating webpage contents of application program Pending CN105808282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410855670.1A CN105808282A (en) 2014-12-31 2014-12-31 Method and device for updating webpage contents of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410855670.1A CN105808282A (en) 2014-12-31 2014-12-31 Method and device for updating webpage contents of application program

Publications (1)

Publication Number Publication Date
CN105808282A true CN105808282A (en) 2016-07-27

Family

ID=56464963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410855670.1A Pending CN105808282A (en) 2014-12-31 2014-12-31 Method and device for updating webpage contents of application program

Country Status (1)

Country Link
CN (1) CN105808282A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870947A (en) * 2016-09-28 2018-04-03 北京京东尚科信息技术有限公司 Method and apparatus for updating web page contents
CN108040172A (en) * 2017-11-29 2018-05-15 努比亚技术有限公司 Information updating method, terminal and the computer-readable storage medium of application software
CN108845816A (en) * 2018-06-22 2018-11-20 平安科技(深圳)有限公司 Application program update method, system, computer equipment and storage medium
CN109376323A (en) * 2018-09-11 2019-02-22 平安科技(深圳)有限公司 Using operation method, device, computer installation and storage medium
CN110297575A (en) * 2019-06-28 2019-10-01 百度在线网络技术(北京)有限公司 A kind of webpage representation method, apparatus, terminal device and storage medium
CN111279312A (en) * 2017-09-13 2020-06-12 优步技术公司 Alternative service paths for service applications

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763371A (en) * 2014-01-21 2014-04-30 深圳市脉山龙信息技术股份有限公司 Method for dynamically controlling mobile end application cache
CN103873502A (en) * 2012-12-11 2014-06-18 阿里巴巴集团控股有限公司 Cache updating method and system, and update resource providing method and system
US20140208314A1 (en) * 2013-01-24 2014-07-24 International Business Machines Corporation Automatically Propagating Updates in a Data Center
CN104063269A (en) * 2013-03-20 2014-09-24 腾讯科技(深圳)有限公司 Method and device for achieving off-line application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873502A (en) * 2012-12-11 2014-06-18 阿里巴巴集团控股有限公司 Cache updating method and system, and update resource providing method and system
US20140208314A1 (en) * 2013-01-24 2014-07-24 International Business Machines Corporation Automatically Propagating Updates in a Data Center
CN104063269A (en) * 2013-03-20 2014-09-24 腾讯科技(深圳)有限公司 Method and device for achieving off-line application
CN103763371A (en) * 2014-01-21 2014-04-30 深圳市脉山龙信息技术股份有限公司 Method for dynamically controlling mobile end application cache

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870947A (en) * 2016-09-28 2018-04-03 北京京东尚科信息技术有限公司 Method and apparatus for updating web page contents
CN111279312A (en) * 2017-09-13 2020-06-12 优步技术公司 Alternative service paths for service applications
CN111279312B (en) * 2017-09-13 2022-05-27 优步技术公司 Alternative service paths for service applications
CN108040172A (en) * 2017-11-29 2018-05-15 努比亚技术有限公司 Information updating method, terminal and the computer-readable storage medium of application software
CN108845816A (en) * 2018-06-22 2018-11-20 平安科技(深圳)有限公司 Application program update method, system, computer equipment and storage medium
CN109376323A (en) * 2018-09-11 2019-02-22 平安科技(深圳)有限公司 Using operation method, device, computer installation and storage medium
CN110297575A (en) * 2019-06-28 2019-10-01 百度在线网络技术(北京)有限公司 A kind of webpage representation method, apparatus, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN105808282A (en) Method and device for updating webpage contents of application program
CN108845816B (en) Application program updating method, system, computer device and storage medium
US10713034B2 (en) Updating web resources
US10212563B2 (en) Updating web resources
US9032383B2 (en) Automatically updating applications on a client's device without interrupting the user's experience
EP2806357A1 (en) Method and communication device for updating a web application
CN107992308B (en) Plug-in management method for android terminal application program
CN107015870B (en) Method and device for realizing communication between web page and local application and electronic equipment
CN106776761B (en) Method and device for rendering webpage by mobile browser
CN107741844B (en) Method and device for generating application installation package
CN106874035B (en) Method for updating application (app) built-in H5 and framework thereof
CN111381852A (en) Application dynamic updating method and device based on Flutter, storage medium and electronic equipment
KR101198583B1 (en) Apparatus of multimedia middle ware using metadata and management method and storing medium thereof
CN106686200B (en) Mobile application program updating method, mobile terminal and updating system
US20090193407A1 (en) Methods and Systems for Automatic Patch Creation for Client Updates
CN101957842B (en) Webpage cache control method, device and system based on WebKit browser
CN112256296A (en) Express delivery service APP updating method, device, equipment and storage medium based on Weex
CN105786538A (en) Software upgrading method and device based on Android system
CN103634393A (en) IVR (interactive voice response) and realization method thereof
CN106775876B (en) Method for quickly starting application by android system
CN104052769B (en) It is a kind of to mobile terminal apply comprising resource updates methods, devices and systems
CN104809011A (en) Application program management method
CN103561082B (en) Compressing request processing method and server
CN101146111B (en) A file download method and device
CN101945081A (en) Code conversion method, system and server of class webpage applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160727

RJ01 Rejection of invention patent application after publication