CN106020906A - Client side hot updating method based on Cordova - Google Patents

Client side hot updating method based on Cordova Download PDF

Info

Publication number
CN106020906A
CN106020906A CN201610379476.XA CN201610379476A CN106020906A CN 106020906 A CN106020906 A CN 106020906A CN 201610379476 A CN201610379476 A CN 201610379476A CN 106020906 A CN106020906 A CN 106020906A
Authority
CN
China
Prior art keywords
client
cordova
resource
update method
installation kit
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
CN201610379476.XA
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.)
Guangdong Nenglong Education Co ltd
Original Assignee
Guangdong Nenglong Education 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 Guangdong Nenglong Education Co ltd filed Critical Guangdong Nenglong Education Co ltd
Priority to CN201610379476.XA priority Critical patent/CN106020906A/en
Publication of CN106020906A publication Critical patent/CN106020906A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a client side hot updating method based on Cordova, which comprises the following steps: (A) when a window is newly built in a client development stage, the window type is declared to be NLCordovaWindow only through a configuration file; (B) after the client development is completed, packaging offline resources required by updating and upgrading into an installation package during release; (C) and D, upgrading the offline resource installation package in the operation and maintenance release step B to a new client. The invention aims to solve the problem that the Hybrid App carries out offline resource packaging in advance, automatically completes the updating and upgrading of resource files under the condition of no intervention and provides better user experience.

Description

A kind of hot update method of client based on Cordova
Technical field
The invention belongs to client upgrading field, be specifically related to a kind of hot update method of client based on Cordova.
Background technology
Owing to business demand deepens continuously, the upgrading of application is frequent, and has mass users, if made user every time During application, detect and point out user download installation kit carry out install upgrading, have a strong impact on Consumer's Experience;And upgrade every time, clothes Business end is required for providing and downloads, and bandwidth pressure is the biggest.
Summary of the invention
For solving above-mentioned technical problem, it is an object of the invention to provide a kind of client heat renewal side based on Cordova Method.
The technical solution used in the present invention is:
A kind of hot update method of client based on Cordova, comprises the following steps:
(A) when client development phase new window, it is only necessary to by configuration file, window type is claimed as NLCordovaWindow;
(B), after client has been developed, when issuing, offline resources required for renewal upgrading is packaged into installation kit;
(C) offline resources installation kit in O&M issuing steps B, upgrades to new client.
Wherein, described offline resources includes pagefile, picture file, cascading style list file and JavaScript script File.
Further, described offline resources also includes domain name file.
In described step B, installation kit is responsible for by updating engine: use the more New Policy of version number control to carry out redaction money Source is detected, and is responsible for the resource that off-line is downloaded and safeguarded in local cache catalogue, and by renewal process key point by " broadcast " shape Formula notifies Web renewal of the page.
In described step C, installation kit is responsible for by intercepting engine: asks by intercepting all Http, then carries out this locality Changing resource matched, match hit then accesses intercepted, directly replaces with local resource, the most normally initiates Http request.
Beneficial effects of the present invention:
The present invention contrasts tradition use program and carries Version Control, and prompting user downloads the method installing upgrading, if version liter Level frequently and has million grades of users, then considerable influence Consumer's Experience.And the hot update method of client of based on Cordova It is contemplated to solve the packing of Hybrid App offline resources in advance, and without being automatically performed resource file more in the case of intervening New upgrading, it is provided that more preferably Consumer's Experience.
Accompanying drawing explanation
Below in conjunction with the accompanying drawings the detailed description of the invention of the present invention is described further.
Fig. 1 is the flow chart of the present invention;
Fig. 2 is that the present invention updates and intercepts the flow chart of installation kit.
Detailed description of the invention
The present invention is a low level development framework mixing application (Hybrid App) based on Cordova, Cordova, This low level development framework has interception engine (Interceptor), updates engine (Updater).
As it is shown in figure 1, be the hot update method of a kind of based on Cordova client of the present invention, comprise the following steps:
(A) when client development phase new window, it is only necessary to by configuration file, window type is claimed as NLCordovaWindow;And fully transparent in front end development process, it is not necessary to any special handling;
(B), after client has been developed, when issuing, offline resources required for renewal upgrading is packaged into installation kit (Zip Compressed package);Wherein, described offline resources include pagefile, picture file, cascading style list file (Css) and JavaScript script file (Js);
If business demand relates to and wishes domain name and the resource packing of off-line, then set up " tree-shaped knot according to the Url of resource Structure " catalogue, then resource is put under corresponding subdirectory packing;" crucial " resource file can also be selected directly to be bundled to client End installation kit, is not bundled to the resource file of installation kit, allows client background service send Http request in advance by configuring Download resource bag;
The renewal of installation kit is responsible for by updating engine: use the more New Policy of version number control to carry out redaction resources measurement, negative The resource that duty off-line is downloaded and safeguarded in local cache catalogue, and renewal process key point is notified by " broadcast " form Web renewal of the page.
(C) offline resources installation kit in O&M issuing steps B, upgrades to new client.
Wherein, this step installation kit is responsible for by intercepting engine: asks by intercepting all Http, is then localized Resource matched, match hit then accesses intercepted, directly replaces with local resource, the most normally initiates Http request.
The present invention contrasts tradition use program and carries Version Control, and prompting user downloads the method installing upgrading, if version This upgrading frequently and has million grades of users, then considerable influence Consumer's Experience.And client heat of based on Cordova updates Method is contemplated to solve the packing of Hybrid App offline resources in advance, and without being automatically performed resource file in the case of intervening Renewal upgrading, it is provided that more preferably Consumer's Experience.
The foregoing is only the preferred embodiments of the present invention, the present invention is not limited to above-mentioned embodiment, as long as with Essentially identical means realize within the technical scheme of the object of the invention broadly falls into protection scope of the present invention.

