CN110221855B - Method for app and server collaborative updating and offline running - Google Patents

Method for app and server collaborative updating and offline running Download PDF

Info

Publication number
CN110221855B
CN110221855B CN201910535897.0A CN201910535897A CN110221855B CN 110221855 B CN110221855 B CN 110221855B CN 201910535897 A CN201910535897 A CN 201910535897A CN 110221855 B CN110221855 B CN 110221855B
Authority
CN
China
Prior art keywords
app
mobile terminal
configuration data
server
version number
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
CN201910535897.0A
Other languages
Chinese (zh)
Other versions
CN110221855A (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.)
Henan Dragonfly Cloud Intelligent Technology Co ltd
Original Assignee
Henan Dragonfly Cloud Intelligent Technology 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 Henan Dragonfly Cloud Intelligent Technology Co ltd filed Critical Henan Dragonfly Cloud Intelligent Technology Co ltd
Priority to CN201910535897.0A priority Critical patent/CN110221855B/en
Publication of CN110221855A publication Critical patent/CN110221855A/en
Application granted granted Critical
Publication of CN110221855B publication Critical patent/CN110221855B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method for cooperatively updating and offline running of an app and a server, which comprises the following steps: the server compresses and packages the acquired function modules into a function module file package and stores the function module file package; generating app configuration data by the new version number of the app, the latest version number of each functional module file package and the storage path; the mobile terminal is in communication connection with the server and then downloads app configuration data from the server; reading version numbers in app configuration data and storage addresses of file packages of all functional modules; downloading and storing a function module file package inconsistent with the version in the mobile terminal according to the app configuration data; and the mobile terminal updates the app according to the downloaded function module file package. The technical scheme provided by the invention can solve the problems that the app on the mobile terminal cannot be operated offline, the configuration is inflexible, the updating efficiency is low and the updating speed is low.

Description

