CN107995584B - Online state switching method and device - Google Patents

Online state switching method and device Download PDF

Info

Publication number
CN107995584B
CN107995584B CN201610939400.8A CN201610939400A CN107995584B CN 107995584 B CN107995584 B CN 107995584B CN 201610939400 A CN201610939400 A CN 201610939400A CN 107995584 B CN107995584 B CN 107995584B
Authority
CN
China
Prior art keywords
online state
social application
online
mobile terminal
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610939400.8A
Other languages
Chinese (zh)
Other versions
CN107995584A (en
Inventor
殷腾飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610939400.8A priority Critical patent/CN107995584B/en
Publication of CN107995584A publication Critical patent/CN107995584A/en
Application granted granted Critical
Publication of CN107995584B publication Critical patent/CN107995584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an online state switching method and device, and belongs to the technical field of networks. The method comprises the following steps: acquiring real-time positioning information of a designated mobile terminal, wherein the designated mobile terminal is a mobile terminal logged in by a social application user; acquiring a target online state of the social application user according to online state configuration information of the social application user, wherein the online state configuration information is used for indicating a corresponding relation between the position of the mobile terminal and the online state, and the target online state is an online state corresponding to the real-time positioning information; and switching the current online state of the social application user to the target online state. The invention improves the intelligence of online state switching and greatly improves the accuracy of the online state displayed by the social application.

Description

Online state switching method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to an online status switching method and apparatus.
Background
With the development of network technology, the functions of social applications become more and more powerful, which not only can provide information interaction functions for social application users, but also can provide online state display functions for social application users.
The online status is the most direct basis for determining the current behavior status of a social application user, for example: "online," "away," "busy," etc., so that friends of the social application user can learn the behavior state of the social application user from the displayed online status. These presence states support manual switching and automatic switching, where automatic switching is typically based on social application user operations on the terminal, such as: if any operation behavior of the terminal by the user is not detected within a period of time, the online state can be switched from "online" to "away", and the like.
However, the above online states supporting both manual switching and automatic switching are online states predefined by applications, and the information that can be presented is very limited, and cannot meet the personalized requirements of users. Therefore, the social application supports the user-defined online state in addition to the online state predefined by the application, so that the social application user can set the user-defined online state according to the self-requirement.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
at present, whether switching between the customized online states or between the customized online states and the online states predefined by the application can be realized only through manual switching. The manual switching mode can be realized only by intervention of the social application user, the switching operation cost is high, the intelligence is poor, and if the social application user does not switch the online state in time, the online state is inaccurate, so that the accuracy of the online state displayed by the social application is low.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide an online status switching method and apparatus. The technical scheme is as follows:
the embodiment of the invention provides an online state switching method, which comprises the following steps:
acquiring real-time positioning information of a designated mobile terminal, wherein the designated mobile terminal is a mobile terminal logged in by a social application user; acquiring a target online state of the social application user according to online state configuration information of the social application user, wherein the online state configuration information is used for indicating a corresponding relation between the position of the mobile terminal and the online state, and the target online state is an online state corresponding to the real-time positioning information; and switching the current online state of the social application user to the target online state.
The embodiment of the invention also provides an online state switching device, which comprises:
the system comprises a position acquisition module, a positioning module and a positioning module, wherein the position acquisition module is used for acquiring real-time positioning information of a specified mobile terminal, and the specified mobile terminal is a mobile terminal logged in by a social application user;
the online state acquisition module is used for acquiring a target online state of the social application user according to online state configuration information of the social application user, wherein the online state configuration information is used for indicating a corresponding relation between the position of the mobile terminal and the online state, and the target online state is an online state corresponding to the real-time positioning information;
and the state switching module is used for switching the current online state of the social application user to the target online state.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
by acquiring the real-time position of the appointed mobile terminal and switching the user-defined online states based on the real-time position, the switching between the user-defined online states and the application predefined online states can be automatically executed, manual intervention of a social application user is not needed, the operation cost is reduced, and the switching intelligence is improved. The real-time position accuracy of the designated mobile terminal is high, and the real situation of the social application user can be reflected, so that the online state switching method based on the real-time position can enable the conformity between the display of the user-defined online state and the real situation to be higher, and the accuracy of the online state displayed by the social application is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
fig. 2 is a flowchart of an online status switching method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a state settings menu of a social application client;
FIG. 4A is a schematic view of a first online status setup interface;
FIG. 4B is a schematic diagram of a region to be selected in the first online status setting interface;
FIG. 5A is a schematic view of a second online status setup interface;
FIG. 5B is a schematic view of another second online status setting interface;
fig. 6 is a schematic flowchart of a process for determining whether to switch an online status according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of an online status switching according to an embodiment of the present invention;
fig. 8A is a schematic diagram illustrating switching of an online status according to an embodiment of the present invention;
FIG. 8B is a diagram illustrating an embodiment of switching between online states;
fig. 8C is a schematic flow chart of an online status switching according to an embodiment of the present invention;
fig. 8D is a flowchart illustrating an online status switching method according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of an online status switching apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
FIG. 11 is a block diagram illustrating a presence switch device 1100 in accordance with an exemplary embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the invention. Referring to fig. 1, the implementation environment may include a plurality of terminals 101 and a social application server 102;
the plurality of terminals 101 may be installed with social application clients, so that data interaction can be performed between the social application clients and the social application server 102 to implement message interaction in the form of text messages, multimedia messages, and the like, and information publishing functions such as publishing personal presentation information and publishing log information can be performed through the social application clients.
Of course, the plurality of terminals 101 may include a mobile terminal and a fixed terminal, and any one of the terminals, especially the mobile terminal, may be configured with a Global Positioning System (GPS) Positioning device to obtain the geographic Location information (e.g., longitude and latitude information, etc.) of the terminal itself, so that the geographic Location information can be provided to various application clients installed on the terminal, so as to implement Location Based Service (LBS).
For the social application, multiple terminals 101 may be allowed to log in to a user account of the same social application at the same time, for example, for the instant messaging application, the terminals may log in to a mobile phone and a computer at the same time, and receive and send messages at the same time.
The social application server 102 is a server that provides services for users of the terminal 101 through a social application client, and the social application server 102 has services for data transmission between users and information publishing for users logged in by the terminal 101.
The social application server 102 is further configured with a social relationship chain database, a user profile database, a user history information database, etc. for providing storage and maintenance of the social relationship chain, the user profile, history information, etc. for the user.
For the social application server 102, when any social application user logs in through a social application client installed in a terminal, the social application server 102 may determine a terminal type (such as a mobile terminal or a fixed terminal) of the terminal according to data such as login information (for example, client version information or terminal information).
Fig. 2 is a flowchart of an online status switching method according to an embodiment of the present invention. Referring to fig. 2, the method may be implemented by a terminal and a social application server through interaction, and the embodiment specifically includes:
201. and the social application server generates online state configuration information of the social application user through an online state setting interface and the operation of the social application user on the online state setting interface, wherein the online state configuration information is used for indicating the corresponding relation between the position of the mobile terminal and the online state.
For the social application server, an online status setting interface can be provided through the social application client to provide the social application user with location-based online status setting.
For example, the social application client may provide a designated online status addition option for providing set entry for the social application user. The specified online status adding option may be provided in a status setting menu of the social application client, and when a trigger operation on the specified online status adding option is detected, the online status setting interface may be displayed.
Referring to fig. 3, fig. 3 is a diagram illustrating a state setting menu of a social application client. The "add position state" option included in the state setting menu is a specified online state adding option provided in the embodiment of the present invention, and when the user needs to add the online state based on the position, the display of the online state setting interface can be triggered by clicking the "add position state" option.
The inventors have realized that since a social application user typically carries a mobile terminal with him/her, locating the mobile terminal may be possible to locate the social application user. In order to utilize such intrinsic association, in the embodiment of the present invention, the location of the user may be represented by the location of the mobile terminal, and the location of the mobile terminal may be represented by any one of the following manners:
first representation, geographical location information. The geographic location information may be obtained based on a positioning device (e.g., a GPS positioning device) configured on the mobile terminal.
The second expression mode, the network equipment information accessed by the mobile terminal. In order to save data traffic, many users can access the mobile terminal to a nearby network device, so as to connect to the network through the network device, thereby achieving the purpose of surfing the internet. However, because the coverage area of the network device is limited, if a certain mobile terminal accesses a network device, it indicates that the mobile terminal is in the coverage area of the network device, and therefore, the network device accessed by the mobile terminal can be used to locate the user. When the mobile terminal accesses any network device, the mobile terminal can acquire the network device information of the network device. The network device information may be information for uniquely identifying the network device, such as a network device name and a network device identifier.
Based on the two different position representation modes, the online state setting interface can also have two interface forms:
the first form of interface, the presence setting interface, may be provided as a first presence setting interface. The first online status-setting interface includes a custom status-setting area and a map for determining a location area.
For the first representation mode and the first online state setting interface, the following method may be adopted to generate the online state configuration information: the mobile terminal displays a first online state setting interface; the mobile terminal acquires the online state defined by the social application user through the user-defined state setting area of the first online state setting interface; the mobile terminal acquires a location area defined by the social application user through the map; the mobile terminal generates the online state configuration information based on the online state defined by the social application user and the location area defined by the social application user.
When the map is initially displayed, the map can be displayed based on the actual geographic position of the mobile terminal, that is, the map with the preset size is displayed by taking the geographic position of the mobile terminal when the first online state setting interface is in the display state as the center of the map. In order to facilitate the user to select the position area, an area to be selected can be displayed on the map, the area to be selected can move according to the operation of the user on the map, and the size of the area to be selected can also be adjusted according to the operation of the user on the area to be selected.
Referring to fig. 4A, fig. 4A is a schematic diagram of a first online status setting interface. The first online status setting interface comprises a custom status setting area 401 and a map 402 for determining a location area, and an area to be selected 403 is also displayed on the map 402. As shown in fig. 4A, the area 403 to be selected may be a circular area, a rectangle defined by two diagonal points, or an area with other shapes, for example, the area 403 to be selected may be a top view shape of a currently located building (see fig. 4B). The embodiment of the present invention does not limit the specific shape. The social application user can fill in the online state required by the user in the custom state setting area 401, move or adjust the size of the area 403 to be selected on the map 402 through dragging operation and the like to obtain the position area required by the user, and when the mobile terminal receives a confirmation instruction, the filled online state and the selected position area on the map can be sent to the social application server, and the social application server generates online state configuration information.
For example, the social application user may input "on-duty" in the custom state setting area 401 and select a location area where the office building is located in which the user works in the map 402, and based on such setting, the social application server will generate a correspondence between the coordinate ranges corresponding to the "on-duty" and the location area where the office building is located.
It should be noted that, a social application user may generate a plurality of online status configuration information through a generation process of the online status configuration information to meet a usage requirement of the social application user.
Referring to table 1 below, table 1 shows a plurality of online statuses set by a social application user and corresponding location areas.
TABLE 1
Figure BDA0001139765430000061
As shown in table 1, the setting manner is set to correspond to a corresponding relationship between one online status and one location area, and in an actual scene, one online status may also be set to correspond to two location areas or to correspond to more location areas, which is not limited in the embodiment of the present invention.
The second form of interface, the presence setting interface, may be provided as a second presence setting interface. The second online state setting interface comprises a custom state setting area and a network equipment setting area.
For the second representation mode and the second online state setting interface, the following method may be adopted to generate the online state configuration information: displaying a second online state setting interface; acquiring the online state customized by the social application user through the customized state setting area of the second online state setting interface; acquiring network equipment information customized by the social application user through the network equipment setting area; and generating the online state configuration information based on the online state customized by the social application user and the network equipment information customized by the social application user.
Referring to fig. 5A, fig. 5A is a schematic view showing a second online status setting interface. The second online status setting interface includes a custom status setting area 501 and a network device setting area 502. It should be noted that the custom state setting area 501 and the custom state setting area 401 shown in fig. 4 can be set in the same way, and the network device setting area 502 can be manually input network device information by a user. In another possible implementation manner, referring to fig. 5B, the network device setting area 502 may also be provided as an area to be selected 503, the area to be selected 503 may include a plurality of network devices, network device information of the plurality of network devices is respectively displayed in the sidebar 504, and when a social application user selects a certain network device in the sidebar 504, the network device information of the network device may be acquired, so as to generate online status configuration information based on an input online status and an input or selected network device information. In fig. 5B, it is only illustrated that a plurality of network devices are displayed in a sidebar form, but in fact, the network devices may be directly displayed in the region 503 to be selected, and the social application user directly selects the network devices in the region 503 to be selected, so as to obtain the network device information.
For example, the social application user may enter "on-duty" in the custom status setting area 501 and "WiFi-Office a" in the network device setting area 502, and based on such settings, the social application server will generate a correspondence between "on-duty" and WiFi-Office a ".
Referring to table 2 below, table 2 shows a plurality of online statuses set by the social application user and corresponding network device information.
TABLE 2
Figure BDA0001139765430000071
As described in table 2 above, with wide deployment of WiFi, multiple network devices with overlapping coverage areas may be deployed in a space, and therefore, for an online status, multiple pieces of corresponding network device information may also be set.
For the case that the setting process involves network devices, the social application server may be configured with a network device database, configured to store network device information and corresponding deployment locations, so that, for the area selected by the user according to the social application on the second online status setting interface, network devices located in the selected area in the network device database may be provided to the user for selection.
Further, under the condition that the network device database is extremely rich, the user can be allowed to select the network device in a fuzzy manner, for example, when the social application user sets the network device configured by public transportation as the network device information, the online state configuration information can be generated according to the online state and the network device configured by the public transportation, and subsequently, the online state configuration information can be analyzed according to the network device information accessed by the mobile terminal and the network device information stored in the network device database, and if the accessed network device information indicates the network device configured by the public transportation, the user can be determined to be in a hurry to catch up to the online state.
Of course, when analyzing according to the network device information accessed by the mobile terminal and the network device information stored in the network device database, a character configuration rule matching mode can be adopted. Since network devices configured for public transportation usually have the same naming rule, the network device information may be matched with the naming rule, and if matching is successful, the network device information indicates the network devices configured for public transportation. For example, if the network device information accessed by the mobile terminal is Wifi-Subway1011 and the naming rule is Wifi-Subway + number, it may be determined that the network device information indicates a network device configured for public transportation. For the social application server, the network device database may be updated through big data analysis and the like, which is not described in detail in the embodiment of the present invention.
In the embodiment of the present invention, the case that the mobile terminal generates the online status configuration information by the social application server after acquiring the online status and the location area or the network device information is described, but in an actual scenario, the mobile terminal may be responsible for acquiring and generating the online status configuration information, and then send the generated online status configuration information to the social application server for corresponding storage. Of course, the above technical process may include multiple data interactions between the mobile terminal and the social application server, which is not limited in the embodiment of the present invention.
It should be noted that, after any one of the above online status configuration information is generated, the social application server may store the generated online status configuration information and the social application user identifier in the online status database, so that the online status database may be subsequently queried based on the real-time location information of the mobile terminal logged in by the social application user, thereby implementing subsequent online status switching.
It should be noted that, in the above implementation process, the social application user sets the online status configuration information on the mobile terminal through an interface provided by the social application client, and in an actual scenario, the social application user may also log in the social application client on the fixed terminal and perform the setting in the same manner, which is not specifically limited in this embodiment of the present invention.
It should be noted that the setting based on the location area and the setting based on the network device information may be in an alternative form, or may coexist, that is, the social application user may set a corresponding relationship between the online status and the location area, or may set a corresponding relationship between the online status and the network device information, so that in the subsequent switching process, no matter which expression type of the real-time positioning information is obtained by the designated mobile terminal, the online status switching may be performed based on the set corresponding relationship, and the accuracy of the online status switching is further improved.
Further, in any implementation manner, in order to further improve the authenticity of the customized presence status, a time factor may also be added, that is, the presence status configuration information is also used to indicate the presence status and the corresponding effective time. For example, table 3 below:
TABLE 3
Figure BDA0001139765430000091
The inventors have recognized that since mid-business conditions typically occur on weekdays, different validation times may be set for custom presence states to further refine the presence state, e.g., the settings for the first and second rows in table 3.
Based on table 3, the social application server may further provide the setting area of the effective time in the online status setting interface, so that the social application user may more accurately set the online status, and the user-defined online status is more suitable for the actual life of the user. In table 3, only the setting based on the location area is described as an example, but in fact, the setting of the time interval may also be applied to the setting based on the network device information, and this is not specifically limited by the embodiment of the present invention.
In order to improve the accuracy of the online states, different online states can be set for the same position area, and the setting of the effective time is adopted to distinguish slight differences among the different online states.
For example, for location area 2, the online status of "rushing to drive off the road" may be set, and the effective time thereof may be set as the time intervals "monday to friday 6:00 to 10:00 and monday to friday 17:00 to 24: 00".
In addition to the above-described online status, an online status "in road congestion" related to "in rush to drive the road" may be set for the location area 2, and its effective time may be set as the time interval and the stay time period. As in table 3, the residence time period may be "more than half an hour in any sub-zone of location area 2" or "more than 2 hours in location area 2". The location area 2 may include a plurality of sub-areas, and the sub-areas may be a road, a block, or a sub-area obtained by dividing the location area 2 into blocks.
Of course, the above description is given by taking an example of setting at least one online state for a certain location area, and in an actual scene, when a corresponding effective time is set for any location area, a setting mode combining a time interval and a dwell time may be adopted, which is not limited in the embodiment of the present invention.
In another embodiment, the location area may be set as a certain area type, for example, the location area 3 may be set as a road, any road belongs to the location area 3, and the effective time may be the stay time. The inventor has realized that if the stay time on any road segment on a certain road exceeds a certain time period and the congestion is actually encountered, the real position state of the user can be intuitively reflected based on the situation, so that the setting as the last line in table 3 is obtained.
In summary, one online status may also correspond to a plurality of location areas, and one location area may also correspond to a plurality of online statuses, which is not specifically limited in this embodiment of the present invention.
Further, for the social application user, when the online state is customized, a corresponding message reminding mode can be set for the customized online state, and the message reminding mode includes whether a message reminding sound is started, whether a message reminding frame is started, whether a task bar image flashes when a new session message exists, and the like.
202. When the social application user logs in the appointed mobile terminal, the appointed mobile terminal acquires and stores the online state configuration information from the social application server according to the user identification of the social application user, and the appointed mobile terminal is the mobile terminal logged in by the social application user.
In order to avoid excessive occupation of the storage space of the designated mobile terminal, when the social application user logs in the social application on the designated mobile terminal, the online state configuration information of the social application user is obtained from the social application server and stored in the storage space corresponding to the social application. The storage mode can also avoid the privacy safety problem caused by data leakage.
Certainly, when the designated mobile terminal detects log-off, the stored online state configuration information can be deleted, so that the privacy security problem caused by data leakage can be avoided only in one step.
Once the social application user modifies the online status configuration information or adds new online status configuration information and other updating operations through the setting process, the social application server updates the online status configuration information according to the updating process, and notifies the designated mobile terminal of the update of the online status configuration information, so that the designated mobile terminal acquires the online status configuration information again. In an actual scene, the social application server can also directly push the updated online state configuration information to the specified mobile terminal, so that signaling interaction between the social application server and the specified mobile terminal is saved.
The setting and acquiring process can be referred to the flow chart shown in fig. 6. In fig. 6, only setting an online state of the social application user on the first terminal, generating and storing online state configuration information of the social application user by the social application server based on the uploading of the second terminal, and then obtaining the online state configuration information of the social application user from the social application server by the second terminal during login are taken as an example. And the social application user opens an online state setting interface by clicking the add position state option, and clicks and submits after the input is completed. And the social application client submits the online state and the position area or the network equipment information customized by the social application user to a social application server. And when receiving the data uploaded by the social application client, the social application server generates online state configuration information and correspondingly stores the online state configuration information and the social application user identification into an online state database. And then the social application server informs the specified mobile terminal of the change of the online state configuration information, and when the whole process is completed, the social application server returns an operation result to the social application client to indicate that the setting is successful. For a specified mobile terminal, online state setting information can be acquired from a social application server when logging in a social application client or every preset time, and when the social application server receives an acquisition request sent by the specified mobile terminal, the online state configuration information is acquired according to a social application user identifier logged in by the specified mobile terminal and is returned to the specified mobile terminal. In fig. 6, the presence configuration information is stored in the form of a database, but in fact, the presence configuration information may also be directly stored in the storage space corresponding to the social application user in the social application server.
203. The appointed mobile terminal acquires real-time positioning information of the appointed mobile terminal.
For the appointed mobile terminal, if the geographical position information is adopted as the positioning information, the GPS positioning device can be used for positioning the appointed mobile terminal per se every other first preset period, so that the real-time geographical position of the appointed mobile terminal is obtained. If the network device information is adopted as the positioning information, the network device information accessed by the mobile terminal can be acquired, and the network device information is used for indicating the network device accessed by the specified mobile terminal.
And when the appointed mobile terminal only executes the step of reporting the positioning information and does not execute the judging process of whether to switch the online state, the social application server executes the judging process, so that the appointed mobile terminal can send the acquired real-time positioning information to the social application server every second preset period after positioning the appointed mobile terminal per first preset period. Or, the specified mobile terminal may send the accessed network device information to the social application server every second preset period.
The first preset period may be a positioning period of the GPS positioning device, and the second preset period may be greater than or equal to the first preset period, and when the second preset period is greater than the first preset period, the calculation pressure of the server may be reduced, and the positioning information is prevented from being received too frequently.
204. The appointed mobile terminal obtains a target online state of the social application user according to online state configuration information of the social application user, the online state configuration information is used for indicating a corresponding relation between the position of the mobile terminal and the online state, and the target online state is an online state corresponding to the real-time positioning information.
In step 202, the specified mobile terminal has already acquired the online status configuration information of the social application user, so the online status corresponding to the real-time positioning information, that is, the target online status, may be acquired according to the real-time positioning information.
Taking the real-time positioning information as the geographical location information as an example, that is, if the online state configuration information of the social application user includes a corresponding relationship between a location area and an online state, determining a target location area, and acquiring the online state corresponding to the target location area from the corresponding relationship between the location area and the online state as the target online state, where the target location area is the location area where the real-time positioning information is located.
For the case that the online status configuration information includes the corresponding relationship between the customized online status and the location area, referring to the flow illustration in fig. 7, after the specified mobile terminal acquires the real-time positioning information, it may compare location areas corresponding to all the customized online statuses based on the real-time positioning information, determine whether the specified mobile terminal enters or leaves a certain location area, if it is determined that the specified mobile terminal enters or leaves a certain location area, acquire the online status or normal online status corresponding to the entered location area, further execute step 205, and execute the acquisition process again after a period of time (e.g., N minutes, where N is greater than or equal to 1) elapses. Of course, when it is determined that the mobile terminal does not enter or leave a certain location area through judgment, the acquisition process may be executed again after a certain period of time, so as to achieve the purpose of switching according to the location of the specified mobile terminal.
The fact that the user leaves a certain position area means that the user leaves a position area included in a certain correspondence relationship and enters a position area not included in the correspondence relationship.
For example, referring to the left diagram in fig. 8A, if the current real-time positioning information of the specified mobile terminal is the location 801, it may be determined that the specified mobile terminal is currently located in the location area 1 according to the location 801 and table 1, and the target online status corresponding to the location area 1 is "in work", and the display effect of the subsequent switching may be as shown in the right diagram in fig. 8A.
Referring to the left diagram in fig. 8B, when the real-time positioning information changes to the location 802 as the specified mobile terminal moves, it may be determined that the location 802 is not within the location area 1 according to the location 802 and table 1, and the location 802 is not in any location area of the presence configuration information, a normal presence state (e.g., online, mobile phone online, PAD online, etc.) may be acquired, and the display effect of the subsequent handover may be as shown in the right diagram in fig. 8B.
Taking the real-time positioning information as the network device information as an example, that is, if the online status configuration information of the social application user includes a corresponding relationship between the network device and the online status, the online status corresponding to the network device indicated by the real-time positioning information is obtained as the target online status from the corresponding relationship between the network device and the online status.
For the case that the online status configuration information includes the corresponding relationship between the customized online status and the network device information, if the corresponding online status can be found in the online status configuration information according to the network device information sent by the specified mobile terminal, the target online status can be determined, and if the corresponding online status cannot be found, the normal online status can be acquired as the target online status. Certainly, when the specified mobile terminal does not access the network device, it may be determined that the specified mobile terminal does not access the network device, and at this time, the normal online state may also be acquired as the target online state. The same principle of the switching based on the network device information and the switching based on the geographical location information is not specifically limited in the embodiments of the present invention.
In another embodiment, if the presence configuration information further indicates the effective time of the presence (see table 3), if the corresponding presence is queried from the corresponding relationship indicated by the presence configuration information according to the real-time positioning information, it is further required to determine whether the current time matches the corresponding effective time, so as to obtain a more accurate presence.
Wherein, the determining whether the current time meets the corresponding effective time may include the following cases:
in the first case, if the effective time corresponding to the online state is the limit of the time interval, determining whether the current time is within the time interval, and if the current time is within the time interval, determining the acquired online state as the target online state. Of course, if the time interval is not within the time interval, the online status may not be switched, or the normal online status may be used as the target online status.
For example, based on table 3, if the position indicated by the real-time positioning information is located within position area 1, the acquired target online state is "on duty" if the current time is friday 15:00 and falls within a time interval of "monday to friday 9:00 to 18: 00", and the acquired target online state is "on duty" if the current time is friday 20:00 and falls within a time interval of "monday to friday 18:00 to 24: 00".
And under the second condition, if the effective time corresponding to the online state is the limit of the time interval and the stay time, judging whether the current time is in the time interval, if so, judging whether the stay time of the mobile terminal is in accordance with the limit of the stay time corresponding to the online state, and if so, determining the acquired online state as the target online state. Of course, if not, the presence status may not be switched, or the normal presence status may be taken as the target presence status.
For example, based on table 3, if the position indicated by the real-time positioning information is located in the position area 2, if the current time is friday 8:00, the time interval of "monday to friday 6:00 to 10: 00" is fallen, the acquired online states are "rushed to drive in the road" and "in the road congestion", and if it is determined that the stay time of the mobile terminal in a certain sub-area of the position area 2 exceeds half an hour by the judgment of the stay time, the "in the road congestion" is taken as the target online state, and if the limit of the stay time is not satisfied, the "rushed to drive in the road" may be taken as the target online state.
It should be noted that, because the determination of the staying time may require a certain delay to switch the online states, if at least two online states can be determined by the time interval, the online states without the limitation of the staying time may be switched first, then the determination of the staying time may be continued, and if the subsequent determination determines that the staying time conforms to the limitation of the online states on the staying time, the switching may be further performed. Wherein, the judgment of the stay time length can comprise: and starting a timer, wherein the timing duration of the timer is the stay duration corresponding to the online state, continuously acquiring the real-time positioning information of the mobile terminal in the timing process, and if the position area or the sub-area indicated by the real-time positioning information of the mobile terminal is not changed before the timer stops timing, determining that the stay duration of the mobile terminal meets the limit of the online state on the stay duration.
And in the third situation, the position area corresponding to the online state is of a certain area type, the effective time is the limit on the stay time, whether the stay time of the mobile terminal is in accordance with the limit on the stay time corresponding to the online state is judged, and if so, the acquired online state is determined to be the target online state. Of course, if not, the presence status may not be switched, or the normal presence status may be taken as the target presence status.
For example, based on table 3, if the location indicated by the real-time positioning information is located on the road a and belongs to the area type indicated by the location area 3, if it is determined that the stay time of the mobile terminal in a certain section of the road a exceeds 1 hour through the judgment of the stay time, the "road congestion in" is taken as the target online status, and if the limit of the stay time is not satisfied.
It should be noted that, in the specific description of step 201, a solution for coexistence of the above-mentioned setting based on the location area and the setting based on the network device information is provided, if the solution based on coexistence is used, the presence status may be queried in the presence configuration information based on the geographic location information and the network device information, as long as the presence status is queried based on one of the items, and of course, if neither item is queried, the normal presence status may be obtained as the target presence status.
205. And the specified mobile terminal sends a state switching request to the social application server, wherein the state switching request is used for indicating the social application server to switch the current online state of the social application user to the target online state.
In the embodiment of the present invention, the state switching request carries a target online state, and may also carry a social application user identifier of the social application user.
206. And when the social application server receives the state switching request, switching the current online state of the social application user to the target online state.
The above steps 205 and 206 are processes of designating the mobile terminal to notify the social application server to perform status switching, and the social application server performs status switching, when the social application server receives the status switching request, the status switching request may be analyzed first to obtain the social application user identifier and the target online status of the request, and then the online status of the social application user indicated by the social application user identifier is switched to the target online status, and further, after the switching is successful, the status change is notified to the friends of the social application user, so that each friend knows the online status change of the social application user, and the process may also refer to fig. 8C.
In fact, for a specific mobile terminal, when the online status is switched, the name of the online status is switched to the name of the target online status, and the message reminding mode corresponding to the online status is also switched to the message reminding mode corresponding to the target online status.
In another embodiment, referring to fig. 8D, a flow schematic of the determination process of whether to perform online status switching by the social application server is shown in fig. 8D, and after the designated mobile terminal acquires the real-time location information of itself, the designated mobile terminal may send the real-time location information to the social application server, so that the social application server performs step 204, and performs online status switching according to the target online status determined in step 204.
It should be noted that the normal online status referred in the embodiment of the present invention includes, but is not limited to, any online status predefined by an application, for example, busy, away, online, and cell phone online, and these online statuses may be represented by words or by graphical identifiers, which is not limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, the switching between the user-defined online states and the application predefined online states can be automatically executed by acquiring the real-time position of the appointed mobile terminal and switching the user-defined online states based on the real-time position, manual intervention of a social application user is not required, the operation cost is reduced, and the switching intelligence is improved. The real-time position accuracy of the designated mobile terminal is high, and the real situation of the social application user can be reflected, so that the online state switching method based on the real-time position can enable the display of the user-defined online state to be in higher conformity with the real situation, and the accuracy of the online state reflected by the social application is greatly improved. In addition, the switching mode supports any real-time positioning information which can embody the actual position of the social application user, and greatly provides the switching flexibility.
Fig. 9 is a schematic structural diagram of an online status switching device according to an embodiment of the present invention. Referring to fig. 9, the apparatus includes:
a location obtaining module 901, configured to obtain real-time location information of a specified mobile terminal, where the specified mobile terminal is a mobile terminal logged in by a social application user;
an online status obtaining module 902, configured to obtain a target online status of the social application user according to online status configuration information of the social application user, where the online status configuration information is used to indicate a corresponding relationship between a location of the mobile terminal and an online status, and the target online status is an online status corresponding to the real-time positioning information;
a state switching module 903, configured to switch the current online state of the social application user to the target online state.
In one possible implementation, the presence obtaining module 901 is configured to:
if the online state configuration information of the social application user comprises a corresponding relation between a position area and an online state, determining a target position area, and acquiring the online state corresponding to the target position area as the target online state from the corresponding relation between the position area and the online state, wherein the target position area is the position area where the real-time positioning information is located; or the like, or, alternatively,
and if the online state configuration information of the social application user comprises the corresponding relation between the network equipment and the online state, acquiring the online state corresponding to the network equipment indicated by the real-time positioning information as the target online state from the corresponding relation between the network equipment and the online state.
In another embodiment, the presence configuration information is also used to indicate the presence and corresponding validation time.
In another embodiment, if the time interval of the online status is further indicated in the online status configuration information, the online status obtaining module 901 is further configured to determine whether the current time is located in the corresponding time interval, so as to obtain a more accurate online status.
In one possible implementation, the state switching module 903 is configured to:
and sending a state switching request to a social application server, wherein the state switching request is used for instructing the social application server to switch the current online state of the social application user to the target online state.
In one possible implementation, the apparatus further includes:
and the configuration information acquisition module is used for acquiring and storing the online state configuration information from the social application server according to the user identification of the social application user when the social application user logs in the appointed mobile terminal.
In one possible implementation, the position obtaining module 901 is configured to:
acquiring network equipment information of network equipment accessed by the appointed mobile terminal, and acquiring the network equipment information as real-time positioning information of the appointed mobile terminal; or the like, or, alternatively,
and acquiring the geographical position information of the appointed mobile terminal through a Global Positioning System (GPS) positioning device configured by the appointed mobile terminal, and acquiring the geographical position information as the real-time positioning information of the appointed mobile terminal.
In one possible implementation, the position obtaining module 901 is configured to:
receiving geographic position information sent by the appointed mobile terminal, and acquiring the geographic position information as real-time positioning information of the appointed mobile terminal;
or the like, or, alternatively,
and receiving network equipment information sent by the appointed mobile terminal, and acquiring the network equipment information as the real-time positioning information of the appointed mobile terminal, wherein the network equipment information is used for indicating the network equipment accessed by the appointed mobile terminal.
In one possible implementation manner, the apparatus further includes an online status configuration information generation module;
the online state configuration information generating module is used for generating the online state configuration information through the online state setting interface and the operation of the social application user on the online state setting interface.
In one possible implementation, the presence configuration information generating module is configured to:
displaying a first online state setting interface, wherein the first online state setting interface comprises a custom state setting area and a map used for determining a position area; acquiring the online state customized by the social application user through the customized state setting area of the first online state setting interface; obtaining a location area defined by the social application user through the map; generating the online state configuration information based on the online state defined by the social application user and the location area defined by the social application user; or the like, or, alternatively,
displaying a second online state setting interface, wherein the second online state setting interface comprises a user-defined state setting area and a network equipment setting area; acquiring the online state customized by the social application user through the customized state setting area of the second online state setting interface; acquiring network equipment information customized by the social application user through the network equipment setting area; and generating the online state configuration information based on the online state customized by the social application user and the network equipment information customized by the social application user.
The social application server can also provide a setting area of the time interval in an online state setting interface, so that the social application user can more accurately set the online state, and the user-defined online state is more fit with the actual life of the user.
Further, for the social application user, when the online state is customized, a corresponding message reminding mode can be set for the customized online state, and the message reminding mode includes whether a message reminding sound is started, whether a message reminding frame is started, whether a task bar image flashes when a new session message exists, and the like.
Once the social application user modifies the online status configuration information or adds new online status configuration information through the setting process, the social application server updates the online status configuration information according to the setting process, and notifies the designated mobile terminal of the update of the online status configuration information, so that the designated mobile terminal acquires the online status configuration information again. In an actual scene, the social application server can also directly push the updated online state configuration information to the specified mobile terminal, so that signaling interaction between the social application server and the specified mobile terminal is saved.
According to the device provided by the embodiment of the invention, the real-time position of the appointed mobile terminal is obtained, and the switching of the user-defined online state is carried out based on the real-time position, so that the switching between the user-defined online states and the switching between the user-defined online state and the application predefined online state can be automatically carried out without manual intervention of a social application user, the operation cost is reduced, and the switching intelligence is improved. The real-time position accuracy of the designated mobile terminal is high, and the real situation of the social application user can be reflected, so that the online state switching method based on the real-time position can enable the display of the user-defined online state to be in higher conformity with the real situation, and the accuracy of the online state reflected by the social application is greatly improved.
It should be noted that: in the presence switching apparatus provided in the foregoing embodiment, only the division of the functional modules is illustrated in the present embodiment, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the online state switching device provided by the above embodiment and the online state switching device method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and will not be described herein again.
The present embodiment provides a mobile terminal, which may be used to execute the online status switching method provided in the above embodiments. Referring to fig. 10, the mobile terminal 1000 includes:
the mobile terminal 1000 may include RF (Radio Frequency) circuitry 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 10 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal 1000, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 1000, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of an LCD (Liquid crystal display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 10, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 1000 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1000 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 1000, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1000. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then transmits the audio data to, for example, another mobile terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 1000.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal 1000 can help a user send and receive e-mails, browse webpages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1000, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1000, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1000 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1000 may further include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1000 may further include a camera, a bluetooth module, etc., which are not described herein. In this embodiment, the display unit of the mobile terminal is a touch screen display, and the mobile terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the mobile terminal-side operations described above in the embodiment of fig. 2.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as a memory, comprising instructions executable by a processor in a terminal to perform the presence switch method in the above embodiments. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
FIG. 11 is a block diagram illustrating a presence switch device 1100 in accordance with an exemplary embodiment. For example, the apparatus 1100 may be provided as a server. Referring to fig. 11, the apparatus 1100 includes a processing component 1122 that further includes one or more processors and memory resources, represented by memory 1132, for storing instructions, such as application programs, executable by the processing component 1122. The application programs stored in memory 1132 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1122 is configured to execute instructions to perform the above-described online status switching method.
The apparatus 1100 may also include a power component 1126 configured to perform power management of the apparatus 1100, a wired or wireless network interface 1150 configured to connect the apparatus 1100 to a network, and an input/output (I/O) interface 1158. The apparatus 1100 may operate based on storageOperating systems in storage 1132, e.g. Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTMOr the like.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as a memory, comprising instructions executable by a processor in a terminal to perform the presence switch method in the above embodiments. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for switching presence status, the method comprising:
when a social application user logs in on a designated mobile terminal, acquiring and storing the online state configuration information from the social application server according to the user identification of the social application user; the online state configuration information is used for indicating the corresponding relation between the network equipment information and the online state; the online state configuration information is also used for indicating the effective time corresponding to the online state; the effective time is used for distinguishing different online states; the effective time comprises at least one of a time interval and a dwell time;
acquiring the real-time positioning information of the appointed mobile terminal, comprising: acquiring network equipment information of network equipment accessed by the appointed mobile terminal, and acquiring the network equipment information as real-time positioning information of the appointed mobile terminal, wherein the network equipment information comprises: the specified mobile terminal is a mobile terminal logged in by the social application user; according to the real-time positioning information, when the online state corresponding to the network equipment information included in the real-time positioning information is inquired from the corresponding relation between the network equipment information and the online state indicated by the online state configuration information, judging whether the current time accords with the corresponding effective time, if so, determining the inquired online state as a target online state, wherein the target online state is the online state corresponding to the real-time positioning information; switching a current online state of the social application user to the target online state;
and deleting the stored online state configuration information when the specified mobile terminal detects log-off.
2. The method of claim 1, wherein switching the current online state of the social application user to the target online state comprises:
sending a state switching request to a social application server, wherein the state switching request is used for instructing the social application server to switch the current online state of the social application user to the target online state.
3. The method according to claim 1, wherein before obtaining the real-time positioning information of the specified mobile terminal, the method further comprises:
and generating the online state configuration information through the online state setting interface and the operation of the social application user on the online state setting interface.
4. The method of claim 3, wherein the generating the presence configuration information through the presence setting interface and the social application user's operations on the presence setting interface comprises:
displaying a second online state setting interface, wherein the second online state setting interface comprises a user-defined state setting area and a network equipment setting area; acquiring the online state customized by the social application user through the customized state setting area of the second online state setting interface; acquiring network equipment information customized by the social application user through the network equipment setting area; and generating the online state configuration information based on the online state customized by the social application user and the network equipment information customized by the social application user.
5. An online status switching device, the device comprising:
the configuration information acquisition module is used for acquiring and storing the online state configuration information from the social application server according to the user identification of the social application user when the social application user logs in the appointed mobile terminal; the online state configuration information is used for indicating the corresponding relation between the network equipment information and the online state; the online state configuration information is also used for indicating the effective time corresponding to the online state; the effective time is used for distinguishing different online states; the effective time comprises at least one of a time interval and a dwell time;
the position acquisition module is used for acquiring real-time positioning information of the specified mobile terminal, and the specified mobile terminal is a mobile terminal logged in by a social application user;
an online state obtaining module, configured to, when an online state corresponding to network device information included in the real-time positioning information is queried from a corresponding relationship between the network device information and an online state indicated by the online state configuration information according to the real-time positioning information, determine whether a current time matches a corresponding effective time, and if the current time matches the effective time, determine the queried online state as a target online state, where the target online state is an online state corresponding to the real-time positioning information;
the state switching module is used for:
switching a current online state of the social application user to the target online state;
deleting the stored online state configuration information when the designated mobile terminal detects log-out;
the location acquisition module is further configured to:
acquiring network equipment information of network equipment accessed by the appointed mobile terminal, and acquiring the network equipment information as real-time positioning information of the appointed mobile terminal, wherein the network equipment information comprises: network device name or network device identification.
6. The apparatus of claim 5, wherein the state switching module is configured to:
sending a state switching request to a social application server, wherein the state switching request is used for instructing the social application server to switch the current online state of the social application user to the target online state.
7. The apparatus of claim 5, further comprising a presence configuration information generation module;
the online state configuration information generating module is used for generating the online state configuration information through the online state setting interface and the operation of the social application user on the online state setting interface.
8. The apparatus of claim 7, wherein the presence configuration information generating module is configured to:
displaying a second online state setting interface, wherein the second online state setting interface comprises a user-defined state setting area and a network equipment setting area; acquiring the online state customized by the social application user through the customized state setting area of the second online state setting interface; acquiring network equipment information customized by the social application user through the network equipment setting area; and generating the online state configuration information based on the online state customized by the social application user and the network equipment information customized by the social application user.
9. A mobile terminal, comprising one or more processors and one or more memories having stored therein at least one instruction, which is loaded and executed by the one or more processors to perform operations performed by the presence switch method according to any one of claims 1 to 4.
10. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by the presence switch method of any one of claims 1 to 4.
CN201610939400.8A 2016-10-25 2016-10-25 Online state switching method and device Active CN107995584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610939400.8A CN107995584B (en) 2016-10-25 2016-10-25 Online state switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610939400.8A CN107995584B (en) 2016-10-25 2016-10-25 Online state switching method and device

Publications (2)

Publication Number Publication Date
CN107995584A CN107995584A (en) 2018-05-04
CN107995584B true CN107995584B (en) 2020-06-02

Family

ID=62028357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610939400.8A Active CN107995584B (en) 2016-10-25 2016-10-25 Online state switching method and device

Country Status (1)

Country Link
CN (1) CN107995584B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113783968A (en) * 2019-10-14 2021-12-10 支付宝(杭州)信息技术有限公司 Method and device for generating prompt message and mobile terminal
CN111679770B (en) * 2020-06-05 2024-08-20 腾讯科技(深圳)有限公司 Message processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415155A (en) * 2008-10-30 2009-04-22 深圳市时代经纬科技有限公司 1mobile instant communication method and system based on position service
CN202617165U (en) * 2012-04-17 2012-12-19 陈飞生 Intelligent interaction satellite positioning system
CN103475571A (en) * 2013-04-25 2013-12-25 腾讯科技(深圳)有限公司 Internet interaction method, related equipment and system
CN104009980A (en) * 2014-05-13 2014-08-27 腾讯科技(深圳)有限公司 Communication method and device based on social application

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188581A (en) * 2007-12-12 2008-05-28 北京亿企通信息技术有限公司 A method for identifying user in instant communication tool
US11159909B2 (en) * 2008-02-05 2021-10-26 Victor Thomas Anderson Wireless location establishing device
FR2942928B1 (en) * 2009-03-03 2011-04-01 Alcatel Lucent METHOD AND SYSTEM FOR MULTICRITERALLY MANAGING PRESENCE NOTIFICATIONS
CN103152248A (en) * 2013-03-21 2013-06-12 北京百纳威尔科技有限公司 Method and device for setting state of instant messaging tool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415155A (en) * 2008-10-30 2009-04-22 深圳市时代经纬科技有限公司 1mobile instant communication method and system based on position service
CN202617165U (en) * 2012-04-17 2012-12-19 陈飞生 Intelligent interaction satellite positioning system
CN103475571A (en) * 2013-04-25 2013-12-25 腾讯科技(深圳)有限公司 Internet interaction method, related equipment and system
CN104009980A (en) * 2014-05-13 2014-08-27 腾讯科技(深圳)有限公司 Communication method and device based on social application

Also Published As

Publication number Publication date
CN107995584A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
KR101978590B1 (en) Message updating method, device and terminal
CN111316673B (en) Electronic fence updating method and communication device
CN105740291B (en) Map interface display method and device
CN108255683B (en) Method for prompting message in terminal and terminal
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
US10652287B2 (en) Method, device, and system for managing information recommendation
JP2018513499A (en) Communication message transmission method and wearable device
CN106302996B (en) Message display method and device
CN106936676B (en) Household equipment control method and device
US20150160372A1 (en) Systems and Methods for Weather Forecasting
CN111010663B (en) Information sharing method and device, storage medium and computer equipment
CN106302938B (en) Communication event processing method and device
CN104618854A (en) Method, terminal and server for sharing location information
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN105303591B (en) Method, terminal and server for superimposing location information on jigsaw puzzle
CN105207880A (en) Group recommendation method and apparatus
CN112312308A (en) Indoor positioning method and terminal equipment
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN105677162B (en) The display methods and device of matching condition list
CN107270927B (en) Information display method and device, computer readable storage medium and mobile terminal
CN104702674B (en) Geographical position exchange method and device
CN106302101B (en) Message reminding method, terminal and server
CN106020945B (en) Shortcut item adding method and device
CN106899929A (en) A kind of signal search methods, devices and systems
CN107995584B (en) Online state switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant