CN112463520A - Page full life cycle statistical method and equipment based on Flutter and storage medium - Google Patents

Page full life cycle statistical method and equipment based on Flutter and storage medium Download PDF

Info

Publication number
CN112463520A
CN112463520A CN202011222460.0A CN202011222460A CN112463520A CN 112463520 A CN112463520 A CN 112463520A CN 202011222460 A CN202011222460 A CN 202011222460A CN 112463520 A CN112463520 A CN 112463520A
Authority
CN
China
Prior art keywords
page
state
life cycle
flutter
counted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011222460.0A
Other languages
Chinese (zh)
Inventor
黄仕彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Boheng Information Technology Co ltd
Original Assignee
Guangzhou Boheng Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Boheng Information Technology Co ltd filed Critical Guangzhou Boheng Information Technology Co ltd
Priority to CN202011222460.0A priority Critical patent/CN112463520A/en
Publication of CN112463520A publication Critical patent/CN112463520A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, equipment and a storage medium for counting the full life cycle of a page based on FLUTTER, namely, when the page is from a pause state to a recovery state, the time between the pause state and the recovery state of the page is not counted into the actual use duration of the page; when a page goes from a suspended state to a restored state, the number of times the page is accessed is counted as one time only. Therefore, the counted page access times are less than the actual page access times, and the page access time is longer than the actual page access time. Based on the full life cycle statistical scheme of the page component, the page access times, the page access path, the page access duration and the like can be accurately counted so as to completely meet the service requirement.

Description

