Page management method, device, mobile terminal and storage medium
By obtaining the interface display status in the verification scenario of the mobile terminal and prohibiting the pop-up of the NFC verification page, the problem of QR code being blocked is solved, ensuring that the verification function of the mobile terminal is normally used.
Patent Information
- Application Number
- CN202210977332.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-15
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-08-15
AI Technical Summary
When the mobile terminal is close to the card reading device when displaying the QR code, an NFC verification page will automatically pop up, causing the QR code to be blocked, affecting the normal use of the verification function.
When the mobile terminal is detected to be in a verification scenario, it obtains its interface display status. If a QR code page is displayed, the NFC verification page is prohibited to pop up, thereby avoiding the QR code being blocked.
Accurate control of the verification page is achieved, preventing the mobile terminal from automatically popping up the NFC verification page in the verification scenario, ensuring the normal use of the verification function.
Smart Images

Figure CN115514744B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and more specifically, to a page management method, device, mobile terminal and storage medium. Background Art
[0002] With the rapid advancement of science and technology, more and more mobile terminals support Near Field Communication (NFC) functions, and many mobile terminals have both NFC and QR code verification functions. When a mobile terminal with NFC function is close to a card reader with NFC card reading function, an NFC verification page (such as an NFC card page, etc.) will automatically pop up, so that users can use NFC functions for verification (such as payment, access control, identity recognition, electronic ticketing, etc.). However, the NFC and QR code readers of a card reader are usually set close to each other, so when a mobile terminal is close to a card reader with a QR code displayed, an NFC verification page will automatically pop up, which will block the displayed QR code and affect the normal use of the verification function. Summary of the invention
[0003] The present application proposes a page management method, device, mobile terminal and storage medium, which can realize effective management of verification pages and ensure the normal use of the verification function of the mobile terminal.
[0004] In a first aspect, an embodiment of the present application provides a page management method, which is applied to a mobile terminal, and the method includes: when it is detected that the mobile terminal is in a verification scenario, obtaining the interface display state of the mobile terminal; if the interface display state is a state of displaying a QR code page, prohibiting the pop-up of a near field communication NFC verification page.
[0005] In the second aspect, an embodiment of the present application provides a page management device, which is applied to a mobile terminal, and the device includes: a status acquisition module and a page prohibition module, wherein the status acquisition module is used to obtain the interface display status of the mobile terminal when it is detected that the mobile terminal is in a verification scenario; the page prohibition module is used to prohibit the pop-up of a near field communication NFC verification page if the interface display status is a state of displaying a QR code page.
[0006] In a third aspect, an embodiment of the present application provides a mobile terminal, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the page management method provided in the first aspect above.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the page management method provided in the first aspect above.
[0008] The solution provided by the present application obtains the interface display state of the mobile terminal when it is detected that the mobile terminal is in a verification scenario. If the interface display state is a state where a QR code page is displayed, the pop-up of the near field communication NFC verification page is prohibited. In this way, accurate control of the verification page can be achieved, and the NFC verification page is prevented from automatically popping up when the mobile terminal is used in a verification scenario and the QR code is displayed, thereby avoiding affecting the use of the verification function of the mobile terminal and ensuring the normal use of the verification function of the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A flow chart of a page management method according to an embodiment of the present application is shown.
[0011] Figure 2 A flow chart of a page management method according to another embodiment of the present application is shown.
[0012] Figure 3 A schematic diagram showing an application scenario provided by an embodiment of the present application is shown.
[0013] Figure 4 A schematic diagram showing an application scenario provided by an embodiment of the present application is shown.
[0014] Figure 5 A schematic diagram showing an application scenario provided by an embodiment of the present application is shown.
[0015] Figure 6 A flow chart of a page management method according to yet another embodiment of the present application is shown.
[0016] Figure 7 A flow chart of a page management method according to another embodiment of the present application is shown.
[0017] Figure 8 A flow chart of a page management method according to yet another embodiment of the present application is shown.
[0018] Fig. 9A block diagram of a page management device according to an embodiment of the present application is shown.
[0019] Fig.10 It is a block diagram of a mobile terminal according to an embodiment of the present application for executing the page management method according to an embodiment of the present application.
[0020] Fig.11 It is a storage unit of an embodiment of the present application for storing or carrying program codes for implementing the page management method according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0022] At present, the functions of mobile terminals (such as smart phones, smart watches, etc.) are becoming more and more diverse, and more and more mobile terminals support near field communication (NFC) functions. Mobile terminals using NFC technology can exchange data when they are close to each other. It is an integration of contactless radio frequency identification and interconnection technology. By integrating the functions of inductive card readers, inductive cards and point-to-point communication on a single chip, mobile terminals can be used to realize verification applications such as mobile payment, electronic ticketing, access control, mobile identity recognition, and anti-counterfeiting.
[0023] Usually, mobile terminals have both NFC verification and QR code verification functions. Users can selectively use NFC or QR code for verification. In addition, card readers usually have both NFC card reader modules and QR code reader heads. In actual applications, when a mobile terminal with NFC function is close to a card reader with NFC card reading function, an NFC verification page will automatically pop up, making it convenient for users to use NFC function for verification.
[0024] Therefore, when the NFC and QR code readers of the card reader are usually set close to each other, the NFC verification page will automatically pop up when the mobile terminal is close to the card reader while displaying the QR code, so that the displayed QR code is blocked, and the verification cannot be completed using the displayed QR code, affecting the normal use of the verification function of the mobile terminal. For example, in the payment verification scenario of the subway, QR code verification and NFC verification are often supported, and users can selectively use QR code or NFC for verification, but some users are accustomed to using QR code for verification, and may not have opened the subway's NFC card. In this case, if the mobile terminal displays the QR code and approaches the subway gate, the NFC verification page will pop up, and the payment verification of the subway gate cannot be completed.
[0025] In response to the above problems, the inventors have proposed the page management method, device, mobile terminal and storage medium provided in the embodiments of the present application, which can realize accurate control of the verification page, prevent the mobile terminal from automatically popping up the NFC verification page when displaying the QR code when being used in the verification scenario, thereby avoiding affecting the use of the verification function of the mobile terminal, and ensuring the normal use of the verification function of the mobile terminal. The specific page management method is described in detail in the subsequent embodiments.
[0026] The page management method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0027] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a page management method provided by an embodiment of the present application. In a specific embodiment, the page management method is applied to Fig. 9 The page management device 400 and the mobile terminal 100 ( Fig.10 ). The following will take a mobile terminal as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the mobile terminal used in this embodiment can be a smart phone, a tablet computer, a smart watch, an e-book, etc., which is not limited here. Figure 1 The process shown is described in detail, and the page management method may specifically include the following steps:
[0028] Step S110: when it is detected that the mobile terminal is in a verification scenario, obtaining the interface display state of the mobile terminal.
[0029] The mobile terminal in the embodiment of the present application supports the NFC function, for example, the NFC function is realized by means of HCE (Host Card Emulation, host-based card simulation) or ESE (EmbeddedSE, embedded security software). Optionally, a plurality of simulation cards (i.e., NFC cards) based on the NFC function may be provided in the mobile terminal, and the simulation cards are used to realize the verification in the verification scenarios such as access control electronic keys, bus cards, attendance cards, and electronic identity cards.
[0030] In an embodiment of the present application, the mobile terminal can automatically pop up an NFC verification page, such as an NFC card swiping page, when it detects that it is close to a device with an NFC card reader function. Optionally, an NFC module is provided in the mobile terminal for the NFC communication module, and the NFC module may refer to a software module for managing NFC in the mobile terminal. When it detects that it is close to a device with an NFC card reader function, the NFC module can automatically pop up an NFC verification page.
[0031] In order to avoid the situation where the NFC verification page automatically pops up when the mobile terminal is close to the card reader in the verification scenario and the QR code cannot be used for verification, in an embodiment of the present application, the mobile terminal can detect that it is in the verification scenario, so as to determine whether a QR code page is currently displayed when the mobile terminal is in the verification scenario, and whether to control the verification page according to the determination result. Among them, the verification scenario may include scenarios such as payment verification, access control verification, identity verification, ticketing verification, etc. performed by the mobile terminal. Of course, the specific verification scenario is not limited to this. It can be understood that if the mobile terminal is in the verification scenario, then at this time, the user may turn on the QR code verification function of the mobile terminal through operation and bring the mobile terminal close to the card reader. Therefore, the interface display status of the mobile terminal can be obtained when the mobile terminal is in the verification scenario.
[0032] In an embodiment of the present application, the mobile terminal can determine whether the mobile terminal is in a verification scenario by detecting its usage status, the NFC field strength in the environment, the functions executed by the running application, etc.
[0033] In some implementations, it is possible to determine whether the mobile terminal is in the verification scene by detecting whether its posture meets the posture conditions of the user holding the mobile terminal in the past to open the QR code verification. If it is detected that the posture of the mobile terminal meets the posture conditions of the user holding the mobile terminal in the past to open the QR code verification, it can be determined that the mobile terminal is in the verification scene; otherwise, it can be determined that the mobile terminal is not in the verification scene.
[0034] In other embodiments, it can be detected that the mobile terminal is running an application with a verification scenario, and when the corresponding verification function is started, it is determined whether the mobile terminal is in the verification scenario. Among them, the application with a verification scenario can be an application that can perform verification scenarios such as payment verification, access control verification, identity verification, ticketing verification, etc. The mobile terminal can be pre-set with an application list of these applications, and when it is detected that the application list in the application list is running in the foreground, it is detected whether it is running the function of the above verification scenario. If it is detected that the function of running the above verification scenario is running, it can be determined that it is in the verification scenario.
[0035] In some embodiments, the above interface display state may include a state where a QR code page is displayed and a state where a QR code page is not displayed. Thus, after obtaining the interface display state, it can be determined whether to control the verification page according to the interface display state to avoid the QR code displayed by the mobile terminal in the verification scenario being blocked.
[0036] In one possible implementation, the mobile terminal can identify the displayed page based on the page recognition function to determine whether a QR code page is currently displayed; based on the recognition result, if it is identified that a QR code page is currently displayed, it can be determined that the current interface display state is a state in which a QR code page is displayed; if it is identified that a QR code page is not currently displayed, it can be determined that the current interface display state is a state in which a QR code page is not displayed.
[0037] In another possible implementation, the mobile terminal can obtain the status information of the application running in the foreground, and the status information may include whether the application displays a QR code; based on the status information, it can be determined whether the interface display state is a state in which a QR code page is displayed or a state in which a QR code page is not displayed. For example, when it is detected that the mobile terminal is in a verification scenario, the operating system of the mobile terminal can issue an inquiry broadcast, which is used to instruct the application currently running in the foreground to feedback the status information of whether it displays a QR code page, so that the operating system can obtain the status information and determine the interface display state.
[0038] Of course, the specific method by which the mobile terminal obtains the interface display status may not be limited in the embodiment of the present application. For example, the interface display status obtained by the mobile terminal may also include the content type contained in the interface display content. The content type contained in the interface is obtained by identifying the displayed interface, and thus it can be determined whether a QR code page is displayed based on the content type.
[0039] Step S120: If the interface display state is a state of displaying a QR code page, then popping up a near field communication NFC verification page is prohibited.
[0040] In the embodiment of the present application, when the mobile terminal detects that it is in a verification scenario, after acquiring the interface display state of the mobile terminal, it can determine whether the interface display state is a state in which a QR code page is displayed; if the interface display state is a state in which a QR code page is displayed, it means that when the mobile terminal is in a verification scenario, the user has enabled the QR code verification function of the mobile terminal through operation, that is, the verification scenario requires the use of a QR code for verification. Therefore, in this case, the pop-up NFC verification page can be prohibited to avoid the QR code page displayed when the mobile terminal is close to the card reader being covered by the pop-up NFC verification page, resulting in the failure of the QR code verification. Among them, the NFC verification page can be an NFC card swiping page, such as an NFC card selection page, etc. The NFC card is a simulated card based on the NFC function, and the simulated card is used to implement payment verification, identity verification, access control verification, ticketing verification, etc.
[0041] In addition, in the embodiment of the present application, if the interface display state is a state where no QR code page is displayed, a near field communication NFC verification page pops up. It can be understood that if the mobile terminal detects that it is in a verification scenario, after obtaining the interface display state of the mobile terminal, it is determined that no QR code page is currently displayed, which means that the mobile terminal is in a verification scenario and does not actively start QR code verification. Therefore, in this case, the verification page can be controlled, that is, the near field communication NFC verification page can be popped up when the mobile terminal is detected to be close to the NFC device.
[0042] The page management method provided in the embodiment of the present application obtains the interface display state of the mobile terminal when it is detected that the mobile terminal is in the verification scene. If the interface display state is a state where a QR code page is displayed, the pop-up of the near field communication NFC verification page is prohibited. In this way, accurate control of the verification page can be achieved, and the NFC verification page is prevented from automatically popping up when the mobile terminal is used in the verification scene and the QR code is displayed, thereby avoiding affecting the use of the verification function of the mobile terminal and ensuring the normal use of the verification function of the mobile terminal.
[0043] See also Figure 2 , Figure 2 A schematic diagram of a page management method provided by another embodiment of the present application is shown. The page management method is applied to the above mobile terminal. Figure 2 The process shown is described in detail, and the page management method may specifically include the following steps:
[0044] Step S210: Detecting the usage status of the mobile terminal.
[0045] In an embodiment of the present application, the mobile terminal can detect its usage status during operation. The usage status may include the screen status, holding status, posture, etc. of the mobile terminal. Of course, the specific usage status may not be limited. For example, it may also include running applications, etc. Among them, the screen status may include a screen-on status and a screen-off status, the holding status may include a held state and an unheld state, and the posture of the mobile terminal may be a posture detected by a gravity sensor or a gyroscope. It can be understood that when a user uses a mobile terminal for a verification scenario, the above usage status is usually different from the usage status in other scenarios. For example, the user will hold the mobile terminal in a certain posture close to the card reader to complete verification such as QR code scanning and NFC card swiping. Therefore, the mobile terminal can determine whether it is in a verification scenario by detecting its usage status.
[0046] In some embodiments, the screen's off state and screen-on state can be monitored by a module within the system of the mobile terminal. Specifically, the isScreenOn function of PowerManager can be used to obtain whether the screen is in the off state or the screen-on state; the holding state of the mobile terminal can be detected by a pressure sensor, touch sensor, etc. set in the shell of the mobile terminal.
[0047] In some implementations, since the mobile terminal will generate relatively large power consumption if the usage status is detected all the time during operation, the usage status of the mobile terminal may be detected only when corresponding detection conditions are met.
[0048] In a possible implementation, a function switch for page management may be provided in the mobile terminal, and the function switch is used to control whether the mobile terminal turns on the function of page management, and the function of page management refers to executing the page management method provided in the embodiment of the present application. Wherein, if the function switch is controlled to be in an on state according to the user operation, it means that the user currently manages the verification page to avoid the displayed QR code being blocked by the NFC verification page in the verification scene, so step S210 and subsequent steps can be performed; conversely, if the function is in an off state, step S210 is not performed. It can be understood that some users may need to use QR code for verification without using NFC verification, while some users need to use NFC verification even when QR code verification is turned on. For example, some applications default to QR code verification when starting the verification function, so the QR code page displayed at this time is only the default of the application, and the user himself has no subjective demand for which method to use, so the function switch set above can be used to meet the needs of different users and save the power consumption of the mobile terminal.
[0049] In another possible implementation, the mobile terminal can detect the usage status of the mobile terminal when running an application corresponding to the verification scenario. The application corresponding to the verification scenario refers to an application for which a verification scenario exists, such as an application for which a verification scenario can be performed, such as payment verification, access control verification, identity verification, ticket verification, and the like. The mobile terminal can be pre-set with an application list of applications for which verification scenarios exist, and when it is detected that an application in the application list is running in the foreground, the usage status of the mobile terminal is detected to determine whether it is in the verification scenario according to the detected usage status.
[0050] Optionally, considering that some users may need to use QR code for verification instead of NFC verification, while some users may need to use NFC verification even when QR code verification is turned on, therefore, when detecting that the application corresponding to the verification scenario is running, the mobile terminal can also determine whether there is an NFC card of the currently running application. If there is no NFC card, it means that when the user needs to use QR code for verification, NFC verification is not used, so the usage status of the mobile terminal can be detected; if there is an NFC card, it means that NFC verification can be used even if QR code verification is currently turned on, so step S210 can be skipped.
[0051] In another possible implementation, since users may use NFC verification and QR code verification in different verification scenarios, and the tracks of users' NFC verification and QR code verification are often used regularly, the verification method that may be currently used can be determined based on the previous usage rules, so as to determine whether to execute step S210 and subsequent steps according to the determined verification method. Therefore, the mobile terminal can obtain the current track information of the mobile terminal, and the current track information may include current time information and current location information; determine the verification method corresponding to the current track information according to the clustering results corresponding to the historical behavior data, and the historical behavior data includes multiple historical track information and the verification method corresponding to each historical track information, and the verification method includes NFC verification and QR code verification; if the verification method corresponding to the determined current track information is QR code verification, step S210 can be executed; if the verification method corresponding to the determined current track information is NFC verification, step S210 is not executed to avoid the inability to use the mobile terminal to complete NFC verification after the subsequent steps. The implementation is described in detail below.
[0052] The mobile terminal obtains the current time information by directly obtaining the current time on the mobile terminal or by obtaining the network time as the current time information through the network. Of course, in a specific implementation, there are many other ways to obtain the current time information of the mobile terminal, which are not limited here.
[0053] The mobile terminal can obtain the current location information through a positioning module, such as a GPS (Global Positioning System), to determine the current location information. Of course, in a specific implementation, there are many other ways to obtain the current location information of the mobile terminal, which are not limited here.
[0054] Optionally, the mobile terminal can obtain the current trajectory information at intervals of specified duration, thereby executing subsequent steps to determine whether to execute step S210 at a certain frequency. For example, the current trajectory information of the mobile terminal can be obtained every 5 minutes or 8 minutes; the mobile terminal can also obtain the time information and location information of the terminal device in real time.
[0055] In this embodiment, the mobile terminal can record the current trajectory information and the verification method used this time (i.e., the verification method corresponding to the trajectory information) each time it detects that it is in a verification scene, to form historical behavior data. After the user uses the mobile terminal for verification scenes multiple times, the mobile terminal can record multiple historical trajectory information and the verification method corresponding to each historical trajectory information. After the mobile terminal records the historical behavior data, it can cluster according to the multiple historical trajectory information, so that the historical trajectory information can be clustered into multiple categories, and according to the verification method corresponding to the historical trajectory information in each category, the verification method corresponding to each category can be determined. The clustering results may include the clustering results corresponding to the historical trajectory information and the verification method corresponding to each category in the clustering results. Among them, the mobile terminal can use a preset clustering algorithm to cluster the historical behavior data. For example, clustering algorithms such as DBScan algorithm and k-means can be used for clustering, and the specific clustering algorithm may not be limited.
[0056] Optionally, the mobile terminal can cluster according to the time dimension and the location dimension based on the time learning and location information in the historical trajectory information, thereby obtaining two clustering results, and determining the verification method corresponding to each category in the two clustering results. When determining the verification method corresponding to the current trajectory information based on the clustering results, the verification method can be determined according to the current time information and the verification method can be determined according to the current location information, and then one of the verification methods can be selected based on the verification methods determined by the two methods.
[0057] Optionally, the result obtained by clustering according to the time dimension can be used as the first clustering result, and the result obtained by clustering according to the location dimension can be used as the second clustering result; based on the first clustering result, the first verification method corresponding to the current time information can be determined; based on the second clustering result, the second verification method corresponding to the current location information can be determined. If the first verification method matches the second verification method, then the verification method corresponding to the current trajectory information is determined to be the first verification method or the second verification method; if the first verification method does not match the second verification method, the number of historical time information whose verification method is the first verification method is determined from the category to which the current time information belongs as the first quantity; the number of historical location information whose verification method is the second verification method is determined from the category to which the current location information belongs as the second quantity; if the first quantity is greater than the second quantity, then the verification method is determined to be the first verification method; if the first quantity is less than the second quantity, then the verification method is confirmed to be the second verification method; if the first quantity is equal to the second quantity, based on the number of times the first verification method is used and the number of times the second verification method is used in the current time period, the verification method with the largest number of uses is obtained from the first verification method and the second verification method as the verification method corresponding to the current trajectory information. In this way, the verification method that may be used this time can be accurately determined.
[0058] Step S220: If it is detected that the usage state of the mobile terminal satisfies a preset state condition, it is determined that the mobile terminal is in a verification scenario, and the preset state condition is determined based on the usage state of the mobile terminal when it is used in the verification scenario.
[0059] In the embodiment of the present application, the mobile terminal may determine in advance that there is a preset state condition based on the usage state of the mobile terminal when it is used in the verification scene. For example, the preset state condition may be determined based on the historical usage state of the mobile terminal when it was previously used in the verification scene. After detecting the current usage state of the mobile terminal, it may be determined whether the detected usage state meets the preset state condition. If the preset state condition is met, it may be determined that the mobile terminal is in the verification scene; otherwise, if the preset state condition is not met, it may be determined that the mobile terminal is not in the verification scene.
[0060] In some embodiments, detecting that the use state of the mobile terminal satisfies a preset state condition may include: detecting that the mobile terminal has rotated when the posture of the mobile terminal satisfies a preset posture condition, and the preset posture condition is determined based on the posture of the mobile terminal when it starts to display the QR code page corresponding to the verification scenario. Among them, since the page management method provided in the embodiment of the present application is mainly aimed at the problem that the user uses the QR code for verification in the verification scenario and the QR code page is blocked, the QR code verification scenario can be determined, that is, the situation when the mobile terminal starts to display the QR code page corresponding to the verification scenario is determined according to the above preset posture condition, and when the rotation is detected in this situation, it is determined that it is in the verification scenario of the QR code verification, and the subsequent steps are performed to avoid the displayed QR code from being blocked.
[0061] It can be understood that when the user opens the QR code verification (i.e., when the QR code page starts to be displayed), the mobile terminal is generally held vertically, and the screen of the mobile terminal is facing the user. At this time, the tilt angle of the mobile terminal is usually between 0° and 90° (0° is defined as the mobile terminal being placed horizontally with the screen facing upward, and 90° is defined as the mobile terminal being placed vertically with the screen facing the user). After the QR code page is displayed, the user needs to rotate the mobile terminal so that the screen of the mobile terminal is facing the QR code reader to complete the QR code verification. Based on this, the usage status of the mobile terminal in the previous process of using the mobile terminal for QR code verification can be obtained, and the user can obtain the user's preferred usage status. By performing feature analysis on the above usage status, some rules can be obtained. When the QR code page starts to be displayed, the posture of the mobile terminal can be traced, including the angle range of the mobile terminal, the vertical holding posture, etc. Then, when the QR code is scanned, there will be an action of rotating the mobile terminal, but the posture after the mobile terminal is finally rotated is diverse; therefore, the posture of the mobile terminal when the QR code page starts to be displayed can be used as the initial state, and the action of rotating the mobile terminal can be used as a trigger to determine that the current mobile terminal is in the verification scenario of the QR code verification, that is, when the preset posture conditions are met, the rotation of the mobile terminal is detected.
[0062] Of course, in the above implementation, before the rotation is detected, in addition to the posture of the mobile terminal satisfying the preset posture condition, its screen state may also satisfy the screen-on state, and the holding state may also be the vertical holding state.
[0063] For example, please also refer to Figure 3 , Figure 4 and Figure 5 , through the page management method provided by the embodiment of the present application, such as Figure 3 As shown, when the user starts to display the QR code page 101 by operating the mobile terminal 100, it can be detected that the posture of the mobile terminal 100 meets the preset posture condition; then, as shown in FIG. Figure 3As shown, when the user uses the QR code page 101 for verification, the user will carry the mobile terminal 100 and rotate it so that the QR code page 101 faces outward. At this time, the mobile terminal 100 can detect that the mobile terminal 100 is in the verification scene, and obtain the interface display state. When the interface display state is a state where the QR code page 101 is displayed, the NFC verification page is prohibited from popping up; as shown in FIG. Figure 5 As shown, when the user brings the mobile terminal 100 close to the card reading device 200, the problem of the QR code page being blocked will not occur, and the normal use of the QR code verification function can be effectively guaranteed.
[0064] Step S230: when it is detected that the mobile terminal is in the verification scenario, the interface display state of the mobile terminal is obtained.
[0065] Step S240: If the interface display state is a state of displaying a QR code page, then the pop-up of the near field communication NFC verification page is prohibited.
[0066] In the embodiment of the present application, step S230 and step S240 may refer to the contents of other embodiments and will not be described in detail here.
[0067] The page management method provided in the embodiment of the present application detects the use status of the mobile terminal, and when it is detected that the use status meets the preset state condition, determines that the mobile terminal is in the verification scene, thereby obtaining the interface display state of the mobile terminal, and if the interface display state is a state of displaying a QR code page, the pop-up of the near field communication NFC verification page is prohibited. In this way, it is possible to accurately detect the verification scene in which the user may use the QR code for verification, and accurately control the verification page, so as to prevent the NFC verification page from automatically popping up when the mobile terminal is used in the verification scene and displays the QR code, thereby avoiding affecting the use of the verification function of the mobile terminal, and ensuring the normal use of the verification function of the mobile terminal.
[0068] See also Figure 6 , Figure 6 A schematic diagram of a page management method according to another embodiment of the present application is shown. The page management method is applied to the above mobile terminal. Figure 6 The process shown is described in detail, and the page management method may specifically include the following steps:
[0069] Step S310: If the field strength of the external NFC device is detected, it is determined that the mobile terminal is in a verification scenario.
[0070] In the embodiment of the present application, the mobile terminal usually pops up the NFC verification page when it detects the presence of an external NFC device in the current environment and detects that the mobile terminal is close to the external NFC device. Therefore, it can also be determined that the mobile terminal is in the verification scene when the field strength (magnetic field strength) of the external NFC device is detected. In this way, it is determined that the mobile terminal is in the verification scene, and by obtaining the interface display state of the mobile terminal, and if the interface display state is a state where a QR code page is displayed, the near field communication NFC verification page is prohibited from popping up, so that when the user uses the mobile terminal for verification, the displayed QR code page may be blocked by the NFC verification page, and the NFC verification page is prohibited from popping up, so as to ensure the normal use of the QR code verification.
[0071] In some embodiments, the mobile terminal may be provided with an NFC antenna of an NFC module, and the NFC antenna may be used to detect the field strength of an external NFC device. For example, the NFC antenna may be a rectangular coil, which may be regarded as four segments of current-carrying straight wires. By using the differential element method in electromagnetic field theory, the magnetic field generated by the current on each segment of the straight wire may be calculated separately, and the magnetic strength at any position in the external space may be obtained by integration and superposition.
[0072] In some embodiments, in some scenarios, the user may carry the mobile terminal in a scenario where an external NFC device exists, but may not perform a verification scenario. In order to avoid unnecessary power consumption caused by subsequent steps, the mobile terminal may be determined to be in a verification scenario only when the field strength of the external NFC device is detected and the detected field strength is greater than a preset threshold. It can be understood that since in the near field area, the farther away from the radiation source, the greater the field strength attenuation, therefore, when the field strength of the external NFC device is detected, but the field strength is not greater than the preset threshold, it means that the mobile terminal is far away from the external NFC device, and the user is unlikely to use the mobile terminal for verification at this time. Therefore, when the field strength of the external NFC device is detected and the detected field strength is greater than the preset threshold, it means that the user is likely to use the mobile terminal to approach the NFC device for verification, and in order to avoid the pop-up NFC verification page when the user approaches the NFC device to use the QR code for verification, resulting in the displayed QR code page being blocked, the subsequent steps can be performed to ensure the normal QR code verification. Among them, the preset threshold can be smaller than the set threshold for automatically popping up the NFC verification page when the mobile terminal is close to the NFC device. That is to say, the above preset threshold is used to determine that the mobile terminal is not very far away from the external NFC device, but the distance from the external NFC device is not enough to trigger the automatic pop-up of the NFC verification page.
[0073] In a possible implementation, since there is an external NFC device in the current environment, the user may want to use NFC verification, and by obtaining the detection interface display state and determining whether it is a state where a QR code page is displayed, the NFC verification page display will be delayed. Therefore, the mobile terminal can pop up the NFC verification page when the field strength of the external NFC device is detected. In this case, as long as the user carries the mobile terminal and just enters the field strength that can detect the external NFC device, if the user needs to use the QR code for verification this time, the user will manually switch to the QR code page through operation, and when the field strength of the external NFC device is detected to be greater than the preset threshold, it will be determined that the mobile terminal is in the verification scene, and subsequent steps will be performed to avoid the displayed QR code page being blocked and causing the QR code verification to be unable to be used normally; if the user needs to use the QR code for verification this time, it will not be manually switched to the QR code page through operation, so even if the field strength of the external NFC device is detected to be greater than the preset threshold, the interface display state is detected, and it is determined whether it is a state where a QR code page is displayed, it will not cause the NFC verification page to be delayed, thereby not increasing the delay of NFC card verification.
[0074] Step S320: when it is detected that the mobile terminal is in the verification scenario, the interface display state of the mobile terminal is obtained.
[0075] Step S330: If the interface display state is a state of displaying a QR code page, then the pop-up of the near field communication NFC verification page is prohibited.
[0076] In the embodiment of the present application, step S320 and step S330 may refer to the contents of other embodiments and will not be described in detail here.
[0077] The page management method provided in the embodiment of the present application detects the field strength of the external NFC device in the environment where the mobile terminal is located, and when the field strength of the external NFC device is detected, it is determined that the mobile terminal is in a verification scenario, so as to obtain the interface display state of the mobile terminal, and if the interface display state is a state where a QR code page is displayed, the pop-up page of the near field communication NFC verification is prohibited. In this way, it is possible to accurately detect the verification scenarios in which the user may use the mobile terminal for verification, and accurately control the verification page, so as to prevent the NFC verification page from automatically popping up when the mobile terminal is used in the verification scenario and displays the QR code, thereby avoiding affecting the use of the verification function of the mobile terminal, and ensuring the normal use of the verification function of the mobile terminal.
[0078] See also Figure 7 , Figure 7A schematic diagram of a page management method provided by another embodiment of the present application is shown. The page management method is applied to the above mobile terminal. Figure 7 The process shown is described in detail, and the page management method may specifically include the following steps:
[0079] Step S410: when it is detected that the mobile terminal is in a verification scenario, obtaining the interface display state of the mobile terminal.
[0080] In the embodiment of the present application, step S410 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0081] Step S420: If the interface display state is a state of displaying a QR code page, a designated system broadcast is issued, and the designated system broadcast is used to instruct the NFC module to prohibit the pop-up of the NFC verification page.
[0082] In an embodiment of the present application, when the mobile terminal detects that it is in a verification scenario, after acquiring the interface display state of the mobile terminal, if it is determined that the interface display state is a state in which a QR code page is displayed, the pop-up NFC verification page can be prohibited to avoid the QR code page displayed when the mobile terminal is close to the card reader being covered by the pop-up NFC verification page, resulting in the failure of the QR code verification. Specifically, when the pop-up NFC verification page is prohibited, a designated system broadcast can be issued to instruct the NFC module to prohibit the pop-up NFC verification page. The NFC module refers to a software module that manages NFC in the mobile terminal. When it is detected that it is close to a device with an NFC card reading function, the NFC module can automatically pop up the NFC verification page. By sending a designated system broadcast to the NFC module, the NFC module can prevent the NFC verification page from popping up, thereby ensuring the normal use of the QR code verification.
[0083] Among them, in the Android system, broadcasting is one of the four important components of Android, and is mainly used for Android applications to send and receive broadcast messages with the Android system and other Android applications. Broadcasting refers to the broadcast sent by the broadcast sender, which is used to transmit information between the broadcast sender and the broadcast receiver. For example, the broadcast can be on / off screen, network status switching, phone broadcast, etc. The broadcast sender is the system or application that sends the broadcast, and the broadcast receiver is the system or application that has registered for the broadcast, which is used to receive the broadcast and handle related services. Applications can include software, programs, components, etc.; broadcast receivers can register for broadcasts dynamically or statically, which is not limited here. In the embodiment of the present application, the broadcast sender refers to the system, and the broadcast receiver refers to the above NFC module.
[0084] When sending the above specified system broadcast, the specified system broadcast can be sent to the broadcast management module, such as the activity management service (ActivityManagerService), by calling the broadcast sending function, such as the sendBroadcast function. After receiving the specified system broadcast, the broadcast management module can put the specified system broadcast into the broadcast sending queue, and then send it to the above NFC module through the process communication mechanism.
[0085] In an embodiment of the present application, if the interface display state is a state of displaying a QR code page, the designated system broadcast is not sent to ensure that when the mobile terminal is close to an external NFC device, the NFC verification page can be automatically popped up normally to ensure the normal use of NFC verification.
[0086] The page management method provided in the embodiment of the present application obtains the interface display status of the mobile terminal when it is detected that the mobile terminal is in a verification scenario. If the interface display status is a state where a QR code page is displayed, a specified system broadcast can be issued to instruct the NFC module to prohibit popping up the NFC verification page, thereby avoiding affecting the use of the QR code verification function of the mobile terminal. When the QR code page is not displayed, the above specified system broadcast is not issued, thereby ensuring the normal use of NFC verification.
[0087] See also Figure 8 , Figure 8 A schematic diagram of a page management method provided by another embodiment of the present application is shown. The page management method is applied to the above mobile terminal. Figure 8 The process shown is described in detail, and the page management method may specifically include the following steps:
[0088] Step S510: when it is detected that the mobile terminal is in a verification scenario, obtaining the interface display state of the mobile terminal.
[0089] In the embodiment of the present application, step S510 can refer to the contents of the aforementioned embodiment and will not be described again here.
[0090] Step S520: If the interface display state is a state of displaying a QR code page, the NFC module is controlled to be in a closed state.
[0091] In an embodiment of the present application, when the mobile terminal detects that it is in a verification scenario, after obtaining the interface display state of the mobile terminal, if it is determined that the interface display state is a state in which a QR code page is displayed, the pop-up NFC verification page can be prohibited to avoid the QR code page displayed when the mobile terminal is close to the card reader device being covered by the pop-up NFC verification page, resulting in the failure of the QR code verification. Specifically, when the pop-up NFC verification page is prohibited, the NFC module can be controlled to be in a closed state. The NFC module refers to a software module for managing NFC in the mobile terminal. When it is detected that it is close to a device with an NFC card reading function, the NFC module can automatically pop up the NFC verification page. By sending a designated system broadcast to the NFC module, the NFC module can not pop up the NFC verification page, thereby ensuring the normal use of the QR code verification. By turning off the NFC module, even if it is detected that the mobile terminal is close to an external device with an NFC card reading function, the NFC verification page will not be automatically popped up, thereby ensuring the normal use of the QR code verification.
[0092] In an embodiment of the present application, if the interface display state is a state of displaying a QR code page, the NFC module is not controlled to be in a closed state to ensure that when the mobile terminal is close to an external NFC device, the NFC verification page can be automatically popped up normally to ensure the normal use of NFC verification.
[0093] The page management method provided in the embodiment of the present application obtains the interface display state of the mobile terminal when it is detected that the mobile terminal is in a verification scenario. If the interface display state is a state where a QR code page is displayed, the NFC module can be controlled to be in a closed state to avoid the NFC verification page from popping up automatically and blocking the displayed QR code page, thereby avoiding affecting the use of the QR code verification function of the mobile terminal. When the QR code page is not displayed, the NFC module is not controlled to be in a closed state, thereby ensuring the normal use of NFC verification.
[0094] See also Fig. 9 , which shows a structural block diagram of a page management device 400 provided in an embodiment of the present application. The page management device 400 applies the above-mentioned mobile terminal, and the page management device 400 includes: a state acquisition module 410 and a page prohibition module 420. The state acquisition module 410 is used to obtain the interface display state of the mobile terminal when it is detected that the mobile terminal is in a verification scenario; the page prohibition module 420 is used to prohibit the pop-up of the near field communication NFC verification page if the interface display state is a state of displaying a QR code page.
[0095] In some implementations, the page management device 400 may further include a state detection module and a scene detection module. The state detection module is used to detect the use state of the mobile terminal before acquiring the interface display state of the mobile terminal when the mobile terminal is detected to be in the verification scene; the scene detection module is used to determine that the mobile terminal is in the verification scene if the use state of the mobile terminal is detected to meet a preset state condition, and the preset state condition is determined based on the use state of the mobile terminal when it is used in the verification scene.
[0096] In a possible implementation, the scene detection module may be specifically used to detect that the mobile terminal has rotated when the posture of the mobile terminal satisfies a preset posture condition, wherein the preset posture condition is determined based on the posture of the mobile terminal when it starts to display the QR code page corresponding to the verification scene.
[0097] In a possible implementation, the state detection module may be specifically configured to: detect the use state of the mobile terminal when the mobile terminal runs an application corresponding to the verification scenario.
[0098] In some implementations, the page management device 400 may further include a scene detection module. The scene detection module is used to determine that the mobile terminal is in the verification scene if the field strength of the external NFC device is detected before acquiring the interface display state of the mobile terminal when the mobile terminal is detected to be in the verification scene.
[0099] In a possible implementation, the scene detection module may be specifically configured to: if the field strength of an external NFC device is detected and the field strength is greater than a preset threshold, determine that the mobile terminal is in a verification scene.
[0100] In some implementations, the page management device 400 may further include an interface pop-up module. The interface pop-up module is used to, after obtaining the interface display state of the mobile terminal when detecting that the mobile terminal is in the verification scenario, pop up a near field communication NFC verification page if the interface display state is a state where no QR code page is displayed.
[0101] In some implementations, the page prohibition module 420 may be specifically used to: if the interface display state is a state of displaying a QR code page, issue a specified system broadcast, wherein the specified system broadcast is used to instruct the NFC module to prohibit popping up the NFC verification page.
[0102] In some implementations, the page prohibition module 420 may be specifically configured to: if the interface display state is a state where a QR code page is displayed, control the NFC module to be in a closed state.
[0103] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0104] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0105] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0106] In summary, the solution provided by the present application obtains the interface display state of the mobile terminal when the mobile terminal is detected to be in the verification scene. If the interface display state is a state where a QR code page is displayed, the pop-up page of the near field communication NFC verification is prohibited. In this way, accurate control of the verification page can be achieved, and the NFC verification page is prevented from automatically popping up when the mobile terminal is used in the verification scene and the QR code is displayed, thereby avoiding affecting the use of the verification function of the mobile terminal and ensuring the normal use of the verification function of the mobile terminal.
[0107] Please refer to Fig.10 , which shows a structural block diagram of a mobile terminal provided in an embodiment of the present application. The mobile terminal 100 may be a portable device such as a smart phone, a tablet computer, a smart watch, an e-book, etc. that can run applications. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
[0108] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire mobile terminal 100, and executes various functions and processes data of the mobile terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.
[0109] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the mobile terminal 100 during use.
[0110] Please refer to Fig.11 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0111] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A page management method, characterized in that: Applied to a mobile terminal, the method comprises: Acquire current track information of the mobile terminal, where the current track information includes current time information and current location information; Determine, according to the clustering result corresponding to the historical behavior data, a verification method corresponding to the current trajectory information, wherein the historical behavior data includes multiple historical trajectory information and a verification method corresponding to each historical trajectory information, wherein the verification method includes NFC verification and QR code verification; If the verification method corresponding to the current trajectory information is QR code verification, detecting the usage status of the mobile terminal; If it is detected that the usage state of the mobile terminal satisfies a preset state condition, determining that the mobile terminal is in a verification scenario, wherein the preset state condition is determined based on the usage state of the mobile terminal when it is used in the verification scenario; When detecting that the mobile terminal is in a verification scenario, obtaining an interface display state of the mobile terminal; If the interface display state is a state of displaying a QR code page, popping up a near field communication NFC verification page is prohibited.
2. The method according to claim 1, characterized in that The detecting that the use state of the mobile terminal meets a preset state condition includes: When the posture of the mobile terminal satisfies a preset posture condition, it is detected that the mobile terminal has rotated, and the preset posture condition is determined based on the posture of the mobile terminal when it starts to display the QR code page corresponding to the verification scenario.
3. The method according to claim 1, characterized in that: The detecting the usage status of the mobile terminal includes: In a case where the mobile terminal runs an application corresponding to the verification scenario, a usage status of the mobile terminal is detected.
4. The method according to claim 1, characterized in that: Before acquiring the interface display state of the mobile terminal when detecting that the mobile terminal is in the verification scenario, the method further includes: If the field strength of the external NFC device is detected, it is determined that the mobile terminal is in a verification scenario.
5. The method according to claim 4, characterized in that If the field strength of the external NFC device is detected, determining that the mobile terminal is in a verification scenario includes: If the field strength of the external NFC device is detected and the field strength is greater than a preset threshold, it is determined that the mobile terminal is in a verification scenario.
6. The method according to claim 1, characterized in that After acquiring the interface display state of the mobile terminal in the case where it is detected that the mobile terminal is in the verification scenario, the method further includes: If the interface display state is a state where no QR code page is displayed, a near field communication NFC verification page pops up.
7. The method according to any one of claims 1 to 6, characterized in that: If the interface display state is a state where a QR code page is displayed, prohibiting a near field communication NFC verification page from popping up includes: If the interface display state is a state of displaying a QR code page, a designated system broadcast is issued, and the designated system broadcast is used to instruct the NFC module to prohibit the pop-up of the NFC verification page.
8. The method according to any one of claims 1 to 6, characterized in that: If the interface display state is a state where a QR code page is displayed, prohibiting a near field communication NFC verification page from popping up includes: If the interface display state is a state of displaying a QR code page, the NFC module is controlled to be in a closed state.
9. A page management device, characterized in that: Applied to a mobile terminal, the device comprises: a state detection module, a scene detection module, a state acquisition module and a page prohibition module, wherein: The state detection module is used to obtain the current trajectory information of the mobile terminal, the current trajectory information includes current time information and current location information; determine the verification method corresponding to the current trajectory information according to the clustering result corresponding to the historical behavior data, the historical behavior data includes multiple historical trajectory information and the verification method corresponding to each historical trajectory information, the verification method includes NFC verification and QR code verification; if the verification method corresponding to the current trajectory information is QR code verification, then detect the use status of the mobile terminal; The scene detection module is used to determine that the mobile terminal is in the verification scene if it is detected that the usage state of the mobile terminal meets a preset state condition, wherein the preset state condition is determined based on the usage state of the mobile terminal when it is used in the verification scene; The state acquisition module is used to acquire the interface display state of the mobile terminal when detecting that the mobile terminal is in the verification scenario; The page prohibition module is used to prohibit the pop-up of the near field communication NFC verification page if the interface display state is a state of displaying a QR code page.
10. A mobile terminal, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 8.
