Method and device for generating prompt information
By analyzing and comparing the time ratio of the background running time of the target application to the residence time, a prompt message prompting the user to enable the background running permission is generated, which solves the problem of delay or failure of the application background message channel connection and improves the user experience.
Patent Information
- Application Number
- CN202110232546.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-03
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-03-03
AI Technical Summary
In mobile phone systems, the application's background operation permission is turned off by default, resulting in delay or invalidation of the application's background message channel connection, affecting the user experience.
By analyzing the running information of the target application of the target user within the preset time period, the time ratio between the background running time and the background residence time is calculated, and compared with the preset time ratio threshold. If the time ratio is less than the threshold, a prompt message prompts the user to enable the application background operation permissions.
It realizes accurate and intelligent reminding users to enable the background operation permissions of the application, improves the stability and response speed of the application's background message channel connection, and improves the user experience.
Smart Images

Figure CN113791828B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method and device for generating prompt information. Background Art
[0002] The mobile phone system can set the background running permissions of the application. Based on the consideration of running smoothness and power saving, the mobile phone system generally turns off the background running permissions of the application by default. When the background running permissions of the application are turned off, the background running of the application is restricted. Specifically, when the application is started and the desktop is returned or the screen is locked, the background message channel connection of the application will be restricted, and the application's own message channel will be delayed or invalid. Summary of the invention
[0003] The embodiments of the present application provide a method and device for generating prompt information.
[0004] In a first aspect, an embodiment of the present application provides a method for generating prompt information, including: determining the time ratio of the background running time and the background stay time of the target application based on the operation information of the target user's target application acquired within a preset time period; comparing the time ratio with a time ratio threshold; in response to determining that the time ratio is less than the time ratio threshold, generating a prompt information prompting the target user to enable the background running permission of the target application.
[0005] In some embodiments, the running information is the running information of the target application of the target user collected based on a preset time interval during at least one background stay period within a preset time period, and the background stay period represents the time period from the target application entering the background to returning to the foreground; the above-mentioned determining the time ratio of the background running time to the background stay time of the target application based on the running information of the target application of the target user within the preset time period obtained includes: determining the time ratio of the background running time to the background stay time of the target application in each background stay period according to the running information of the target application within the preset time period; determining the time ratio of the target application within the preset time period according to the time ratio corresponding to each background stay cycle within the preset time period.
[0006] In some embodiments, the above-mentioned determination of the time ratio of the background running time and the background stay time of the target application during each background stay period includes: for each background stay period, in response to determining that the time difference between the background stay time and the background running time of the target application during the background stay period is less than a preset time interval, determining the preset time ratio as the time ratio of the target application during the background stay period.
[0007] In some embodiments, the above method further includes: filtering out operation information during a background stay period whose time length is less than a preset time length.
[0008] In some embodiments, the above method further includes: collecting statistics on the running information of target applications of different users and determining a time ratio threshold.
[0009] In some embodiments, the above-mentioned counting of running information of target applications of different users and determining the time ratio threshold includes: based on preset dimensions, counting the running information of target applications of different users and determining the time ratio threshold of the target application under the preset dimensions.
[0010] In some embodiments, the above-mentioned comparison of the time ratio and the time ratio threshold includes: determining the time ratio threshold under a preset dimension corresponding to the running information of the target application of the target user; and comparing the time ratio with the determined time ratio threshold.
[0011] In the second aspect, an embodiment of the present application provides a device for generating prompt information, including: a first determination unit, configured to determine the time ratio of the background running time and the background stay time of the target application based on the operation information of the target user's target application acquired within a preset time period; a comparison unit, configured to compare the time ratio with a time ratio threshold; a generation unit, configured to generate prompt information to prompt the target user to enable the background running permission of the target application in response to determining that the time ratio is less than the time ratio threshold.
[0012] In some embodiments, the operation information is the operation information of the target application of the target user collected based on a preset time interval during at least one background stay period within a preset time period, and the background stay period represents the time period from the target application entering the background to returning to the foreground; the first determination unit is further configured to: determine the time ratio of the background running time to the background stay time of the target application in each background stay period according to the operation information of the target application in each background stay period within the preset time period; determine the time ratio of the target application in the preset time period according to the time ratio corresponding to each background stay cycle within the preset time period.
[0013] In some embodiments, the first determination unit is further configured to: for each background stay period, in response to determining that the time difference between the background stay time and the background running time of the target application during the background stay period is less than a preset time interval, determine the preset time ratio as the time ratio of the target application during the background stay period.
[0014] In some embodiments, the above-mentioned device further includes: a filtering unit configured to filter out operation information during a background stay period whose time length is less than a preset time length.
[0015] In some embodiments, the above-mentioned apparatus further includes: a second determining unit configured to collect statistics on the running information of target applications of different users and determine a time ratio threshold.
[0016] In some embodiments, the second determining unit is further configured to: based on a preset dimension, collect statistics on the running information of target applications of different users, and determine a time ratio threshold of the target application under the preset dimension.
[0017] In some embodiments, the comparison unit is further configured to: determine a time ratio threshold under a preset dimension corresponding to the running information of the target application of the target user; and compare the time ratio with the determined time ratio threshold.
[0018] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.
[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect.
[0020] The prompt information generation method and device provided in the embodiments of the present application determine the time ratio of the background running time and the background residence time of the target application based on the operation information of the target user's target application obtained within a preset time period; compare the time ratio with the time ratio threshold; in response to determining that the time ratio is less than the time ratio threshold, generate prompt information to prompt the target user to enable the background running permission of the target application, thereby providing a prompt information generation method, which achieves the purpose of accurately and intelligently reminding the user to enable the background running permission of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0022] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0023] Figure 2 is a flow chart of an embodiment of a method for generating prompt information according to the present application;
[0024] Figure 3 is a schematic diagram of an application scenario of the method for generating prompt information according to this embodiment;
[0025] Figure 4 is a flowchart of another embodiment of a method for generating prompt information according to the present application;
[0026] Figure 5is a structural diagram of an embodiment of a device for generating prompt information according to the present application;
[0027] Figure 6 It is a structural diagram of a computer system suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION
[0028] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] Figure 1 An exemplary architecture 100 to which the method and apparatus for generating prompt information of the present application can be applied is shown.
[0031] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The communication connection between the terminal devices 101, 102, 103 constitutes a topological network, and the network 104 is used to provide a medium for the communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0032] Terminal devices 101, 102, 103 may be hardware devices or software that support network connection for data interaction and data processing. When terminal devices 101, 102, 103 are hardware, they may be various electronic devices that support network connection, information acquisition, interaction, display, processing and other functions, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. Various types of applications may be set on the terminal devices, including but not limited to instant messaging applications, shopping applications, and office applications. When terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. It may be implemented as multiple software or software modules, for example, for providing distributed services, or it may be implemented as a single software or software module. No specific limitation is made here.
[0033] The server 105 may be a server that provides various services, such as a background processing server that obtains the operation information of the target application of the target user sent by the terminal devices 101, 102, and 103 within a preset time period, and determines the time ratio of the background operation time and the background stay time of the target application based on the operation information, and then determines whether to prompt the target user to enable the background operation permission of the target application. The server 105 may feed back the prompt information prompting the target user to enable the background operation permission of the target application to the terminal device of the target user. As an example, the server 105 may be a cloud server.
[0034] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0035] It should also be noted that the method for generating prompt information provided in the embodiments of the present disclosure can be executed by a server, or by a terminal device, or by a server and a terminal device in cooperation with each other. Accordingly, the various parts (e.g., various units) included in the device for generating prompt information can be all arranged in the server, or all arranged in the terminal device, or respectively arranged in the server and the terminal device.
[0036] It should be understood that Figure 1 The number of terminal devices, networks, and servers in the system is only illustrative. Any number of terminal devices, networks, and servers may be provided as required. When the electronic device on which the method for generating prompt information is running does not need to transmit data with other electronic devices, the system architecture may only include the electronic device (e.g., server or terminal device) on which the method for generating prompt information is running.
[0037] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for generating prompt information, comprising the following steps:
[0038] Step 201 : determining the time ratio of the background running time and the background staying time of the target application according to the acquired running information of the target application of the target user within a preset time period.
[0039] In this embodiment, the execution subject of the method for generating prompt information (for example Figure 1 The server in the example embodiment may determine the time ratio of the background running time and the background staying time of the target application according to the obtained running information of the target application of the target user within the preset time period.
[0040] The target application may be any application on the terminal device used by the target user. As an example, the target application may be an instant messaging application, an office application, or a shopping application.
[0041] The preset time period can be specifically set according to actual conditions. As an example, the preset time period can be a time period represented by 24 hours up to the present.
[0042] The operation information may be any operation information of the target user using the target application. As an example, the operation information includes: the ID (Identity document) of the terminal device, the version number of the operating system in the terminal device, the brand and model of the terminal device, the version number of the target application, the time when the target application enters the background, the time when it returns to the foreground, the request time and response time each time the domain name is pinged, the power of the terminal device, whether it is in a charging state, the memory of the terminal device, and the IP (Internet Protocol) address. For different applications, the corresponding domain name can be pre-set.
[0043] The above-mentioned execution subject can determine the background running time and background residence time of the target application within a preset time period based on the acquired operation information. Among them, the background running time represents the time the CPU (central processing unit) runs after the target application enters the background of the terminal device; the background residence time represents the time the target application enters the background of the terminal device and stays in the background. It can be understood that the background residence time includes the background running time.
[0044] Specifically, the execution subject can determine the target application's background stay time based on the time of entering the background and the time of returning to the foreground in the operation information, and determine whether the target application is still in the background running state during the background stay based on each ping domain name operation, and then determine the background running time. After the target application enters the background of the terminal device, when the ping domain name is successful, it can be determined that the current target application is in the background running state; when the ping domain name is successful, it can be determined that the current target application is not in the background running state, that is, the background running process of the target application has ended.
[0045] As an example, after the target application is started, it enters the background running state at 14:00, the background running process of the target application is terminated at 15:00, and it is started again at 16:00 and returns to the foreground. Then, the background stay time is 16:00-14:00=2 hours, the background running time is 15:00-14:00=1 hour, and the time ratio is 1 / 2=0.5.
[0046] The time period from when the target application enters the background to when it returns to the foreground can be regarded as a background stay period of the target application. It can be understood that, generally, the preset time period includes multiple background stay periods of the target application.
[0047] In some optional implementations of this embodiment, the operation information is operation information of a target application of a target user collected based on a preset time interval during at least one background stay within a preset time period.
[0048] As an example, the terminal device deployed with the target application can collect the running information of the target application during each background stay period based on a preset time interval. And at the end of each background stay period (the target application returns to the foreground), the collected running information during the background stay period is sent to the above-mentioned execution subject, so that the above-mentioned execution subject can determine the time ratio of the background running time and the background stay time of the target application.
[0049] The preset time interval may be set according to the specific situation. As an example, the preset time interval may be 30 minutes. In some optional implementations of this embodiment, the preset time may be determined based on the acquired operation information. As an example, the preset time interval may be negatively correlated with the power information of the terminal device in the operation information to reduce the power consumption caused by information collection.
[0050] When the length of time represented by the background stay period is long, the number of times the operation information is collected during the background stay period is large, and the collected operation information is large. For the above situation, a collection number threshold can be set. When the number of times the operation information is collected during a background stay period exceeds the collection number threshold, the terminal device reports the operation information to the above execution subject once and deletes the collected operation information in the log.
[0051] The execution subject may execute step 201 in the following manner:
[0052] First, according to the running information of the target application in each background stay period within the preset time period, the time ratio of the background running time to the background stay time of the target application in each background stay period is determined.
[0053] In this implementation, for each background stay period within a preset time period, the execution subject calculates the time ratio of the background running time and the background stay time of the target application.
[0054] Second, according to the time ratio corresponding to each background stay period in the preset time period, the time ratio of the target application in the preset time period is determined.
[0055] As an example, the execution subject may calculate an average value of the time ratios corresponding to each background stay period within a preset time period, and determine the obtained average value as the time ratio of the target application within the preset time period.
[0056] In some optional implementations of the present embodiment, for each background stay period, in response to determining that the time difference between the background stay time and the background running time of the target application during the background stay period is less than a preset time interval, the preset time ratio is determined as the time ratio of the target application during the background stay period.
[0057] The preset time ratio can be specifically set according to actual conditions. As an example, the preset time ratio can be 1. When the time difference between the background stay time and the background running time of the target application is less than the preset time interval, it indicates that the background stay time and the background running time are close, and when it is less than the preset time interval, it is impossible to further determine the specific time difference between the background stay time and the background running time that is less than the preset time interval. Therefore, the preset time ratio with a larger value can be determined as the time ratio of the background stay time to the background running time.
[0058] Step 202, comparing the time ratio with a time ratio threshold.
[0059] In this embodiment, the execution entity may compare the time ratio with a time ratio threshold.
[0060] The time ratio threshold can be set according to actual conditions. As an example, the time ratio threshold is 0.7.
[0061] It can be understood that by comparing the time ratio with the time ratio threshold, a comparison result can be obtained that the time ratio is less than the time ratio threshold, or the time ratio is not less than the time ratio threshold.
[0062] In some optional implementations of this embodiment, the execution subject may collect statistics on the running information of target applications of different users to determine the time ratio threshold.
[0063] As an example, the above-mentioned execution entity can determine the time ratio of the background running time and the background staying time corresponding to each user's target application based on the running information of different user application target applications, and then determine the average value of the time ratio corresponding to each user's target application as the time ratio threshold.
[0064] In some optional implementations of this embodiment, the above-mentioned execution subject may also count the running information of target applications of different users based on preset dimensions, and determine the time ratio threshold of the target application under the preset dimensions.
[0065] The preset dimension may be any dimension involved in the target application. As an example, the preset dimension includes the brand dimension of the terminal device, the model dimension of the terminal device, and the system version dimension of the terminal device, and statistics may be performed based on time dimensions such as month, week, day, etc.
[0066] It is understandable that the time ratio thresholds for the same target application under different preset dimensions may be different.
[0067] In some optional implementations of this embodiment, the execution subject may perform step 202 in the following manner:
[0068] First, determine a time ratio threshold under a preset dimension corresponding to the running information of the target application of the target user.
[0069] As an example, if the terminal device of the target user is a terminal device of brand A, the preset dimension may be the time ratio threshold corresponding to the target application in the terminal device of brand A. Further, if the terminal device is a model a device under brand A, the preset dimension may be the time ratio threshold corresponding to the target application in the model a terminal device under brand A.
[0070] Second, the time ratio is compared to a determined time ratio threshold.
[0071] Step 203 : in response to determining that the time ratio is less than the time ratio threshold, generating prompt information to prompt the target user to enable background running permission of the target application.
[0072] In this embodiment, the execution subject may generate prompt information prompting the target user to enable background running permission of the target application in response to determining that the time ratio is less than the time ratio threshold.
[0073] The prompt information may be in any form, including but not limited to text, audio, etc.
[0074] Continue to see Figure 3 , Figure 3 FIG. 3 is a schematic diagram 300 of an application scenario of the method for generating prompt information according to this embodiment. Figure 3In the application scenario, the target application 303 is deployed in the terminal device 302 of the target user 301. In the process of the target user 301 running the target application 303 through the terminal device 302, the running information of the target application in the background is collected. And the running information is sent to the server 304. The server 304 first determines the time ratio of the background running time and the background stay time of the target application 303 according to the acquired running information of the target application 303 of the target user 301 within the preset time period; then, compares the time ratio with the time ratio threshold; finally, in response to determining that the time ratio is less than the time ratio threshold, generates prompt information to prompt the target user 301 to enable the background running permission of the target application 303, and feeds back the prompt information to the terminal device 302.
[0075] The method provided by the above-mentioned embodiments of the present disclosure determines the time ratio of the background running time and the background staying time of the target application based on the operation information of the target application of the target user obtained within a preset time period; compares the time ratio with the time ratio threshold; in response to determining that the time ratio is less than the time ratio threshold, generates prompt information to prompt the target user to enable the background running permission of the target application, thereby providing a method for generating prompt information, thereby achieving the purpose of accurately and intelligently reminding the user to enable the background running permission of the application.
[0076] In some optional implementations of this embodiment, the above-mentioned execution subject may also filter out operation information during a background stay period whose time length is less than a preset time length.
[0077] The preset time length can be set according to actual conditions. For example, the preset time length can be 15 minutes.
[0078] Continue to refer Figure 4 , shows a schematic process 400 of an embodiment of a method for generating prompt information according to the present application, comprising the following steps:
[0079] Step 401 , according to the running information of the target application in each background stay period within a preset time period, determine the time ratio of the background running time to the background stay time of the target application in each background stay period.
[0080] Step 402, determining the time ratio of the target application within the preset time period according to the time ratio corresponding to each background stay period within the preset time period.
[0081] Step 403: determine a time ratio threshold under a preset dimension corresponding to the running information of the target application of the target user.
[0082] Step 404, comparing the time ratio with a determined time ratio threshold.
[0083] Step 405 , in response to determining that the time ratio is less than the time ratio threshold, generating prompt information to prompt the target user to enable background running permission of the target application.
[0084] It can be seen from this embodiment that Figure 2 Compared with the corresponding embodiment, the process 400 of the method for generating prompt information in this embodiment specifically illustrates the process of determining the time ratio and the process of determining the time ratio threshold, thereby improving the accuracy of the prompt information.
[0085] Continue to refer Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for generating prompt information. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0086] like Figure 5 As shown, the prompt information generating device includes: a first determining unit 501, configured to determine the time ratio of the background running time and the background staying time of the target application according to the operation information of the target application of the target user obtained within a preset time period; a comparing unit 502, configured to compare the time ratio with a time ratio threshold; a generating unit 503, configured to generate prompt information for prompting the target user to enable the background running permission of the target application in response to determining that the time ratio is less than the time ratio threshold.
[0087] In some optional implementations of the present embodiment, the operation information is the operation information of the target application of the target user collected based on a preset time interval during at least one background stay period within a preset time period, and the background stay period represents the time period from the target application entering the background to returning to the foreground; the first determination unit 501 is further configured to: determine the time ratio of the background running time to the background stay time of the target application in each background stay period according to the operation information of the target application in each background stay period within the preset time period; determine the time ratio of the target application in the preset time period according to the time ratio corresponding to each background stay cycle within the preset time period.
[0088] In some optional implementations of the present embodiment, the first determination unit 501 is further configured to: for each background stay period, in response to determining that the time difference between the background stay time and the background running time of the target application during the background stay period is less than a preset time interval, determine the preset time ratio as the time ratio of the target application during the background stay period.
[0089] In some optional implementations of this embodiment, the above-mentioned device also includes: a filtering unit (not shown in the figure), which is configured to filter out operation information during the background stay period with a time length less than a preset time length.
[0090] In some optional implementations of this embodiment, the above-mentioned device also includes: a second determination unit (not shown in the figure), which is configured to count the running information of target applications of different users and determine the time ratio threshold.
[0091] In some optional implementations of this embodiment, the second determination unit (not shown in the figure) is further configured to: based on a preset dimension, count the running information of target applications of different users, and determine the time ratio threshold of the target application under the preset dimension.
[0092] In some optional implementations of this embodiment, the comparison unit 502 is further configured to: determine a time ratio threshold under a preset dimension corresponding to the running information of the target application of the target user; and compare the time ratio with the determined time ratio threshold.
[0093] In the present embodiment, a first determination unit in a prompt information generating device determines the time ratio of the background running time and the background stay time of the target application based on the acquired running information of the target application of the target user within a preset time period; a comparison unit compares the time ratio with a time ratio threshold; and a generation unit generates prompt information prompting the target user to enable the background running permission of the target application in response to determining that the time ratio is less than the time ratio threshold, thereby providing a method for generating prompt information, which achieves the purpose of accurately and intelligently reminding the user to enable the background running permission of the application.
[0094] Reference below Figure 6 , which shows a device suitable for implementing the embodiments of the present application (eg Figure 1 Schematic diagram of the structure of a computer system 600 of the devices 101, 102, 103, 105 shown. Figure 6 The device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0095] like Figure 6 As shown, the computer system 600 includes a processor (e.g., CPU, central processing unit) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the system 600 are also stored in the RAM 603. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0096] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0097] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from a removable medium 611. When the computer program is executed by the processor 601, the above-mentioned functions defined in the method of the present application are executed.
[0098] It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0099] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the client computer, partially on the client computer, as a separate software package, partially on the client computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the client computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0100] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0101] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The described units may also be set in a processor, for example, may be described as: a processor comprising a first determination unit, a comparison unit, and a generation unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the first determination unit may also be described as "a unit for determining the time ratio of the background running time to the background residence time of the target application based on the operation information of the target user obtained within a preset time period".
[0102] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the computer device: determines the time ratio of the background running time and the background stay time of the target application according to the acquired running information of the target application of the target user within a preset time period; compares the time ratio with the time ratio threshold; in response to determining that the time ratio is less than the time ratio threshold, generates a prompt message prompting the target user to enable the background running permission of the target application.
[0103] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A method for generating prompt information, comprising: Determine, based on the acquired running information of the target application of the target user within a preset time period, a time ratio of the background running time to the background staying time of the target application, wherein the background staying time is determined based on the time when the target application enters the background and the time when it returns to the foreground in the running information, and the background running time is determined based on whether the target application is in the background running state; comparing the time ratio with a time ratio threshold; In response to determining that the time ratio is less than the time ratio threshold, a prompt message is generated to prompt the target user to enable the background running permission of the target application.
2. The method according to claim 1, wherein: The operation information is the operation information of the target application of the target user collected based on a preset time interval during at least one backstage stay period within the preset time period, and the backstage stay period represents the time period from when the target application enters the backstage to when it returns to the foreground; The determining, based on the acquired running information of the target application of the target user within a preset time period, the time ratio of the background running time to the background staying time of the target application includes: Determine, according to the running information of the target application in each background stay period within the preset time period, a time ratio of the background running time to the background stay time of the target application in each background stay period; The time ratio of the target application in the preset time period is determined according to the time ratio corresponding to each background stay period in the preset time period.
3. The method according to claim 2, wherein: The determining of the time ratio of the background running time to the background staying time of the target application in each background staying period includes: For each background stay period, in response to determining that during the background stay period, the time difference between the background stay time and the background running time of the target application is less than the preset time interval, the preset time ratio is determined as the time ratio of the target application during the background stay period.
4. The method according to claim 2, wherein: Also includes: Filter out the operation information during the background stay period that is less than the preset time length.
5. The method according to claim 1, wherein: Also includes: The running information of the target application applied by different users is counted to determine the time ratio threshold.
6. The method according to claim 5, wherein: The counting of operation information of the target application by different users to determine the time ratio threshold includes: Based on a preset dimension, operation information of the target application applied by different users is counted, and a time ratio threshold of the target application under the preset dimension is determined.
7. The method according to claim 6, wherein: The comparing the time ratio with a time ratio threshold comprises: Determine a time ratio threshold under a preset dimension corresponding to the running information of the target application of the target user; The time ratio is compared to a determined time ratio threshold.
8. A device for generating prompt information, comprising: A first determining unit is configured to determine a time ratio of a background running time to a background staying time of a target application of a target user within a preset time period according to the acquired running information of the target application within the preset time period, wherein the background staying time is determined according to the time when the target application enters the background and the time when it returns to the foreground in the running information, and the background running time is determined according to whether the target application is in a background running state; a comparing unit configured to compare the time ratio with a time ratio threshold; The generating unit is configured to generate prompt information for prompting the target user to enable the background running permission of the target application in response to determining that the time ratio is less than the time ratio threshold.
9. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for intelligently freezing long-term unused applications
CN103699406A
Information generation method and device
WO2020088050A1