Page full life cycle statistical method and equipment based on Flutter and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, equipment and a storage medium for counting the full life cycle of a page based on Flutter.
Background
By analyzing the data obtained by monitoring the user behavior, the application provider can know the behavior habits of the user more in detail and clearly, so that the problems of application provider products or marketing such as websites, mobile phone applications and popularization channels can be found, and the application provider can develop products which meet the requirements of the user better and explore pages with high conversion rate. Therefore, the analysis of the user page use data is extremely important, namely under the condition of obtaining platform access amount basic data such as a website or an APP page, relevant data are counted and analyzed, rules of the user for accessing the website or the APP are found, and the rules are combined with a product optimization strategy or a network marketing strategy, so that problems possibly existing in the current product design or network marketing activity are found, and a basis is provided for further optimizing the product or correcting the network marketing strategy.
Flutter is a UI toolkit open source by Google corporation, is a cross-platform development framework, helps developers to efficiently construct multi-platform exquisite applications through a set of code libraries, and supports mobile terminals (iOS, Android), Web, desktops and embedded platforms. As is well known, after a product is developed and delivered to a user, data statistics needs to be performed on the product in order to better collect user usage behavior and adjust and optimize the product, where the most important is page behavior statistics to obtain user page usage behavior data, where the page usage behavior data includes page access times, page access paths, page access durations, and the like.
All components are Widget in the Flutter development framework, if the page behaviors are counted, the statistics can be only carried out in a page component stateful Widget life cycle method provided by the Flutter SDK, and the page component life cycle refers to a complete process from creation to initialization, suspension, recovery and destruction of a certain page. The existing page component life cycle method includes a state initialization method initState and a destruction method onDispose, and the state initialization method is marked as page entry, and the destruction method is marked as page exit.
The existing page use behavior data statistical method, namely the page component life cycle method has the following defects: firstly, the lifecycle method provided by the Flutter framework only includes an initialization method initState and a destruction method onrelease, and when the page is in an intermediate state such as pause and resume, no corresponding lifecycle method is counted, so that the counted page access times are less than the actual times, the page access duration is greater than the actual times, and the service requirements cannot be completely met. Specifically, a user firstly enters a first-level page, and the state of the first-level page is called as initialization; entering a secondary page through certain operation, wherein the primary page is invisible to a user but is not destroyed, and the state of the primary page is called 'pause' at the moment; when the user returns the first-level page from the second-level page, the first-level page is visible to the user again, and the state of the first-level page is called as recovery; if the user then exits the primary page by some operation, the state of the primary page at this point is referred to as "destruction". The full life cycle of a page consists of 4 states of initialization, pause, resume and destroy.
Based on this, the technical problem to be solved by the invention is as follows: the counted page access times are less than the actual times, the page access time is longer than the actual times, and the service requirement cannot be completely met.
Disclosure of Invention
Aiming at the problems, the invention provides a method, equipment and a storage medium for counting the full life cycle of the page based on the Flutter, supports the full life cycle monitoring of the initialization, pause, recovery and destruction of a Flutter page component, and can accurately count the page access times, the page access path, the page access duration and the like so as to completely meet the service requirement.
On one hand, the invention provides a total page life cycle statistical method based on Flutter, and the technical scheme is as follows:
the total life cycle statistical method of the page based on the Flutter, the total life cycle of the page comprises an initialization state, a pause state, a recovery state and a destruction state, and is characterized in that:
when the page is from the pause state to the resume state, the time between the pause state and the resume state of the page is not counted into the actual use duration of the page;
when a page goes from a suspended state to a restored state, the number of times the page is accessed is counted as one time only.
Further, when the page enters an initialization state, the time of the page in the initialization state is counted into the actual use duration of the page; when the page is in the pause state, the time that the page is in the pause state is not counted into the actual use duration of the page; when the page is in the recovery state, the time of the page in the recovery state is counted into the actual use duration of the page; and when the page exits from the destruction state, the time of the page in the destruction state is not counted into the actual use duration of the page.
Further, when the user returns to the system desktop or jumps to other applications, the current application is in a recovery state or a pause state for the user through an application life cycle state change method of the rewriting component monitor when the application state changes; when a user operates a page, triggering a corresponding page operation method, and when the page operation method is called, transmitting at least one parameter; and judging whether the page is in a pause state or a recovery state by acquiring the page indicated in the parameters.
Further, when a user opens the current page for the first time, the initialization method is triggered, the current page is in an initialization state at this time, and when the user exits the current page, the destruction method is triggered, and the current page is in a destruction state at this time.
Further, the page operation comprises opening a page, exiting the page, removing the page and replacing the page; the page operation method comprises a page opening method, an exit method, a removal method and a replacement method.
Further, when the opening method and the replacing method are called, and the page indicated by the parameters is the current page, judging that the current page is about to enter a pause state;
further, when the exit method and the removal method are called and the page indicated by the parameters is the current page, it is determined that the current page is about to enter the recovery state.
Further, the component listener is responsible for monitoring a suspended state and a recovered state when switching between different applications; the navigation listener monitors the suspended state and the recovered state of all page switching in the same application.
In another aspect, a Flutter-based page full life cycle statistical device is further provided, where the device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement any one of the above page full life cycle statistical methods.
In another aspect, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the storage medium, and the at least one instruction, at least one program, a set of codes, or a set of instructions is loaded and executed by a processor to implement any one of the above-mentioned page full life cycle statistical methods.
The method, the device and the storage medium for counting the full life cycle of the page based on the Flutter have the following technical effects:
the invention provides a technical scheme of a total life cycle statistical method of a page based on FLUTTER, namely when the page is from a pause state to a recovery state, the time between the pause state and the recovery state of the page is not counted into the actual use duration of the page; when a page goes from a suspended state to a restored state, the number of times the page is accessed is counted as one time only. Therefore, the counted page access times are less than the actual page access times, and the page access time is longer than the actual page access time. Based on the full life cycle statistical scheme of the page component, the page access times, the page access path, the page access duration and the like can be accurately counted so as to completely meet the service requirement.
Drawings
Fig. 1 is a schematic diagram of a page full life cycle statistical method based on Flutter according to an embodiment of the present invention.
Fig. 2 is a flowchart of a work flow provided by an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention. It should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and the embodiments are only used for explaining the present invention and do not limit the protection scope of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, the terms "page", "application", "page access", "page component lifecycle", and the like as used herein, apply to a mobile terminal or Web or desktop or embedded platform, and the "application" may be application software or system software. The "apparatus" of the present invention may include: computers, tablet computers, mobile phones, wearable devices (such as bracelets, etc.), and the like.
First, technical terms that may be involved in the present invention are briefly described:
flutter: the system is a UI toolkit open source for Google Inc., is a cross-platform development framework, helps developers to efficiently construct multi-platform exquisite applications through a set of code base, and supports mobile terminals (iOS, Android), Web, desktops and embedded platforms.
The life cycle of the page component is as follows: refers to the complete process from creation to initialization, suspension, restoration, destruction of a certain page.
After a product is developed and delivered to a user, data statistics needs to be carried out on the product in order to better collect user using behaviors and adjust and optimize the product, wherein the most important is page behavior statistics, including page access times, page access paths, page access duration and the like.
All components are Widget in the Flutter development framework, if the page behaviors are counted, the statistics can be only carried out in a page component stateful Widget life cycle method provided by the Flutter SDK, the method comprises a state initialization method initState and a destruction method onrelease, and the method is marked as page entry in the state initialization method and page exit in the destruction method.
The following describes a specific embodiment of the Flutter-based page full-life-cycle statistical method of the present invention, and fig. 1 is a schematic diagram of the Flutter-based page full-life-cycle statistical method of the present invention, which provides the method operation steps described in this embodiment or flowchart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. An execution main body of the method may be a terminal, and the terminal may specifically include software running in an entity device, for example, an application installed on the device, or may also include at least one of entity devices of the type of a smart phone, a tablet computer, a digital assistant, a smart wearable device, and the like, in which the application is installed. Specifically, an operating system runs on the terminal, and the operating system may be an iOS (apple mobile terminal operating system) or an Android (Android) operating system.
The lifecycle method provided according to the Flutter framework only includes an initialization method initState and a destruction method onrelease, and when a page is in an intermediate state such as pause and resume, no corresponding lifecycle method is counted, so that counted page access times and actual comparison are less, page access duration and actual comparison are greater, and service requirements cannot be completely met.
Fig. 1 shows a first embodiment of the present invention. The invention relates to a statistic method of a full life cycle of a page based on Flutter, wherein the full life cycle of the page comprises an initialization state, a pause state, a recovery state and a destruction state, and the specific implementation mode is as follows:
and S01, when the page is from the pause state to the recovery state, the time between the pause state and the recovery state of the page is not counted into the actual use time of the page.
S02, when the page is from the pause state to the resume state, the number of times of accessing the page is counted as one time.
Specifically, a user firstly enters a first-level page, and the state of the first-level page is called as initialization; entering a secondary page through certain operation, wherein the primary page is invisible to a user but is not destroyed, and the state of the primary page is called 'pause' at the moment; when the user returns the first-level page from the second-level page, the first-level page is visible to the user again, and the state of the first-level page is called as recovery; if the user then exits the primary page by some operation, the state of the primary page at this point is referred to as "destruction". The full life cycle of a page consists of 4 states of initialization, pause, resume and destroy. The time from the first-level page pause state to the recovery state is not counted into the actual use time, otherwise, the statistical result of the page access time is larger than the actual use time. From the first level page pause state to the resume state, one page entry is counted, otherwise the number of page accesses is reduced compared with the actual number. The primary page and the secondary page have respective complete lifecycles, and the entry of the secondary page causes the primary page to change from visible to invisible, so that the lifecycle of the primary page changes from initialized to paused.
When the page enters an initialization state, the time of the page in the initialization state is counted into the actual use duration of the page; when the page is in the pause state, the time that the page is in the pause state is not counted into the actual use duration of the page; when the page is in the recovery state, the time of the page in the recovery state is counted into the actual use duration of the page; and when the page exits from the destruction state, the time of the page in the destruction state is not counted into the actual use duration of the page.
The accuracy of statistical data of the actual use duration of a user entering a page is related to the effectiveness of monitoring the full life cycle of the page, and a monitoring method of the full life cycle of the page is introduced below.
The invention discloses a method for monitoring the full life cycle of a page, which comprises the following steps: when a user returns to a system desktop or jumps to other applications, acquiring whether the current application is in a recovery state or a pause state for the user when the application state changes by an application life cycle state change method of a rewriting component monitor; when a user operates a page, triggering a corresponding page operation method, and when the page operation method is called, transmitting at least one parameter; and judging whether the page is in a pause state or a recovery state by acquiring the page indicated in the parameters.
It should be noted here that the suspended and recovered states during inter-application switching are realized by the component listener widget pairing observer listening to the states of different applications. That is, when the user returns to the system desktop or jumps to another application, the application lifecycle state change method didchanging app lifecycle state of the component listener is triggered, and by rewriting this method, whether the current application is resumed (application visible) or paused (application invisible) to the user is obtained in real time when the application state changes.
Specifically, the method comprises the following steps: if the application state is changed from the recovery state (visible state) to the pause state, such as returning to the desktop by pressing a Home key or switching to other applications, the top-level page of the application correspondingly changes to the pause state; if the application state changes from the suspended state to the resumed state (visible state), such as clicking an application icon from the desktop to open the application again or switching back to the application from another application, then the top-level page of the application correspondingly changes to the resumed state (visible state).
It should be further noted that the navigation listener globalnavigator observer implements the pause and resume states of page switching by all page switching events in the global listening application. That is, when a user opens a page, exits the page, removes the page, and replaces the page, the corresponding methods of opening method didPush, exiting method didPop, removing method didRemove, and replacing method didReplace are triggered.
From the signatures of these methods, it can be seen that two parameters, namely Route (type < dynamic >) and previous (type < dynamic >) are transmitted when the Flutter framework invokes these methods, and the present invention judges whether the page is in a suspended or recovered state by acquiring the page indicated in the previous parameter.
Specifically, the method comprises the following steps: when the opening method didPush and the replacing method didReplace are called, if the page indicated by the parameter previous _ port is the current page, the current page is about to enter a pause state; when the method didPop exits and the method didRemove is called, if the page indicated by the parameter previous _ source is the current page, the current page will enter the recovery state.
When a user opens a current page for the first time, an initialization method is triggered, the current page is in an initialization state at this time, and when the user exits the current page, a destruction method is triggered, and the current page is in a destruction state at this time.
It should be noted here that the page state abstract class basepage state < T extensions stateful widget > is a parent class of all page components, and page initialization is implemented by the page state abstract class basepage state < T extensions stateful widget >. When a user opens a current page for the first time, the initialization method initState is triggered certainly, and the current page is in an initialization state at the moment.
Similarly, the invention realizes the page destruction state through the abstract class of the page state, i.e. the BasePageState < T extensions StateUWidget >. When the user exits the current page, the destruction method dispose is triggered certainly, and the current page is in a destruction state at the moment.
The page operation comprises page opening, page quitting, page removing and page replacing; the page operation method comprises a page opening method, an exit method, a removal method and a replacement method.
When the opening method and the replacing method are called, the page indicated by the parameters is the current page, and the current page is judged to be about to enter a pause state; and when the exit method and the removal method are called and the page indicated by the parameters is the current page, judging that the current page is about to enter a recovery state.
The component monitor is responsible for monitoring a pause state and a recovery state when different applications are switched; the navigation listener monitors the suspended state and the recovered state of all page switching in the same application.
In addition, the page life cycle global listener basepagestateobserver provides a globally unique page component life cycle listening outlet in the application, and statistical data can be uploaded at the outlet.
The monitor provides four interface methods of a page entry method onInitState, a page pause method onPause, a page recovery method onResume, and a page destruction method onDispose, and the page state abstract class BasePageState which a developer needs to give is transmitted into the monitor instance object.
When the life cycle of the page changes, the page state abstract class basepage state calls four methods corresponding to the instance object, and the interface callback is also performed, so that a developer obtains a page name (state.widget.tostring) indicated by a parameter state from the four interface methods, statistical data can be uploaded, and complicated embedded point codes do not need to be written.
The whole work flow of the invention relates to a component monitor WidgetBindingObserver, a navigation monitor GlobalNavigator Observer, a page state abstract class BasePageState < Texters StateWidget >, and a page life cycle global monitor BasePageStateObservable, and the flow of the method for combining the 4 parts is shown in figure 2.
And opening the application, starting the Flutter framework, executing the running application method runApp, and returning a material application component materialApp to the Flutter framework.
And transmitting a global navigation monitor GlobalNavigator observer instance object to navigation monitor construction parameters navigator observers of the material application component MaterialApp, and starting to monitor switching events of all pages in the application.
And generating a page life cycle global listener BasePageStateObservable instance object and transmitting the instance object to a page state abstract class BasePageState.
Entering a page, triggering a corresponding page entering method onInitState (for clear description, marked as a page entering method A), calling an add listener method addObserver of a component binding class WidgetBinding provided by a Flutter framework in the method, introducing a component listener WidgetBindingObserver instance object, and starting application state monitoring.
Meanwhile, the page entry method onInitState (State state) of the page lifecycle global listener BasePageStateObservable instance object is triggered in the page entry onInitState method (for clarity, it is marked as "page entry method B").
The subsequent page pause, recovery and destruction caused by page switching and application switching can trigger the page pause method onPause (State state), the page recovery method onResume (State state) and the page destruction method onDispose (State state) of the lifecycle global listener BasePageStateObservable instance object.
Statistical data uploading is carried out in a corresponding method of a lifecycle global listener BasePageStaeObservable instance object.
And the statistical background is used for data analysis and display.
The second embodiment of the present invention provides Flutter-based page full-life-cycle statistics apparatus, where the apparatus includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement any one of the above page full-life-cycle statistics methods.
The third embodiment of the present invention provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, at least one program, at least one code set, or an instruction set is loaded by a processor and executes any one of the above page full life cycle statistical methods.
Optionally, in this embodiment of the present application, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The invention provides a technical scheme of a statistic method of the full life cycle of a page based on Flutter, wherein the full life cycle of a page assembly comprises initialization, pause, recovery and destruction. When the page is in the intermediate state of pause, recovery and the like, no corresponding life cycle method is used for counting, so that the counted page access times are less than the actual times, the page access duration is greater than the actual times, and the service requirement cannot be completely met. The full life cycle monitoring scheme based on the page component is beneficial to accurately counting page access times, page access paths, page access duration and the like so as to completely meet the service requirement.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The same and similar parts among the various embodiments in the present specification are referred to each other, and each embodiment focuses on differences from other embodiments. In particular, as for the apparatus, device, and storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware to implement the above embodiments, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like.
The foregoing illustrates and describes the principles, general features, and advantages of the present invention. It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention and that the present invention is not limited thereto, and that the foregoing embodiment and description are only illustrative of the principles of the present invention, and that various changes and modifications may be made without departing from the spirit and scope of the invention as hereinafter claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. The total life cycle statistical method of the page based on the Flutter, the total life cycle of the page comprises an initialization state, a pause state, a recovery state and a destruction state, and is characterized in that:
when the page is from the pause state to the resume state, the time between the pause state and the resume state of the page is not counted into the actual use duration of the page;
when a page goes from a suspended state to a restored state, the number of times the page is accessed is counted as one time only.
2. The Flutter-based page full life cycle statistical method according to claim 1, characterized in that: when the page enters an initialization state, the time of the page in the initialization state is counted into the actual use duration of the page; when the page is in the pause state, the time that the page is in the pause state is not counted into the actual use duration of the page; when the page is in the recovery state, the time of the page in the recovery state is counted into the actual use duration of the page; and when the page exits from the destruction state, the time of the page in the destruction state is not counted into the actual use duration of the page.
3. The Flutter-based page full life cycle statistical method according to claim 1, characterized in that: when a user returns to a system desktop or jumps to other applications, acquiring whether the current application is in a recovery state or a pause state for the user when the application state changes by an application life cycle state change method of a rewriting component monitor; when a user operates a page, triggering a corresponding page operation method, and when the page operation method is called, transmitting at least one parameter; and judging whether the page is in a pause state or a recovery state by acquiring the page indicated in the parameters.
4. The Flutter-based page full life cycle statistical method according to claim 3, characterized in that: when a user opens a current page for the first time, an initialization method is triggered, the current page is in an initialization state at this time, and when the user exits the current page, a destruction method is triggered, and the current page is in a destruction state at this time.
5. The Flutter-based page full life cycle statistical method according to claim 3, characterized in that: the page operation comprises page opening, page quitting, page removing and page replacing; the page operation method comprises a page opening method, an exit method, a removal method and a replacement method.
6. The Flutter-based page full life cycle statistical method according to claim 5, characterized in that: and when the opening method and the replacing method are called, the page indicated by the parameters is the current page, and the current page is judged to be about to enter a pause state.
7. The method for counting the full life cycle of the page based on Flutter according to claim 5, wherein: and when the exit method and the removal method are called and the page indicated by the parameters is the current page, judging that the current page is about to enter a recovery state.
8. The Flutter-based page full life cycle statistical method according to claim 3, characterized in that: the component monitor is responsible for monitoring a pause state and a recovery state when different applications are switched; the navigation listener monitors the suspended state and the recovered state of all page switching in the same application.
9. Flutter-based page full lifecycle statistics apparatus, characterized in that the apparatus comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by the processor to implement the page full lifecycle statistics method according to any of claims 1 to 8.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded by a processor and which performs the page full lifecycle statistics method of any of claims 1 to 8.
CN202011222460.0A 2020-11-05 2020-11-05 Page full life cycle statistical method and equipment based on Flutter and storage medium Pending CN112463520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011222460.0A CN112463520A (en) 2020-11-05 2020-11-05 Page full life cycle statistical method and equipment based on Flutter and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011222460.0A CN112463520A (en) 2020-11-05 2020-11-05 Page full life cycle statistical method and equipment based on Flutter and storage medium

