Login account switching method and device, equipment and storage medium
By monitoring geofencing events and automatically switching user accounts, the problem of cumbersome switching of multi-user accounts in mobile devices is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202311619929.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2025-05-30
AI Technical Summary
Existing mobile devices are cumbersome to operate when switching multi-user accounts, and have poor user experience.
By listening to geofencing events, the user account corresponding to the target geofen entered by the mobile device is automatically determined, and the current login account is automatically switched to the target user account.
It realizes that mobile devices automatically switch user accounts between different geofencing areas, simplifies operational processes and improves user experience.
Smart Images

Figure CN120074845A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of mobile terminals, and in particular, to a method, apparatus, device, and storage medium for switching login accounts. Background Art
[0002] With the development of science and technology, mobile electronic devices are used more and more widely and have more and more functions, and have become one of the essential tools in people's daily lives.
[0003] The multi-user mode is similar to the function of the mobile phone system clone. Different from the application clone, this mode can have multiple systems on one device. Each identity has a corresponding system space, and the files, application data, etc. between them are independent of each other and do not interfere with each other. In the multi-user mode, multiple sub-users can be added to the system (the system defaults to adding one guest), and each user is equivalent to an independent mobile phone system.
[0004] Currently, mobile devices have entered the era of multi-user mode, that is, mobile devices can switch between multiple user accounts. When a mobile device switches and logs in to multiple user accounts, the user needs to manually click to switch the multi-user account and then select the target account for switching. The operation process is cumbersome and the user experience is poor. Summary of the Invention
[0005] The present disclosure provides a method, apparatus, device, and storage medium for switching login accounts, so as to at least solve the problem that the existing multi-user account switching operation process is cumbersome and the user experience is poor.
[0006] The technical solution of the present disclosure is as follows:
[0007] An embodiment of the present disclosure provides a method for switching login accounts, including:
[0008] Monitoring a geofence event;
[0009] When it is monitored that the mobile device enters the target geofence event, determining a target user account corresponding to the target geofence;
[0010] Switching the currently logged-in account of the mobile device to the target user account.
[0011] Optionally, after switching the currently logged-in account of the mobile device to the target user account, the method further includes:
[0012] When it is monitored that the mobile device leaves the target geofence event, switching the target user account of the mobile device to the default user account.
[0013] Optionally, the determining a target user account corresponding to the target geofence includes:
[0014] Query the mapping relationship table between the geofence and the user account according to the target geofence to obtain the target user account.
[0015] Optionally, before using the mapping relationship table, the method further includes:
[0016] For the first user account, in response to a geofence configuration operation, configure a first geofence for the first user account, where the first user account is any logged-in account of the mobile device;
[0017] Determine whether the first geofence overlaps with the already configured geofences;
[0018] In the case where the first geofence does not overlap with the already configured geofences, establish an association relationship between the first user account and the first geofence.
[0019] Optionally, the method further includes:
[0020] In the case where the first geofence overlaps with the already configured geofences, display a reselect fence message for configuring a second geofence for the first user account according to the reselect fence message.
[0021] Optionally, the method further includes:
[0022] During the startup process of the mobile device, in the case where it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence where the mobile device is located cannot be determined, set the logged-in account of the mobile device as the default user account.
[0023] The embodiments of the present disclosure further provide a login account switching device, including:
[0024] A monitoring module for monitoring geofence events;
[0025] A determination module for determining the target user account corresponding to the target geofence in the case where a mobile device enters a target geofence event is monitored;
[0026] A switching module for switching the current logged-in account of the mobile device to the target user account.
[0027] Optionally, after the switching module switches the current logged-in account of the mobile device to the target user account, it can also be used for:
[0028] In the case where a mobile device leaves a target geofence event is monitored, switch the target user account of the mobile device to the default user account.
[0029] Optionally, when determining the target user account corresponding to the target geofence, the determining module is configured to:
[0030] Query a mapping relationship table between geofences and user accounts according to the target geofence to obtain the target user account.
[0031] Optionally, before using the mapping relationship table, the determining module is further configured to:
[0032] For a first user account, in response to a geofence configuration operation, configure a first geofence for the first user account, where the first user account is any logged-in account of the mobile device;
[0033] Determine whether the first geofence overlaps with the already configured geofences;
[0034] In a case where the first geofence does not overlap with the already configured geofences, establish an association relationship between the first user account and the first geofence.
[0035] Optionally, the determining module is further configured to:
[0036] In a case where the first geofence overlaps with the already configured geofences, display a reselect fence message, so that a second geofence can be configured for the first user account according to the reselect fence message.
[0037] Optionally, the determining module is further configured to:
[0038] During the startup process of the mobile device, in a case where it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence where the mobile device is located cannot be determined, set the logged-in account of the mobile device as the default user account.
[0039] An embodiment of the present disclosure further provides an electronic device, including:
[0040] A processor;
[0041] A memory for storing executable instructions of the processor;
[0042] Wherein, the processor is configured to execute the instructions to implement the steps in the above method.
[0043] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are implemented.
[0044] Embodiments of the present disclosure also provide a computer program product, including computer programs / instructions, which, when executed by a processor, implement the steps in the above-mentioned method.
[0045] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:
[0046] In some embodiments of the present disclosure, the mobile device automatically monitors geofence events; when the mobile device monitors that it enters a target geofence event, it determines a target user account corresponding to the target geofence; automatically switches the currently logged-in account of the mobile device to the target user account; based on the geofences monitored by the mobile device, automatically performs user account switching, and the user is unaware of the account switching operation, improving the convenience of account switching and enhancing the user experience.
[0047] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure and do not constitute an improper limitation to the present disclosure.
[0049] Figure 1 It is a schematic flowchart of a method for switching login accounts provided by an exemplary embodiment of the present disclosure;
[0050] Figure 2 It is a schematic diagram of geofence entry and exit events provided by an exemplary embodiment of the present disclosure;
[0051] Figure 3 It is a schematic diagram of multi-user account switching during the boot process provided by an exemplary embodiment of the present disclosure;
[0052] Figure 4 It is a schematic diagram of multi-user account switching during normal use provided by an exemplary embodiment of the present disclosure;
[0053] Figure 5 It is a schematic structural diagram of a device for switching login accounts provided by an exemplary embodiment of the present disclosure;
[0054] Figure 6 It is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0055] In order to enable those of ordinary skill in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0056] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present disclosure are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are only examples of devices and methods consistent with some aspects of the present disclosure.
[0057] It should be noted that the user information involved in the present disclosure includes, but is not limited to: user device information and user personal information; the collection, storage, use, processing, transmission, provision and disclosure of user information in the present disclosure and other processing are all in line with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0058] With the development of electronic communication technology, mobile devices such as mobile phones and tablets have gradually entered thousands of households and become one of the necessities in people's lives.
[0059] Based on the actual needs of mobile devices during user use, more and more mobile devices support the multi-user mode. Users have gradually begun to create multiple user accounts on mobile devices for use in different scenarios. For example, many users will add a work account on the mobile device to handle work-related matters; add a life account for user life social interaction and other related scenarios; add an entertainment account for playing games and watching dramas. Since the data between multiple user accounts on the mobile device is isolated from each other, it can well ensure that work, life, entertainment, etc. do not affect each other. With multiple user accounts, there is the problem of switching between multiple user accounts. Currently, when a mobile device switches and logs in to multiple user accounts, the user needs to manually click to switch the multiple user accounts and then select the target account for switching. The operation process is cumbersome and the user experience is poor.
[0060] In view of the above technical problems, in some embodiments of the present disclosure, the mobile device automatically monitors geofence events; when the mobile device monitors that the mobile device enters a target geofence event, it determines the target user account corresponding to the target geofence; automatically switches the current logged-in account of the mobile device to the target user account; based on the geofence monitored by the mobile device, automatically performs user account switching, and the user is unaware of the account switching operation, improving the convenience of account switching and the user experience.
[0061] The following will detail the technical solutions provided by the embodiments of the present disclosure with reference to the drawings.
[0062] Figure 1The flowchart of a login account switching method provided by an exemplary embodiment of the present disclosure. As Figure 1 shown, the method includes:
[0063] S101: Monitor geofence events;
[0064] S102: When it is monitored that the mobile device enters the target geofence event, determine the target user account corresponding to the target geofence;
[0065] S103: Switch the current logged-in account of the mobile device to the target user account.
[0066] In this embodiment, the execution subject of the above method may be a mobile device. The present disclosure embodiment does not limit the type of the mobile device. The mobile device includes but is not limited to: mobile phones, tablet computers, laptop computers, smart watches, in-vehicle computers, e-readers, and smart speakers.
[0067] It should be noted that a geofence is a new application based on location services, which is to enclose a virtual geographical boundary with a virtual fence. When the mobile device enters, leaves a certain specific geographical area, or moves within the area, the mobile device can receive automatic notifications and warnings. The geofence can be the boundary and scope of a building, a park, or a community where the mobile device is located, or a virtual circular fence or polygon fence defined according to geographical location data, or a geofence established according to the mobile network status accessed by the mobile device or the accessed wireless WiFi, etc. For example, geofence one can be the community where the user's family is located, and geofence two can be the office building where the user is located, etc.
[0068] Multiple user accounts: For example, the primary user account, work account, life account, entertainment account, etc.
[0069] In this embodiment, the mobile device automatically monitors geofence events; when it is monitored that the mobile device enters the target geofence event, the mobile device determines the target user account corresponding to the target geofence; automatically switches the current logged-in account of the mobile device to the target user account; based on the geofence monitored by the mobile device, automatically performs user account switching, and the user is unaware of the account switching operation, improving the convenience of account switching and enhancing the user experience.
[0070] The following explains the login account switching method of the present disclosure in combination with actual application scenarios.
[0071] Application Scenario 1: The mobile phone automatically monitors geofence events; when it monitors that the mobile phone enters the user's home geofence event, it determines the home user corresponding to the home geofence; automatically switches the currently logged-in account of the mobile phone to the home user; when it monitors that the mobile phone leaves the user's home geofence event, it switches the currently logged-in account of the mobile phone from the home user to the default user account.
[0072] Application Scenario 2: The smartwatch monitors geofence events; when it monitors that the smartwatch enters the gym geofence event, it determines the fitness user corresponding to the gym geofence; automatically switches the currently logged-in account of the smartwatch to the fitness user; when it monitors that the smartwatch leaves the gym geofence event, it switches the currently logged-in account of the smartwatch from the fitness user to the default user account.
[0073] In some embodiments of the present disclosure, the mobile device monitors geofence events. After monitoring that the mobile device enters or leaves a geofence event, it generates an enter geofence instruction or a leave geofence instruction; and sends the enter geofence instruction or the leave geofence instruction to the main system of the mobile device. Among them, the geofence detection algorithm generally runs on the low-power chip of the mobile device, and can continuously monitor the status of the geofence when the mobile device's screen is off or in sleep mode. After the geofence status changes, it will wake up the mobile device by means of a hardware interrupt and report the geofence event to the main system of the mobile device for subsequent login account switching operations.
[0074] In some embodiments of the present disclosure, the mobile device can monitor geofence events by collecting the location of the mobile device and judging whether the mobile device enters or leaves a geofence event based on its location. It can also detect whether it accesses the mobile network corresponding to the geofence. If it detects that it accesses the mobile network corresponding to the geofence, it determines that the mobile device enters the geofence event; if it detects that it disconnects from the mobile network corresponding to the geofence, it determines that the mobile device leaves the geofence event. The above embodiments are only illustrative and do not constitute a limitation to the present disclosure.
[0075] Figure 2 It is a schematic diagram of a geofence entry and exit event provided for an exemplary embodiment of the present disclosure. As Figure 2 shown, after monitoring that the mobile device enters a geofence event, it generates an enter geofence instruction and executes an enter geofence prompt. After monitoring that the mobile device leaves a geofence event, it generates a leave geofence instruction and executes a leave geofence prompt.
[0076] In some embodiments of the present disclosure, it is necessary to first establish a mapping relationship table between user accounts and geographical fences. One achievable way is that, for the first user account, in response to a geographical fence configuration operation, a first geographical fence is configured for the first user account, where the first user account is any logged-in account of the mobile device; determine whether the first geographical fence overlaps with the already configured geographical fences; in the case where the first geographical fence does not overlap with the already configured geographical fences, establish an association relationship between the first user account and the first geographical fence.
[0077] Among them, on the mobile device, the multi-user mode generally includes a primary user account, a default guest user account, and in addition, the user can customize and add multiple multi-user accounts. When the user does not perform multi-user account settings, the mobile device defaults to the primary user account after power-on. The user can enter the multi-user settings page through the mobile device settings page to add custom users or set the primary user or guest user. When the user performs multi-user settings, the user is prompted to add a corresponding geographical fence to each user account. Table 1 below is a schematic diagram of the multi-user account mapping relationship table.
[0078]
[0079]
[0080] In the above embodiments, in order to ensure that a unique user account can be determined through the geographical fence, when the user adds a geographical fence corresponding to the user account, it is judged whether the currently added first geographical fence overlaps with the already configured geographical fences. In the case where the first geographical fence does not overlap with the already configured geographical fences, an association relationship between the first user account and the first geographical fence is established. In the case where the first geographical fence overlaps with the already configured geographical fences, a reselect fence message is displayed, so that according to the reselect fence message, a second geographical fence is configured for the first user account. Among them, the present disclosure embodiments do not limit the implementation form of the reselect fence message, which can be adjusted according to the actual situation. The user can configure a second geographical fence for the first user account according to the reselect fence message to ensure the uniqueness of the user account corresponding to the geographical fence.
[0081] In some embodiments of the present disclosure, when the mobile device monitors an event that the mobile device enters the target geographical fence, the target user account corresponding to the target geographical fence is determined; the current logged-in account of the mobile device is switched to the target user account. When an event that the mobile device leaves the target geographical fence is monitored, the target user account of the mobile device is switched to the default user account.
[0082] Based on the descriptions of the above embodiments, determine the target user account corresponding to the target geofence. One achievable way is to query the mapping relationship table between the geofence and the user account according to the target geofence to obtain the target user account. Optionally, query the mapping relationship table between the identifier of the geofence and the user account according to the identifier of the target geofence to obtain the target user account. Among them, the identifier of the target geofence can be the name of the target geofence or the sequence identifier of the target geofence.
[0083] It should be noted that the user can set the default user account in the setting interface. When the mobile device is not within any set geofence range, it will enter the default user account. The default user account is the primary user account when the user has not set it.
[0084] The following describes the login account switching method of the present disclosure in terms of multi-user account switching during the boot process and multi-user account switching during normal use.
[0085] Figure 3 This is a schematic diagram of multi-user account switching during the boot process provided by an exemplary embodiment of the present disclosure. As Figure 3 shown, during the boot process of the mobile device, before the user interface is loaded, it will first detect whether the mobile device is currently within a certain preset geofence range. If it is within a certain preset geofence range, then according to the identifier of the geofence, confirm the target user account and load the relevant information of the target user account; in the case where it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence cannot be determined based on the third geofence where the mobile device is located, set the login account of the mobile device as the default user account.
[0086] Figure 4 This is a schematic diagram of multi-user account switching during normal use provided by an exemplary embodiment of the present disclosure. As Figure 4 shown, during the normal use process after the user boots up, the present disclosure performs multi-user account switching according to the geofence events reported by the geofence detection algorithm. When the reported event is an event of entering a geofence, then find and obtain the target user account according to the identifier of the geofence, and then switch to the target user account. When the reported event is an event of leaving a geofence, then switch to the default user account. During the switching process, if it is determined that the current user account is the same as the target user account, directly end the current process. Among them, Figure 4 the geofence ID in it is the identifier of the geofence.
[0087] The present disclosure establishes the relationship between a geographical fence and multiple user accounts of a mobile device. Through the geographical fence where the mobile device is located, the target user account can be confirmed, and the currently logged-in account of the mobile device can be switched to the target user account. It is possible to switch multiple user accounts according to the geographical location of the mobile device, and the user is unaware, improving the user experience. Moreover, to ensure the security of the mobile device, the method proposed in the present disclosure does not involve unlocking the user account of the mobile device. After the multi-user account switching is completed, the user can still use fingerprint, face recognition, unlocking password, etc. to unlock and log in as before, without affecting the security of the mobile device.
[0088] In the method embodiment of the present disclosure above, the mobile device automatically monitors geographical fence events; when the mobile device monitors the event that the mobile device enters the target geographical fence, it determines the target user account corresponding to the target geographical fence; automatically switches the currently logged-in account of the mobile device to the target user account; based on the geographical fence monitored by the mobile device, automatically performs user account switching, and the user is unaware of the account switching operation, improving the convenience of account switching and the user experience.
[0089] Figure 5 It is a schematic structural diagram of a login account switching device 50 provided for an exemplary embodiment of the present disclosure. As Figure 5 shown, the login account switching device 50 includes: a monitoring module 51, a determination module 52, and a switching module 53.
[0090] Among them, the monitoring module 51 is used to monitor geographical fence events;
[0091] The determination module 52 is used to determine the target user account corresponding to the target geographical fence when the event that the mobile device enters the target geographical fence is monitored;
[0092] The switching module 53 is used to switch the currently logged-in account of the mobile device to the target user account.
[0093] Optionally, after the switching module 53 switches the currently logged-in account of the mobile device to the target user account, it can also be used to:
[0094] When the event that the mobile device leaves the target geographical fence is monitored, switch the target user account of the mobile device to the default user account.
[0095] Optionally, when the determination module 52 determines the target user account corresponding to the target geographical fence, it is used to:
[0096] Query the mapping relationship table between the geographical fence and the user account according to the target geographical fence to obtain the target user account.
[0097] Optionally, before using the mapping relation table, the determining module 52 can also be used for:
[0098] For the first user account, in response to a geofence configuration operation, configure a first geofence for the first user account, where the first user account is any logged-in account of the mobile device;
[0099] Determine whether the first geofence overlaps with the already configured geofences;
[0100] In the case where the first geofence does not overlap with the already configured geofences, establish an association relationship between the first user account and the first geofence.
[0101] Optionally, the determining module 52 can also be used for:
[0102] In the case where the first geofence overlaps with the already configured geofences, display a reselect fence message for configuring a second geofence for the first user account according to the reselect fence message.
[0103] Optionally, the determining module 52 can also be used for:
[0104] During the startup process of the mobile device, in the case where it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence where the mobile device is located cannot be determined, set the logged-in account of the mobile device as the default user account.
[0105] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.
[0106] Figure 6 Schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. As Figure 6 shown, the electronic device includes: a memory 61 and a processor 62. In addition, the electronic device further includes a power supply component 63 and a communication component 64.
[0107] The memory 61 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of these data include instructions for any application program or method for operating on the electronic device.
[0108] The memory 61 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0109] A communication component 64 for data transmission with other devices.
[0110] A processor 62 that can execute computer instructions stored in a memory 61 for: listening for geofence events; determining a target user account corresponding to a target geofence when it is detected that the mobile device enters a target geofence event; and switching the currently logged-in account of the mobile device to the target user account.
[0111] Optionally, after the processor 62 switches the currently logged-in account of the mobile device to the target user account, it can also be used for:
[0112] When it is detected that the mobile device leaves the target geofence event, switching the target user account of the mobile device to the default user account.
[0113] Optionally, when the processor 62 determines the target user account corresponding to the target geofence, it is used for:
[0114] Querying a mapping relationship table between geofences and user accounts according to the target geofence to obtain the target user account.
[0115] Optionally, before using the mapping relationship table, the processor 62 can also be used for:
[0116] For a first user account, in response to a geofence configuration operation, configuring a first geofence for the first user account, where the first user account is any logged-in account of the mobile device;
[0117] Determining whether the first geofence coincides with the already configured geofences;
[0118] In the case where the first geofence does not coincide with the already configured geofences, establishing an association relationship between the first user account and the first geofence.
[0119] Optionally, the processor 62 can also be used for:
[0120] In the case where the first geofence coincides with the already configured geofences, displaying a reselect fence message for configuring a second geofence for the first user account according to the reselect fence message.
[0121] Optionally, the processor 62 can also be used for:
[0122] During the startup process of the mobile device, when it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence where the mobile device is located cannot be determined, setting the logged-in account of the mobile device to the default user account.
[0123] Accordingly, embodiments of the present disclosure also provide a computer-readable storage medium storing a computer program. When the computer-readable storage medium stores the computer program and the computer program is executed by one or more processors, it causes the one or more processors to execute Figure 1 each step in the method embodiments.
[0124] Accordingly, embodiments of the present disclosure also provide a computer program product. The computer program product includes a computer program / instructions, and the computer program / instructions are executed by a processor Figure 1 for each step in the method embodiments.
[0125] The above Figure 6 The communication component is configured to facilitate communication between the device where the communication component is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on technologies such as Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0126] The above Figure 6 The power component provides power for various components of the device where the power component is located. The power component may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device where the power component is located.
[0127] The above electronic device further includes a display screen and an audio component.
[0128] The display screen includes a screen, and the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operations.
[0129] An audio component that can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC) that is configured to receive external audio signals when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in a memory or transmitted via a communication component. In some embodiments, the audio component further includes a speaker for outputting audio signals.
[0130] In the above embodiments of the device, equipment, storage medium, and computer program product of the present disclosure, the mobile device automatically monitors geofence events; when the mobile device monitors that the mobile device enters a target geofence event, it determines a target user account corresponding to the target geofence; automatically switches the currently logged-in account of the mobile device to the target user account; based on the geofences monitored by the mobile device, automatically performs user account switching, and the user is unaware of the account switching operation, improving the convenience of account switching and enhancing the user experience.
[0131] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of an all-hardware embodiment, an all-software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0132] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0133] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are executed on the computer or other programmable apparatus to generate a computer-implemented process, whereby the instructions executed on the computer or other programmable apparatus provide steps for implementing the functions specified in one process Figure 1 one process or more processes and / or blocks Figure 1 or steps of the functions specified in a block or more blocks.
[0135] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0136] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
[0137] Computer-readable media includes both permanent and non-permanent, removable and non-removable media implemented by any method or technology for storing information. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0138] It should be noted that, in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0139] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for switching login accounts, characterized in that, it includes: monitoring geofence events; when it is monitored that the mobile device enters the target geofence event, determining the target user account corresponding to the target geofence; switching the current login account of the mobile device to the target user account.
2. The method according to claim 1, characterized in that, after switching the current login account of the mobile device to the target user account, the method further includes: when it is monitored that the mobile device leaves the target geofence event, switching the target user account of the mobile device to the default user account.
3. The method according to claim 1, characterized in that, determining the target user account corresponding to the target geofence includes: querying the mapping relationship table between the geofence and the user account according to the target geofence to obtain the target user account.
4. The method according to claim 3, characterized in that, before using the mapping relationship table, the method further includes: for the first user account, in response to the geofence configuration operation, configuring the first geofence for the first user account, where the first user account is any one of the login accounts of the mobile device; determining whether the first geofence coincides with the already configured geofence; when the first geofence does not coincide with the already configured geofence, establishing the association relationship between the first user account and the first geofence.
5. The method according to claim 4, characterized in that, the method further includes: when the first geofence coincides with the already configured geofence, displaying a reselect fence message for configuring the second geofence for the first user account according to the reselect fence message.
6. The method according to claim 1, characterized in that, the method further includes: during the startup process of the mobile device, when it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence where the mobile device is located cannot be determined, setting the login account of the mobile device to the default user account.
7. A login account switching device, characterized in that, it includes: a monitoring module for monitoring geofence events; a determining module for determining the target user account corresponding to the target geofence when it is monitored that the mobile device enters the target geofence event; a switching module for switching the current login account of the mobile device to the target user account.
8. The device according to claim 7, characterized in that, after the switching module switches the current login account of the mobile device to the target user account, it can also be used for: when it is monitored that the mobile device leaves the target geofence event, switching the target user account of the mobile device to the default user account.
9. The device according to claim 7, characterized in that, when the determining module determines the target user account corresponding to the target geofence, it is used for: Query the mapping relationship table between the geofence and the user account according to the target geofence to obtain the target user account.
10. The device according to claim 9, wherein, before using the mapping relationship table, the determining module is further configured to: for a first user account, in response to a geofence configuration operation, configure a first geofence for the first user account, where the first user account is any logged-in account of the mobile device; determine whether the first geofence overlaps with the already configured geofences; in the case that the first geofence does not overlap with the already configured geofences, establish an association relationship between the first user account and the first geofence.
11. The device according to claim 10, wherein, the determining module is further configured to: in the case that the first geofence overlaps with the already configured geofences, display a reselect fence message for configuring a second geofence for the first user account according to the reselect fence message.
12. The device according to claim 7, wherein, the determining module is further configured to: during the startup process of the mobile device, in the case that it is detected that the mobile device is not within the geofence range or the user account corresponding to the third geofence where the mobile device is located cannot be determined, set the logged-in account of the mobile device as the default user account.
13. An electronic device, wherein, comprising: a processor; a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the instructions to implement the steps in the method according to any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps in the method according to any one of claims 1-6 are implemented.
15. A computer program product, comprising a computer program / instructions, wherein, when the computer program / instructions are executed by a processor, the steps in the method according to any one of claims 1-6 are implemented.