Method for app and server collaborative updating and offline running
Technical Field
The invention belongs to the technical field of app update, and particularly relates to a method for app and server collaborative update and offline operation.
Background
With the development of the internet and mobile internet, various products and services are provided to smart phone users in the form of a mobile phone Application (APP). At present, the operating systems mainly used by the mobile equipment are two systems, i.e. an iOS system and an Android system. The apps all need to be independently developed and compiled using respective development languages under the development tools and environments of the respective systems. Because Apple is designed into a closed application system by Apple company (Apple), the iOS is not based on an open source framework, and can only be developed by using an Xcode tool and an objected-C language, the development cost of APP of the iOS system is high, the upgrading and updating are inconvenient, the process is complicated and complicated, the development efficiency of APP is low, and the delivery speed is slow.
The existing development technology of the APP mainly has two types, namely the original development is that a development tool and a language are used for writing codes, all used files and resources are embedded into project engineering for recompilation and packaging, and any file in the APP is updated in the mode, so that recompilation and packaging are needed. Another is web-based hybrid development, i.e. a browser is embedded in the App, part of the native functionality is developed instead of Html5, which can be updated dynamically without upgrading the App, but without networking, the functionality will not be available. That is, the project file and the resource localization run can be disconnected from the network but are not easy to update, and the project file and the resource localization run are not easy to update when cloud localization is adopted, but are required to be networked.
In the prior art, an app of a mobile terminal can acquire new version information of the app from a cloud platform and download and update the new version information, but the update mode needs to be networked, and the whole app needs to be updated during update, so that the problem of lower app update efficiency of the mobile terminal is caused.
Disclosure of Invention
The invention aims to provide a method for collaborative updating and offline running of an app and a server, which is used for solving the problems of low efficiency and low speed in the prior art when the app on a mobile terminal is updated.
A method for app and server collaborative update and offline operation, comprising the steps of:
(1) Updating content resources of the app on the server;
after acquiring the new version of the functional module, the server packages and compresses the functional module file package to be stored, generates a new version number of the app and a new version number of each functional module file package, generates app configuration data according to the new version number of the app, the latest version number of each functional module file package and a storage path of the functional module file package, and stores the configuration data in a set position of the server; the app includes a plurality of independently running functional modules;
(2) Downloading a new version of the app on the mobile terminal;
the mobile terminal is in communication connection with the server and then downloads app configuration data from the server; reading version numbers in app configuration data, version numbers of file packages of all functional modules and storage paths; judging whether the version number in the app configuration data is consistent with the version number on the mobile terminal; if the version numbers are inconsistent, downloading and storing a functional module file packet inconsistent with the version numbers in the mobile terminal in the app configuration data;
(3) Updating the app on the mobile terminal;
the mobile terminal decompresses the downloaded functional module file package, restores the downloaded functional module file package into the same catalogue and file, simultaneously updates the version numbers of the app and the version numbers of all the functional modules on the mobile terminal, and deletes the functional module file package and the original version of the functional module after successful updating.
Further, in the step (2), when it is determined that the version number in the app configuration data is inconsistent with the version number of the mobile terminal app, an inconsistent functional module file package is established as a download queue and downloading is automatically performed; making a corresponding mark every time a functional module file package is downloaded; in the downloading process, when an instruction of suspending downloading or re-downloading one of the function module file packages sent by a user is obtained, suspending downloading or re-downloading the function module file package.
Further, the server stores the resource file after acquiring the resource file, and the app configuration data further comprises information of the resource file and a storage path of the resource file; after the mobile terminal acquires the app configuration data, according to whether the resource file information in the app configuration data is consistent with the resource file information of the app on the mobile terminal; if the resource data is inconsistent, downloading the resource data according to a storage path of the resource data and updating the resource data of the app on the mobile terminal; the resource data files include pictures, video, and music.
Further, the method also comprises the step of updating the app framework on the mobile terminal: after the server acquires the new version of the app frame, generating a new app frame version number and a storage path, wherein the app configuration data comprise the app frame version number; after acquiring the app configuration data, the mobile terminal reads the version number of the app frame and judges whether the version number of the app frame is consistent with the version number of the app frame on the mobile terminal; and if the app frames are inconsistent, downloading the new version app frames according to the storage path of the app frames, and updating the app frames on the mobile terminal.
According to the technical scheme provided by the invention, the app of the mobile terminal is updated by adopting the server, the mobile terminal can not only run the app in the off-network state, but also update the functional module which needs to be updated when updating, the whole app is not required to be updated, and the resource file is updated in a silent mode in the networking state, so that the problems of low efficiency and low speed in the process of updating the app on the mobile terminal in the prior art are solved.
Drawings
FIG. 1 is a flow chart of a method for app to update and run offline in conjunction with a server in an embodiment of the present invention;
FIG. 2 is a flow chart of downloading a new version of an app on a mobile terminal in an embodiment of the present invention;
fig. 3 is a flowchart of an app resource file update on a mobile terminal in an embodiment of the present invention.
Detailed Description
The embodiment provides a method for collaborative updating and offline running of an app and a server, which can update and upgrade the app on a mobile terminal when the mobile terminal is in communication connection with the server, and improves the reliability, safety and convenience of the app upgrade of the mobile terminal.
The application environment of the method for the app and the server to cooperatively update and offline run provided by the embodiment comprises the server and a plurality of mobile terminals capable of being in communication connection with the server. The mobile terminal is provided with the app, the app framework provides a container containing a variable number of functional modules, meanwhile, the app running framework and the display content are separated, configuration information, resource files and functional modules in the app are all arranged on a server to be uniformly managed, and downloading is requested from the server in a networking state, so that the app on the mobile terminal is updated.
The flow of the method for collaborative updating and offline running of the app and the server provided in this embodiment is shown in fig. 1, and includes the following steps:
(1) Content resource updates for apps on servers.
After the server acquires the function module of the app uploaded by the technician, calling a packaging program to package the function module into a function module file package in a zip format, storing the function module file package, and generating a new app version number and the version number of each function module file package; app configuration data is then generated, including version information of apps on the server, and version numbers, storage paths, and file sizes of the respective function module packages.
(2) And downloading the new version of the app on the mobile terminal.
When the mobile terminal is in a networking state, the server firstly performs key verification on the mobile terminal to identify whether the identity and the request of the mobile terminal are legal or not, and if the identity and the request of the mobile terminal are legal, app configuration data are provided for the mobile terminal, and an updating flow is shown in fig. 2, and the method comprises the following steps:
after the mobile terminal is in communication connection with the server, downloading app configuration data from the server, and reading app version numbers in the app configuration data, version numbers of all functional modules, storage paths and file sizes;
after reading the version number in the app configuration data, judging whether the version number is consistent with the version number on the mobile terminal;
if the two types of data are consistent, no processing is carried out;
if the version numbers of the file packages of the function modules in the latest app configuration data are inconsistent, comparing the version numbers of the function modules of the app on the mobile terminal with the version numbers of the function modules of the app on the mobile terminal, and judging the function modules with inconsistent versions, wherein the function modules are the function modules needing to be updated;
then, a storage path of the functional module file package to be updated is obtained, a downloading queue is established, automatic downloading is executed, new versions of the functional module file packages are downloaded from a server, and the new versions are stored in a preset storage space of an app on the mobile terminal;
the downloading process of the functional module file package supports breakpoint downloading, and corresponding identification is made after each functional module file package is downloaded;
in the downloading process, when an instruction of suspending downloading or re-downloading one of the function module file packages sent by a user is obtained, suspending downloading or re-downloading the function module file package; after an instruction of re-downloading the function module file package sent by a user is obtained, judging whether the function file package is downloaded; if it has been completed, no further download is performed.
(3) Updating of apps on mobile terminals.
The mobile terminal downloads the new version of the function module file package from the server, decompresses the new version of the function module file package to obtain corresponding function modules, updates the corresponding function modules on the mobile terminal, updates the version numbers of the app on the mobile terminal and the version numbers of the function modules in the app to the latest version numbers in app configuration data, and deletes the function module file package and the original version of the function module file package after successful updating.
According to the method for the collaborative updating and offline running of the app and the server, when only partial functional modules in the app are updated, technicians only need to upload the functional modules to be updated to the server; in the updating process, the mobile terminal only needs to download the functional module file package which needs to be updated in the app, and the updating process is simple and convenient, so that the working efficiency of updating can be improved. And the mobile terminal can run the app even in an off-network state by storing the function module locally after it is downloaded.
The method for app and server collaborative updating and offline running provided in this embodiment further includes a step of app resource file updating on the mobile terminal, and the flow of the step is shown in fig. 3:
the server acquires resource files such as pictures, music, videos and the like, then stores the resource files, and generates information and a storage path of the resource files in app configuration data;
after the mobile terminal acquires the app configuration data, reading the resource file information in the app configuration data, and judging whether the resource file information is consistent with the resource file information of the app on the mobile terminal;
if the app configuration data is inconsistent, downloading the resource file from the server according to the storage path of the resource file in the app configuration data and storing the resource file on the mobile terminal; and simultaneously updating information of resource files in the app and deleting the originally stored resource files.
The method for app and server collaborative updating and offline running provided by the embodiment further comprises the steps of updating an app framework on the mobile terminal: after the server acquires the new version of the app frame, generating a new app frame version number and a storage path, wherein the generated app configuration data comprises the app frame version number and the storage path; after acquiring the app configuration data, the mobile terminal reads the version number of the app frame and judges whether the version number of the app frame is consistent with the version number of the app frame on the mobile terminal; if the app frames are inconsistent, downloading the new version app frames according to the storage path of the app frames, updating the app frames on the mobile terminal and deleting the app frames of the original version on the mobile terminal. After the app framework is updated, if the functional module file package does not change, the functional module is directly operated without downloading the functional module file package again; and if the function module changes, updating the function module in the function module.

