Method and apparatus for updating application
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorsHongguang Dong, Shun Chen, Wei Tong
Life of this patent
Estimating the term…
Abstract
A method and apparatus for updating an application are disclosed. According to the method, an update tag corresponding to a target application is pushed to a terminal when determining that the target application is required to be updated, the target application being an application downloaded and installed in the background of the terminal. An acquisition request sent by the terminal based on the update tag is received, the acquisition request being used for requesting to acquire target update content corresponding to the target application. The target update content is pushed to the terminal based on the update tag, such that the terminal opens the target application of a latest version by loading the target update content.
Claims14
A method for updating an application, comprising:
- detecting, by a terminal, whether an update tag corresponding to a target application is stored locally;
- when detecting that the update tag is not stored, opening, by the terminal, the target application by loading target loading content stored on the terminal;
- when detecting that the update tag is stored, sending, by the terminal, an acquisition request to a server based on the update tag corresponding to the target application, the acquisition request requesting for target update content corresponding to the target application;
- receiving, by the terminal, the target update content pushed by the server based on the acquisition request;
- and
- opening, by the terminal, the target application of a latest version by loading the target update content;
- wherein the target application is an application downloaded and installed in background of the terminal.
A server, comprising:
- a processor, and
- a machine-readable storage medium storing machine-executable instructions executable by the processor, wherein by executing the machine-executable instructions, the processor is caused to:
- determine whether a preset update detection condition is satisfied;
- determine whether a target application is required to be updated when determining that the preset update detection condition is satisfied;
- push an update tag corresponding to the target application to a terminal when determining that the target application is required to be updated;
- receive an acquisition request sent by the terminal based on the update tag, the acquisition request requesting for target update content corresponding to the target application;
- and
- push the target update content to the terminal based on the acquisition request, such that the terminal opens the target application of a latest version by loading the target update content;
- wherein the target application is an application downloaded and installed in background of the terminal;
- wherein the preset update detection condition comprises at least one of following conditions:
- current time reaches a preset time point for an update detection;
- the server receives an opening request sent by the terminal to request to open the target application;
- the server receives a notification message sent by the terminal, the notification message being used for notifying an application platform configured to open the target application completes a start-up operation;
- and
- the server detects that latest version information of the target application is changed.
A terminal, comprising:
- a processor, and
- a machine-readable storage medium, configured to store machine-executable instructions executable by the processor;
- wherein by executing the machine-executable instructions, the processor is caused to:
- detect whether an update tag corresponding to a target application is stored locally;
- when detecting that the update tag is not stored, open the target application by loading target loading content stored on the terminal;
- when detecting that the update tag is stored, send an acquisition request to a server based on the update tag corresponding to the target application, the acquisition request requesting for target update content corresponding to the target application;
- receive the target update content pushed by the server based on the acquisition request;
- and
- open the target application of a latest version by loading the target update content;
- wherein the target application is an application downloaded and installed in background of the terminal.
Dependencies are inferred from the claim text.