Interrupt recovery method for mobile micro-application and related equipment
By saving and updating the page environment information of mobile micro-apps, the data loss problem caused by forced shutdown or crashes is solved, the interrupt recovery of mobile micro-apps is achieved, and business processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410906220.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-22
AI Technical Summary
When the system is forced to shut down or crash, data is lost, users need to re-operate, business processing efficiency is reduced, and user experience is poor.
By saving the page environment information of the interrupt page, including path information, page status information and page data information, we judge the interrupt type, update the page status, and restore the page according to the page structure and data information.
It realizes interrupt recovery of mobile micro-applications in all scenarios, improves business processing efficiency, ensures on-site environment recovery of long processes and large amounts of information entry scenarios, and improves the timeliness of interrupt recovery and efficient and reliable business.
Smart Images

Figure CN119003236A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mobile micro-applications, and in particular to an interruption recovery method for a mobile micro-application and related equipment. Background Art
[0002] When using a mobile micro-app, users sometimes need to leave the app for a short time and then come back. At this time, although the user clicks the button to close the mobile micro-app, the mobile micro-app is not actually closed, but only enters the background. When the user switches out to handle other business and opens the mobile micro-app again, the mobile micro-app enters the foreground from the background, retaining the main operating environment before the user switches out. However, when the mobile micro-app is forcibly closed by the system or crashes, the user cannot restore the page at the time of the interruption, resulting in the loss of data in the mobile micro-app, causing the user to re-perform the previous operation, reducing business processing efficiency, increasing the user's operation workload, and reducing user experience. Summary of the invention
[0003] The present disclosure proposes a method for recovering from an interruption of a mobile micro-application and related equipment, so as to solve, to a certain extent, technical problems such as data loss caused by the system forcibly closing or crashing the mobile micro-application, the need for users to re-perform previous operations, and reduced business processing efficiency.
[0004] In a first aspect, the present disclosure provides a method for recovering from an interruption of a mobile micro-application, comprising:
[0005] In response to the mobile micro application being interrupted, saving page environment information of the interrupted page; wherein the page environment information includes path information, page state information, page structure information and page data information;
[0006] Determining whether to restore the interrupted page based on the type of the interruption;
[0007] In response to determining to restore the interrupted page, entering the interrupted page based on the path information;
[0008] updating the page status of the interrupted page based on the page status information;
[0009] The page structure information and the page data information are synthesized to restore the interrupted page.
[0010] In a second aspect of the present disclosure, a mobile micro-application interrupt recovery device is provided, comprising:
[0011] An information saving module, configured to save page environment information of the interrupted page in response to an interruption of the mobile micro application; wherein the page environment information includes path information, page status information, page structure information and page data information;
[0012] A judgment module, used for judging whether to restore the interrupted page based on the type of the interruption;
[0013] a routing module, configured to enter the interrupted page based on the path information in response to determining to restore the interrupted page;
[0014] The environment recovery module is used to update the page status of the interrupted page based on the page status information; and to perform synthesis based on the page structure information and the page data information to restore the interrupted page.
[0015] In a third aspect of the present disclosure, an electronic device is provided, comprising one or more processors, a memory; and one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, and the programs include instructions for executing the method described in the first aspect.
[0016] According to a fourth aspect of the present disclosure, a non-volatile computer-readable storage medium containing a computer program is provided. When the computer program is executed by one or more processors, the processors execute the method described in the first aspect.
[0017] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer program instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.
[0018] From the above description, it can be seen that the present disclosure provides a method and related equipment for recovering the interruption of a mobile micro-application, which saves the page environment information of the interrupted page, updates the page state after entering the interrupted page, and then fills the page structure with page data, thereby recovering the terminal page. It can achieve the interruption recovery effect of all scenarios in the mobile micro-application, improve the business processing efficiency, and effectively recover the on-site environment of the long process scenarios and large amounts of information entry scenarios that appear in mobile business, effectively cover the main interruption scenarios, improve the timeliness of interruption recovery, and promote the efficient and reliable development of related businesses. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of an interruption recovery architecture of a mobile micro-application according to an embodiment of the present disclosure.
[0021] Figure 2 The figure is a schematic diagram of the hardware structure of an exemplary electronic device according to an embodiment of the present disclosure.
[0022] Figure 3 The present invention is a flowchart of a method for recovering from an interruption of a mobile micro-application according to an embodiment of the present invention.
[0023] Figure 4 A schematic diagram of a method for recovering from an interruption of a mobile micro application according to an embodiment of the present disclosure.
[0024] Figure 5 A schematic diagram of a mobile micro-application interruption recovery device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0026] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0027] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0028] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0029] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0030] Figure 1 A schematic diagram of an interrupt recovery architecture of a mobile micro application according to an embodiment of the present disclosure is shown. Figure 1 , the interruption recovery architecture 100 of the mobile micro application may include a server 110, a terminal 120, and a network 130 providing a communication link. The server 110 and the terminal 120 may be connected via a wired or wireless network 130. The server 110 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, security services, and CDN.
[0031] The terminal 120 may be implemented in hardware or software. For example, when the terminal 120 is implemented in hardware, it may be various electronic devices having a display screen and supporting page display, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, and desktop computers, etc. When the terminal 120 device is implemented in software, it may be installed in the electronic devices listed above; it may be implemented as multiple software or software modules (such as software or software modules used to provide distributed services), or it may be implemented as a single software or software module, which is not specifically limited here.
[0032] It should be noted that the interruption recovery method of the mobile micro application provided in the embodiment of the present application can be executed by the terminal 120 or by the server 110. It should be understood that Figure 1 The number of terminals, networks and servers in the embodiment is only for illustration and is not intended to limit the number of terminals, networks and servers. Any number of terminals, networks and servers may be provided as required.
[0033] Figure 2 FIG. 2 shows a schematic diagram of the hardware structure of an exemplary electronic device 200 provided in an embodiment of the present disclosure. Figure 2 As shown, the electronic device 200 may include: a processor 202, a memory 204, a network module 206, a peripheral interface 208 and a bus 210. The processor 202, the memory 204, the network module 206 and the peripheral interface 208 are connected to each other in communication within the electronic device 200 through the bus 210.
[0034] Processor 202 may be a central processing unit (CPU), an interrupt recovery device of a mobile micro-application, a neural network processor (NPU), a microcontroller (MCU), a programmable logic device, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or one or more integrated circuits. Processor 202 may be used to perform functions related to the technology described in the present disclosure. In some embodiments, processor 202 may also include multiple processors integrated into a single logical component. For example, Figure 2 As shown, processor 202 may include a plurality of processors 202a, 202b, and 202c.
[0035] The memory 204 may be configured to store data (eg, instructions, computer code, etc.). Figure 2 As shown, the data stored in the memory 204 may include program instructions (for example, program instructions for implementing the interrupt recovery method of the mobile micro-application of the embodiment of the present disclosure) and data to be processed (for example, the memory may store configuration files of other modules, etc.). The processor 202 may also access the program instructions and data stored in the memory 204, and execute the program instructions to operate on the data to be processed. The memory 204 may include a volatile storage device or a non-volatile storage device. In some embodiments, the memory 204 may include a random access memory (RAM), a read-only memory (ROM), an optical disk, a magnetic disk, a hard disk, a solid-state drive (SSD), a flash memory, a memory stick, etc.
[0036] The network module 206 can be configured to provide communication with other external devices to the electronic device 200 via a network. The network can be any wired or wireless network capable of transmitting and receiving data. For example, the network can be a wired network, a local wireless network (e.g., Bluetooth, WiFi, near field communication (NFC) etc.), a cellular network, the Internet or a combination thereof. It is understood that the type of network is not limited to the above specific examples. In some embodiments, the network module 306 can include any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, etc., in any combination.
[0037] The peripheral interface 208 can be configured to connect the electronic device 200 to one or more peripheral devices to achieve information input and output. For example, the peripheral devices can include input devices such as a keyboard, a mouse, a touch pad, a touch screen, a microphone, and various sensors, and output devices such as a display, a speaker, a vibrator, and an indicator light.
[0038] The bus 210 can be configured to transmit information between various components of the electronic device 200 (e.g., the processor 202, the memory 204, the network module 206, and the peripheral interface 208), such as an internal bus (e.g., a processor-memory bus), an external bus (USB port, PCI-E bus), etc.
[0039] It should be noted that, although the architecture of the electronic device 200 only shows the processor 202, the memory 204, the network module 206, the peripheral interface 208 and the bus 210, in the specific implementation process, the architecture of the electronic device 200 may also include other components necessary for normal execution. In addition, it can be understood by those skilled in the art that the architecture of the electronic device 200 may also only include the components necessary for implementing the embodiments of the present disclosure, and does not necessarily include all the components shown in the figure.
[0040] Mobile micro-applications are usually run based on the basic applications of mobile portals. During their operation, they may be interrupted due to three reasons, such as: (1) active closure by the user, mainly because the user has completed the staged business processing, or the user has switched out to process other mobile micro-application businesses in the mobile portal; (2) forced closure by the system, mainly because after the user turns off the screen or switches out, the operating system forcibly closes the application according to the scheduling strategy (memory usage, heat, background residence time, etc.); (3) mobile application crashes, mainly due to incompatibility between some component versions of the mobile application and the mobile phone system, memory overflow, application bugs, etc. After the mobile micro-application is interrupted, some of the entered but unsaved or submitted data will be lost, or some of the completed business process links will be lost, so it is necessary to implement interrupt recovery. Although the existing solution can solve the problem of interrupt recovery when the user actively closes, it implements the suspension solution of the mobile micro-application, that is, when the user clicks the mobile micro-application close button, it is not actually closed, but only allows the mobile micro-application to enter the background. When the user switches out to process other businesses and opens the mobile micro-application again, the mobile micro-application enters the foreground from the background, retaining the main operating environment before the user switches out. When the system is forced to shut down or the mobile application crashes, the mobile micro-application is no longer in the background, but is directly killed, so it cannot be restored when it is opened again. Therefore, how to avoid information loss caused by interruptions and improve business processing efficiency and user experience have become technical problems that need to be solved urgently.
[0041] In view of this, the embodiments of the present disclosure provide a method and related equipment for recovering interrupted mobile micro applications. By saving the page environment information of the interrupted page, updating the page status after entering the interrupted page, and then filling the page structure with page data, the terminal page is restored. It can achieve the interruption recovery effect of all scenarios in mobile micro applications, improve the business processing efficiency, and effectively recover the on-site environment conditions for long process scenarios and large amounts of information entry scenarios that appear in mobile business, effectively cover the main interruption scenarios, improve the timeliness of interruption recovery, and promote the efficient and reliable development of related businesses.
[0042] See also Figure 3 , Figure 3 A schematic flow chart of a method for recovering from an interruption of a mobile micro-application according to an embodiment of the present disclosure is shown. The method for recovering from an interruption of a mobile micro-application according to an embodiment of the present disclosure can be deployed on a server side. Figure 3 In the example, the interruption recovery method 300 of the mobile micro-application may further include the following steps.
[0043] In step S310, in response to the interruption of the mobile micro application, the page environment information of the interrupted page is saved; wherein the page environment information includes path information, page status information, page structure information and page data information.
[0044] Among them, mobile micro-applications can refer to lightweight mobile applications running on mobile portals (basic applications). After users install the mobile portals (basic applications), they can be run through dynamic loading, without separate installation, and without independent entrances in the mobile operating system. Path information can refer to which menu page the user has entered into the mobile micro-application and the path of entry; page structure information can refer to the structural components in the page that need to be restored, such as input box components, pop-up window components, etc.; page status information can refer to the state changes under the menu page (including the position, size, color, text content, image resources, etc. of all visible elements in the page. For interactive elements, such as text in the input box, selected status, scroll position, etc.); page data information can refer to the components involved in the page structure information, corresponding to the associated user input data.
[0045] In some embodiments, saving the page environment information of the interrupted page includes:
[0046] Get the current environment information of the current page that meets the preset conditions;
[0047] In response to an interruption of the current page, the current environment information is determined to be page environment information of the interrupted page.
[0048] The page environment information refers to the overall status and all relevant data and parameters of the settings that constitute the application interface. It contains various states and configuration details when the user interacts with the page. If the operation is interrupted due to unexpected situations such as browser crashes, system restarts, and forced closure of applications, the state of the page and related environment settings at the time of the interruption can be recorded so that the user can restore to the previous working state when revisiting.
[0049] In some embodiments, obtaining current page environment information of a current page that meets a preset condition includes:
[0050] Saving the current environment information of the current page based on a preset time interval;
[0051] Alternatively, in response to detecting that the current page is a key page, saving current environment information of the current page;
[0052] Alternatively, in response to detecting that the current page is placed in the background, saving the current environment information of the current page before the current page is placed in the background;
[0053] Alternatively, in response to detecting that the current page flashes back, current environment information before the current page flashes back is saved.
[0054] Specifically, when a user operates a mobile micro application or a micro application is interrupted, on-site saving can be performed. Figure 4 , Figure 4 A schematic diagram of an interrupt recovery method for a mobile micro-application according to an embodiment of the present disclosure is shown. Interruption site saving mainly includes three strategies: timed saving, key node saving, and saving before interruption. For example, timed saving saves the current environment information at preset time intervals such as half a minute or one minute, and further can overwrite the previous information after each save. For another example, key node saving saves when it is detected that the user is operating a key page structure, such as after the user selects a data box and enters certain data, a save operation is performed. For another example, saving before interruption includes saving before placing in the background and saving before flash back.
[0055] In step S320, it is determined whether to restore the interrupted page based on the type of the interruption.
[0056] Among them, in mobile applications, pages may be interrupted due to various reasons (such as insufficient system resources, software errors, etc.), and different recovery strategies can be formulated based on the type of interruption.
[0057] In some embodiments, determining whether to restore the interrupted page based on the type of the interruption includes:
[0058] In response to detecting that the type of the interruption is a user-initiated interruption or the interrupted page is marked as unrecoverable, determining not to restore the interrupted page;
[0059] In response to detecting that the type of the interruption is that it occurs after entering the background, determining to restore the interrupted page;
[0060] In response to detecting that the type of the interruption is frequent flashback, determining not to restore the interrupted page;
[0061] In response to detecting that the type of the interruption is an occasional flashback, it is determined to restore the interrupted page.
[0062] Among them, if the type of interruption is a user-initiated interruption or the interruption page is marked as unrecoverable, in this case, the interruption may be triggered by the user (for example, the user closes an ongoing activity such as a game or video playback), or the system has marked the page as unrecoverable (for example, due to a serious software error or hardware failure), then the interruption page should not be attempted to be restored. Doing so can avoid unnecessary resource consumption and potential user experience problems. If the type of interruption is an interruption that occurs after entering the background, for example, the user switches to another application or locks the screen, the state of the application should be restored as much as possible when the user returns. This is because users expect that when they leave and return to the application, the application can continue from where they left. If the type of interruption is frequent flashbacks, such as the number of flashbacks exceeds a preset value (for example, 3 times), this usually indicates a serious software defect or resource management problem. In this case, the interruption page should not be restored, but detailed error information should be recorded so that the developer can diagnose and fix the problem. Frequent recovery may cause repeated unstable states and affect the user experience. If the type of interruption is an occasional flashback and is not caused by a known serious problem, it may be reasonable to restore the interruption page when the user returns. This can help users quickly return to their previous activities and reduce the inconvenience caused by the interruption.
[0063] In step S330 , in response to determining to restore the interrupted page, the interrupted page is entered based on the path information.
[0064] If it is determined that the terminal page can be restored, the previously saved path information can be used to restore the interrupted page. In addition, a request to restore the interrupted page can be generated by a pop-up window or a preset confirmation method. For example, a dialog box can be popped up to ask the user whether he wants to restore the page; the user triggers a button or area for confirming the reply, and a request to confirm the restoration of the interrupted page can be generated to request the restoration of the interrupted page.
[0065] In some embodiments, entering the interruption page based on the path information includes: directly entering the interruption page based on the final path in the path information; the method further includes: directly exiting the mobile micro application in response to an exit request to exit the mobile micro application;
[0066] Alternatively, the interruption page is entered through a multi-level menu based on the complete path of the path information; the method further includes: in response to an exit request to exit the mobile micro application, returning to the parent page of the interruption page.
[0067] Specifically, after the user opens the mobile micro-app, the mobile micro-app page is redirected to the page before the interruption instead of opening the homepage of the application. For example, you can directly route to the final path, that is, directly jump to the interrupted page through the transfer page. This routing method is the fastest, but the user will directly exit the application when backing up. For another example, the complete path of the user entering the interrupted page is routed, and the path of entering the interrupted page through the first-level menu, second-level menu, etc. of the mobile micro-app is completely routed. This method can return to the upper page when exiting the page.
[0068] In some embodiments, method 300 further includes:
[0069] In response to detecting that the interrupted page is a real-time page, determining that the interrupted page cannot be restored;
[0070] Stop restoring the interrupted page.
[0071] Among them, for the pages that cannot be restored (such as pages where information needs to be entered in real time), routing may not be performed to avoid error recovery.
[0072] In step S330, the page status of the interrupted page is updated based on the page status information.
[0073] Specifically, after entering the page before the interruption, if there is page status information, relevant setting operations of the page status are automatically performed according to the page status information, such as opening a pop-up window and setting the input box to a selected state.
[0074] In some embodiments, updating the page status of the interrupted page based on the page status information includes:
[0075] Determine whether the page status information is a null value;
[0076] In response to the page status information being a null value, updating the page status of the interrupted page to a default value;
[0077] In response to the page status information not being a null value, parsing the page status information and updating the page status of the interrupted page.
[0078] Specifically, it is possible to detect whether there is saved page state information at the beginning of page loading. For example, this information is usually stored in local storage (such as localStorage, sessionStorage) or on the server side. If relevant information is found, it can be loaded into memory and parsed into an operable data structure, such as a JSON object. The DOM structure of the current page can be analyzed and matched with the loaded state information. This includes identifying each element that needs to restore the state, such as a specific input box, button, check box, etc., to ensure that each state change has a corresponding DOM element that can act on it. For the input box, the system will set its value attribute to the input value before the interruption based on the state information, so that the content previously entered by the user can be reproduced. For check boxes and radio buttons, their checked or selected attributes are changed according to the state information to restore the checked state. If the state information indicates that a pop-up window or modal window was opened before, the system will re-trigger the display logic of the pop-up window and restore its content and state, including the position and size of the pop-up window and the user's previous selection. Through JavaScript's scrollTo or related methods, the page scroll bar position is restored to the position before the interruption to ensure that the user's sight returns directly to the place where they were browsing before. The personalized settings of UI elements, including the display / hide status, color, size, etc. of the page, will be reapplied based on the status information to restore the user's visual experience and interaction status. For dynamically loaded data and mounted event listeners, the system may need to re-initiate a request to obtain data and re-bind necessary event processing functions to ensure the integrity of the page functionality.
[0079] If the page status information is found to be empty, it means that there is no saved user status or the information is lost. At this time, you need to restore the page to a reasonable default state. For example, for input boxes, clear or fill in the default value. For selection items, select the default option. Reset the scroll position to the top of the page or the default view area. Close all pop-up windows or modal windows that are not opened by default. Reset all dynamically loaded content to the initial state.
[0080] In step S340, the page structure information and the page data information are synthesized to restore the interrupted page.
[0081] Among them, the components involved in the page structure information are loaded, such as filling the input box with the data that has been entered before the interruption of the input box, and filling the check box with the check result before the interruption.
[0082] In some embodiments, synthesizing based on the page structure information and the page data information to restore the interrupted page includes:
[0083] Determine whether the page data information is a null value;
[0084] In response to the page data information not being a null value, writing the page data information into a corresponding component in the page structure information to restore the interrupted page;
[0085] In response to the page data information being a null value, the interrupted page is restored based on a corresponding component in the page structure information.
[0086] Specifically, when the page is loaded, it can be checked whether there is previously saved page structure information (describing the layout and type of each element on the page, such as the position and attributes of the input box and the check box) and page data information (recording the user's operations on each element, such as the input text and the check status). If the page data information is empty, it means that there is no specific user input data that needs to be restored, and the system will only rely on the page structure information to initialize the page. If the page data information is not empty, the system will write the data to the corresponding components in the page structure information one by one according to the records in the data information. For example, if the record shows that a user entered "hello world" in a certain input box before the interruption, the system will find the input box and fill it with "hello world". Similarly, if the check box was previously checked, it will also be re-checked. If the page data information is empty, the system mainly relies on the page structure information to initialize the page. This means that although the specific user input cannot be restored, at least the basic structure and default state of the page can be rebuilt, such as the default input box prompt text, the unchecked check box state, etc. Whether based on data information or only structure information, the page can be restored to the state before the interruption to a certain extent. Users can continue the tasks where they were interrupted, reducing the inconvenience and risk of data loss caused by unexpected interruptions.
[0087] It can be seen that according to the method of the embodiment of the present disclosure, it is possible to achieve interruption recovery that fully covers all types of interruption causes, ensuring that the process data of the mobile micro-application will not be unable to be recovered due to special reasons. The main strategy for saving the interruption site is proposed, and the mobile business can balance the interruption recovery capability and the actual business development according to its own situation. A platform solution for interruption recovery is proposed to reduce the workload of mobile micro-applications in handling interruption site situations, ensuring the simplicity of the interruption recovery solution for mobile micro-applications.
[0088] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0089] It should be noted that the above describes some embodiments of the present disclosure. 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 above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying 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.
[0090] Based on the same technical concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an interrupt recovery device for a mobile micro application, see Figure 5 , the interruption recovery device of the mobile micro application includes:
[0091] An information saving module, configured to save page environment information of the interrupted page in response to an interruption of the mobile micro application; wherein the page environment information includes path information, page status information, page structure information and page data information;
[0092] A judgment module, used for judging whether to restore the interrupted page based on the type of the interruption;
[0093] A routing module is used to enter the interrupted page based on the path information in response to determining to restore the interrupted page; an environment recovery module is used to update the page status of the interrupted page based on the page status information; and a synthesis is performed based on the page structure information and the page data information to restore the interrupted page.
[0094] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0095] The device of the above embodiment is used to implement the interruption recovery method of the corresponding mobile micro-application in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0096] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the interruption recovery method of the mobile micro-application as described in any of the above embodiments.
[0097] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic 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.
[0098] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the interruption recovery method of the mobile micro-application described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0099] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0100] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0101] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0102] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for recovering from interruption of a mobile micro-application, the method include: In response to the mobile micro application being interrupted, saving page environment information of the interrupted page; wherein the page environment information includes path information, page state information, page structure information and page data information; Determining whether to restore the interrupted page based on the type of the interruption; In response to determining to restore the interrupted page, entering the interrupted page based on the path information; updating the page status of the interrupted page based on the page status information; The page structure information and the page data information are synthesized to restore the interrupted page.
2. The method according to claim 1, in, Save the page environment information of the interrupted page, including: Get the current environment information of the current page that meets the preset conditions; In response to an interruption of the current page, the current environment information is determined to be page environment information of the interrupted page.
3. The method according to claim 2, in, Get the current page environment information of the current page that meets the preset conditions, including: Saving the current environment information of the current page based on a preset time interval; Alternatively, in response to detecting that the current page is a key page, saving current environment information of the current page; Alternatively, in response to detecting that the current page is placed in the background, saving the current environment information of the current page before the current page is placed in the background; Alternatively, in response to detecting that the current page flashes back, current environment information before the current page flashes back is saved.
4. The method according to claim 1, in, Entering the interruption page based on the path information includes: directly entering the interruption page based on the final path in the path information; the method further includes: directly exiting the mobile micro application in response to an exit request to exit the mobile micro application; Alternatively, the interruption page is entered through a multi-level menu based on the complete path of the path information; the method further includes: in response to an exit request to exit the mobile micro application, returning to the parent page of the interruption page.
5. The method according to claim 1, in, Updating the page status of the interrupted page based on the page status information includes: Determine whether the page status information is a null value; In response to the page status information being a null value, updating the page status of the interrupted page to a default value; In response to the page status information not being a null value, parsing the page status information and updating the page status of the interrupted page.
6. The method according to claim 1, in, Performing synthesis based on the page structure information and the page data information to restore the interrupted page includes: Determine whether the page data information is a null value; In response to the page data information not being a null value, writing the page data information into a corresponding component in the page structure information to restore the interrupted page; In response to the page data information being a null value, the interrupted page is restored based on a corresponding component in the page structure information.
7. The method according to claim 1, in, Determining whether to restore the interrupted page based on the type of the interruption includes: In response to detecting that the type of the interruption is a user-initiated interruption or the interrupted page is marked as unrecoverable, determining not to restore the interrupted page; In response to detecting that the type of the interruption is that it occurs after entering the background, determining to restore the interrupted page; In response to detecting that the type of the interruption is frequent flashback, determining not to restore the interrupted page; In response to detecting that the type of the interruption is an occasional flashback, it is determined to restore the interrupted page.
8. A mobile micro-application interruption recovery device, include: An information saving module, configured to save page environment information of the interrupted page in response to an interruption of the mobile micro application; wherein the page environment information includes path information, page status information, page structure information and page data information; A judgment module, used for judging whether to restore the interrupted page based on the type of the interruption; a routing module, configured to enter the interrupted page based on the path information in response to determining to restore the interrupted page; The environment recovery module is used to update the page status of the interrupted page based on the page status information; and to perform synthesis based on the page structure information and the page data information to restore the interrupted page.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program. 10 . A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to claim 1 .
