Application updating method and device, electronic device and computer readable storage medium

By establishing a version information request and response mechanism between the terminal and the server, the problem of users being unable to update web applications in a timely manner is solved, ensuring timely updates of application versions and improving user experience.

CN118827370BActive Publication Date: 2025-12-12CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311462066.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2025-12-12
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

Users are unable to know and update to the latest version of the web application in a timely manner, resulting in abnormal page rendering and poor user experience.

Method used

The terminal and server obtain and update the version value of the target application through a version category information request and response mechanism to ensure that the application is updated in a timely manner.

Benefits of technology

This enabled timely updates to the target application, avoided page rendering errors, and improved the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827370B_ABST
    Figure CN118827370B_ABST
Patent Text Reader

Abstract

The application discloses an application updating method and device, an electronic device and a computer readable storage medium. The method comprises the following steps: a terminal acquires a version category of a target application from a server; a version information request is generated according to the version category, and the version information request is sent to the server, wherein the version information request carries the version category; a version information response sent by the server is received, wherein the version information response carries a first version value corresponding to the version category; and the target application is updated according to the first version value. In this way, the terminal can update the target application according to the first version value, so that the version of the target application is updated to the latest version corresponding to the first version value, and the timely updating of the target application is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of information technology, and in particular to an application updating method and device, an electronic device, and a computer readable storage medium. BACKGROUND

[0002] With the accelerated evolution of the Internet, people often need to obtain information and services through the web, and many applications that directly interact with people are presented to users in the form of pages through web technology.

[0003] The application based on web technology can be referred to as a web application. In order to meet the needs of users, the service provider of the web application will update the web application. When using the web application, the user cannot know whether the current web application is the latest version of the web application, and how to update the web application in a timely manner needs to be solved. SUMMARY

[0004] To solve the above technical problems, the embodiments of the present application provide an application updating method and device, an electronic device, and a computer readable storage medium.

[0005] The embodiments of the present application provide an application updating method, which is applied to a terminal. The application updating method comprises the following steps:

[0006] Obtaining a version category of a target application from a server;

[0007] Generating a version information request according to the version category, and sending the version information request to the server, wherein the version information request carries the version category;

[0008] Receiving a version information response sent by the server, wherein the version information response carries a first version value corresponding to the version category;

[0009] Updating the target application according to the first version value.

[0010] The embodiments of the present application also provide an application updating method, which is applied to a server. The application updating method comprises the following steps:

[0011] Sending a version category of a target application to a terminal;

[0012] Receiving a version information request sent by the terminal, wherein the version information request carries the version category;

[0013] Sending a version information response to the terminal, wherein the version information response carries a first version value corresponding to the version category; and the first version value is used for the terminal to update the target application.

[0014] The application embodiment further provides an application updating device, which is applied to a terminal and comprises:

[0015] a first communication unit configured to acquire a version category of a target application from a server;

[0016] a first processing unit configured to generate a version information request;

[0017] The first communication unit is further configured to send the version information request to the server, the version information request carrying the version category; and receive a version information response sent by the server, the version information response carrying a first version value corresponding to the version category.

[0018] The first processing unit is further configured to update the target application according to the first version value.

[0019] The application embodiment further provides an application updating device, which is applied to a server and comprises:

[0020] a second communication unit configured to send a version category of a target application to a terminal; receive a version information request sent by the terminal, the version information request carrying the version category; and send a version information response to the terminal, the version information response carrying a first version value corresponding to the version category; the first version value being used by the terminal to update the target application.

[0021] The application embodiment provides an electronic device, which comprises a processor configured to call and run a computer program from a memory, so that a device installed with the chip performs any of the above methods.

[0022] The application embodiment provides a computer readable storage medium for storing a computer program, the computer program causing a computer to perform any of the above methods.

[0023] In the technical solution of the application embodiment, the terminal acquires a version category of a target application from a server, and sends a version information request to the server according to the version category; after receiving the version information request, the server sends a first version value corresponding to the version category to the terminal in a version information response, so that the terminal can update the target application according to the first version value, so that the version of the target application is updated to the latest version corresponding to the first version value, and the timely updating of the target application is realized. BRIEF DESCRIPTION OF DRAWINGS

