CN106874035A - One kind is applied for updating(app)The method and its framework of built-in H5 - Google Patents

One kind is applied for updating(app)The method and its framework of built-in H5 Download PDF

Info

Publication number
CN106874035A
CN106874035A CN201710017885.XA CN201710017885A CN106874035A CN 106874035 A CN106874035 A CN 106874035A CN 201710017885 A CN201710017885 A CN 201710017885A CN 106874035 A CN106874035 A CN 106874035A
Authority
CN
China
Prior art keywords
app
built
newest
modules
routing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710017885.XA
Other languages
Chinese (zh)
Other versions
CN106874035B (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.)
Shenzhen Shun Yi Nationwide Financial Services Inc
Original Assignee
Shenzhen Shun Yi Nationwide Financial Services Inc
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 Shenzhen Shun Yi Nationwide Financial Services Inc filed Critical Shenzhen Shun Yi Nationwide Financial Services Inc
Priority to CN201710017885.XA priority Critical patent/CN106874035B/en
Publication of CN106874035A publication Critical patent/CN106874035A/en
Application granted granted Critical
Publication of CN106874035B publication Critical patent/CN106874035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Method the present invention relates to one kind for updating application (app) built-in H5, including APP management platforms, APP and APP routing layer;The described method comprises the following steps:The first step, by the APP management platforms upload H5 that APP updates the need for newest, changes the APP routes and sets;Second step, the APP obtains newest H5 download address and is downloaded by corresponding api interfaces, while obtaining newest routing configuration information and being saved in local;3rd step, redirecting for each page is controlled by the APP routing layer.

Description