Claims (5)

1. the hot update method of client based on Cordova, it is characterised in that comprise the following steps:
(A) when client development phase new window, it is only necessary to by configuration file, window type is claimed as NLCordovaWindow;
(B), after client has been developed, when issuing, offline resources required for renewal upgrading is packaged into installation kit;
(C) offline resources installation kit in O&M issuing steps B, upgrades to new client.
A kind of hot update method of client based on Cordova the most according to claim 1, it is characterised in that: described from Line resource includes pagefile, picture file, cascading style list file and JavaScript script file.
A kind of hot update method of client based on Cordova the most according to claim 2, it is characterised in that: described from Line resource also includes domain name file.
A kind of hot update method of client based on Cordova the most according to claim 1, it is characterised in that: described step In rapid B, installation kit is responsible for by updating engine: uses the more New Policy of version number control to carry out redaction resources measurement, is responsible for off-line The resource downloaded and safeguard in local cache catalogue, and renewal process key point is notified Web page by " broadcast " form Face updates.
A kind of hot update method of client based on Cordova the most according to claim 1, it is characterised in that: described step In rapid C, installation kit is responsible for by intercepting engine: asks by intercepting all Http, is then localized resource matched, coupling Hit then accesses intercepted, directly replaces with local resource, the most normally initiates Http request.
CN201610379476.XA 2016-05-31 2016-05-31 Client side hot updating method based on Cordova Pending CN106020906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610379476.XA CN106020906A (en) 2016-05-31 2016-05-31 Client side hot updating method based on Cordova

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610379476.XA CN106020906A (en) 2016-05-31 2016-05-31 Client side hot updating method based on Cordova

Publications (1)

Publication Number Publication Date
CN106020906A true CN106020906A (en) 2016-10-12

Family

ID=57091739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610379476.XA Pending CN106020906A (en) 2016-05-31 2016-05-31 Client side hot updating method based on Cordova

Country Status (1)