[0024] Figure 1 is an application updating process provided in the application embodiment Figure 1 ;

[0025] Figure 2 is a schematic diagram of an application update process provided in an embodiment of the present application Figure 2 ;

[0026] Figure 3 is a schematic diagram of an application update process provided in an embodiment of the present application Figure 3 ;

[0027] Figure 4 is a schematic diagram of an application update process provided in an embodiment of the present application Figure 4 ;

[0028] Figure 5 is a schematic diagram of an application update process provided in an embodiment of the present application Figure 5 ;

[0029] Figure 6 is a schematic diagram of an application update process provided in an embodiment of the present application

[0030] Figure 7 is a schematic diagram of an application update process provided in an embodiment of the present application Figure 1 ;

[0031] Figure 8 is a schematic diagram of an application update process provided in an embodiment of the present application Figure 2 ;

[0032] Figure 9 is a schematic diagram of an application update process provided in an embodiment of the present application DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present application.

[0034] It should be noted that in the embodiments of the present application, the term “and / or” is only used to describe the association relationship of the associated objects, and can represent the existence of three relationships, for example, A and / or B, which can represent the existence of A alone, the existence of A and B together, and the existence of B alone. In addition, in the embodiments of the present application, the character “ / ” generally represents an “or” relationship between the front and rear associated objects.

[0035] In the description of the embodiments of the present application, the term “corresponding” can represent a direct or indirect corresponding relationship between the two, or can represent an associated relationship between the two.

[0036] Figure 1 A flow of an application updating method provided by an embodiment of the present application Figure 1 It should be noted that the execution subject of the application updating is a terminal, the terminal is installed with a client, the client can be a browser, and the terminal can be a desktop computer, a notebook computer, a mobile phone, etc., and the terminal completes the application updating by accessing a page. As shown in Figure 4 The application updating method provided by an embodiment of the present application can include the following steps:

[0037] Step 101, obtaining a version category of a target application from a server.

[0038] In an embodiment, after the terminal accesses the target application, the terminal obtains the version category of the target application from the server. Here, the server can be a distributed server, and the target application can be an application to be updated by the terminal after accessing the browser.

[0039] In an embodiment, obtaining the version category of the target application from the server includes: obtaining a first page file of the target application from the server, the first page file recording the version category of the target application; and obtaining the version category of the target application from the first page file.

[0040] Here, the terminal obtains the first page file of the target application from the server, and the first page file is a page static resource file (index.html) corresponding to the target application obtained by the terminal from the server. Specifically, the page static resource file belongs to the front-end resource deployed on the static resource server in the server. When the service provider publishes the target application, all data is generated into front-end resources in the form of compiling and packaging to the server, and the terminal obtains the version category of the target application from the hidden tag in the first page file from the server. The terminal obtains the first page file of the target application from the server, and obtains the version category of the target application from the first page file.

[0041] Step 102, generating a version information request according to the version category, and sending the version information request to the server, the version information request carrying the version category.

[0042] In an embodiment, after the terminal obtains the version category of the target application from the server, the terminal generates a version information request according to the version category of the target application obtained from the server, and sends the version information request to the server. For example, the version category of the target application in the server can be represented as pv1, mv2, and the version category of the target application obtained by the terminal from the server can be represented as pv1 / version, mv2 / version, wherein version represents the server interface corresponding to the terminal. Then, the terminal generates a version information request according to pv1 / version, mv2 / version, and sends the version information request carrying pv1 / version, mv2 / version to the server.

[0043] In step 103, a version information response sent by the server is received, and the version information response carries the first version value corresponding to the version category.

[0044] In an embodiment, the terminal receives the version information response sent by the server, and the version information response carries the first version value corresponding to the version category. Here, the version information response carries the first version value corresponding to the version category and the timestamp corresponding to the first version value.