Claims (3)

1. A method for collaborative updating and offline running of an app and a server, comprising the steps of:
(1) Updating content resources of the app on the server;
after acquiring the new version of the functional module, the server packages and compresses the functional module file package to be stored, generates a new version number of the app and a new version number of each functional module file package, generates app configuration data according to the new version number of the app, the latest version number of each functional module file package and a storage path of the functional module file package, and stores the configuration data in a set position of the server; the app includes a plurality of independently running functional modules;
(2) Downloading a new version of the app on the mobile terminal;
when the mobile terminal is in an off-network state, the app can be run, after the mobile terminal is in communication connection with the server, the server firstly performs key verification on the mobile terminal, and identifies whether the identity and the request of the mobile terminal are legal or not, if the app configuration data are provided for the mobile terminal in a legal manner, the mobile terminal downloads the app configuration data from the server; reading an app version number, a version number of each functional module file package and a storage path in app configuration data; judging whether the version number in the app configuration data is consistent with the version number on the mobile terminal; if the version numbers are inconsistent, downloading and storing a functional module file packet inconsistent with the version numbers in the mobile terminal in the app configuration data;
(3) Updating the app on the mobile terminal;
decompressing the downloaded functional module file package by the mobile terminal, restoring the downloaded functional module file package into the same catalogue and file, simultaneously updating the version number of the app on the mobile terminal and the version numbers of all the functional modules, and deleting the functional module file package and the functional module of the original edition after the updating is successful;
(4) Update of app framework on mobile terminal:
after the server acquires the new version of the app frame, generating a new app frame version number and a storage path, wherein the app configuration data comprise the app frame version number; after acquiring the app configuration data, the mobile terminal reads the version number of the app frame and judges whether the version number of the app frame is consistent with the version number of the app frame on the mobile terminal; if the app frames are inconsistent, downloading new version app frames according to the storage path of the app frames, updating the app frames on the mobile terminal and deleting the app frames of the original version on the mobile terminal; after the app framework is updated, if the functional module file package does not change, the functional module is directly operated without downloading the functional module file package again; and if the function module changes, updating the function module in the function module.
2. The method for collaborative updating and offline running of an app and a server according to claim 1, wherein in the step (2), when it is determined that the version number in app configuration data is inconsistent with the version number of the mobile terminal app, an inconsistent function module file package is established as a download queue and downloading is automatically performed; making a corresponding mark every time a functional module file package is downloaded; in the downloading process, when an instruction of suspending downloading or re-downloading one of the function module file packages sent by a user is obtained, suspending downloading or re-downloading the function module file package.
3. The method for collaborative updating and offline operation of an app and a server according to claim 1, wherein the server obtains and stores a resource file, and the app configuration data further includes information of the resource file and a storage path of the resource file; after the mobile terminal acquires the app configuration data, according to whether the resource file information in the app configuration data is consistent with the resource file information of the app on the mobile terminal; if the resource files are inconsistent, the resource files are downloaded according to the storage paths of the resource files, and the resource files of the app on the mobile terminal are updated; the resource files include pictures, video, and music.
CN201910535897.0A 2019-06-20 2019-06-20 Method for app and server collaborative updating and offline running Active CN110221855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910535897.0A CN110221855B (en) 2019-06-20 2019-06-20 Method for app and server collaborative updating and offline running

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910535897.0A CN110221855B (en) 2019-06-20 2019-06-20 Method for app and server collaborative updating and offline running