One kind is for updating using the method and its framework of (app) built-in H5
Technical field
The present invention relates to a kind of basic framework of mobile terminal APP, support primary more specifically to one kind (Native) and H5 mixed developings APP basic frameworks and its building method.
Background technology
5th revised edition (being referred to as " HTML5 ", referred to as " H5 ") of HTML is by being referred to as w3c The International Standards Organization of (" W3C ") formally defines.HTML5 include be related to Web technologies of future generation more than 100 specifications. HTML5 describes to be configured so that one group that designers and developers can build web site of future generation and application (" app ") HTML, CSS (Cascading Style Sheet) and JavaScript specifications.
Current smart mobile phone is popularized comprehensively, smart mobile phone make it is with the most use have four big systems, i.e. ian, WP7, IOS and Android system, the application software of different system is incompatible.So, the mobile phone of different system needs the different mobile phone of exploitation Client, this overlapping development for resulting in;Issuing new APP every time simultaneously is required for user to re-download client, and this is not only Slow whole development progress is dragged, while also bad experience can be brought to user.
In order to solve the above problems, as shown in figure 1, number of patent application discloses a kind of mobile phone visitor for 201511005002.0 The development approach of family end application program, comprises the following steps:101st, web page frame is made using HTML5;102nd, repaiied using CSS3 Decorations Webpage;103rd, using JQuery or Javascript frameworks, make webpage static interfaces that there is dynamic function, Neng Gouyu User interacts;104th, the webpage that step 103 makes is embedded into the framework of mobile phone A PP, is debugged, make different mobile phones The APP of system embedded web page and can normally show.The technical scheme is without the multiple down loading updating client of user.It is based on HTML5 is applied, and the content of loading is the webpage of HTML5 exploitations, and in the server, loading every time is obtained from server for storage Newest version, so without the multiple down loading updating client of user.And traditional APP is applied, file content is stored in this Ground, if necessary to upgraded version, it is necessary to re-download whole client, can cause Consumer's Experience bad.And, use HTML5 Regardless of the compatibility to the page.The browser of present intelligent mobile phone system supports HTML HTML5, preceding End engineer eliminates the compatible worry of debugging, greatly without the browser of the compatible multiple standards as the webpage of exploitation PC ends Improve development efficiency greatly.
However, the inventors discovered that, most APP is directed to primary (Native) and H5 mixed developings, so APP Basic framework not only needs to support the renewal of local H5 (whole bag or some pages), also needs to support the Native pages and correspondence The switching at any time of the H5 pages.
The content of the invention
It is an object of the invention to provide a kind of renewal for supporting local H5, NaThe tive pages and the correspondence H5 pages are at any time The method and framework of switching.
The technical scheme is that, method of the one kind for updating application (app) built-in H5, including APP management platforms, APP and APP routing layer;The described method comprises the following steps:The first step, by the APP management platforms upload it is newest the need for The H5 that APP updates, changes the APP routes and sets;Second step, the APP is obtained under newest H5 by corresponding api interfaces Set address is downloaded, while obtaining newest routing configuration information and being saved in local;3rd step, is route by the APP Layer controls redirecting for each page.
Further, the 3rd step comprises the following steps that the button on the click A pages will accordingly route Key values biography The APP routing layer is delivered to, corresponding Key is then found by the APP routing layer in the routing table, after finding the Key, solution Analysis page jump type, the A page jumps to the B pages.(type:0 jumps H5 on primary, the 1 local H5 of jump, 2 wire jumpers)
Further, before the first step, comprise the following steps, when starting APP every time, whether acquisition has newest H5, if it has, then entering the first step.
Further, before the first step, comprise the following steps, H5 and routing configuration information are updated when App is needed When, to APP, inform needs to update the APP management platforms PUSH message.
One kind is used to update the application framework of application (app) built-in H5, including view layer (view layer), H5 container floors (Container of H 5) and OS layers;Wherein, the view layer include H5 page modules, H5 frame modules, JSBridge modules and Native Activites modules;The H5 container floors (Container of H 5) include that local URL route (local Url Router);Described OS layers includes Android and Ios modules.
The beneficial effects of the present invention are, there is provided it is a kind of powerful, willing for updating in application (app) The application framework and method of H5 are put, when APP goes wrong in certain page on line, it is possible to which this is quickly repaired by the present invention The page, allows it to jump to the H5 pages on corresponding primary or local H5 or line, without issuing APP versions again.
Brief description of the drawings
Fig. 1 is the structural representation of background technology of the invention;
Fig. 2 is schematic flow sheet of the invention;
Fig. 3 is structural representation of the invention;
Fig. 4 is the schematic flow sheet of the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another embodiment of the present invention.
Specific embodiment
The present invention is further illustrated with reference to the accompanying drawings and examples, as shown in Fig. 2 a kind of for updating using (app) The method of built-in H5, including APP management platforms, APP and APP routing layer;The described method comprises the following steps:The first step, passes through The H5 that APP updates the need for the APP management platforms upload is newest, changes the APP routes and sets;Second step, the installation Newest H5 download address is obtained in the APP in Android platform or Ios platforms by corresponding api interfaces to be downloaded, together When obtain newest routing configuration information and be saved in local;3rd step, each page is controlled by the APP routing layer Redirect.
As shown in figure 4, further, the 3rd step comprises the following steps, the button on the A pages is clicked on, will be corresponding Route Key values are delivered to the APP routing layer, then find corresponding Key in the routing table by the APP routing layer, find After the Key, page jump type, the A page jumps to the B pages are parsed.(type:0 jumps primary, the 1 local H5 of jump, 2 wire jumpers Upper H5).
Further, before the first step, comprise the following steps, when starting APP every time, whether acquisition has newest H5, if it has, then entering the first step.
As shown in figure 5, further, before the first step, comprising the following steps, H5 and road are updated when App is needed During by configuration information, to APP, inform needs to update the APP management platforms PUSH message, into the first step.
As shown in figure 3, a kind of application framework for updating application (app) built-in H5, including view layer (view Layer), H5 container floors (H 5Container) and OS layers;Wherein, the view layer include H5 page modules, H5 frame modules, JSBridge modules and Native Activites modules;The H5 container floors (H 5Container) route including local URL (local Url Router);Described OS layers includes Android and Ios modules.
Description above merely relates to certain specific embodiments of the invention, and any those skilled in the art is based on this The replacement or improvement that the spirit of invention is done should be protection scope of the present invention and covered, protection scope of the present invention Ying Yiquan Sharp claim is defined.

Claims (5)