[0045] Specifically, the terminal sends a version information request carrying a version category to the server, and the server generates a corresponding first version value and a timestamp corresponding to the first version value according to the version category. For example, the version category of the target application in the server is represented as pv1, mv2, and the version category of the target application obtained by the terminal from the server is represented as pv1 / version, mv2 / version, wherein version represents the server interface corresponding to the terminal. Then, the terminal receives the version information response sent by the server, and the version information response carries the first version value corresponding to the version category, which can be represented as _pv1 / version, _mv2 / version. Here, the specific representation method of the version category and the version value is not limited.

[0046] In step 104, the target application is updated according to the first version value.

[0047] In an embodiment, the terminal updates the target application according to the first version value sent by the server. The terminal has a cache function locally, so that the terminal automatically stores the version value of the target application locally. Therefore, the terminal compares the first version value obtained from the server with the version value stored locally in the terminal, thereby completing the update of the target application.

[0048] Specifically, the terminal obtains the version category from the server, determines the first version value and the corresponding timestamp according to the version category. The terminal determines whether to update the target application by judging the first version value of the target application and the local version value in the terminal cache.

[0049] From the above, the terminal obtains the version category of the target application from the server, and sends a version information request to the server according to the version category; after receiving the version information request, the server sends the first version value corresponding to the version category to the terminal in a version information response, so that the terminal can update the target application according to the first version value, so that the version of the target application is updated to the latest version corresponding to the first version value, and the timely updating of the target application is realized.

[0050] Based on the foregoing embodiments, the application provides an application updating method, wherein the target application is updated according to the first version value, including:

[0051] Step 201, searching for a version value in a terminal local.

[0052] In an embodiment, the terminal accesses the target application and searches for the version value in the terminal local. If the terminal has accessed the target application before, the terminal automatically stores the version value of the target application in the local cache.

[0053] Specifically, the terminal local can be represented as a browser local cache. When the terminal accesses the target application, the terminal first searches for whether the version value of the target application is stored in the terminal local cache. The version value of the terminal local can represent the version value obtained from the server when the terminal accesses the target application before.

[0054] Step 202, if the version value is not found in the terminal local, storing the first version value in the terminal local, and obtaining the front-end resource of the target application from the server according to the first version value, and updating the target application by using the front-end resource.

[0055] In an embodiment, if the version value of the target application is not found in the terminal local, it means that the terminal has not accessed the target application before, and the terminal has not obtained the version value of the target application. Therefore, the terminal stores the first version value obtained from the server in the terminal local, and obtains the front-end resource of the target application from the server according to the first version value, and updates the target application according to the front-end resource. It can be understood that the front-end resource obtained by the terminal at this time is the resource containing the latest version of the target application, and the terminal stores the obtained first version value in the local cache. At this time, the terminal that caches the latest front-end resource means that the target application has been updated to the latest version.

[0056] From the above, the application embodiment provides an application updating method, when determining whether to update the target application according to the first version value, first, whether the terminal local has the version value of the target application is found, if the version value is not stored, the front-end resource required for updating is obtained from the server according to the first version value obtained from the server, and the target application is updated according to the front-end resource. By using the above application updating method, on the one hand, the cooperation of the back-end operation and maintenance for updating is avoided, and only the front-end application updating is required, on the other hand, in the case of a distributed server, the situation that the terminal cannot be updated due to the inability to access the latest front-end resource when accessing for the first time is avoided.

[0057] Based on the foregoing embodiment, the application embodiment provides an application updating method, wherein the target application is updated according to the first version value, and the method further comprises:

[0058] In step 301, if the second version value is found in the terminal local, the consistency of the second version value and the first version value is compared.

[0059] In an embodiment, if the second version value is found in the terminal local cache, it indicates that the terminal has accessed the target application before, that is, the terminal has obtained the second version value from the server, and then the terminal needs to compare the consistency of the second version value and the first version value. Specifically, the terminal needs to compare whether the second version value found in the terminal local and the first version value obtained from the server this time are consistent.

[0060] In step 302, if the second version value and the first version value are inconsistent, the second version value in the terminal local is updated to the first version value, the front-end resource of the target application is obtained from the server according to the first version value, and the target application is updated by using the front-end resource.

