Application program upgrading method and device, equipment, storage medium and program product
By configuring the version information of the upgrade installation package and the upgrade prompt policy on the server, the client adaptively displays the upgrade prompt information, solving the problem of application version fragmentation, improving the upgrade rate and stability of the application, and reducing development costs.
Patent Information
- Application Number
- CN202410285828.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-09-17
AI Technical Summary
Fragmentation of application versions leads to confusing versions for users, reduces the participation rate in new activities, increases development and maintenance costs, and affects the stability and security of applications.
Configure the version information of the upgrade installation package and the upgrade prompt policy on the server, including the correspondence between the version difference information and the upgrade prompt parameters. The client adaptively displays the upgrade prompt information based on the obtained version configuration information, improving the user's probability of upgrading.
It effectively improves the upgrade rate of applications, reduces version fragmentation issues, reduces development costs, and improves the stability and security of applications.
Smart Images

Figure CN118656089A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an application program upgrade method, device, equipment, storage medium and program product. Background Art
[0002] The stage from when the application provider releases the upgrade installation package of the application to when the user installs and uses the upgrade installation package is called the "last mile of version delivery" in the industry. Usually, the application provider completes the release task after releasing the upgrade installation package. Since the usage rate of each new version of the upgrade installation package is not high, over time, the versions used by users will become more and more chaotic, that is, "application version fragmentation." Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide an application upgrade method, device, equipment, storage medium and program product, which are used to improve the problem of application version fragmentation.
[0004] In order to achieve the above objectives, the present application embodiment adopts the following technical solutions:
[0005] In a first aspect, an embodiment of the present application provides an application program upgrade method, which is applied to a client, and the method includes:
[0006] Acquire an upgrade installation package and version configuration information of the target application from the server, wherein the version configuration information includes version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and upgrade prompt parameters;
[0007] Determining target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client;
[0008] Based on the target version difference information and the upgrade prompt policy, display upgrade prompt information;
[0009] In response to receiving a confirmation operation on the upgrade prompt information, the target application is upgraded based on the upgrade installation package.
[0010] In a second aspect, an embodiment of the present application provides an application upgrade method, which is applied to a server, and the method includes:
[0011] Receiving an acquisition request from a client, the client being used to run a target application, and having a local installation package of the target application installed in the client;
[0012] In response to the acquisition request, the upgrade installation package and version configuration information of the target application are sent to the client, the version configuration information includes the version information of the upgrade installation package and an upgrade prompt policy, and the upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameters.
[0013] In a third aspect, an embodiment of the present application provides an application program upgrade device, applied to a client, the device comprising:
[0014] An acquisition unit, configured to acquire an upgrade installation package and version configuration information of a target application from a server, wherein the version configuration information includes version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and an upgrade prompt parameter;
[0015] A determination unit, configured to determine target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client;
[0016] A display unit, configured to display upgrade prompt information based on the target version difference information and the upgrade prompt policy;
[0017] An upgrading unit is used to upgrade the target application based on the upgrading installation package in response to receiving a confirmation operation on the upgrading prompt information.
[0018] In a fourth aspect, an embodiment of the present application provides an application program upgrade device, which is applied to a server, and the device includes:
[0019] A receiving unit, configured to receive an acquisition request from a client, wherein the client is configured to run a target application and a local installation package of the target application is installed in the client;
[0020] A sending unit is used to send the upgrade installation package and version configuration information of the target application to the client in response to the acquisition request, the version configuration information includes the version information of the upgrade installation package and an upgrade prompt policy, and the upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameter.
[0021] In a fifth aspect, an embodiment of the present application provides an electronic device, including:
[0022] processor;
[0023] a memory for storing instructions executable by the processor;
[0024] The processor is configured to execute the instructions to implement the application upgrade method as described in the first aspect; or, the processor is configured to execute the instructions to implement the application upgrade method as described in the second aspect.
[0025] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the application upgrade method as described in the first aspect; or, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the application upgrade method as described in the second aspect.
[0026] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps in the method described in the first aspect or the second aspect.
[0027] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0028] Focusing on the "last mile of version delivery", by improving this stage, on the server side, the version information of the upgrade installation package and the upgrade prompt strategy are configured in the version configuration information of the application, and the first correspondence between the version difference information and the upgrade prompt parameters is set in the upgrade prompt strategy; on the client side, after obtaining the version configuration information of the application from the server, it can adaptively use appropriate prompt parameters to display the upgrade prompt information according to the current installed version and the upgrade prompt strategy, so as to achieve differentiated prompts for users of different versions, better adapt to the upgrade needs of users of different versions, avoid interference of upgrade prompt information to users, and promote the probability of users upgrading the target application, thereby improving the upgrade rate of the target application, improving the fragmentation of application versions caused by the chaos of versions used by different users, and solving many problems caused by application version fragmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0030] Figure 1 A schematic diagram of an implementation environment applicable to the application program upgrade method provided for implementation of the present application;
[0031] Figure 2 A schematic diagram of another implementation environment applicable to the application program upgrade method provided in an embodiment of the present application;
[0032] Figure 3 A flowchart of an application program upgrade method provided for one embodiment of the present application;
[0033] Figure 4 A flowchart of an application program upgrade method provided for another embodiment of the present application;
[0034] Figure 5 A flowchart of an application program upgrade method provided in yet another embodiment of the present application;
[0035] Figure 6 A flowchart of an application program upgrade method provided in yet another embodiment of the present application;
[0036] Figure 7 A flowchart of an application program upgrade method provided in yet another embodiment of the present application;
[0037] Figure 8 A schematic diagram of the structure of an application program upgrade device provided for one embodiment of the present application;
[0038] Fig. 9 A schematic diagram of the structure of an application program upgrade device provided in another embodiment of the present application;
[0039] Fig.10 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0041] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0042] Some concept descriptions:
[0043] Push platform: used to send notification messages to clients so that users can receive important information even when the application is closed.
[0044] SMS platform: It is a common SMS mass messaging platform that is connected to the Internet based on the SMS interface provided by the SMS service provider to realize the needs of sending SMS in batches or sending SMS to user-specified numbers, such as providing SMS verification codes, notification SMS, marketing SMS and other services to e-commerce, stores, websites, apps and systems.
[0045] Outbound call platform: A system that automatically initiates outbound call tasks based on business scenarios based on technologies such as speech recognition and synthesis, machine learning, and natural language understanding.
[0046] Reach platform: A system that combines multiple reach methods and strategies to accurately reach users and improve the experience and efficiency of operational activities.
[0047] As described in the background art, usually, the application provider ends the publishing task after publishing the upgrade installation package. Since the usage rate of each new version of the upgrade installation package is not high, over time, the versions used by users will become more and more chaotic, that is, "application version fragmentation".
[0048] Application version fragmentation will bring the following problems:
[0049] For the business side, it will reduce the proportion of users participating in new activities, which will lead to a decrease in the business indicators of new activities, which is not conducive to the normal operation of new activities. For example, general business only allows users who use the latest version of the application to participate. If too many users use outdated versions, the number of users participating in marketing activities will decrease, and ultimately the effectiveness of the activities will be greatly reduced.
[0050] For product development, the functional design and development costs of applications will increase. For example, on the server side, due to version fragmentation, the interface services provided need to be compatible with many versions, resulting in high development and maintenance costs, and the performance and stability of the application system are also challenged. On the client side, due to version fragmentation, some historical versions with vulnerabilities and security issues have a high share, making the stability and security management of applications more and more difficult. On the product side, due to version fragmentation, the process that needs to be considered during function design becomes complicated, and sometimes even enters a dead loop, resulting in a decrease in function design efficiency.
[0051] In summary, a solution that can improve the problem of application version fragmentation is currently needed.
[0052] To this end, an embodiment of the present application proposes an application upgrade method, focusing on the "last mile of version delivery". By improving this stage, on the server side, the version information of the upgrade installation package and the upgrade prompt strategy are configured in the version configuration information of the application, and the first correspondence between the version difference information and the upgrade prompt parameters is set in the upgrade prompt strategy; on the client side, after obtaining the version configuration information of the application from the server, it is possible to adaptively use appropriate prompt parameters to display the upgrade prompt information according to the currently installed version and the upgrade prompt strategy, so as to achieve differentiated prompts for users of different versions, better adapt to the upgrade needs of users of different versions, avoid interference of the upgrade prompt information to the user, and promote the probability of users upgrading the target application, thereby improving the upgrade rate of the target application, improving the problem of application version fragmentation caused by the messy versions used by different users, and solving the many problems caused by application version fragmentation.
[0053] It should be understood that the application upgrade method provided in the embodiment of the present application can be executed by the application system, specifically by the client or server in the application system.
[0054] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0055] In order to facilitate the understanding of the technical solutions provided by the embodiments of the present application, firstly, Figure 1 The implementation environment applicable to the application program upgrade method provided in the embodiment of the present application is described. It should be understood that the application program upgrade method provided in the embodiment of the present application is applicable to Figure 1 The implementation environment shown is only an exemplary description and should not be understood as a limitation on the implementation environment to which the method is applicable.
[0056] like Figure 1 As shown, an implementation environment applicable to the application upgrade method provided in the embodiment of the present application includes an application system, and the application system includes a client and a server. The server provides the functions of uploading, configuring, publishing and storing the installation package of the application. Specifically, after the developer develops a new version of the installation package, the installation package can be uploaded to the server, and the server generates a corresponding upgrade installation package. In addition, the developer can also configure the version configuration information of the application through the server, specifically including the basic application information of the upgrade installation package, the basic strategy and access strategy for upgrading the application, etc., so as to use the version configuration information to realize the release of the application, upgrade prompts, etc.
[0057] The client is used to run the application. The client has the local installation package of the application installed. The client can obtain the upgrade installation package and version configuration information from the server, and determine whether the client application needs to be upgraded based on the version configuration information. If so, the user is prompted to upgrade the application adaptively to increase the upgrade rate of the application and effectively improve the problem of application version fragmentation.
[0058] Among them, the basic application information includes but is not limited to the version number of the upgrade installation package, the upgrade description, the version type, the applicable channel, etc. As an example, the version number can be filled in manually by the developer, or it can be automatically read by the server from the upgrade installation package to prevent manual filling of parameters. For the upgrade description, the server supports filling in different upgrade descriptions for different user groups to achieve personalized configuration for different user groups and improve configuration flexibility. The release channel indicates the operating system applicable to the upgrade installation package, such as Android system, Hongmeng system, IOS system, etc. The server supports the modification of the channel identifier of the release channel, so that when the same upgrade installation package needs to be released to different release channels, there is no need to develop a set of upgrade installation packages for different operating systems. You only need to add the channel identifier of the release channel to the basic application information to achieve the reuse of the same upgrade installation package by different release channels, thereby improving the release efficiency of the upgrade installation package.
[0059] Basic policies include but are not limited to release type, upgrade prompt policy, close prompt policy, and version type. Release types include whitelist release (such as specified user ID), grayscale release (such as support group release), and official release. Upgrade prompt policy refers to the measurement used to prompt users for upgrades, including but not limited to the first correspondence between the version difference information between the upgrade installation package and the local installation package of the client and the upgrade prompt parameters (such as upgrade prompt frequency, prompt trigger event), etc. The close prompt policy refers to the measurement used to prompt users for upgrades again when the user ignores the upgrade prompt, which may include but is not limited to the second correspondence between the version difference information between the upgrade installation package and the local installation package of the client and the operable time, and the close prompt content corresponding to different version types. Version types of upgrade installation packages include major versions, ordinary versions, etc.
[0060] The reach strategy is used to push upgrade messages to users through off-end channels to increase the upgrade rate of the application and improve the fragmentation of application versions. As an example, the reach strategy may include, but is not limited to, push trigger conditions, a third correspondence between version scores and reach channels (such as SMS, outbound calls, notification messages, etc.), trigger frequency, etc.
[0061] In one embodiment, if Figure 2As shown, depending on the processing tasks, the server is deployed with an application publishing platform, an application upgrade system, a data center, and a reach platform.
[0062] The application publishing platform allows developers to upload the latest version of the installation package and configure the version configuration information of the application, publish the installation package, etc. After receiving the latest version of the installation package uploaded by the developer, the application publishing platform generates an upgrade installation package based on the latest version of the installation package. Specifically, the upgrade installation package can be a full latest version installation package, or it can be a differential installation package of the latest version compared to the historical version installation package. For example, the application publishing system stores 4 historical versions of installation packages, namely versions V1 to V3. After receiving the latest version of the installation package V4 uploaded by the operator, the differential installation package corresponding to each historical version can be generated based on the difference between the installation package and the installation packages of each historical version, that is, differential packages C2 to C4, and these differential installation packages are used as upgrade installation packages. In this way, when downloading the upgrade installation package, the client only needs to download the differential installation package, so as to increase the application upgrade speed of the client and reduce the traffic consumption of the client.
[0063] In response to receiving the publishing operation for the upgrade installation package, the application development platform publishes the upgrade installation package to the application upgrade system for download and use by the client used by the user. The application upgrade system can also report the user data of the client to the data center, and the data center will evaluate whether it is necessary to push the upgrade message to the user of the client through an off-end contact method (such as SMS, outbound call, etc.). If so, the application upgrade system generates a contact plan for each user in the user list based on the user list and contact strategy that need to be contacted by the upgrade message through an off-end channel, and sends the contact plan to the application publishing platform, which verifies it and sends it to the contact platform (such as a push platform, SMS platform, and outbound call platform, etc.), and sends the upgrade message to each user in the user list through the contact platform.
[0064] In addition, the reach platform also feeds back the reach results of each user in the user list to the data center, so that the data center can continuously optimize the evaluation results based on the reach effect, thereby more accurately determining the users who need to be reached for upgrade messages through off-end channels.
[0065] Based on the above implementation environment, an embodiment of the present application provides an application upgrade method, which improves the problem of application version fragmentation by improving the "last mile of version delivery".
[0066] See also Figure 3 , is a flow chart of an application upgrade method provided by an embodiment of the present application, the method is applied to a client, and a local installation package of a target application is installed in the client. Figure 3 As shown, the method comprises the following steps:
[0067] S302, obtaining the upgrade installation package and version configuration information of the target application from the server.
[0068] The version configuration information includes the version information of the upgrade installation package and the upgrade prompt strategy. In actual applications, the version configuration information is pre-configured by the developer through the server. Version information refers to information used to describe the version of the upgrade installation package, including but not limited to the version number, version type, etc. The version number is used to uniquely identify the upgrade installation package, and the version type includes a major version and a normal version. The upgrade prompt strategy is used to prompt the user to upgrade the target application. The upgrade prompt strategy includes a first correspondence between the version difference information and the upgrade prompt parameter. Among them, the upgrade prompt parameter may include but is not limited to the upgrade prompt frequency, that is, the upgrade prompt strategy includes the first correspondence between the version difference and the upgrade prompt frequency. In addition, the upgrade prompt strategy can also include more information according to actual needs, such as but not limited to prompt trigger events. The prompt trigger event refers to an event used to trigger an upgrade prompt to the user, which can be set by the developer according to actual needs, such as but not limited to at least one of the following events: the target application is started, the running state of the target application is switched from background running to foreground running, entering the homepage of the target application, and the user logs in to the target application.
[0069] Considering that if the version difference between the upgrade installation package and the local installation package is larger, it indicates that the user of the client has a smaller demand for upgrading the target application, and therefore it is not suitable to give such users too frequent upgrade prompts, otherwise it will interfere with such users, which will be counterproductive and reduce the probability of such users upgrading the target application; if the version difference between the upgrade installation package and the local installation package is smaller, it indicates that the user of the client has a greater demand for upgrading the target application, and therefore it is suitable to give such users more frequent upgrade prompts to increase the upgrade rate of such users for the target application. Based on this, as an example, the above-mentioned first corresponding relationship can adopt a negative correlation relationship, that is, the version difference information between the upgrade installation package and the local installation package is negatively correlated with the upgrade prompt frequency, that is, the larger the version difference between the upgrade installation package and the local installation package, the smaller the upgrade prompt frequency, and thus the longer the interval between two consecutive displays of the upgrade prompt information; the smaller the version difference between the upgrade installation package and the local installation package, the larger the upgrade prompt frequency, and thus the shorter the interval between two consecutive displays of the upgrade prompt information.
[0070] For example, the first corresponding relationship between the above version difference information and the upgrade prompt frequency can be expressed by the following formula (1):
[0071] m=T-(10-n)×H(1)
[0072] Among them, m represents the interval between two consecutive displays of upgrade prompt information, in seconds; T represents the total interval time, and the value can be set according to actual needs; n represents the difference in version number between the upgrade installation package and the local installation package (i.e., version difference information); H represents the preset unit interval time, and the value can be set according to actual needs.
[0073] The above S302 may be implemented in any appropriate manner, which may be selected according to actual needs, and the embodiment of the present application is not limited to this.
[0074] In one embodiment, in response to receiving a start operation on a target application, the client requests the server to obtain an upgrade installation package and version configuration information of the target application.
[0075] In another embodiment, in response to receiving a start operation for a target application, the client obtains version configuration information from the server, and reads version information of the upgrade installation package from the version configuration information; based on the version information of the upgrade installation package and the version information of the local installation package, determines whether the target application needs to be upgraded; if the target application needs to be upgraded and the network status of the network used by the client meets the preset download conditions, the upgrade installation package is downloaded from the server in a background manner. The preset download conditions can be set according to actual needs, for example, the network used by the client is a wireless network (Wireless Fidelity, Wi-Fi), etc., and this embodiment of the present application does not limit this.
[0076] For example, if the version number of the upgrade installation package is V2, and the version number of the local installation package is V2, which is consistent with the version number of the upgrade installation package, it is determined that the target application does not need to be upgraded. If the version number of the local installation package is V1, which is inconsistent with the version number of the upgrade installation package, it is determined that the target application needs to be upgraded. If the network used by the client at this time is Wi-Fi, the upgrade installation package is downloaded from the server in the background.
[0077] In this implementation, the client first determines whether the target application needs to be upgraded based on the version difference between the upgrade installation package and the local installation package. If an upgrade is required and the network status is good, the upgrade installation package is downloaded in the background. This not only avoids the waste of resources caused by downloading the upgrade installation package when an upgrade is not needed, but also prepares for the subsequent upgrade of the target application, reduces the time users wait to install the upgrade installation package, and improves the installation rate of the upgrade installation package to a certain extent.
[0078] In actual applications, the upgrade installation package can be a differential installation package generated by the server based on the difference between the existing historical installation package and the latest version of the installation package. In this way, the time and resources required for the client to download the upgrade installation package can be further reduced. After downloading the upgrade installation package, the client can also perform verification and merging on the upgrade installation package.
[0079] In addition, when the client is downloading the upgrade installation package in the background mode, if a download operation for the upgrade installation package is received, the download progress of the upgrade installation package is displayed. If a download operation is received after the upgrade installation package is downloaded, the user is prompted to install the upgrade installation package.
[0080] S304: Determine target version difference information based on the version information of the upgrade installation package and the version information of the local installation package.
[0081] The target version difference information is used to describe the version difference between the server and the client regarding the target application. As an example, since the version number can uniquely identify the corresponding installation package, the target version difference information can include the difference between the version number of the upgrade installation package and the version number of the local installation package. For example, if the version number of the upgrade installation package is V1.2 and the version number of the local installation package is V1.1, the difference between the two is 0.1.
[0082] S306: Display upgrade prompt information based on the target version difference information and the upgrade prompt policy.
[0083] Since the target version difference information can reflect the client's user's upgrade needs for the target application, based on the target version difference information and the upgrade prompt strategy, the upgrade prompt information is adaptively displayed using appropriate upgrade prompt parameters, which can achieve differentiated prompts for users of different versions, better adapt to the upgrade needs of users of different versions, avoid interference of upgrade prompt information to users, and promote the probability of users upgrading the target application, thereby increasing the upgrade rate of the target application, improving the application version fragmentation problem caused by the confusion of versions used by different users, and solving the many problems caused by application version fragmentation.
[0084] In one embodiment, the above S306 may include the following steps: based on the first corresponding relationship, determining the target upgrade prompt frequency and the target prompt trigger event corresponding to the target version difference information; monitoring events occurring after the target application is started; in response to monitoring the target prompt trigger event, displaying the upgrade prompt information based on the target upgrade prompt frequency.
[0085] Among them, the display mode of the upgrade prompt information can be set according to actual needs, such as a pop-up window, etc., which is not limited in the embodiment of the present application. In addition, the upgrade prompt parameter can also include more parameters according to actual needs, such as the display mode of the upgrade prompt information, such as the display mode corresponding to the larger difference version is a floating layer, and the display mode corresponding to the smaller difference version is a pop-up window, etc., which is not limited in the embodiment of the present application.
[0086] For example, the prompt trigger event corresponding to a larger version difference is "entering the homepage of the target application", and the prompt trigger event corresponding to a smaller version difference is "the running state of the target application switches from background running to foreground running". The first corresponding relationship between the version difference information and the upgrade prompt frequency is shown in the above formula (1). In this case, the interval between two adjacent displays of the upgrade prompt information is determined based on the above formula (1). If the version difference between the upgrade installation package and the local installation package of the client is too large, then when entering the homepage of the target application is monitored, the upgrade prompt information is displayed through a pop-up window according to the determined interval time; if the version difference between the upgrade installation package and the local installation package of the client is small, the upgrade prompt information is displayed through a pop-up window according to the determined interval time.
[0087] In this implementation, based on the target version difference information between the upgrade installation package and the local installation package of the client, the appropriate upgrade prompt frequency and prompt trigger event are adaptively selected to provide upgrade prompts to the client users, which can better meet the user's upgrade needs. While avoiding interference to the user caused by the upgrade prompt information, the probability of the user installing the upgrade installation package is increased, and different users are upgraded to the same version as much as possible, thereby improving the application version fragmentation problem caused by different users using different versions of applications, and effectively solving the many problems caused by version fragmentation.
[0088] The embodiment of the present application shows some implementation methods of the above S306. Of course, it should be understood that the above S306 can also be implemented in other ways, and the embodiment of the present application does not limit this.
[0089] S308: In response to receiving a confirmation operation on the upgrade prompt information, upgrading the target application based on the upgrade installation package.
[0090] For example, when the upgrade prompt information is displayed through a pop-up window, if a click operation on a confirmation button in the pop-up window is received, it is determined that a confirmation operation on the upgrade prompt information is received, and then the upgrade installation package is run to implement the upgrade of the target application.
[0091] In another embodiment of the present application, in order to further improve the probability of users upgrading the target application, so as to increase the upgrade rate of the target application and better improve the problem of application version fragmentation, when the user chooses to ignore the upgrade prompt information, such as closing the upgrade prompt information or exiting the target application, a suitable prompt method can be used based on the prompt closing policy in the version configuration information to prompt the user of the target application upgrade method, such as upgrading through the background upgrade method, upgrading through the automatic update function of the application installation tool, etc.
[0092] Specifically, the version configuration information also includes a shutdown prompt strategy. The shutdown prompt strategy is used to prompt the user of the upgrade method of the target application when the user chooses to ignore the upgrade prompt information. Figure 4 As shown, after the above S308, the application program upgrade method provided in the embodiment of the present application may further include the following steps:
[0093] S310: In response to receiving a designated operation on a target application, based on a closing prompt policy, displaying closing prompt information.
[0094] The closing prompt information is used to prompt the target application program to upgrade. The specified operation includes at least one of the following operations: a closing operation on the upgrade prompt information, and an exit operation on the target application program.
[0095] By analyzing the background data after user authorization, it is found that by setting a corresponding operable time for the upgrade prompt information to control the clickable time of the close button of the upgrade prompt information, the probability of users upgrading the target application can be increased to a certain extent; and different upgrade requirements can adapt to different operable times. For example, for users with smaller upgrade requirements, if the operable time set for such users is too long, it may increase the probability of such users closing the upgrade prompt information, thereby reducing the probability of such users upgrading the target application; for users with larger upgrade requirements, if the operable time set for such users is too short, it may also affect the operating experience of such users, which is counterproductive and reduces the probability of such users upgrading the target application.
[0096] Based on this, the closing prompt strategy includes a second correspondence between the version difference information and the operable duration. The operable duration refers to the clickable duration of the close button of the upgrade prompt information. In this way, it helps the client to better adapt to the user's upgrade needs, set a corresponding operable duration for the close button of the upgrade prompt information, and then control the clickable duration of the close button of the upgrade prompt information by the user, which can increase the probability of the user upgrading the target application to a certain extent.
[0097] Considering that if the version difference between the upgrade installation package and the local installation package is greater, it indicates that the user of the client has a smaller demand for upgrading the target application, and it is usually necessary to set a shorter operable time to increase the probability of such users upgrading the target application; if the version difference between the upgrade installation package and the local installation package is smaller, it indicates that the user of the client has a greater demand for upgrading the target application, and it is usually necessary to set a longer operable time to improve the operating experience of such users, thereby increasing the probability of such users upgrading the target application. Based on this, as an example, the above-mentioned second corresponding relationship can adopt a negative correlation relationship, that is, the version difference information between the upgrade installation package and the local installation package is negatively correlated with the operable time, that is, the greater the version difference between the upgrade installation package and the local installation package, the shorter the operable time; the smaller the version difference between the upgrade installation package and the local installation package, the longer the operable time.
[0098] For example, the second corresponding relationship between the above version difference information and the operable duration can be expressed by the following formula (2):
[0099] M=(10-n)×H (2)
[0100] Among them, M represents the operable time in seconds; n represents the difference in version number between the upgrade installation package and the local installation package (i.e., version difference information); H represents the preset unit interval time, and the value can be set according to actual needs.
[0101] Accordingly, in one embodiment, in response to a situation where a closing operation on the upgrade prompt information is received, the above S310 may include the following steps:
[0102] Step A1: based on the second corresponding relationship, determine the target operable duration corresponding to the target version difference information.
[0103] Step A2: determining the interval between the triggering time of the closing operation and the triggering time of the upgrade prompt information.
[0104] For example, if a closing operation on the upgrade prompt information is received, the interval between the triggering time of the closing operation and the triggering time of the upgrade prompt information is determined.
[0105] Step A3: If the interval duration is less than or equal to the target operable duration, in response to the closing operation, a first closing prompt message is displayed.
[0106] As an example, the client may display the first closing prompt information according to the fixed closing prompt content and display mode. For example, the closing prompt content is "It is recommended to upgrade to the latest version", and the display mode is a pop-up window. When a closing operation of the upgrade prompt information is received, "It is recommended to upgrade to the latest version" is displayed in the pop-up window.
[0107] As another example, the closing prompt policy also includes a first closing prompt content corresponding to a specified type and a second closing prompt content corresponding to a non-specified type. The first closing prompt content is used to prompt that the target upgrade method is to download and install the upgrade installation package in the client, and the second closing prompt content is used to prompt that the upgrade method is to enable the automatic update function of the target application in the application installation tool of the operating system to which the client belongs. Correspondingly, the above-mentioned step A3 includes: if the version type of the upgrade installation package belongs to the specified type, then a first closing prompt message is generated based on the first closing prompt content, and the first closing prompt message is displayed through a global floating layer; if the version type of the upgrade installation package does not belong to the specified type, then a first closing prompt message is generated based on the second closing prompt content, and the first closing prompt message is displayed through a pop-up window. Among them, the specified type can be set according to actual needs, such as a major version developed for the Double Eleven event, etc., and the embodiments of the present application are not limited to this.
[0108] For example, if the version type of the upgrade installation package is a major version, the first closing prompt content is "It is recommended to download and install the latest version", and then when the closing operation of the upgrade prompt information is received, the first closing prompt information containing the first closing prompt content is displayed in the pop-up window. If the version type of the upgrade installation package is a normal version, the second closing prompt content is "It is recommended to enable the automatic update function in the application installation tool", and then when the closing operation of the upgrade prompt information is received, the first closing prompt information containing the second closing prompt content is displayed through the global floating layer.
[0109] In this method, since the global floating layer displays the first closing prompt information more prominently, it will not be affected by the closing of the upgrade prompt information or the exit of the target application, nor will it cause excessive interference to the content that the user is browsing. By displaying the first closing prompt information in the form of a global floating layer in response to the closing operation of the upgrade prompt information when the version type of the upgrade installation package is a specified type, it can enhance the effect of the upgrade prompt to the user, thereby further increasing the probability of the user installing the upgrade installation package and improving the problem of application version fragmentation. In addition, since most users update the target application through the automatic update function in the application installation tool of the operating system (such as Google Play of the Android system, AppStore of the IOS system, etc.), by displaying the first closing prompt information in the form of a pop-up window in response to the closing operation of the upgrade prompt information when the version type of the upgrade installation package is not a specified type, prompting the user to turn on the automatic update function in the application installation tool, it can enhance the effect of the upgrade prompt to the user, thereby further increasing the probability of the user installing the upgrade installation package and improving the problem of application version fragmentation.
[0110] Of course, if the interval duration is longer than the target operable duration, no response will be given to the closing operation, thereby increasing the probability that the user will upgrade the target application to a certain extent.
[0111] In another embodiment, in response to receiving an exit operation on the target application, the closing prompt policy further includes a third closing prompt content corresponding to the specified type and a fourth closing prompt content corresponding to the non-specified type. The third closing prompt content is used to prompt that the upgrade method is to install the upgrade installation package in the background mode, and the fourth closing prompt content is used to prompt that the upgrade method is to enable the automatic update function of the target application in the application installation tool of the operating system to which the client belongs. The closing prompt information includes the second closing prompt information corresponding to the exit operation.
[0112] The above-mentioned S310 may include the following steps: Step B1, in response to receiving an exit operation on the target application, if the version type of the upgrade installation package belongs to the specified type, then based on the third close prompt content, a second close prompt message is generated, and the second close prompt message is displayed through a pop-up window; Step B2, if the version type of the upgrade installation package does not belong to the specified type, then based on the fourth close prompt content, a second close prompt message is generated, and the second close prompt message is displayed through a pop-up window.
[0113] For example, if the version type of the upgrade installation package is a major version, the third closing prompt content is "You can upgrade the application in the background", and then when the exit operation of the target application is received, the second closing prompt information containing the third closing prompt content is displayed in the pop-up window. If the version type of the upgrade installation package is a normal version, the fourth closing prompt content is "It is recommended to turn on the automatic update function of the application installation tool", and then when the exit operation of the target application is received, the second closing prompt information containing the fourth closing prompt content is displayed through the global floating layer.
[0114] In this method, since most users prefer to upgrade applications in the background, by displaying the second closing prompt information in the form of a pop-up window in response to the exit operation of the target application when the version type of the upgrade installation package is a specified type, it can enhance the effect of prompting users to upgrade, thereby further increasing the probability of users installing the upgrade installation package and improving the problem of application version fragmentation. In addition, since most users update the target application through the automatic update function in the application installation tool of the operating system, by displaying the second closing prompt information in the form of a pop-up window in response to the exit operation of the target application when the version type of the upgrade installation package is a non-specified type, to prompt the user to turn on the automatic update function in the application installation tool, it can enhance the effect of prompting users to upgrade, thereby further increasing the probability of users installing the upgrade installation package and improving the problem of application version fragmentation.
[0115] Of course, in some other implementations, the client may also display the second closing prompt information according to the fixed closing prompt content and display mode. For example, the closing prompt content is "It is recommended to upgrade to the latest version", and the display mode is a pop-up window. When a closing operation of the upgrade prompt information is received, "It is recommended to upgrade to the latest version" is displayed in the pop-up window.
[0116] See also Figure 5 , is a flow chart of an application upgrade method provided by an embodiment of the present application, the method is applied to a server, and the server stores an upgrade installation package of a target application. Figure 5 As shown, the method comprises the following steps:
[0117] S502: Receive an acquisition request from the client.
[0118] The client is used to run the target application, and the local installation package of the target application is installed in the client.
[0119] S504: In response to the acquisition request, an upgrade installation package and version configuration information of the target application program are sent to the client.
[0120] The acquisition request is used to request the version configuration information and upgrade installation package of the target application. The acquisition request may be triggered by the client after receiving a start operation on the target application.
[0121] The version configuration information includes the version information of the upgrade installation package and the upgrade prompt strategy, and the upgrade prompt strategy includes the first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameter. The version configuration information is used by the client to display the upgrade prompt information based on the version difference information.
[0122] By sending the above version configuration information to the client, the client can adaptively use appropriate prompt parameters to display upgrade prompt information according to the currently installed version and upgrade prompt strategy, thereby achieving differentiated prompts for users of different versions, better adapting to the upgrade needs of users of different versions, avoiding interference of upgrade prompt information to users, and promoting the probability of users upgrading the target application, thereby increasing the upgrade rate of the target application, improving the fragmentation of application versions caused by the confusion of versions used by different users, and solving the many problems caused by application version fragmentation.
[0123] See also Figure 6 , is a flow chart of an application upgrade method provided by an embodiment of the present application, the method is applied to a server, and the server stores an upgrade installation package of a target application. Figure 6 As shown, the method comprises the following steps:
[0124] S602, obtaining the historical download records of the target application.
[0125] The historical download records include version information of the historical installation packages of the target application, the number of users who downloaded the historical installation packages, and version information of the local installation packages that the downloading users had before downloading the historical installation packages.
[0126] S604: Determine the version score of the downloading user based on the version information of the historical installation package and the version information of the local installation package that the downloading user already has before downloading the historical installation package.
[0127] As an example, the version score can be determined by the following formula (3):
[0128] N=10-n (3)
[0129] Wherein, N represents the version score of the downloading user, and n represents the difference in version number between the historical installation package downloaded by the downloading user and the existing local installation package.
[0130] In this case, if the version score is higher, it means that the version of the local installation package that the downloading user already has is older, and therefore it is more necessary to use off-end access channels to strengthen upgrade prompts for such users; if the version score is lower, it means that the version of the local installation package that the downloading user already has is newer, and therefore it can be determined that such users have greater upgrade needs, and there is no need to use off-end access channels to provide upgrade prompts to such users.
[0131] It is worth noting that, when there are multiple downloading users, the above S604 may be executed for each downloading user to obtain the version score of the downloading user.
[0132] S606: Determine the health score of the target application based on the number of downloading users and the version scores of the downloading users.
[0133] The health score is used to indicate the severity of the version fragmentation problem of the target application. The lower the health score, the more serious the version fragmentation problem. As an example, in order to more accurately reflect the severity of the version fragmentation problem, the ratio of the sum of the version scores of each downloading user to the number of downloading users can be determined as the health score of the target application.
[0134] S608: Push upgrade messages to users who have downloaded the historical installation package based on the health score and reach strategy.
[0135] The upgrade message is used to prompt the server to download the upgrade installation package. The content of the upgrade message can be set according to actual needs, such as "XX version has been launched, supporting XX new functions, download and upgrade now to receive XX points reward", etc., which is not limited in the embodiment of the present application.
[0136] In one embodiment, the reach strategy includes a push trigger condition and a third correspondence between the version score and the reach channel. The push trigger condition refers to the condition used to trigger the push upgrade message, which can be set according to actual needs, such as a health score less than a preset score, etc., which is not limited in this embodiment of the present application. The third correspondence can also be set according to actual needs. For example, when the version score is greater than 5 and not more than 7, the corresponding reach channel is to push the upgrade message through the push platform; when the version score is greater than 7 and not more than 9, the corresponding reach channel is to push the upgrade message through the SMS platform; when the version score is greater than 9, the corresponding reach channel is to push the upgrade message through the outbound call platform, etc., which is not limited in this embodiment of the present application.
[0137] Accordingly, the above S608 may include the following steps: if the health score meets the push trigger condition, determine the target reach channel corresponding to the downloading user based on the version score of the downloading user and the third corresponding relationship; and push the upgrade message to the downloading user through the target reach channel.
[0138] For example, when the health score meets the push trigger condition, the server can select downloading users whose version score exceeds the preset score from the downloading users of the target application to form a list of reached users; after verifying the list of reached users, based on the third corresponding relationship, determine the reach channel for pushing the upgrade message to each user in the reach user list, and then form a reach task list, and according to the reach task list, push the upgrade message to each user in the reach user list. Among them, the reach task list includes the users corresponding to each reach channel and the content of the upgrade message.
[0139] In this implementation, when the health score meets the push trigger conditions, it can be determined that the version fragmentation problem of the target application is serious. In this case, based on the third correspondence, using appropriate reach channels to push upgrade messages to different downloading users of the target application can improve the reach success rate of the upgrade message, thereby increasing the upgrade rate of the target application and further improving the version fragmentation problem of the target application.
[0140] S610: Receive an acquisition request from a client.
[0141] S612: In response to the acquisition request, an upgrade installation package and version configuration information of the target application program are sent to the client.
[0142] The application upgrade method provided by one or more embodiments of the present application focuses on the "last mile of version delivery" by improving this stage. On the server side, the version information of the upgrade installation package and the upgrade prompt policy are configured in the version configuration information of the application, and the first correspondence between the version difference information between the upgrade installation package and the local installation package installed in the client and the upgrade prompt parameter is set in the upgrade prompt policy; on the client side, after obtaining the version configuration information of the application from the server side, it is possible to adaptively use appropriate prompt parameters to display the upgrade prompt information according to the currently installed version and the upgrade prompt policy, so as to achieve differentiated prompts for users of different versions, better adapt to the upgrade needs of users of different versions, avoid interference of the upgrade prompt information to the user, and promote the probability of users upgrading the target application, thereby improving the upgrade rate of the target application, improving the fragmentation problem of application versions caused by the chaos of versions used by different users, and solving many problems caused by application version fragmentation.
[0143] To facilitate understanding of the release, configuration, download, and installation process of the target application's upgrade installation package, the following is a summary of the process. Figure 2 The implementation environment shown is used to explain in detail the application upgrade method provided in the embodiment of the present application.
[0144] like Figure 7 As shown, the application publishing platform receives the latest version of the installation package uploaded by the developer and the version configuration information of the target application, and generates an upgrade installation package based on the latest version of the installation package. Further, in response to the developer's publishing operation on the upgrade installation package, the application publishing platform sends the upgrade installation package and the version configuration information to the application upgrade system.
[0145] The application upgrade system periodically obtains the historical download records of the target application and reports the historical download records to the data center. The data center calculates the version score of each downloading user and the health score of the target application based on the historical download records, and returns the calculation results to the application upgrade system. If the health score meets the push trigger conditions indicated by the reach strategy, the application upgrade system generates a reach task list based on the calculation results, and uploads the reach task list to the application publishing platform for verification.
[0146] After the application publishing platform determines that the reach task list has passed the verification, it will send the reach task list to the reach platform, which will use appropriate reach channels to push upgrade messages to different download users. In addition, the data center also provides real-time calculation results to the application publishing platform, so that the real-time calculation results can be visualized through the application publishing platform. The reach platform can also return the reach status of the upgrade message to the data center so that the data center can update the reach task list.
[0147] When the client receives the user's startup operation on the target application, it obtains the version configuration information from the application upgrade system, reads the version information of the upgrade installation package from it, and determines whether the target application needs to be upgraded based on the version information and the version information of the local installation package; if so, the upgrade installation package is downloaded from the server in the background, and after the upgrade installation package is downloaded, the upgrade installation package is verified and merged.
[0148] After the target application enters the running stage, the client also determines the version difference information based on the version information of the upgrade installation package and the version information of the local installation package, and in response to receiving a confirmation operation on the upgrade prompt information, upgrades the target application based on the upgrade installation package and uploads the tracking point. The client also displays the closing prompt information based on the closing prompt policy in the version configuration information in response to receiving a closing operation on the upgrade prompt information or an exit operation on the target application.
[0149] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0150] See also Figure 8 , is a structural diagram of an application upgrade device 800 provided in an embodiment of the present application. The device is applied to a client, and the device 800 includes: an acquisition unit 810, a determination unit 820, a display unit 830 and an upgrade unit 840.
[0151] The acquisition unit 810 is used to acquire the upgrade installation package and version configuration information of the target application from the server, wherein the version configuration information includes the version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and upgrade prompt parameters.
[0152] The determining unit 820 is configured to determine target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client.
[0153] The display unit 830 is configured to display upgrade prompt information based on the target version difference information and the upgrade prompt policy.
[0154] The upgrading unit 840 is configured to upgrade the target application based on the upgrading installation package in response to receiving a confirmation operation on the upgrading prompt information.
[0155] The application program upgrade device 800 provided in the embodiment of the present application can be used as the above Figure 3 The execution body of the application program upgrade method shown in the figure can thus realize the application program upgrade device in Figure 3 The functions realized are as follows. Since the principles are the same, they will not be described in detail.
[0156] See also Fig. 9 , is a structural diagram of an application upgrade device 900 provided in an embodiment of the present application. The device is applied to a server, and the device 900 includes: a receiving unit 910 and a sending unit 920.
[0157] The receiving unit 910 is used to receive an acquisition request from a client, where the client is used to run a target application and a local installation package of the target application is installed in the client.
[0158] The sending unit 920 is used to send the upgrade installation package and version configuration information of the target application to the client in response to the acquisition request, and the version configuration information includes the version information of the upgrade installation package and the upgrade prompt policy. The upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameters.
[0159] The application program upgrade device 900 provided in the embodiment of the present application can be used as the above Figure 5 The execution body of the application program upgrade method shown in the figure can thus realize the application program upgrade device in Figure 5 The functions realized are as follows. Since the principles are the same, they will not be described in detail.
[0160] Fig.10 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Fig.10 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0161] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0162] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0163] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an application upgrade device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0164] Acquire an upgrade installation package and version configuration information of the target application from the server, wherein the version configuration information includes version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and upgrade prompt parameters;
[0165] Determining target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client;
[0166] Based on the target version difference information and the upgrade prompt policy, display upgrade prompt information;
[0167] In response to receiving a confirmation operation on the upgrade prompt information, the target application is upgraded based on the upgrade installation package.
[0168] Alternatively, the processor executes the program stored in the memory and is specifically configured to perform the following operations:
[0169] Receiving an acquisition request from a client, the client being used to run a target application, and having a local installation package of the target application installed in the client;
[0170] In response to the acquisition request, the upgrade installation package and version configuration information of the target application are sent to the client, the version configuration information includes the version information of the upgrade installation package and an upgrade prompt policy, and the upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameters.
[0171] The above application Figures 3 to 6 The method performed by the application upgrade device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0172] The electronic device may also perform Figure 3 The method and the application upgrade device are implemented in Figure 3 , Figure 4 Alternatively, the electronic device may also perform the functions of the embodiments shown. Figure 5 The method and the application upgrade device are implemented in Figure 5 , Figure 6 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.
[0173] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0174] The embodiment of the present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 3 The method of the embodiment shown is specifically used to perform the following operations:
[0175] Acquire an upgrade installation package and version configuration information of the target application from the server, wherein the version configuration information includes version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and upgrade prompt parameters;
[0176] Determining target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client;
[0177] Based on the target version difference information and the upgrade prompt policy, display upgrade prompt information;
[0178] In response to receiving a confirmation operation on the upgrade prompt information, the target application is upgraded based on the upgrade installation package.
[0179] Alternatively, when the instruction is executed by a portable electronic device including a plurality of application programs, the portable electronic device can execute Figure 5 The method of the embodiment shown is specifically used to perform the following operations:
[0180] Receiving an acquisition request from a client, the client being used to run a target application, and having a local installation package of the target application installed in the client;
[0181] In response to the acquisition request, the upgrade installation package and version configuration information of the target application are sent to the client, the version configuration information includes the version information of the upgrade installation package and an upgrade prompt policy, and the upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameters.
[0182] In short, the above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0183] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0184] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0185] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0186] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for upgrading an application, characterized in that: Applied to a client, the method comprises: Acquire an upgrade installation package and version configuration information of the target application from the server, wherein the version configuration information includes version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and upgrade prompt parameters; Determining target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client; Based on the target version difference information and the upgrade prompt policy, display upgrade prompt information; In response to receiving a confirmation operation on the upgrade prompt information, the target application is upgraded based on the upgrade installation package.
2. The method according to claim 1, characterized in that The upgrade reminder parameters include upgrade reminder frequency and reminder triggering event; The displaying of upgrade prompt information based on the target version difference information and the upgrade prompt policy includes: Based on the first corresponding relationship, determine a target upgrade prompt frequency and a target prompt trigger event corresponding to the target version difference information; Monitoring events that occur after the target application is started; In response to monitoring the target prompt triggering event, the upgrade prompt information is displayed based on the target upgrade prompt frequency.
3. According to the method of claim 1, the version configuration information further includes a closing prompt strategy; After displaying the upgrade prompt information based on the target version difference information and the prompt strategy, the method further includes: In response to receiving a designated operation on the target application, based on the close prompt policy, close prompt information is displayed, and the close prompt information is used to prompt the upgrade method of the target application; the designated operation includes at least one of the following operations: a close operation on the upgrade prompt information, an exit operation on the target application.
4. The method according to claim 3, characterized in that The closing prompt strategy includes a second corresponding relationship between the version difference information and the operable duration; the closing prompt information includes first closing prompt information corresponding to the closing operation; The step of displaying close prompt information based on the close prompt policy in response to receiving a specified operation on the target application program comprises: Based on the second corresponding relationship, determining a target operable duration corresponding to the target version difference information; Determine the interval between the triggering time of the shutdown operation and the triggering time of the upgrade prompt information; If the interval duration is less than or equal to the target operable duration, the first closing prompt information is displayed in response to the closing operation.
5. The method according to claim 4, characterized in that The version information of the upgrade installation package includes the version type of the upgrade installation package, and the shutdown prompt policy also includes a first shutdown prompt content corresponding to the specified type and a second shutdown prompt content corresponding to the non-specified type; the first shutdown prompt content is used to prompt that the upgrade method is to download and install the upgrade installation package in the client, and the second shutdown prompt content is used to prompt that the upgrade method is to enable the automatic update function of the target application in the application installation tool of the operating system to which the client belongs; The displaying of the first closing prompt information in response to the closing operation includes: If the version type of the upgrade installation package belongs to the specified type, generating the first close prompt information based on the first close prompt content, and displaying the first close prompt information through a global floating layer; If the version type of the upgrade installation package does not belong to the specified type, the first close prompt information is generated based on the second close prompt content, and the first close prompt information is displayed through a pop-up window.
6. The method according to claim 3, characterized in that The version information of the upgrade installation package includes the version type of the upgrade installation package, and the close prompt policy also includes a third close prompt content corresponding to the specified type and a fourth close prompt content corresponding to the non-specified type; the third close prompt content is used to prompt that the upgrade method is to install the upgrade installation package in a background manner, and the fourth close prompt content is used to prompt that the upgrade method is to enable an automatic update function for the target application in an application installation tool of the operating system to which the client belongs; the close prompt information includes the second close prompt information corresponding to the exit operation; The step of displaying close prompt information based on the close prompt policy in response to receiving a specified operation on the target application program comprises: In response to receiving an exit operation on the target application, if the version type of the upgrade installation package belongs to the specified type, generating the second closing prompt information based on the third closing prompt content, and displaying the second closing prompt information through a pop-up window; If the version type of the upgrade installation package does not belong to the specified type, the second close prompt information is generated based on the fourth close prompt content, and the second close prompt information is displayed through a pop-up window.
7. A method for upgrading an application, characterized in that: Applied to the server, the method includes: Receiving an acquisition request from a client, the client being used to run a target application, and having a local installation package of the target application installed in the client; In response to the acquisition request, the upgrade installation package and version configuration information of the target application are sent to the client, the version configuration information includes the version information of the upgrade installation package and an upgrade prompt policy, and the upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameters.
8. The method according to claim 7, characterized in that The version configuration information also includes a reach strategy; Before receiving the acquisition request from the client, the method further includes: Obtaining a historical download record of the target application, the historical download record including version information of a historical installation package of the target application, the number of users who downloaded the historical installation package, and version information of a local installation package that the downloading user already had before downloading the historical installation package; Determine the version score of the downloading user based on the version information of the historical installation package and the version information of the local installation package that the downloading user already has before downloading the historical installation package; Determining a health score of the target application based on the number of downloading users and the version scores of the downloading users; Based on the health score and the reach strategy, an upgrade message is pushed to the downloading user of the historical installation package, and the upgrade message is used to prompt the downloading of the upgrade installation package from the server.
9. The method according to claim 8, characterized in that The reach strategy includes a push trigger condition and a third correspondence between a version score and a reach channel; The pushing of the upgrade message to the downloading user of the historical installation package based on the health score and the reaching strategy includes: If the health score satisfies the push trigger condition, determining the target reach channel corresponding to the downloading user based on the version score of the downloading user and the third corresponding relationship; The upgrade message is pushed to the downloading user through the target reach channel.
10. An application program upgrade device, characterized in that: Applied to a client, the device comprises: An acquisition unit, configured to acquire an upgrade installation package and version configuration information of a target application from a server, wherein the version configuration information includes version information of the upgrade installation package and an upgrade prompt strategy, wherein the upgrade prompt strategy includes a first correspondence between version difference information and an upgrade prompt parameter; A determination unit, configured to determine target version difference information based on the version information of the upgrade installation package and the version information of the local installation package in the client; A display unit, configured to display upgrade prompt information based on the target version difference information and the upgrade prompt policy; An upgrading unit is used to upgrade the target application based on the upgrading installation package in response to receiving a confirmation operation on the upgrading prompt information.
11. An application program upgrade device, characterized in that: Applied to the server, the device comprises: A receiving unit, configured to receive an acquisition request from a client, wherein the client is configured to run a target application and a local installation package of the target application is installed in the client; A sending unit is used to send the upgrade installation package and version configuration information of the target application to the client in response to the acquisition request, the version configuration information includes the version information of the upgrade installation package and an upgrade prompt policy, and the upgrade prompt policy includes a first correspondence between the version difference information between the upgrade installation package and the local installation package and the upgrade prompt parameter.
12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the application upgrade method as described in any one of claims 1 to 6; or, the processor is configured to execute the instructions to implement the application upgrade method as described in any one of claims 7 to 9.
13. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the application upgrade method as described in any one of claims 1 to 6; or, when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute the application upgrade method as described in any one of claims 7 to 9.
14. A computer program product, characterized in that The computer program product comprises a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute part or all of the steps in the method according to any one of claims 1 to 6 or any one of claims 7 to 9.
