Task pushing method, web terminal, terminal and background server
By generating customized content templates on the web and binding them to the terminal, the backend server generates task push information, and the terminal installs or updates the application based on the feedback information. This solves the problems of long time consumption and easy errors in the customization and pre-installation of traditional smart terminal devices, and achieves efficient and accurate task push.
Patent Information
- Application Number
- CN202510643644.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional smart terminal device customization and pre-installation mode is time-consuming and prone to errors. When the customized content changes, the tedious process needs to be repeated, and it cannot efficiently handle multiple batches of purchases.
Customized content templates are generated via the web interface, the terminal is bound to the backend server, task push information is generated, and the terminal installs or updates the application based on the feedback information, reducing manual transfer and packaging processes.
It improves the accuracy and efficiency of task push notifications, reduces time costs, decreases error rates, and simplifies the installation process.
Smart Images

Figure CN123178703A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of update push, and in particular to methods, web applications, terminals, and backend servers for task push. Background Technology
[0002] With the rapid development of technology, smart terminal devices are being used more and more widely in various industries. When purchasing smart terminal devices, enterprises and institutions usually need to customize and pre-install the devices.
[0003] In the production of smart terminal devices, customized content requested by customers is pre-installed into the equipment. However, this traditional factory pre-installation model has some shortcomings in actual operation. From a process perspective, customers need to send installation documents to the manufacturer. Within the manufacturer, sales personnel first handle customer needs and then forward them to technical staff. Technical staff create a customized package based on the installation documents and finally pass it on to factory personnel for pre-installation. This manual handover and packaging model consumes a significant amount of time from order placement to production and finally, customer receipt of the device, and is prone to errors during information transmission and operation.
[0004] When customized content changes, applications that frequently receive version updates need to go through the process again. In multi-batch procurement scenarios, even if the first batch of devices has successfully completed customized pre-installation, when purchasing the second or third batch of devices, the customized content may be updated, and the original packaged files often become unusable, requiring the repetition of the above cumbersome process, increasing the time invested in installation. Summary of the Invention
[0005] To address the aforementioned technical issues, this application provides a method for task push, a web application, a terminal, and a backend server.
[0006] The technical solution provided in this application is described below:
[0007] The first aspect of this application provides a method for task push, applied to a web application, the method comprising:
[0008] Obtain the user's operation instructions, wherein the operation instructions are instructions to select at least one from multiple options, and the multiple options are attribute options of the target application;
[0009] A customized content template is generated based on the operation instructions. The customized content template includes attribute options of the target application selected by the user.
[0010] The customized content template is bound to the terminal, and task push information is generated;
[0011] The task push information is sent to the backend server so that when the backend server and the terminal interact, the terminal installs or updates the target application based on the feedback information sent by the backend server. The feedback information includes the target application data to be installed or updated generated based on the customized content template.
[0012] Optionally, binding the customized content template to the terminal includes:
[0013] Obtain the unique identification information of the terminal, which includes the terminal's device number, MAC address, or IMEI number;
[0014] The customized content template is bound to the unique identifier of the terminal.
[0015] A second aspect of this application provides a method for task push, applied to a terminal, the method comprising:
[0016] A task request is sent to the backend server. The task request is a request to install or update the target application. The backend server stores task push information, which includes the binding information between the terminal and the customized content template.
[0017] Receive feedback information sent by the backend server, the feedback information including target application data to be installed or updated generated based on the customized content template;
[0018] Install or update the target application based on the feedback information.
[0019] Optionally, sending a task request to the backend server includes:
[0020] When the terminal is detected to be powered on or restarted, a task request is sent to the backend server.
[0021] A third aspect of this application provides a method for task push, using a background server, the method comprising:
[0022] Receive task push information sent from the web terminal, the task push information includes the binding information between the customized content template of the target application and the terminal, the customized content template includes information on at least one attribute of the target application selected by the user;
[0023] Generate target application data to be installed or updated based on the customized content template;
[0024] When a task request is received from the terminal, the target application data is sent to the terminal.
[0025] Optionally, the number of task push messages is at least two, and the generation of target application data to be installed or updated based on the customized content template includes:
[0026] Based on the task priority or execution order of the customized content template in each task push message, the target application data to be installed or updated is generated sequentially.
[0027] Optionally, sending the target application data to the terminal when a task request is received from the terminal includes:
[0028] When a task request is received from the terminal, if other tasks are currently being executed, the task request is processed based on an asynchronous processing mechanism to send the target application data to the terminal.
[0029] The fourth aspect of this application provides a task push system applied on a web platform, including:
[0030] The acquisition unit is used to acquire the user's operation instructions, wherein the operation instructions are at least one instruction selected from multiple options, and the multiple options are attribute options of the target application;
[0031] The first generation unit is used to generate a customized content template according to the operation instructions. The customized content template includes attribute options of the target application selected by the user.
[0032] The second generation unit is used to bind the customized content template to the terminal and generate task push information;
[0033] A push unit is used to send the task push information to a backend server, so that when the backend server and the terminal interact, the terminal installs or updates the target application based on the feedback information sent by the backend server. The feedback information includes target application data to be installed or updated generated based on the customized content template.
[0034] The fifth aspect of this application provides a task push system applied to a terminal, comprising:
[0035] The request unit is used to send a task request to the backend server. The task request is a request to install or update the target application. The backend server stores task push information, which includes the binding information between the terminal and the customized content template.
[0036] A receiving unit is used to receive feedback information sent by the backend server, the feedback information including target application data to be installed or updated generated according to the customized content template;
[0037] The installation unit installs or updates the target application based on the feedback information.
[0038] The sixth aspect of this application provides a task push system applied to a backend server, comprising:
[0039] A receiving unit is used to receive task push information sent by a web client. The task push information includes the binding information between a customized content template of a target application and the terminal. The customized content template includes information about at least one attribute of the target application selected by the user.
[0040] The generation unit is used to generate target application data to be installed or updated based on the customized content template.
[0041] The sending unit is used to send the target application data to the terminal when it receives a task request sent by the terminal.
[0042] As can be seen from the above technical solutions, this application has the following advantages:
[0043] First, on the web client, the target application's attribute options are selected to generate a customized content template. Based on this template, task push information is generated and sent to the backend server. The backend server receives the task push information from the web client and generates the target application data to be installed or updated based on this information. The terminal then sends a task request to the backend server to quickly obtain the target application data generated from the customized content template. This task push method, involving the web client, backend server, and terminal, enables rapid acquisition of updated target application data, avoiding traditional manual transfer and packaging processes, reducing intermediate information transmission links, lowering error rates, and improving the accuracy of task pushes. This solution reduces the complexity and cumbersome installation process for customers, from customization to installation by technical personnel, shortening time costs and improving the efficiency of application production and installation. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 A flowchart illustrating an embodiment of a task push method applied to a web application provided in this application;
[0046] Figure 2 A schematic flowchart of an embodiment of a task push method applied to a terminal provided in this application;
[0047] Figure 3 A schematic flowchart of an embodiment of a task push method applied to a backend server provided in this application;
[0048] Figure 4 A schematic diagram of an embodiment of the task push system applied to the web terminal provided in this application;
[0049] Figure 5 A schematic diagram of an embodiment of the task push system for terminals provided in this application;
[0050] Figure 6 A schematic diagram of an embodiment of the task push system applied to a backend server provided in this application;
[0051] Figure 7 A schematic diagram of an embodiment of the task push device provided in this application. Detailed Implementation
[0052] It should be noted that the task push method provided in this application can be applied to a web client, a terminal, and a backend server. The web client can be the web client of a cloud management platform, used to push tasks to the terminal through the backend server. The terminal can be a payment terminal such as a POS terminal. The task push method of this application will be described below from the perspectives of the web client, the terminal, and the server through embodiments.
[0053] Please see Figure 1 This application first provides an embodiment of a task push method applied to a web application, the embodiment including:
[0054] S101. Obtain the user's operation command, which is a command to select at least one from multiple options, where the multiple options are attribute options of the target application;
[0055] The web-based management interface will display a series of attribute options related to the target application. These options include various aspects of the target application, such as the application's different functional modules, version information, applicable device types, update frequency, permission settings, and other attributes related to the application, such as firmware options, parameters, and certificates.
[0056] In practical applications, users select at least one option from these choices through interactive methods such as clicking, checking boxes, and inputting information. For example, in a mobile application management system, a user customizes application configurations for a specific phone, checking "WeChat" and "QQ" in the social networking category, selecting "WPS" in the office application category, and specifying that these applications should use the "stable version" and the update frequency should be set to "weekly updates." The system monitors the user's actions in real time. When the user completes the selection, the system collects and organizes the specific options selected by the user, encapsulates them in JSON format, and thus obtains the user's operation instructions.
[0057] S102. Generate a customized content template based on the operation instructions. The customized content template includes the attribute options of the target application selected by the user.
[0058] Once the system receives the user's operation command, the backend server, based on a preset template structure and JSON format, fills the template with the target application attribute options selected by the user, thereby generating customized template content. This customized content template is categorized and organized according to different attribute types. For example, application-related options are grouped in the application module, firmware-related options are placed in the firmware module, and so on. For each option, the customized template content records in detail its name, specific value, description, and its relationship with other options.
[0059] The generated custom content templates are saved to relational databases, such as Oracle or MySQL, for long-term storage and management; they are also stored in non-relational in-memory databases, such as Redis or memcache, with indexes created to improve the efficiency of subsequent reading and querying of custom content templates.
[0060] S103. Bind the customized content template to the terminal and generate task push information;
[0061] First, the unique identification information of the terminal is obtained, including the terminal's device number, MAC address, or IMEI number. Then, the customized content template is associated with and stored with the terminal's unique identification information, establishing a one-to-one or one-to-many binding relationship. For example, when a terminal device connects to a local area network, the network devices record the MAC addresses of connected devices, and the backend server can obtain a list of online terminal MAC addresses from the network devices via network management protocols.
[0062] In practical applications, the "Task Push" module of the web-based management interface displays a list of all generated customized content templates and a list of terminals. The terminal list contains the unique identifier and basic information of each terminal. Users select a target customized content template and then select one or more corresponding terminals from the terminal device list to perform the binding operation. Once the binding is confirmed, the system obtains the unique identifier of the selected template and the unique identifier of the terminal device, and sends this information to the backend server.
[0063] After receiving the information, the backend server creates a binding record in the relational database, explicitly recording the relationship between the customized content template and the terminal, forming a one-to-one or one-to-many binding relationship. At the same time, the backend server generates task push information based on the information in the customized content template and the bound terminal information. The task push information will include the ID of the customized content template, the terminal device identifier, the task priority, the execution order, the estimated start time, and the estimated completion time.
[0064] S104. Send the task push information to the backend server so that when the backend server and the terminal interact, the terminal can install or update the target application according to the feedback information sent by the backend server. The feedback information includes the target application data to be installed or updated generated according to the customized content template.
[0065] The web client establishes secure communication with the backend server using the HTTPS protocol and encrypts the generated task push information to ensure the security of the information during transmission before sending the encrypted task push information to the backend server.
[0066] After receiving the task push information, the backend server first decrypts and verifies the integrity of the information. Once verified, the server parses the various components of the task push information, extracting key information such as the customized content template ID and the terminal's unique identifier. Based on the customized content template ID, the backend server retrieves the complete customized content template from the relational database to understand the specific operations required on the terminal device. Simultaneously, it locates the corresponding terminal based on the unique identifier. The target application data to be installed or updated is then sent to the terminal device via push notification or remote control protocol.
[0067] After receiving feedback information from the backend server, the terminal will perform the installation or update operation of the target application based on this information, and perform the installation or update operation according to the priority and execution order specified in the task push information.
[0068] In this embodiment, a customized content template is first generated by selecting the target application's attribute options on the web client. Based on this template, task push information is generated and sent to the backend server. The backend server receives the task push information from the web client and generates target application data to be installed or updated based on this information. The terminal then sends a task request to the backend server to quickly obtain the target application data generated from the customized content template. This task push method, which involves collaboration between the web client, backend server, and terminal, enables rapid acquisition of updated target application data, reducing traditional manual transfer and packaging processes, minimizing intermediate information transmission steps, thereby reducing error rates and improving the accuracy of task pushes. Furthermore, this solution reduces the complexity and cumbersome installation process from customization to installation by technical personnel, shortening time costs and improving the efficiency of application production and installation.
[0069] Please see Figure 2 This application provides an embodiment of a task push method applied to a terminal, the embodiment including:
[0070] S201. Send a task request to the backend server. The task request is a request to install or update the target application. The backend server stores task push information, which includes the binding information between the terminal and the customized content template.
[0071] Once the terminal completes its power-on or restart operation and establishes a network connection, it sends a task request to the backend server to ensure it can promptly obtain the latest application installation or update tasks. In addition to power-on or restart triggers, the terminal also periodically polls the backend server via a heartbeat mechanism. The heartbeat mechanism involves the terminal sending requests to the backend server at preset time intervals to maintain the connection and check for new tasks. If the terminal failed to obtain a task during a previous power-on or restart process due to network issues, or if the backend server updates the tasks during normal operation, the task request sent via the heartbeat mechanism ensures the terminal receives the latest task information promptly.
[0072] The task request is encapsulated and sent from the terminal. The task request contains the terminal's unique identifier, used by the backend server to identify the terminal. The encapsulated task request information is organized according to a pre-defined JSON format and sent to the backend server.
[0073] After receiving a task request from the terminal, the backend server parses the request information, extracts the terminal's unique identifier, and searches for the binding information related to that terminal in the saved task push information. The task push information records the binding relationship between the terminal and the customized content template, as well as information such as the specific application, firmware, and parameters included in the customized content template. Based on the parsed unique identifier, the backend server finds the corresponding binding information in the task push information to determine the target application that the terminal needs to install or update.
[0074] S202. Receive feedback information sent by the backend server. The feedback information includes target application data to be installed or updated generated based on the customized content template.
[0075] The feedback information sent by the backend server is also organized according to a pre-defined JSON format to facilitate parsing and processing by the terminal. The feedback information includes data on the target application to be installed or updated, generated based on a customized content template. This data includes the application's name, version number, download address of the installation package, specific update content, and application permission requirements. In addition, the feedback information also includes task-related data, such as task priority and execution order, to ensure the terminal installs or updates the application as required.
[0076] S203. Install or update the target application based on the feedback information.
[0077] Before installing or updating a target application, the device checks its resources. For example, it checks if there is enough available storage space to hold the application's installation package or update files; if there is enough memory to meet the application's running requirements; and if the network connection is stable to ensure a smooth download. If the device's resources are insufficient, it will prompt the user to free up storage space or optimize device performance.
[0078] When installing the target application, the terminal downloads the application installation package to its storage area based on the download address provided in the feedback information. After downloading, the terminal invokes the system's installer to install the application according to the package's format and requirements. During installation, the terminal displays a progress bar to keep the user informed of the progress. Once installation is complete, the terminal will automatically launch the application or prompt the user to launch it manually.
[0079] When installing or updating a target application, the terminal first backs up the application's data to prevent data loss during the update process. Then, based on the download address provided in the feedback information, it downloads the update file to the terminal's storage. Once the download is complete, the terminal invokes the system's update program to apply the update to the current application. After the update is finished, the terminal restores the backed-up data and notifies the user of any new features or changes in the updated application.
[0080] In this embodiment, when customized content changes, such as when the application version is updated, there is no need to go through the traditional, cumbersome process again. The task push information stored on the backend server contains the binding relationship between the terminal and the customized content template. The customized content template in the task push information can be directly updated according to the needs of different terminals. The terminal device polls through a heartbeat mechanism to obtain the latest tasks in a timely manner and quickly complete the application update. In multi-batch procurement scenarios, even if the customized content changes in subsequent batches, it can be handled efficiently without the need to repeatedly create customized packages, saving a lot of time and manpower costs.
[0081] Please see Figure 3 This application provides an embodiment of a task push method applied to a backend server, the embodiment including:
[0082] S301. Receive task push information sent by the WEB terminal. The task push information includes the binding information between the customized content template of the target application and the terminal. The customized content template includes information on at least one attribute of the target application selected by the user.
[0083] Upon receiving the task push notification, the backend server reads the notification and parses it using a pre-defined JSON parser. During parsing, the server performs integrity and validity checks: it checks for necessary fields, such as the custom content template ID and unique terminal identifier; it verifies the field formats, for example, whether the custom content template ID is a valid number and whether the terminal identifier conforms to specifications. If the verification fails, the backend server returns an error response to the web client, requesting resending the correct information; if the verification succeeds, the parsed information is stored in the task push information table of a relational database, and an index is created in a non-relational in-memory database for easy subsequent retrieval and retrieval.
[0084] It's important to note that when the backend server receives multiple task push notifications, it prioritizes processing the highest-priority tasks. For high-priority tasks, the backend server allocates more computing resources and network bandwidth. When processing high-priority application update tasks, the backend server temporarily reduces resource scheduling for other low-priority tasks to ensure that high-priority tasks can quickly obtain the necessary installation packages, configuration files, and other resources, thereby completing the installation or update as quickly as possible. In customized content templates, task priority is determined by numerical numbers, with smaller numbers executed first. For example, if task number 1 installs the basic system framework and task number 2 installs applications that depend on that framework, the backend server will complete the installation of the basic system framework first, and then proceed with the application installation.
[0085] S302. Generate target application data to be installed or updated based on the customized content template;
[0086] When it is necessary to generate target application data, the backend server uses the detailed information of the customized content template, which includes various attribute information of the target application selected by the user, such as application name, version number, and functional modules. At the same time, based on the unique identifier of the terminal, the server retrieves relevant information of the terminal from the terminal information table. Through correlation analysis of the template information and the terminal information, the server determines the specific installation or update requirements of the target application on the terminal.
[0087] Based on the analysis results, the backend server retrieves the corresponding target application data from resource repositories such as application repositories and firmware repositories. For application installation, it obtains the corresponding application installation package and adapts it according to the terminal device's operating system and hardware environment, such as adjusting the installation package format and compression size. For application updates, it compares the version of the application already installed on the terminal with the version specified in the template to determine the update file that needs to be downloaded. Simultaneously, it integrates the relevant data of the target application with the installation package or update file to form complete target application data to be installed or updated. Furthermore, it adds corresponding identifiers to the target application data based on the task priority and execution order in the task push information.
[0088] S303. When a task request is received from the terminal, the target application data is sent to the terminal.
[0089] The backend server continuously receives task requests from terminals via a network monitoring module. Upon receiving a task request, it parses the request information to extract the terminal device's unique identifier and other relevant parameters. Based on the parsed unique identifier, it queries the relational database and non-relational in-memory database for the task push information bound to the terminal. After finding the corresponding task push information, it generates the target application data to be installed or updated based on the template ID in the task push information and sends it to the terminal.
[0090] It's important to note that when a backend server is processing a critical, time-consuming task, if it receives a new task push notification indicating that a terminal installation has completed and processes it synchronously, it might block the ongoing task, preventing the critical task from completing on time. Asynchronous processing, on the other hand, queues new task push notifications for later processing, ensuring that the currently executing task is not interrupted and that all tasks in the system can process push notifications asynchronously in an orderly manner. Specifically, the backend server uses a third-party message middleware to achieve asynchronous processing of task push notifications. The appropriate middleware is selected based on the business scenario and data throughput requirements; for example, RabbitMQ is chosen for data throughput below 100,000, RocketMQ for 100,000 to 1 million, and Kafka for over 1 million.
[0091] Once the terminal completes the installation of customized content and sends an installation completion notification to the backend server, the backend server encapsulates the push notification related to that task. At this point, the backend server does not immediately perform complex processing operations; instead, it sends the encapsulated task push notification to a designated message queue created by a third-party message middleware. After receiving the task push notification from the backend server, the third-party message middleware temporarily stores this information in the message queue. The message queue sorts and manages messages according to a first-in, first-out (FIFO) principle to ensure the order of message processing. The backend server sets up a dedicated consumer subsystem that subscribes to messages from the relevant queues through the message middleware. The consumer subsystem retrieves and processes messages sequentially according to the order they are received.
[0092] In this embodiment, the backend server quickly matches task push information and generates target application data by accurately parsing the unique identifier and related parameters of the terminal device, ensuring that the terminal can obtain the necessary resources for installation or updates in a timely manner. Regarding task push information processing, a third-party message middleware is introduced to achieve asynchronous processing, reducing the blocking of critical tasks caused by synchronous processing. When the backend server faces concurrent requests for important time-consuming tasks and new tasks, asynchronous processing can temporarily store new task push information in a message queue, queuing it in an orderly manner according to the first-in-first-out principle. When server resources are idle, the consumer subsystem processes it sequentially, effectively improving system stability and response speed.
[0093] The following provides a detailed description of the task push system for web applications provided in this application. Please refer to [link / reference]. Figure 4 , Figure 4 An embodiment of a system for providing task push for this application, the system comprising:
[0094] The acquisition unit 401 is used to acquire the user's operation instruction, which is to select at least one instruction from multiple options, and the multiple options are attribute options of the target application;
[0095] The first generation unit 402 is used to generate a customized content template according to the operation instructions. The customized content template includes the attribute options of the target application selected by the user.
[0096] The second generation unit 403 is used to bind the customized content template to the terminal and generate task push information;
[0097] The push unit 404 is used to send task push information to the backend server so that when the backend server and the terminal interact, the terminal can install or update the target application according to the feedback information sent by the backend server. The feedback information includes the target application data to be installed or updated generated according to the customized content template.
[0098] The following provides a detailed description of the task push system for terminals provided in this application. Please refer to [link / reference]. Figure 5 , Figure 5 An embodiment of a system for providing task push for this application, the system comprising:
[0099] Request unit 501 is used to send a task request to the backend server. The task request is a request to install or update the target application. The backend server stores task push information, which includes the binding information between the terminal and the customized content template.
[0100] The receiving unit 502 is used to receive feedback information sent by the backend server. The feedback information includes target application data to be installed or updated generated according to the customized content template.
[0101] Installation unit 503 installs or updates the target application based on feedback information.
[0102] The following provides a detailed description of the task push system for the backend server provided in this application. Please refer to [link / reference]. Figure 6 , Figure 6 An embodiment of a system for providing task push for this application, the system comprising:
[0103] The receiving unit 601 is used to receive task push information sent by the WEB terminal. The task push information includes the binding information between the customized content template of the target application and the terminal. The customized content template includes information on at least one attribute of the target application selected by the user.
[0104] The generation unit 602 is used to generate target application data to be installed or updated based on a customized content template.
[0105] The sending unit 603 is used to send target application data to the terminal when it receives a task request from the terminal.
[0106] This application also provides a task push device, the device comprising:
[0107] Processor 701, memory 702, input / output unit 703, and bus 704;
[0108] The processor 71 is connected to the memory 702, the input / output unit 703, and the bus 704;
[0109] The memory 702 stores a program, and the processor 701 calls the program to execute the first to third aspects and any one of the first to third aspects of the optional task push method. See the detailed implementation for further details. Figure 1 - Figure 3 The specific implementation examples are not described here.
[0110] This application also relates to a computer-readable storage medium on which a program is stored, and a method for pushing tasks of the first to third aspects and any one of the first to third aspects when the program is executed on a computer.
[0111] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0112] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for task push, applied to a web application, characterized in that, The method includes: Obtain the user's operation instructions, wherein the operation instructions are instructions to select at least one from multiple options, and the multiple options are attribute options of the target application; A customized content template is generated based on the operation instructions. The customized content template includes attribute options of the target application selected by the user. The customized content template is bound to the terminal, and task push information is generated; The task push information is sent to the backend server so that when the backend server and the terminal interact, the terminal installs or updates the target application based on the feedback information sent by the backend server. The feedback information includes the target application data to be installed or updated generated based on the customized content template.
2. The task push method according to claim 1, characterized in that, The step of binding the customized content template to the terminal includes: Obtain the unique identification information of the terminal, which includes the terminal's device number, MAC address, or IMEI number; The customized content template is bound to the unique identifier of the terminal.
3. A method for task push, applied to a terminal, characterized in that, The method includes: A task request is sent to the backend server. The task request is a request to install or update the target application. The backend server stores task push information, which includes the binding information between the terminal and the customized content template. Receive feedback information sent by the backend server, the feedback information including target application data to be installed or updated generated based on the customized content template; Install or update the target application based on the feedback information.
4. The task push method according to claim 3, characterized in that, Sending the task request to the backend server includes: When the terminal is detected to be powered on or restarted, a task request is sent to the backend server.
5. A method for task push, applied to a backend server, characterized in that, The method includes: Receive task push information sent from the web terminal, the task push information includes the binding information between the customized content template of the target application and the terminal, the customized content template includes information on at least one attribute of the target application selected by the user; Generate target application data to be installed or updated based on the customized content template; When a task request is received from the terminal, the target application data is sent to the terminal.
6. The task push method according to claim 5, characterized in that, The number of task push messages is at least two, and the generation of target application data to be installed or updated based on the customized content template includes: Based on the task priority or execution order of the customized content template in each task push message, the target application data to be installed or updated is generated sequentially.
7. The task push method according to claim 5, characterized in that, The step of sending the target application data to the terminal when a task request is received from the terminal includes: When a task request is received from the terminal, if other tasks are currently being executed, the task request is processed based on an asynchronous processing mechanism to send the target application data to the terminal.
8. A web application, characterized in that, include: The acquisition unit is used to acquire the user's operation instructions, wherein the operation instructions are at least one instruction selected from multiple options, and the multiple options are attribute options of the target application; The first generation unit is used to generate a customized content template according to the operation instructions. The customized content template includes attribute options of the target application selected by the user. The second generation unit is used to bind the customized content template to the terminal and generate task push information; The push unit is used to send the task push information to the backend server, so that when the backend server and the terminal interact, the terminal installs or updates the target application according to the feedback information sent by the backend server. The feedback information includes the target application data to be installed or updated generated according to the customized content template.
9. A terminal, characterized in that, include: The request unit is used to send a task request to the backend server. The task request is a request to install or update the target application. The backend server stores task push information, which includes the binding information between the terminal and the customized content template. A receiving unit is used to receive feedback information sent by the backend server, the feedback information including target application data to be installed or updated generated according to the customized content template; The installation unit installs or updates the target application based on the feedback information.
10. A backend server, characterized in that, include: A receiving unit is used to receive task push information sent by a web client. The task push information includes the binding information between a customized content template of a target application and the terminal. The customized content template includes information about at least one attribute of the target application selected by the user. The generation unit is used to generate target application data to be installed or updated based on the customized content template. The sending unit is used to send the target application data to the terminal when it receives a task request sent by the terminal.