Publications (1)

Publication Number Publication Date
CN112463520A true CN112463520A (en) 2021-03-09

Family

ID=74826308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011222460.0A Pending CN112463520A (en) 2020-11-05 2020-11-05 Page full life cycle statistical method and equipment based on Flutter and storage medium

Country Status (1)

Country Link
CN (1) CN112463520A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870933A (en) * 2016-09-27 2018-04-03 北京京东尚科信息技术有限公司 Count the method, apparatus and system of Android five application page navigation patterns
CN108337281A (en) * 2017-01-19 2018-07-27 北京京东尚科信息技术有限公司 Calculate the method and system of page browsing duration
CN109446038A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 The statistical method and terminal device of page access duration
US20190088149A1 (en) * 2017-09-19 2019-03-21 Money Media Inc. Verifying viewing of content by user
CN111176960A (en) * 2019-10-22 2020-05-19 腾讯科技(深圳)有限公司 User operation behavior tracking method, device, equipment and storage medium
CN111382380A (en) * 2018-12-27 2020-07-07 北京奇虎科技有限公司 Statistical method and device for page access duration
CN111737611A (en) * 2019-05-23 2020-10-02 北京京东尚科信息技术有限公司 Method and device for counting page access time, client and electronic equipment
CN111797025A (en) * 2020-07-17 2020-10-20 北京中指讯博数据信息技术有限公司 Data processing method and device for application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870933A (en) * 2016-09-27 2018-04-03 北京京东尚科信息技术有限公司 Count the method, apparatus and system of Android five application page navigation patterns
CN108337281A (en) * 2017-01-19 2018-07-27 北京京东尚科信息技术有限公司 Calculate the method and system of page browsing duration
US20190088149A1 (en) * 2017-09-19 2019-03-21 Money Media Inc. Verifying viewing of content by user
CN109446038A (en) * 2018-09-03 2019-03-08 平安普惠企业管理有限公司 The statistical method and terminal device of page access duration
CN111382380A (en) * 2018-12-27 2020-07-07 北京奇虎科技有限公司 Statistical method and device for page access duration
CN111737611A (en) * 2019-05-23 2020-10-02 北京京东尚科信息技术有限公司 Method and device for counting page access time, client and electronic equipment
CN111176960A (en) * 2019-10-22 2020-05-19 腾讯科技(深圳)有限公司 User operation behavior tracking method, device, equipment and storage medium
CN111797025A (en) * 2020-07-17 2020-10-20 北京中指讯博数据信息技术有限公司 Data processing method and device for application