[0061] In an embodiment, if the second version value found in the terminal local and the first version value obtained from the server this time are inconsistent, the terminal obtains the front-end resource of the target application to be updated from the server according to the first version value obtained from the server this time, and updates the target application by using the front-end resource.

[0062] In an embodiment, if the second version value found in the terminal local and the first version value obtained from the server this time are consistent, it indicates that the second version value found in the terminal local this time is the latest version value, and the target application does not need to be updated.

[0063] From the above, the application embodiment provides an application updating method, wherein when determining whether to update the target application according to the first version value, the terminal locally searches for the version value, and if the terminal locally searches for the second version value, the second version value is compared with the first version value for consistency. If the second version value is inconsistent with the first version value, the first version value is written into the terminal locally, and the server obtains the front-end resource based on the first version value, and the application is updated according to the front-end resource; if the second version value is consistent with the first version value, it indicates that the target application is the latest version, and the target application does not need to be updated. Therefore, by using the above application updating method, on the one hand, the cooperation of the backend operation and maintenance for updating is avoided, and the front-end application updating is only needed, and on the other hand, in the case that the server is a distributed server, the situation that the terminal cannot be updated due to the inability to access the latest front-end resource when the terminal is accessed for the first time is avoided.

[0064] Based on the foregoing embodiment, the application embodiment provides an application updating method, wherein the front-end resource of the target application is obtained from the server according to the first version value, comprising:

[0065] The first prompt information is used to prompt the user to update the target application.

[0066] In an embodiment, after the terminal determines to update the target application, the terminal displays prompt information to the user on a webpage, and the prompt information prompts the user to update the application in the form of a display box. Specifically, the user can determine the target application to be updated through manual operation.

[0067] After obtaining the confirmation operation for the prompt information, a version update request is sent to the server, and the version update request carries the first version value.

[0068] In an embodiment, after the terminal obtains the operation of the user confirming to update the application, the terminal actively sends a target application version update request to the server, wherein the first version value is carried in the version update request, so as to facilitate subsequent acquisition of the front-end resource according to the first version value.

[0069] The version update response sent by the server is received, and the version update response carries the front-end resource corresponding to the first version value.

[0070] In an embodiment, after the terminal receives the version update response sent by the server, the front-end resource corresponding to the to-be-updated version information is obtained according to the version update response. Specifically, the front-end resource contains all the front-end resources required for updating the target application.

[0071] From the above, the application embodiment provides an application updating method, in which the terminal shows prompt information to the user for the user to actively confirm the updating target application. After obtaining the confirmation operation of the user on the prompt information, the terminal actively sends a version updating request to the server and updates the target application version according to the version updating response received from the server. In this way, the active manual updating operation of the user is completed, so that the updating is completed in time, the page rendering exception is avoided, and the user experience effect is not affected.

[0072] Based on the foregoing embodiment, the application embodiment provides an application updating method, in which the front-end resource of the target application is obtained from the server according to the first version value, including:

[0073] The timer is started, and after the timer is zeroed, a version updating request is sent to the server, and the version updating request carries the first version value.

[0074] In an embodiment, the terminal starts a timer, and after the timer is zeroed, a version updating request is actively sent to the server, wherein the first version value is carried in the version updating request, so that the terminal subsequently obtains the front-end resource according to the first version value.

[0075] The version updating response sent by the server is received, and the version updating response carries the front-end resource corresponding to the first version value.

[0076] In an embodiment, after receiving the version updating response sent by the server, the terminal updates the target application according to the front-end resource corresponding to the first version value carried in the version updating response. Specifically, the front-end resource contains all resources required for updating the target application.

[0077] From the above, the application embodiment provides an application updating method, in which the terminal starts a timer, actively sends an updating target application request to the server after the timer is zeroed, and updates the target application according to the version updating response received from the server. In this way, the active updating operation of the terminal is completed, so that the updating is completed in time, the page rendering exception is avoided, and the user experience effect is not affected.

