Application program heat update method and apparatus, terminal and storage medium

An application program and hot update technology, applied in the computer field, can solve problems such as application program crashes, and achieve the effect of avoiding crashes

Active Publication Date: 2018-02-23
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF5 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the bundle file fails to load, it ma

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application program heat update method and apparatus, terminal and storage medium
  • Application program heat update method and apparatus, terminal and storage medium
  • Application program heat update method and apparatus, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0044] It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first client could be termed a second client, and, similarly, a second client could be termed a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.

[0045] The application p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present application program relates to an application program heat update method and apparatus, a terminal and a storage medium. The method comprises: starting an application program, and loadinga mapping file and multiple current version resource file packages, wherein service function identifiers and corresponding resource file package identifiers are recorded in the mapping file; generating a version update request, and sending the version update request to a server, so that the server can query whether there is an update file corresponding to a new version according to the version update request; if so, obtaining the update file; receiving the update file returned by the server, wherein the update file comprises multiple new version resource file packages, and the new version resource file package has the resource file package identifier; dynamically loading the new version resource file packages corresponding to the service function identifiers by using the mapping file; andif detecting that the new version resource file packages fail to be loaded, rolling back to the current version resource file packages.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to an application program hot update method, device, terminal and storage medium. Background technique [0002] React Native (an open source framework for developing applications based on a JavaScript framework) hot update can update code and resources without reinstalling the application. Its working mechanism is to package a series of resources into a bundle file (a resource file package), and the application loads the bundle file to complete the hot update. In the traditional way, when React Native is hot updated, all js files will be packaged into a bundle file, and the entire bundle file will be published. If the bundle file fails to load, it may cause the entire application to crash. How to effectively avoid the crash of the entire application when React Native is hot updated has become a technical problem that needs to be solved at present. Contents of the inv...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/656
CPCG06F8/656
Inventor 潘伟洲
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products