1. it is a kind of to be used to update using the method for (app) built-in H5, including APP management platforms, APP and APP routing layer;The side Method is comprised the following steps:The first step, by the APP management platforms upload H5 that APP updates the need for newest, modification is described APP routes are set;Second step, the APP obtains newest H5 download address and is downloaded by corresponding api interfaces, while Obtain newest routing configuration information and be saved in local;3rd step, the jump of each page is controlled by the APP routing layer Turn.
2. according to claim 1 for updating using the method for (app) built-in H5, it is characterised in that:3rd step Comprise the following steps, click on the button on the A pages, corresponding route Key values are delivered to the APP routing layer, then by institute State APP routing layer and find corresponding Key in the routing table, after finding the Key, parse page jump type, the A pages are jumped Go to the B pages.
3. according to claim 1 and 2 for updating using the method for (app) built-in H5, it is characterised in that:Described Before one step, comprise the following steps, when starting APP every time, whether acquisition has newest H5, if it has, then entering the first step.
4. according to claim 1 and 2 for updating using the method for (app) built-in H5, it is characterised in that:Described Before one step, comprise the following steps, when needing App to update H5 and routing configuration information, the APP management platforms PUSH message To APP, informing needs to update.
5. it is a kind of to be used to update using the application framework of (app) built-in H5, including view layer (view layer), H5 container floors (H 5Container) with OS layers;Wherein, the view layer include H5 page modules, H5 frame modules, JSBridge modules and Native Activites modules;The H5 container floors (Container of H 5) include that local URL route (local Url Router);Described OS layers includes Android and Ios modules.
CN201710017885.XA 2017-01-11 2017-01-11 Method for updating application (app) built-in H5 and framework thereof Active CN106874035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710017885.XA CN106874035B (en) 2017-01-11 2017-01-11 Method for updating application (app) built-in H5 and framework thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710017885.XA CN106874035B (en) 2017-01-11 2017-01-11 Method for updating application (app) built-in H5 and framework thereof

Publications (2)

Publication Number Publication Date
CN106874035A true CN106874035A (en) 2017-06-20
CN106874035B CN106874035B (en) 2020-06-30

Family

ID=59157448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710017885.XA Active CN106874035B (en) 2017-01-11 2017-01-11 Method for updating application (app) built-in H5 and framework thereof

Country Status (1)