[0078] Figure 4A flowchart of an application updating method provided by an embodiment of the present application is shown. It should be noted that the execution subject of the application updating is a server, which can be a distributed server. A content delivery network (CDN) can be used between the server and the terminal. CDN is a technology for providing high-speed content transmission and delivery by deploying servers in multiple locations around the world. It can play an important role in scenarios such as websites, video streaming, application updating, etc., and can effectively reduce the load pressure of the source server. However, in the case of CDN, when a user accesses the target application for the first time, the latest front-end resource cannot be accessed, and the target application updating cannot be completed. On the other hand, in the case of a distributed server, the new and old front-end resources are not distributed uniformly, and in this case, the terminal accessing the old front-end resource server will have the problem of abnormal page rendering caused by the inability to update the target application in time.

[0079] To solve the above problems, as shown in Figure 5 An application updating method provided by an embodiment of the present application can include the following steps:

[0080] Step 401: Send the version category of the target application to the terminal.

[0081] In an embodiment, after the service provider updates the target application, the service provider packs the updated front-end resource of the target application into the server, and the server generates the version category of the target application according to the updated front-end resource, and sends the generated version category to the terminal. For example, the server represents the version category of the target application as pv1 and mv2.

[0082] In an embodiment, the server writes the version category into a hidden tag in a first page file, where the first page file is a page static resource file (index.html file) in the server static resource directory. Specifically, the first page file belongs to the front-end resource deployed on the static resource server. When the service provider publishes the target application, it will generate the front-end resource to the server in the form of compiling and packaging all data, and the server writes the version category of the target application in the hidden tag in the first page file.

[0083] Step 402: Receive the version information request sent by the terminal, which carries the version category.

[0084] In an embodiment, the server receives a version information request generated by the terminal according to the version category of the target application obtained from the server, and the version information request carries the version category. For example, the version category of the target application in the server can be represented as pv1, mv2, and the version category of the target application obtained by the terminal from the server can be represented as pv1 / version, mv2 / version, where version represents the server interface corresponding to the terminal. Then, the terminal generates a version information request according to pv1 / version, mv2 / version, and sends the version information request carrying pv1 / version, mv2 / version to the server, and the server receives the version information request sent by the terminal.

[0085] In step 403, a version information response is sent to the terminal, and the version information response carries a first version value corresponding to the version category; the first version value is used by the terminal to update the target application.

[0086] In an embodiment, the server receives the version information request sent by the terminal, and generates a first version value and a corresponding timestamp according to the version category carried by the version information request. Specifically, the version category of the target application in the server is represented as pv1, mv2, and the version category of the target application obtained by the terminal from the server is represented as pv1 / version, mv2 / version, where version represents the server interface corresponding to the terminal. Then, the server generates a first version value corresponding to the version category, and the first version value can be represented as _pv1 / version, _mv2 / version. The server sends a version information response to the terminal, and the version information response carries the first version value corresponding to the version category, and the terminal updates the target application according to the first version value.

[0087] As can be seen from the above, in the application update method provided by the embodiment, the server sends the version category of the target application to the terminal, and sends a version information response to the terminal according to the received version information request, and the version information response carries a first version value for the terminal to update the target application. In this way, on the one hand, when the service provider updates the target application, the server can obtain new front-end resources for the terminal to update the target application, so that the version of the target application is updated to the latest version corresponding to the first version value, realizing timely updating of the target application and preventing the case of abnormal page rendering. On the other hand, in the case of a content distribution network (CDN) server, the terminal can avoid the case of being unable to update in time due to the inability to access the latest front-end resources when accessing for the first time.

[0088] Based on the foregoing embodiment, the application embodiment provides an application update method, which further comprises:

[0089] Receiving the version update request sent by the terminal, the version update request carrying the first version value.

[0090] In an embodiment, the server receives the version update request sent by the terminal. The version update request contains the first version value, so that the server packs and sends the front-end resource to be updated by the target application according to the first version value.

[0091] Sending a version update response to the terminal, the version update response carrying the front-end resource corresponding to the first version value, the front-end resource being used for updating the target application by the terminal.

[0092] In an embodiment, the server sends a version update response to the terminal, wherein the version update response carries the front-end resource corresponding to the first version value. Specifically, the front-end resource contains all the front-end resources required for updating the target application, and the front-end resource is used for updating the target application by the terminal.