Similar Documents

Publication Publication Date Title
CN111124906B (en) Tracking method, compiling method and device based on dynamic embedded points and electronic equipment
US10031841B2 (en) Method and system for incrementally updating a test suite utilizing run-time application executions
CN108874470B (en) Information processing method, server and computer storage medium
CN113268243B (en) Memory prediction method and device, storage medium and electronic equipment
CN107704241B (en) Display method and device for page state switching
US10084637B2 (en) Automatic task tracking
Pandey et al. Perception-based classification of mobile apps: A critical review
US9021312B1 (en) Method and apparatus for visual pattern analysis to solve product crashes
CN113190464A (en) mock testing method, mock testing device, electronic equipment and mock testing medium
CN112463518A (en) Page full-life-cycle monitoring method, device, equipment and storage medium based on Flutter
CN110795353B (en) Quick application debugging method, device, equipment and storage medium
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
CN112463519A (en) Flatter-based page use behavior data non-buried point statistical method, equipment and storage medium
CN111143204B (en) Applet code scanning method and device
CN110046100B (en) Packet testing method, electronic device and medium
CN112395098A (en) Application program interface calling method and device, storage medium and electronic equipment
Corno et al. XDN: cross-device framework for custom notifications management
CN112463520A (en) Page full life cycle statistical method and equipment based on Flutter and storage medium
CN111381995A (en) Method and device for restoring user operation and computer
CN111159033A (en) Software testing method and device
US20220229718A1 (en) Automated crash recovery
WO2019114812A1 (en) Method for preventing malicious code compilation, storage medium and electronic device
CN112364267A (en) Front-end data acquisition method and device
CN112104716A (en) Method and device for collecting data of software project, readable storage medium and equipment
CN111124712A (en) Event notification method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000 room 1728, No.2, Huaxu street, Tianhe District, Guangzhou City, Guangdong Province (office only)

Applicant after: Guangzhou Boheng Information Technology Co.,Ltd.

Address before: 510000 room 1728, No.2, Huaxu street, Tianhe District, Guangzhou City, Guangdong Province (office only)

Applicant before: Guangzhou Boheng Information Technology Co.,Ltd.