Country Link
CN (1) CN106020906A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436780A (en) * 2017-06-20 2017-12-05 武汉斗鱼网络科技有限公司 A kind of method, apparatus and electronic equipment of Flash player renewal
CN107479921A (en) * 2017-08-04 2017-12-15 四川长虹电器股份有限公司 Mobile solution end dynamic load WebView method
CN107608691A (en) * 2017-08-18 2018-01-19 阿里巴巴集团控股有限公司 A kind of method for updating pages and device
CN110069505A (en) * 2017-09-21 2019-07-30 张锐 Off-line data processing method and off-line data updating device
CN110321135A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Hot restorative procedure, device, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6117187A (en) * 1997-09-30 2000-09-12 Hewlett-Packard Company Automatic generation of a software installation package
CN104111856A (en) * 2014-07-29 2014-10-22 广东能龙教育股份有限公司 Software upgrading method and system based on resource bundle
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components
CN104657118A (en) * 2013-11-18 2015-05-27 中国移动通信集团公司 Native + Web mixed mobile application achieving method and device
CN105138376A (en) * 2015-09-01 2015-12-09 北京皮尔布莱尼软件有限公司 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN105577813A (en) * 2015-12-31 2016-05-11 北京奇艺世纪科技有限公司 Update method and system for web hybrid application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6117187A (en) * 1997-09-30 2000-09-12 Hewlett-Packard Company Automatic generation of a software installation package
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components
CN104657118A (en) * 2013-11-18 2015-05-27 中国移动通信集团公司 Native + Web mixed mobile application achieving method and device
CN104111856A (en) * 2014-07-29 2014-10-22 广东能龙教育股份有限公司 Software upgrading method and system based on resource bundle
CN105138376A (en) * 2015-09-01 2015-12-09 北京皮尔布莱尼软件有限公司 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN105577813A (en) * 2015-12-31 2016-05-11 北京奇艺世纪科技有限公司 Update method and system for web hybrid application

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436780A (en) * 2017-06-20 2017-12-05 武汉斗鱼网络科技有限公司 A kind of method, apparatus and electronic equipment of Flash player renewal
CN107436780B (en) * 2017-06-20 2021-05-28 武汉斗鱼网络科技有限公司 Method and device for updating Flash player and electronic equipment
CN107479921A (en) * 2017-08-04 2017-12-15 四川长虹电器股份有限公司 Mobile solution end dynamic load WebView method
CN107608691A (en) * 2017-08-18 2018-01-19 阿里巴巴集团控股有限公司 A kind of method for updating pages and device
WO2019034066A1 (en) * 2017-08-18 2019-02-21 阿里巴巴集团控股有限公司 Page update method and apparatus
CN110069505A (en) * 2017-09-21 2019-07-30 张锐 Off-line data processing method and off-line data updating device
CN110069505B (en) * 2017-09-21 2021-12-24 张锐 Offline data processing method and offline data updating device
CN110321135A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Hot restorative procedure, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106020906A (en) Client side hot updating method based on Cordova
CN103955363B (en) A kind of manufacture method of program upgrade installation package
CN105049486B (en) Method for edition management, the apparatus and system of static file
US9830432B2 (en) Software revalidation and invalidation
KR20170049376A (en) Method and device for pulling out mirror image file for virtual machines
CN104951360A (en) Configuration management mode and device based on Docker
CN101488173B (en) Method for measuring completeness of credible virtual field start-up files supporting non-delaying machine
CN106557347B (en) Software updating method and device
US8332356B2 (en) NFS agent upgrade
US11113045B2 (en) Image install of a network appliance
CN104699511B (en) Plug-in unit upgrade method and device
CN102591683A (en) Updating method and updating system for embedded operation system
CN105426208A (en) OpenStack offline automatic installation method of cloud computing system
CN103544030A (en) Software upgrading method, software upgrading system and intelligent terminal
CN105763626A (en) SDK initialization method suitable for application client end payment
CN104391729A (en) Root privilege based procedure upgrading method and device
CN105279436A (en) Software updating method and system
CN106648724A (en) Application hotfix method and terminal
CN105389187A (en) System update method
CN102156650B (en) Method and device capable of implementing automatic analysis of patch
CN105204910A (en) Script hot updating method and system
CN104461648A (en) OTA upgrade backing-up method and system for intelligent terminals
CN106776347A (en) A kind of virtualization system mirror image mounting test system and method
CN106095835A (en) Client side picture four-layer caching method
CN105320503A (en) Middleware and plug-in frame designing system and method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012