[0093] As can be seen from the above, in the application update method provided by the embodiments of the present application, the server receives the version update request sent by the terminal, determines the front-end resource corresponding to the first version value through the first version value carried by the version information request, and sends a version update response carrying the front-end resource corresponding to the first version value to the terminal. In this way, the updating operation of the terminal is responded by the server, and the page rendering abnormality caused by the delay of updating the target application is avoided, so as to not affect the user experience.

[0094] Figure 5 is a flowchart of an application update method provided by the embodiments of the present application Figure 6 As shown in Figure 6 , the application update method comprises:

[0095] Step 501, the service provider publishes the target application, and packs the front-end resource of the target application to the distributed server, wherein the front-end resource contains the first version value and the corresponding timestamp of the target application.

[0096] Step 502, write the first page file in the directory of the distributed server, wherein the first page file contains the first version value and the corresponding timestamp of the target application.

[0097] Step 503, the terminal accesses the target application, wherein the target application can be a browser web site.

[0098] Step 504, the terminal obtains the first page file of the target application from the server, and the version category is written in the hidden tag of the first page file, wherein the first page file can be a page static resource file.

[0099] Step 505, the terminal determines the first version value according to the version category of the target application.

[0100] Step 506, the terminal checks whether the local has the version value of the target application.

[0101] Step 507, the terminal stores the first version value obtained from the server to the local of the terminal, and obtains the front-end resource corresponding to the first version value from the server if the local version value is not found.

[0102] Step 508, the terminal performs consistency comparison between the second version value and the first version value if the local has the second version value.

[0103] Step 509, the terminal actively prompts the user to update the target application if the second version value found in the local of the terminal is inconsistent with the first version value.

[0104] Step 510, the terminal obtains the front-end resource corresponding to the first version value from the server according to the first version value obtained from the first page file of the server, and updates the target application by using the front-end resource.

[0105] Step 511, the terminal does not need to update the version if the second version value found in the local of the terminal is consistent with the first version value.

[0106] Step 512, the terminal normally accesses the target application after updating.

[0107] Step 513, the terminal ends the access to the application.

[0108] Figure 7 Fig. 1 is a schematic diagram of an application update module provided by an embodiment of the present application. Figure 1 As shown in Fig. 1, the server stores the front-end resource to the static resource server of the distributed server after obtaining the front-end resource of the target application, and deploys the front-end resource required by the target application to the static resource server directory. When the service provider publishes an update of a certain set of target applications, the server generates multiple sets of version values for different terminals to access, and extracts the first version value for the terminal to update the target application.

[0109] When the terminal accesses the target application to obtain a certain set of target application resources, the terminal obtains the first version value of the certain set of target applications from the server, and compares the first version value with the second version value found in the local of the terminal. When the first version value is inconsistent with the second version value, the terminal obtains the front-end resource corresponding to the first version value from the server to update the target application.

[0110] Figure 7 Fig. 2 is a structural composition schematic diagram of an application update device provided by an embodiment of the present application. Figure 7 The application is applied to a terminal device, for example, Figure 7As shown, the application updating apparatus 700 comprises:

[0111] A first communication unit 701 is configured to acquire a version category of a target application from a server.

[0112] A first processing unit 702 is configured to generate a version information request.

[0113] The first communication unit 701 is further configured to send the version information request to the server, the version information request carrying the version category; and receive a version information response sent by the server, the version information response carrying a first version value corresponding to the version category.

[0114] The first processing unit 702 is further configured to update the target application according to the first version value.

[0115] In some embodiments of the present application, the first communication unit 701 is further configured to acquire a first page file of the target application from the server, the first page file recording the version category of the target application; and acquire the version category of the target application from the first page file.

[0116] In some embodiments of the present application, the first processing unit 702 is further configured to search for a version value locally on the terminal; if the version value is not found locally on the terminal, store the first version value locally on the terminal, acquire front-end resources of the target application from the server according to the first version value, and update the target application by using the front-end resources.

[0117] In some embodiments of the present application, the first processing unit 702 is further configured to search for a version value locally on the terminal; if a second version value is found locally on the terminal, perform consistency comparison on the second version value and the first version value; if the second version value is inconsistent with the first version value, update the second version value locally on the terminal to the first version value, acquire front-end resources of the target application from the server according to the first version value, and update the target application by using the front-end resources.