Country Link
CN (1) CN106874035B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968841A (en) * 2017-12-20 2018-04-27 深圳乐信软件技术有限公司 Dynamic routing method, device, storage medium and the client of Webpage
CN108234665A (en) * 2018-01-11 2018-06-29 北京值得买科技股份有限公司 Redirect processing method and equipment
CN108337317A (en) * 2018-02-09 2018-07-27 马上消费金融股份有限公司 A kind of method and device of processing route requests
CN108563668A (en) * 2018-01-08 2018-09-21 武汉斗鱼网络科技有限公司 The method, apparatus and terminal device of the Hybrid page jump H5 pages
CN109683990A (en) * 2018-12-27 2019-04-26 四川新网银行股份有限公司 H5 multiterminal cut-in method based on mixed mode mobile application
CN109857386A (en) * 2018-12-30 2019-06-07 贝壳技术有限公司 A kind of method for page jump and device
CN110874236A (en) * 2019-11-13 2020-03-10 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN112068879A (en) * 2020-09-10 2020-12-11 工银科技有限公司 Method and device for constructing client application development framework based on configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866340A (en) * 2015-04-29 2015-08-26 小米科技有限责任公司 Method and apparatus for updating terminal device software
US20160026460A1 (en) * 2013-03-11 2016-01-28 Zte Corporation Device and Method for Upgrading Data Terminal
CN106155708A (en) * 2015-03-24 2016-11-23 Tcl集团股份有限公司 A kind of dynamic load and the method and system of renewal content of pages
CN106202381A (en) * 2016-07-08 2016-12-07 贵阳语玩科技有限公司 Start the method for routing of the page, device and assembly

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160026460A1 (en) * 2013-03-11 2016-01-28 Zte Corporation Device and Method for Upgrading Data Terminal
CN106155708A (en) * 2015-03-24 2016-11-23 Tcl集团股份有限公司 A kind of dynamic load and the method and system of renewal content of pages
CN104866340A (en) * 2015-04-29 2015-08-26 小米科技有限责任公司 Method and apparatus for updating terminal device software
CN106202381A (en) * 2016-07-08 2016-12-07 贵阳语玩科技有限公司 Start the method for routing of the page, device and assembly

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHENDEMO: "Hybrid APP 架构设计思路", 《HTTPS://GITHUB.COM/CHEMDEMO/CHEMDEMO.GITHUB.IO/ISSUES/12》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968841A (en) * 2017-12-20 2018-04-27 深圳乐信软件技术有限公司 Dynamic routing method, device, storage medium and the client of Webpage
CN107968841B (en) * 2017-12-20 2021-03-09 深圳乐信软件技术有限公司 Dynamic routing method, device, storage medium and client of network page
CN108563668A (en) * 2018-01-08 2018-09-21 武汉斗鱼网络科技有限公司 The method, apparatus and terminal device of the Hybrid page jump H5 pages
CN108234665A (en) * 2018-01-11 2018-06-29 北京值得买科技股份有限公司 Redirect processing method and equipment
CN108234665B (en) * 2018-01-11 2021-07-09 北京值得买科技股份有限公司 Jump processing method and equipment
CN108337317A (en) * 2018-02-09 2018-07-27 马上消费金融股份有限公司 A kind of method and device of processing route requests
CN109683990A (en) * 2018-12-27 2019-04-26 四川新网银行股份有限公司 H5 multiterminal cut-in method based on mixed mode mobile application
CN109683990B (en) * 2018-12-27 2019-07-23 四川新网银行股份有限公司 H5 multiterminal cut-in method based on mixed mode mobile application
CN109857386A (en) * 2018-12-30 2019-06-07 贝壳技术有限公司 A kind of method for page jump and device
CN109857386B (en) * 2018-12-30 2022-06-21 贝壳技术有限公司 Page skipping method and device
CN110874236A (en) * 2019-11-13 2020-03-10 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN110874236B (en) * 2019-11-13 2023-04-07 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN112068879A (en) * 2020-09-10 2020-12-11 工银科技有限公司 Method and device for constructing client application development framework based on configuration
CN112068879B (en) * 2020-09-10 2023-10-13 中国工商银行股份有限公司 Method and device for constructing client application program development framework based on configuration

Also Published As

Publication number Publication date
CN106874035B (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN106874035A (en) One kind is applied for updating(app)The method and its framework of built-in H5
CN102567516B (en) Script loading method and device
CN103092665B (en) Immediate updating device and immediate updating method
CN104899047B (en) Web page frame dispositions method and system
CN104615462B (en) Cross-platform Mobile solution generation service end and system
CN106815276A (en) Method for page jump and device
CN104156243A (en) Application distribution and rapid loading and running system and method
CN105574207A (en) WAP webpage developing method
CN104317642A (en) Method and device for configuring software in cloud calculation environment
CN104111855A (en) Method for dynamic update of iOS (Iphone Operation System) client based on Lua
CN101763269A (en) Method for making software installation package
CN106325876A (en) Method and system for graphically programming and controlling embedded equipment on line
CN101635640A (en) Method for automatically releasing terminal program version of WEB network station system server
CN101944032A (en) Microware updating method, client, server and system
CN102833350A (en) Processing method and processing device of WebApp updating
CN102023856A (en) Method for outputting and operating data at server in formatting way according to demands of user
CN103207902A (en) Method and system for updating financial client side data
CN107305553A (en) The method and system of the Hybrid pages are dynamically redirected in a kind of App based on Hybrid
CN103176809B (en) Application upgrade method and system
CN110221848A (en) APP method for updating pages, device, electronic equipment and storage medium
CN105100144A (en) Application updating method and device
EP2702485A1 (en) Web-based app builder for mobile devices with automatic updates
CN103019764B (en) The detection method of Andriod resource bag installability and system
CN105808282A (en) Method and device for updating webpage contents of application program
CN103186376A (en) Method, device and equipment for establishing or updating software development environment

Legal Events

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