Publications (2)

Publication Number Publication Date
CN110221855A CN110221855A (en) 2019-09-10
CN110221855B true CN110221855B (en) 2023-07-18

Family

ID=67814349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910535897.0A Active CN110221855B (en) 2019-06-20 2019-06-20 Method for app and server collaborative updating and offline running

Country Status (1)

Country Link
CN (1) CN110221855B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147349A (en) * 2019-11-27 2020-05-12 维沃移动通信有限公司 Path sharing method and electronic equipment
CN112929423A (en) * 2021-01-25 2021-06-08 上海契云科技有限公司 Method and device for data packaging of terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8201162B2 (en) * 2001-03-19 2012-06-12 Sony Corporation Software updating system, software updating method, and software updating program
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN103092665B (en) * 2013-03-01 2016-08-03 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method
CN108984201A (en) * 2018-07-09 2018-12-11 深圳市思迪信息技术股份有限公司 Mobile platform version intelligent online upgrade method and device

Also Published As

Publication number Publication date
CN110221855A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN102622241B (en) A kind of method for upgrading software and device
US8612947B2 (en) System and method for remotely compiling multi-platform native applications for mobile devices
CN105511902B (en) A kind of method and system of Android platform module dynamically load
WO2019000627A1 (en) Software customization server, method, program and computer readable storage medium
EP2866142A1 (en) Upgrade package generation method and device, dynamic file differential upgrade method and terminal
EP3432141A1 (en) Mobile terminal application update method and device
CN105867973A (en) Loading method and system for so file in application program
CN107632829A (en) A kind of App automation continuous integration systems and method based under iOS system
CN108762767B (en) Application publishing method, device and computer readable storage medium
CN110221855B (en) Method for app and server collaborative updating and offline running
CN104852971B (en) Plug-in protocol device and data communication method based on plug-in protocol
CN112052013A (en) Software package generation method and device, storage medium and electronic device
CN110764805B (en) Client non-inductive upgrading method, device, terminal and storage medium
CN111625260A (en) Method and system based on mixed mobile application program upgrading
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
CN113641582A (en) Mixed-mode mobile application debugging method and system
CN110851151B (en) Method, device, terminal, server and storage medium for pre-installing application
CN110716786B (en) Page display method, system and storage medium
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
CN105740298A (en) File processing method and apparatus, and server-side equipment
CN113590151A (en) Method and system for OTA (over the air) upgrade of Bluetooth equipment
CN105227600A (en) The method of mobile device system upgrading
CN110806856A (en) Data loading method and device and electronic equipment
CN113641580B (en) Mixed mode mobile application debugging method and system
CN102137058B (en) A kind of page access method and apparatus based on tab page

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