[0118] In some embodiments of the present application, the first processing unit 702 is further configured to display prompt information, the prompt information being used to prompt a user to update the target application.

[0119] The first communication unit 701 is further configured to, after obtaining a confirmation operation on the prompt information, send a version update request to the server, the version update request carrying the first version value; and receive a version update response sent by the server, the version update response carrying front-end resources corresponding to the first version value.

[0120] In some embodiments of the present application, the first processing unit 702 is further configured to start a timer.

[0121] The first communication unit 702 is further configured to, after the timer expires, send a version update request to a server, the version update request carrying the first version value; and receive a version update response sent by the server, the version update response carrying front-end resources corresponding to the first version value.

[0122] Those skilled in the art should understand that, Figure 8 The implementation functions of each unit in the application updating apparatus shown can be understood with reference to the related descriptions of the foregoing method. Figure 2 The functions of each unit in the application updating apparatus shown can be implemented by a program running on a processor, or by a specific logic circuit.

[0123] Figure 8 is a structural composition schematic diagram of an application updating apparatus provided by an embodiment of the present application. Figure 8 The application updating apparatus 800 shown is applied to a server, for example, Figure 9 The application updating apparatus 800 shown includes:

[0124] The second communication unit 801 is configured to send a version category of a target application to a terminal; receive a version information request sent by the terminal, the version information request carrying the version category; send a version information response to the terminal, the version information response carrying a first version value corresponding to the version category; and the first version value is used for the terminal to update the target application.

[0125] In some embodiments of the present application, the second communication unit 801 is further configured to receive a version update request sent by the terminal, the version update request carrying the first version value; and send a version update response to the terminal, the version update response carrying front-end resources corresponding to the first version value.

[0126] Those skilled in the art should understand that, Figure 9 The implementation functions of each unit in the application updating apparatus shown can be understood with reference to the related descriptions of the foregoing method. Figure 9 The functions of each unit in the application updating apparatus shown can be implemented by a program running on a processor, or by a specific logic circuit.

[0127] Figure 9 is a schematic structural diagram of an electronic device 900 provided by an embodiment of the present application. ​ The electronic device 901 shown includes a processor 901, which can call and run a computer program from a memory to implement the method in the embodiments of the present application.

[0128] Optionally, as shown in ​ The electronic device 900 can further include a memory 902. The processor 901 can call and run a computer program from the memory 902 to implement the method in the embodiments of the present application.

[0129] The memory 902 can be a separate device independent of the processor 901, or can be integrated in the processor 901.

[0130] Optionally, as shown in ​ The electronic device 900 can further include a transceiver 903, and the processor 901 can control the transceiver 903 to communicate with other devices, specifically, send information or data to other devices, or receive information or data sent by other devices.

[0131] The transceiver 903 can include a transmitter and a receiver. The transceiver 903 can further include an antenna, and the number of antennas can be one or more.

[0132] The electronic device 900 can be a terminal or a server of the embodiments of the present application, and the electronic device 900 can implement the corresponding processes implemented by the terminal or the server in the various methods of the embodiments of the present application. For brevity, details are not repeated here.

[0133] It should be understood that the processor of the embodiments of the present application can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method embodiments can be completed by integrated logic circuits or instructions in the form of software in the processor. The processor described above can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. Each method, step and logic block disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or other mature storage medium in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and combines the hardware to complete the steps of the above method.

[0134] It can be appreciated that the memory in the embodiments of the present application can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM can be used, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory of the system and method described herein is intended to include, but not be limited to, these and any other suitable types of memory.

[0135] It should be understood that the above-mentioned memory is exemplary but not limiting, for example, the memory in the embodiments of the present application can also be static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), double data rate synchronous dynamic RAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synch link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM), etc. That is, the memory in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.

[0136] The embodiment of the present application further provides a computer readable storage medium for storing a computer program. The computer readable storage medium can be applied to the terminal or the server in the embodiment of the present application, and the computer program causes the computer to execute the corresponding process realized by the terminal or the server in the various methods of the embodiment of the present application. For brevity, details are not repeated here.

