CN106874035B - Method for updating application (app) built-in H5 and framework thereof - Google Patents

Method for updating application (app) built-in H5 and framework thereof Download PDF

Info

Publication number
CN106874035B
CN106874035B CN201710017885.XA CN201710017885A CN106874035B CN 106874035 B CN106874035 B CN 106874035B CN 201710017885 A CN201710017885 A CN 201710017885A CN 106874035 B CN106874035 B CN 106874035B
Authority
CN
China
Prior art keywords
app
routing
page
latest
management platform
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
CN201710017885.XA
Other languages
Chinese (zh)
Other versions
CN106874035A (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 Zhongshunyi Finical Services Co ltd
Original Assignee
Shenzhen Zhongshunyi Finical Services 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 Shenzhen Zhongshunyi Finical Services Co ltd filed Critical Shenzhen Zhongshunyi Finical Services Co ltd
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

Images

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

The invention relates to a method for updating Application (APP) built-in H5, which comprises an APP management platform, an APP and an APP routing layer; the method comprises the following steps: firstly, uploading the latest H5 needing APP updating through the APP management platform, and modifying the APP routing setting; secondly, the APP acquires a latest H5 download address through a corresponding api interface for downloading, and acquires and stores latest routing configuration information to the local; and thirdly, controlling the jump of each page through the APP routing layer.

Description

Method for updating application (app) built-in H5 and framework thereof
Technical Field
The invention relates to a basic framework of an APP (application) of a mobile terminal, in particular to an APP basic framework supporting mixed development of Native (Native) and H5 and a building method thereof.
Background
The fifth revision of the hypertext markup language (referred to as "HTML 5," abbreviated as "H5") is formally defined by the international standards organization known as the world wide web association ("W3C"). HTML5 includes more than 100 specifications related to next generation Web technologies. HTML5 describes a set of HTML, CSS (cascading style sheets), and JavaScript specifications configured to enable designers and developers to build next generation web sites and applications ("apps").
At present, smart phones are widely popularized, four systems, namely ian, WP7, IOS and Android systems, are most used by smart phones, and application software of different systems is not compatible with each other. Therefore, different mobile phone clients need to be developed for mobile phones of different systems, which causes repeated development; meanwhile, the user is required to download the client again when a new APP is issued each time, so that the whole development progress is slowed down, and meanwhile, bad experience is brought to the user.
In order to solve the above problem, as shown in fig. 1, patent application No. 201511005002.0 discloses a method for developing a mobile phone client application program, which includes the following steps: 101. making web page frames using HTML 5; 102. modifying the webpage using CSS 3; 103. the JQuery or Javascript framework is used to enable the static interface of the webpage to have a dynamic function and interact with a user; 104. and (4) embedding the webpage manufactured in the step (103) into a frame of the mobile phone APP for debugging, so that the APPs of different mobile phone systems can be embedded into the webpage and normally displayed. The technical scheme does not need the user to download the updating client for multiple times. Based on the HTML5 application, the loaded content is a webpage developed by HTML5 and is stored in the server, and the latest version is acquired from the server every time the loading is carried out, so that the user does not need to download the update client for multiple times. In the traditional APP application, file contents are stored locally, and if the version needs to be upgraded, the whole client needs to be downloaded again, which causes poor user experience. Moreover, the use of HTML5 eliminates the need to consider page compatibility. The browsers of the existing smart phone system all support hypertext markup language HTML5, a front-end engineer does not need to be compatible with a plurality of standard browsers like developing a PC end webpage, the trouble of debugging compatibility is eliminated, and the development efficiency is greatly improved.
However, the inventor found that most of APP involves a mixture of Native (Native) and H5 development, so the APP basic framework needs to support not only local H5 (whole package or some pages) update, but also the live switch of Native pages and corresponding H5 pages.
Disclosure of Invention
The invention aims to provide a method for supporting updating and N of local H5aMethod and framework for switching over time of a positive page and a corresponding H5 page.
The technical scheme of the invention is that a method for updating Application (APP) built-in H5 comprises an APP management platform, an APP and an APP routing layer; the method comprises the following steps: firstly, uploading the latest H5 needing APP updating through the APP management platform, and modifying the APP routing setting; secondly, the APP acquires a latest H5 download address through a corresponding api interface for downloading, and acquires and stores latest routing configuration information to the local; and thirdly, controlling the jump of each page through the APP routing layer.
And further, the third step comprises the following steps of clicking a button on the page A, transmitting a corresponding routing Key value to the APP routing layer, then searching a corresponding Key in a routing table by the APP routing layer, analyzing the page jump type after finding the Key, and jumping the page A to the page B. (type: 0 hop native, 1 hop native H5, 2 hop up H5)
Further, before the first step, the method comprises the following steps of obtaining whether the APP is started or not, obtaining whether the APP is the latest H5 or not, and if the APP is started, entering the first step.
Further, before the first step, the method includes the following step that when the App needs to update H5 and the routing configuration information, the App management platform pushes a message to the App to inform that the update is needed.
An application framework for updating application (app) built-in H5 includes a view layer (view layer), an H5 Container layer (H5 Container), and an OS layer; wherein the view layer comprises an H5 page module, an H5 frame module, a JSbridge module and a Native activities module; the H5 Container layer (H5 Container) includes local URL routing (local UrlRouter); the OS layer includes Android and Ios modules.
The invention has the advantages that the application framework and the method for updating the built-in H5 of the Application (APP) are powerful in function and quick in response, when the problem occurs to the on-line APP on a certain page, the page can be quickly repaired through the method, and the page can jump to the corresponding native or local H5 or on-line H5 page without re-releasing the APP version.
Drawings
FIG. 1 is a schematic structural diagram of the background art of the present invention;
FIG. 2 is a schematic flow chart of the present invention;
FIG. 3 is a schematic structural view of the present invention;
FIG. 4 is a schematic flow chart of an embodiment of the present invention;
FIG. 5 is a flow chart illustrating another embodiment of the present invention.
Detailed Description
The present invention is further explained with reference to the drawings and the embodiments, as shown in fig. 2, a method for updating Application (APP) built-in H5 includes an APP management platform, an APP and an APP routing layer; the method comprises the following steps: firstly, uploading the latest H5 needing APP updating through the APP management platform, and modifying the APP routing setting; secondly, the APP installed on the android platform or the Ios platform acquires the latest H5 download address through the corresponding api interface for downloading, and acquires the latest routing configuration information and stores the latest routing configuration information to the local; and thirdly, controlling the jump of each page through the APP routing layer.
As shown in fig. 4, the third step further includes the steps of clicking a button on the page a, transmitting a corresponding routing Key value to the APP routing layer, then searching a corresponding Key in a routing table by the APP routing layer, and after finding the Key, analyzing a page jump type, and jumping the page a to the page B. (type: 0 hop native, 1 hop native H5, 2 hop up H5).
Further, before the first step, the method comprises the following steps of obtaining whether the APP is started or not, obtaining whether the APP is the latest H5 or not, and if the APP is started, entering the first step.
As shown in fig. 5, further, before the first step, the method includes a step of, when App update H5 and routing configuration information are needed, the App management platform pushing a message to the App to notify that update is needed, and entering the first step.
As shown in fig. 3, an application framework for updating application (app) built-in H5 includes a view layer (viewplayer), an H5 Container layer (H5 Container), and an OS layer; wherein the view layer comprises an H5 page module, an H5 frame module, a JSbridge module and a Native activities module; the H5 Container layer (H5 Container) includes local URL routing (local Url Router); the OS layer includes Android and Ios modules.
The above description is only about some embodiments of the present invention, and any replacement or modification made by those skilled in the art based on the spirit of the present invention should be covered by the protection scope of the present invention, which should be controlled by the appended claims.

Claims (1)

1. A method for updating Application (APP) built-in H5, comprising an APP management platform, an APP, and an APP routing layer; the method comprises the following steps: firstly, uploading the latest H5 needing APP updating through the APP management platform, and modifying the APP routing setting; secondly, the APP acquires a latest H5 download address through a corresponding api interface for downloading, and acquires and stores latest routing configuration information to the local; thirdly, controlling the skip of each page through the APP routing layer; clicking a button on the page A, transmitting a corresponding routing Key value to the APP routing layer, searching a corresponding Key in a routing table by the APP routing layer, and analyzing a page jump type after finding the Key, wherein the page A jumps to a page B; further, before the first step, the method comprises the following steps of obtaining whether the latest H5 exists or not every time the APP is started, and entering the first step if the latest H5 exists; further, before the first step, the method includes the following step that when the App needs to update H5 and the routing configuration information, the App management platform pushes a message to the App to inform that the update is needed.
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 CN106874035A (en) 2017-06-20
CN106874035B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108234665B (en) * 2018-01-11 2021-07-09 北京值得买科技股份有限公司 Jump processing method and equipment
CN108337317B (en) * 2018-02-09 2021-07-16 马上消费金融股份有限公司 Method and device for processing route request
CN109683990B (en) * 2018-12-27 2019-07-23 四川新网银行股份有限公司 H5 multiterminal cut-in method based on mixed mode mobile application
CN109857386B (en) * 2018-12-30 2022-06-21 贝壳技术有限公司 Page skipping method and device
CN110874236B (en) * 2019-11-13 2023-04-07 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN112068879B (en) * 2020-09-10 2023-10-13 中国工商银行股份有限公司 Method and device for constructing client application program development framework based on configuration

Citations (2)

* 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
CN106155708A (en) * 2015-03-24 2016-11-23 Tcl集团股份有限公司 A kind of dynamic load and the method and system of renewal content of pages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220330B (en) * 2013-03-11 2016-02-10 中兴通讯股份有限公司 Data terminal update device and method
CN106202381B (en) * 2016-07-08 2019-08-09 贵阳语玩科技有限公司 Start method for routing, device and the component of the page

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Hybrid APP 架构设计思路;chendemo;《https://github.com/chemdemo/chemdemo.github.io/issues/12》;20160105;1-13 *

Also Published As

Publication number Publication date
CN106874035A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106874035B (en) Method for updating application (app) built-in H5 and framework thereof
CN107870821B (en) Cross-platform calling method and system for application program
CN106708899B (en) Automatic point burying method and device
CN102567516B (en) Script loading method and device
KR101105176B1 (en) Method of supplying content to a device
CN102523268B (en) Client side upgrading method and system
CN107741844B (en) Method and device for generating application installation package
CN104038520B (en) A kind of multi version distributive resource managing method and system
CN101944032A (en) Microware updating method, client, server and system
CN106686200B (en) Mobile application program updating method, mobile terminal and updating system
CN104615462B (en) Cross-platform Mobile solution generation service end and system
WO2005086027A1 (en) Method, data processing device, computer program product and arrangement for processing electronic data
CN101945135A (en) Method and system for upgrading widget system
CN110221848A (en) APP method for updating pages, device, electronic equipment and storage medium
CN107463405B (en) Application program updating method and device
CN106371875B (en) Mobile phone application updating method based on HTML5
CN102833350A (en) Processing method and processing device of WebApp updating
WO2012148867A1 (en) Web-based app builder for mobile devices with automatic updates
CN108089873A (en) A kind of method and terminal of application component immediate updating
CN103995696A (en) Custom-built system and method of software package of mobile terminal
CN105808282A (en) Method and device for updating webpage contents of application program
CN112394932A (en) Automatic browser webpage skin changing method and device
CN112835568A (en) Project construction method and device
CN112214202B (en) Mobile phone program development system without writing codes
CN102681848A (en) Method, device, terminal and system for developing and accessing web page by Widget method

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