[0137] Those skilled in the art can understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, and details are not repeated here.

[0139] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0140] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0141] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0142] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art or the parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a first network function or sensing device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0143] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An application update method characterized by comprising: Applied to a terminal, the method comprises: Obtaining a version category of a target application from a server; Generating a version information request according to the version category and sending the version information request to the server, the version information request carrying the version category; Receiving a version information response sent by the server, the version information response carrying a first version value corresponding to the version category; Updating the target application according to the first version value; The updating of the target application according to the first version value comprises: Locating a version value locally in the terminal; If no version value is located locally in the terminal, storing the first version value locally in the terminal and obtaining front-end resources of the target application from the server according to the first version value and updating the target application by using the front-end resources.

2. The method of claim 1, wherein, The updating of the target application according to the first version value further comprises: If a second version value is located locally in the terminal, performing consistency comparison between the second version value and the first version value; If the second version value is inconsistent with the first version value, updating the second version value locally in the terminal to the first version value, obtaining front-end resources of the target application from the server according to the first version value and updating the target application by using the front-end resources.

3. The method according to claim 1 or 2, characterized in that, The obtaining of the front-end resources of the target application from the server according to the first version value comprises: Displaying prompt information for prompting a user to update the target application; After obtaining a confirmation operation for the prompt information, sending a version update request to the server, the version update request carrying the first version value; Receiving a version update response sent by the server, the version update response carrying front-end resources corresponding to the first version value.

4. The method according to claim 1 or 2, characterized in that, The obtaining of the front-end resources of the target application from the server according to the first version value comprises: Starting a timer; After the timer is zeroed, sending a version update request to the server, the version update request carrying the first version value; Receiving a version update response sent by the server, the version update response carrying front-end resources corresponding to the first version value.

5. The method of any one of claims 1 to 2, wherein, The obtaining of the version category of the target application from the server comprises: Obtaining a first page file of the target application from the server, the first page file recording the version category of the target application; Obtaining the version category of the target application from the first page file.

6. An application update method characterized by comprising: Applied to a server, the method comprises: Sending a version category of a target application to a terminal; Receiving a version information request sent by the terminal, the version information request carrying the version category; Sending a version information response to the terminal, the version information response carrying a first version value corresponding to the version category, the first version value being used for the terminal to update the target application; Receiving a version update request sent by the terminal, the version update request carrying the first version value; Sending a version update response to the terminal, the version update response carrying front-end resources corresponding to the first version value, the front-end resources being used for the terminal to update the target application.

7. An application update apparatus characterized by comprising: Applied to a terminal, the device comprises: A first communication unit for obtaining a version category of a target application from a server; A first processing unit for generating a version information request; The first communication unit is further configured to send the version information request to the server, the version information request carrying the version category; receive a version information response sent by the server, the version information response carrying a first version value corresponding to the version category; The first processing unit is further configured to update the target application according to the first version value; The first processing unit is further configured to search for a version value locally in the terminal; if no version value is found locally in the terminal, store the first version value locally in the terminal, and obtain front-end resources of the target application from the server according to the first version value, and update the target application by using the front-end resources.

8. An application update apparatus characterized by comprising: Applied to a server, the device comprises: A second communication unit for sending a version category of a target application to a terminal; receiving a version information request sent by the terminal, the version information request carrying the version category; sending a version information response to the terminal, the version information response carrying a first version value corresponding to the version category; the first version value is used for the terminal to update the target application; The second communication unit is further configured to receive a version update request sent by the terminal, the version update request carrying the first version value; send a version update response to the terminal, the version update response carrying front-end resources corresponding to the first version value, the front-end resources being used for the terminal to update the target application.

9. An electronic device, comprising: A processor is configured to call and run a computer program from a memory, so that a device installed with a chip executes a method as claimed in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, A computer program is stored, which makes a computer execute a method as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Application page updating method and device, equipment and storage medium

    CN110058873A

  • Page display method, device and equipment and computer readable medium

    CN114428805A