CN106503023B - Method and device for prompting nearby friends - Google Patents

Method and device for prompting nearby friends Download PDF

Info

Publication number
CN106503023B
CN106503023B CN201510567509.9A CN201510567509A CN106503023B CN 106503023 B CN106503023 B CN 106503023B CN 201510567509 A CN201510567509 A CN 201510567509A CN 106503023 B CN106503023 B CN 106503023B
Authority
CN
China
Prior art keywords
user
friend
nearby
current position
distance range
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
CN201510567509.9A
Other languages
Chinese (zh)
Other versions
CN106503023A (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 CN201510567509.9A priority Critical patent/CN106503023B/en
Priority to PCT/CN2016/095230 priority patent/WO2017041610A1/en
Publication of CN106503023A publication Critical patent/CN106503023A/en
Application granted granted Critical
Publication of CN106503023B publication Critical patent/CN106503023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method for prompting nearby friends, which comprises the following steps: judging whether a user starts a nearby friend prompt function or not; if the user is judged to start a nearby friend prompt function, acquiring the current position of the user; obtaining friend list information of the user; judging whether friends of the user are within a specified distance range of the user or not; and if the friends of the user are judged to be in the specified distance range of the user, sending prompt information to the user. The invention also provides a device for prompting nearby friends. The method and the device for prompting the nearby friends can meet the requirement of a user for quickly finding the nearby friends, and the experience of the user on instant messaging is improved.

Description

Method and device for prompting nearby friends
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for prompting nearby friends.
Background
With the rapid development of communication technology and internet technology, various terminal devices such as personal computers, notebook computers, tablet computers, mobile phones, etc. have become important tools for obtaining information and communicating. For example, after installing instant messaging software (such as QQ, wechat, etc.) in the terminal device of the user, the user can add a friend through the instant messaging software, and then communicate with the friend. However, in certain situations, such as eating outside, finding a purse forgotten, the user needs to contact friends in his vicinity to help, and if not making a query or looking with a specific function of the instant messaging software, such as the Wechat "people nearby" function, it is difficult to know if there are friends nearby. Therefore, rapidly acquiring information of nearby friends is a problem to be solved urgently.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for prompting nearby friends, which can meet the requirement of a user to quickly find nearby friends and improve the experience of the user on instant messaging.
Specifically, the method for prompting nearby friends provided by the embodiment of the present invention includes: judging whether a user starts a nearby friend prompt function or not; if the user is judged to start a nearby friend prompt function, acquiring the current position of the user; obtaining friend list information of the user; judging whether friends of the user are within a specified distance range of the user or not; and if the friends of the user are judged to be in the specified distance range of the user, sending prompt information to the user.
The device for prompting nearby friends provided by the embodiment of the invention comprises: the first judgment module is used for judging whether a user starts a nearby friend prompt function or not; the first obtaining module is used for obtaining the current position of the user if the first judging module judges that the user starts the prompt function of nearby friends; the second acquisition module is used for acquiring the friend list information of the user; the second judgment module is used for judging whether friends of the user are within the specified distance range of the user or not; and the prompting module is used for sending a prompting message to the user if the second judging module judges that the friends of the user are in the specified distance range of the user.
By the method and the device for prompting nearby friends, provided by the embodiment of the invention, the user can conveniently and quickly acquire the prompt information of nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the method and the device for prompting nearby friends provided by the invention can meet the requirement of a user on quickly finding nearby friends and improve the experience of the user on instant messaging.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is an application environment diagram of a method and an apparatus for prompting nearby friends according to an embodiment of the present invention.
Fig. 2 shows a block diagram of an embodiment of the terminal device in fig. 1.
FIG. 3 shows a block diagram of one embodiment of the server of FIG. 1.
Fig. 4 is a flowchart illustrating a method for prompting nearby friends according to a first embodiment of the present invention.
Fig. 5 is a flowchart illustrating a method for prompting nearby friends according to a second embodiment of the present invention.
Fig. 6 is a flowchart illustrating a method for prompting nearby friends according to a third embodiment of the present invention.
Fig. 7 is a block diagram illustrating a device for prompting nearby friends according to a fourth embodiment of the present invention.
Fig. 8 is a block diagram of a device for prompting nearby friends according to a fifth embodiment of the present invention.
Fig. 9 is a block diagram illustrating a device for prompting nearby friends according to a sixth embodiment of the present invention.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be made with reference to the accompanying drawings and preferred embodiments.
Referring to fig. 1, fig. 1 is an application environment diagram of a method and an apparatus for prompting nearby friends according to an embodiment of the present invention. As shown in fig. 1, a plurality of terminal apparatuses 100 communicate with a server 200 via a network 201. The terminal device 100 may be various electronic devices, such as a personal computer, a notebook computer, a tablet computer, a mobile phone, etc., and the terminal device 100 may be installed with an instant messaging client. The server 200 is a background server for instant messaging, and can provide various services for clients. The network 201 may be, but is not limited to, the internet, an intranet, a local area network, a mobile communications network, and combinations thereof. In the example shown in fig. 1, the plurality of terminal apparatuses 100 includes a first terminal apparatus 101 and a second terminal apparatus 103 belonging to two users, respectively.
Referring to fig. 2, fig. 2 is a block diagram of an embodiment of the terminal device 100. As shown in fig. 2, the terminal device 100 includes a memory 102, a memory controller 104, one or more processors 106 (only one of which is shown), a peripheral interface 108, a radio frequency module 110, a positioning module 112, a camera module 114, an audio module 116, a display module 118, and a key module 120. These components communicate with each other via one or more communication buses/signal lines 122.
It is to be understood that the structure shown in fig. 2 is merely illustrative, and that the terminal device 100 may include more or fewer components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
The memory 102 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for prompting nearby friends in the embodiments of the present invention, and the processor 106 executes various functional applications and data processing by running the software programs and modules stored in the memory 102.
The memory 102 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 102 may further include memory located remotely from processor 106, which may be connected to terminal device 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 102 by the processor 106, and possibly other components, may be under the control of the memory controller 104.
The peripherals interface 108 couples various input/output devices to the processor 106 as well as to the memory 102. The processor 106 executes various software, instructions within the memory 102 to perform various functions of the terminal device 100 and to perform data processing.
In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip, or in other examples, may be implemented separately from separate chips.
The rf module 110 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 110 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail for internet, Wi-Max, and any other suitable protocol for instant messaging, including, but not limited to, short message Access (sms), and may even include those protocols that have not yet been developed.
The positioning module 112 is used for acquiring the current position of the terminal device 100. Examples of the positioning module 112 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 114 is used to take a picture or video. The pictures or videos taken may be stored in the memory 102 and transmitted through the radio frequency module 110.
Audio module 116 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 108, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 108 for further processing. The audio data may be retrieved from the memory 102 or through the radio frequency module 110. In addition, the audio data may also be stored in the memory 102 or transmitted through the radio frequency module 110. In some examples, the audio module 116 may also include an earphone jack for providing an audio interface to a headset or other device.
The display screen 118 provides an output interface between the terminal device 100 and the user. In particular, display screen 118 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. Further, the display screen 118 may also provide an input interface between the terminal device 100 and the user for receiving user inputs, such as user clicks, swipes, and other gesture operations, so that the user interface objects respond to the user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of display screen 118 include, but are not limited to, a liquid crystal display or a light emitting polymer display.
The key module 120 also provides an interface for a user to input to the terminal device 100, and the user can press different keys to cause the terminal device 100 to perform different functions.
Fig. 3 shows a block diagram of one embodiment of server 200. As shown in fig. 3, the server 200 includes: memory 201, processor 202, and network module 203.
It will be appreciated that the configuration shown in fig. 3 is merely illustrative and that server 200 may include more or fewer components than shown in fig. 3 or have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof. In addition, the server 200 in the embodiment of the present invention may further include a plurality of servers with different functions.
The memory 201 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for prompting nearby friends in the embodiments of the present invention, and the processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 201, that is, implements the method and apparatus for prompting nearby friends in the embodiments of the present invention. Memory 201 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 201 may further include memory located remotely from processor 202, which may be connected to server 200 via a network. Further, the software programs and modules may further include: a service module 221, and an operating system 222. The operating system 222, which may be, for example, LINUX, UNIX, WINDOWS, may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components. The service module 221 runs on the basis of the operating system 222, monitors a request from the network through the network service of the operating system 222, completes corresponding data processing according to the request, and returns a processing result to the client. That is, the service module 221 is used to provide a web service to a client.
The network module 203 is used for receiving and transmitting network signals. The network signal may include a wireless signal or a wired signal. In one example, the network signal is a wired network signal. At this time, the network module 203 may include a processor, a random access memory, a converter, a crystal oscillator, and the like.
The following describes a method and an apparatus for prompting nearby friends according to the present invention with reference to specific embodiments.
First embodiment
A first embodiment provides a method for prompting nearby friends, which is applicable to the application environment shown in fig. 1. Fig. 4 is a flow chart of the above method. Referring to fig. 4, the method of the present embodiment includes the following steps:
step S11, judging whether the user starts the prompt function of nearby friends;
in this step, it is determined whether the user has started the nearby friend prompt function, and if yes, step S12 is executed; if not, jumping to the end.
Specifically, a setting interface including an activation switch corresponding to a nearby friend prompt function, a selection item of a distance range, an activation switch corresponding to a permitted friend discovery function, and the like may be provided to the user through the instant messaging client installed in the terminal apparatus 101. The user can start or close the nearby friend prompt function through the starting switch corresponding to the nearby friend prompt function, and when the user starts the nearby friend prompt function, the user can receive the related prompt information of nearby friends. The user can select or customize the distance range through the selection item of the distance range, wherein the distance range refers to the distance range between the position of the friend and the position of the user. The user can turn on or turn off the function allowing the friend to be found through the starting switch allowing the function allowing the friend to be found, when the user turns on the function allowing the friend to be found, the geographic position and the account information of the user can be acquired by other users using nearby friend prompt functions, of course, the user is used as a friend of other users, and the account information of the user is used in a friend list of other users.
In an embodiment, when receiving that the user starts a nearby friend prompt function in the setting interface, the setting interface may further provide options of the distance range, such as 500 meters, 1000 meters, and user-defined options, to the user, so as to facilitate the user to select or input the distance range he or she wants. In another embodiment, the setting interface may not provide the selection item of the distance range, but directly adopts a preset default distance range, which may be set to 500 meters, 1000 meters, 1500 meters or other, and the invention does not limit the specific value of the distance range.
Step S12, acquiring the current position of the user;
in this step, if it is determined that the user has started the prompt function of a nearby friend, the current location of the user is obtained. In one example, the current Location of the user holding the terminal apparatus 101 may be acquired through LBS (Location Based Service).
In the present embodiment, the step S12 includes: collecting GPS positioning data of the user; and acquiring the current position of the user according to the GPS positioning data of the user.
Step S13, obtaining the friend list information of the user;
in this step, the buddy list of the user may be, for example, an address list in the WeChat, a contact list in the QQ, or a user-defined buddy list.
It is understood that the step S13 is not necessarily after the step S12, but may be before the step S12.
Step S14, determining whether there is a friend of the user within a specified distance range of the user;
in this step, after the buddy list information of the user is obtained, the current location of the buddy is obtained, and according to the current location of the buddy and the current location of the user, it is further determined whether there is a buddy of the user within the specified distance range of the user, if yes, step S15 is executed; if not, jumping to the end.
Specifically, the specified distance range refers to a distance range set by the user according to a setting interface provided by the instant messaging client installed in the terminal device 103 or a default distance range of the system.
And step S15, sending a prompt message to the user.
In this step, if it is determined that the friend of the user is within the specified distance range of the user, a prompt message is sent to the user. The prompt message may include account information of the friend, a distance between the friend and the user, and the like. If a plurality of friends are all within the specified distance range of the user, the prompt message may include account information of all friends within the specified distance range and distances from the user.
Therefore, by the method for prompting nearby friends provided by the embodiment, the user can conveniently and quickly acquire the prompt information of the nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the method for prompting nearby friends provided by the embodiment can meet the requirement of a user for quickly discovering nearby friends, and the experience of the user on instant messaging is improved.
Second embodiment
A second embodiment provides a method for prompting nearby buddies, which is similar to the method provided by the first embodiment. FIG. 5 is a flowchart illustrating the method of the present embodiment. Referring to fig. 5, the method of the present embodiment includes the following steps:
step S11, judging whether the user starts the prompt function of nearby friends;
in this step, it is determined whether the user has started the nearby friend prompt function, and if yes, step S12 is executed; if not, jumping to the end.
Step S12, acquiring the current position of the user;
step S13, obtaining the friend list information of the user;
step S14, including the following substeps:
the substep S141, sequentially judging whether the friend in the friend list information starts the function of allowing the friend to find;
in the sub-step, whether the friend in the friend list information of the user starts the function of allowing the friend to discover or not can be sequentially judged according to a certain sequence; if judging that the friend opens the function allowed to be found by the friend, executing a substep S142; and if judging that no friend starts the function allowed to be found by the friend, jumping to the end.
Specifically, if a buddy in the buddy list information of the user uses the terminal device 103, the buddy may start the allowed buddy discovery function through a setting interface provided by an instant messaging client installed in the terminal device 103.
Substep S142, obtain the present position of the good friend;
in the sub-step, if the friend is judged to start the function allowed to be found by the friend, the current position of the friend is obtained. In one example, the current location of the buddy may be obtained through an LBS.
In this embodiment, the substep S142 includes: collecting the GPS positioning data of the friend; and acquiring the current position of the friend according to the GPS positioning data.
Substep S143, determining whether the current location of the friend is within the specified distance range of the user according to the current location of the friend and the current location of the user;
specifically, the specified distance range refers to a distance range set by the user according to a setting interface provided by the instant messaging client installed in the terminal device 103 or a default distance range of the system.
In this sub-step, if it is determined that the current location of the friend is within the specified distance range of the user, then step S15 is executed; and if the current position of the friend is judged not to be within the specified distance range of the user, jumping to the end.
And step S15, sending a prompt message to the user.
The corresponding steps in this embodiment can be further referred to in the first embodiment, and are not described herein again.
Therefore, by the method for prompting nearby friends provided by the embodiment, the user can conveniently and quickly acquire the prompt information of the nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the method for prompting nearby friends provided by the embodiment can meet the requirement of a user for quickly discovering nearby friends, and the experience of the user on instant messaging is improved.
Third embodiment
A third embodiment provides a method for prompting nearby friends, which is similar to the method provided by the first embodiment. Fig. 6 is a flowchart illustrating the method of the present embodiment. Referring to fig. 6, the method of the present embodiment includes the following steps:
step S11, including the following substeps:
step S111, judging whether information for starting a nearby friend prompt function sent by the user through terminal equipment is received;
in this sub-step, if receiving the information of starting the nearby friend prompt function sent by the user through the terminal device, it indicates that the user is currently or immediately starting the nearby friend prompt function, and performs sub-step S121; if the information for opening the nearby friend prompt function sent by the user through the terminal device is not received, the substep S112 is executed.
Step S112, reading system setting, and judging whether the user starts a nearby friend prompt function according to the system setting;
specifically, the system setting refers to setting information saved after the user provides the user with a setting interface for setting through an instant messaging client installed in the terminal device 101. The system setting comprises information of starting switches corresponding to nearby friend prompt functions, distance ranges set by users, information of starting switches corresponding to friend discovery allowed functions and the like.
In this sub-step, if it is determined that the user has started a nearby friend prompt function, then sub-step 122 is executed; and if the user does not start the prompt function of nearby friends, jumping to the end.
Step S12, including the following substeps:
a substep S121, obtaining the current position of the user in real time;
in this sub-step, upon receiving information sent by a user through terminal equipment to start a prompt function of a nearby friend, the current position of the user is acquired in real time. In one example, obtaining the current location of the user in real-time includes: and collecting the GPS positioning data of the user in real time, and acquiring the current position of the user according to the GPS positioning data of the user.
Substep S122, obtaining the current position of the user in fixed time;
in this sub-step, if it is determined that the user has started the nearby friend prompt function according to the system setting, it indicates that the nearby friend prompt function of the user is in a started state, and the current location of the user is obtained at regular time, that is, the current location of the user is obtained every preset time, where the preset time is, for example, 1 hour. In one example, the timing of obtaining the current location of the user comprises: and collecting the GPS positioning data of the user at regular time, and acquiring the current position of the user according to the GPS positioning data of the user.
Step S13, obtaining the friend list information of the user;
step S14, determining whether there is a friend of the user within a specified distance range of the user;
in this step, after the buddy list information of the user is obtained, the current location of the buddy is obtained, and according to the current location of the buddy and the current location of the user, it is further determined whether there is a buddy of the user within the specified distance range of the user, if yes, step S15 is executed; if not, jumping to the end. In other embodiments, if the method is that after receiving the information sent by the user through the terminal device to start the prompt function of nearby friends and determining that no friend of the user is within the specified distance range of the user, sending feedback information of no friend nearby to the user.
And step S15, sending a prompt message to the user.
The corresponding steps in this embodiment can be further referred to in the first embodiment, and are not described herein again.
Therefore, by the method for prompting nearby friends provided by the embodiment, the user can conveniently and quickly acquire the prompt information of the nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the method for prompting nearby friends provided by the embodiment can meet the requirement of a user for quickly discovering nearby friends, and the experience of the user on instant messaging is improved.
Fourth embodiment
A fourth embodiment provides a device for prompting nearby friends, which is used for implementing the method for prompting nearby friends in the foregoing embodiments. Fig. 7 is a block diagram showing the structure of the apparatus according to the present embodiment. As shown in fig. 7, the apparatus includes a setting module 300, a first determining module 301, a first obtaining module 302, a second obtaining module 303, a second determining module 304, and a prompting module 305.
The setting module 300 is configured to provide a setting interface to the user, where the setting interface includes an activation switch corresponding to the nearby friend prompt function, a selection item of a distance range, and an activation switch corresponding to the allowed friend discovery function.
The first determining module 301 is configured to determine whether the user starts a nearby friend prompt function.
A first obtaining module 302, configured to obtain a current location of the user if the first determining module 301 determines that the user starts a nearby friend prompt function.
The first acquisition module 302 includes a first gathering unit 312 and a first acquisition unit 322. The second collecting unit 312 is configured to collect GPS positioning data of the user, and the second acquiring unit 322 is configured to acquire a current location of the user according to the GPS positioning data of the user.
A second obtaining module 303, configured to obtain the buddy list information of the user.
A second determining module 304, configured to determine whether a friend of the user is within a specified distance range of the user.
A prompting module 305, configured to send a prompting message to the user if the second determining module 304 determines that the friend of the user is within the specified distance range of the user.
For other contents of the device for prompting nearby friends provided in this embodiment, reference may be made to the first embodiment, which is not described herein again.
Therefore, by the device for prompting nearby friends provided by the embodiment, a user can conveniently and quickly acquire the prompt information of nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the device for prompting nearby friends provided by the embodiment can meet the requirement of a user for quickly discovering nearby friends, and the experience of the user on instant messaging is improved.
Fifth embodiment
A fifth embodiment provides a device for prompting nearby buddies, which is similar to the device provided in the fourth embodiment. Fig. 8 is a block diagram showing the structure of the apparatus according to the present embodiment. As shown in fig. 8, unlike the fourth embodiment:
the second determining module 304 is further configured to sequentially determine whether the buddy in the buddy list information starts a function of allowing discovery by the buddy.
The apparatus further includes a third obtaining module 306, where the third obtaining module 306 is configured to obtain the current location of the friend if the second determining module 304 determines that the friend starts the allowed friend discovery function.
The third acquisition module 306 includes a second gathering unit 316 and a second acquisition unit 326. The first collecting unit 316 is configured to collect GPS positioning data of the friend, and the first obtaining unit 326 is configured to obtain a current location of the friend according to the GPS positioning data of the friend.
The second determining module 304 is further configured to determine whether the current location of the friend is within the specified distance range of the user according to the current location of the friend and the current location of the user.
For other contents of the device for prompting nearby friends provided in this embodiment, reference may be made to the second embodiment, which is not described herein again.
Therefore, by the device for prompting nearby friends provided by the embodiment, a user can conveniently and quickly acquire the prompt information of nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the device for prompting nearby friends provided by the embodiment can meet the requirement of a user for quickly discovering nearby friends, and the experience of the user on instant messaging is improved.
Sixth embodiment
A sixth embodiment provides a device for prompting nearby friends, and the method is similar to the device provided by the fourth embodiment. Fig. 9 is a block diagram showing the structure of the apparatus according to the present embodiment. As shown in fig. 9, unlike the fourth embodiment:
the first judging module 301 includes a first judging unit 311 and a second judging unit 321.
The first judging unit 311 is configured to judge whether information for starting a nearby friend prompt function sent by the user through a terminal device is received.
If the information of starting the prompt function of the nearby friend, which is sent by the user through the terminal device, is received, it indicates that the user starts the prompt function of the nearby friend immediately, and the first obtaining module 302 is configured to obtain the current location of the user in real time.
The second determining unit 321 is configured to, if the information for starting the nearby friend prompt function sent by the user through the terminal device is not received, read system settings, and determine whether the user starts the nearby friend prompt function according to the system settings.
If the second determining unit 321 determines that the user starts a nearby friend prompt function, the first obtaining module 302 is configured to obtain the current location of the user at regular time.
In other embodiments, the apparatus further includes a feedback module (not shown), and after the first determining unit 311 determines that the information for starting the nearby friend prompt function sent by the user through the terminal device is received, and the second determining module 304 determines that no friend of the user is within the specified distance range of the user, the feedback module sends feedback information of no nearby friend to the user.
For other contents of the device for prompting nearby friends provided in this embodiment, reference may be made to the third embodiment, which is not described herein again.
Therefore, by the device for prompting nearby friends provided by the embodiment, a user can conveniently and quickly acquire the prompt information of nearby friends only by starting the functions of the nearby friends so as to contact the nearby friends. Therefore, the device for prompting nearby friends provided by the embodiment can meet the requirement of a user for quickly discovering nearby friends, and the experience of the user on instant messaging is improved.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
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, and 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.
Although the present invention has been described with reference to the preferred embodiments, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for prompting nearby buddies, the method comprising:
if the information of starting the prompt function of the nearby friend, which is sent by the user through the terminal equipment, is not received, reading system setting, and judging whether the user starts the prompt function of the nearby friend or not according to the system setting;
if the user is judged to start the prompt function of nearby friends according to the system setting, the current position of the user is obtained at intervals of preset time;
obtaining friend list information of the user, wherein the friend list information comprises a user-defined friend list;
sequentially judging whether the friend in the friend list starts a function of allowing the friend to discover or not;
if the friend starts the function allowed to be found by the friend, acquiring the current position of the friend;
judging whether the current position of the friend is within an appointed distance range of the user according to the current position of the friend and the current position of the user, wherein the appointed distance range is determined when the operation of the user on a selection item of the distance range in a setting interface is detected; and
if the friend of the user is judged to be within the specified distance range of the user, sending prompt information to the user, wherein the prompt information comprises account information of the friend of the user and the distance between the friend of the user and the user;
and if judging that no friend of the user is within the specified distance range of the user, sending feedback information of no nearby friend to the user.
2. The method of claim 1, wherein the obtaining the current location of the user comprises:
collecting GPS positioning data of the user; and
and acquiring the current position of the user according to the GPS positioning data of the user.
3. The method of claim 1, wherein the obtaining the current location of the friend comprises:
collecting the GPS positioning data of the friend; and
and acquiring the current position of the friend according to the GPS positioning data of the friend.
4. The method of claim 1, wherein before obtaining the buddy list information of the user, the method further comprises:
and if the information of starting the prompt function of the nearby friends, which is sent by the user through the terminal equipment, is received, the current position of the user is obtained in real time.
5. The method of claim 1, further comprising:
and providing a setting interface for the user, wherein the setting interface comprises an actuating switch corresponding to the nearby friend prompt function, a selection item of a distance range and an actuating switch corresponding to the friend discovery allowed function.
6. An apparatus for prompting nearby buddies, the apparatus comprising:
the first judgment module is used for reading system settings if the information of starting the prompt function of the nearby friend, which is sent by the user through the terminal equipment, is not received, and judging whether the user starts the prompt function of the nearby friend or not according to the system settings;
the first obtaining module is used for obtaining the current position of the user at intervals of preset time if the first judging module judges that the user starts a nearby friend prompting function according to the system setting;
the second obtaining module is used for obtaining the friend list information of the user, and the friend list information comprises a friend list defined by the user;
the second judgment module is used for sequentially judging whether the friend in the friend list starts the function of allowing the friend to discover; if the friend starts the function allowed to be found by the friend, acquiring the current position of the friend; judging whether the current position of the friend is within an appointed distance range of the user according to the current position of the friend and the current position of the user, wherein the appointed distance range is determined when the operation of the user on a selection item of the distance range in a setting interface is detected; and
a prompt module, configured to send a prompt message to the user if the second determination module determines that the friend of the user is within the specified distance range of the user, where the prompt message includes account information of the friend of the user and a distance between the friend of the user and the user; and if the second judging module judges that no friend of the user is within the specified distance range of the user, sending feedback information of nearby no friend to the user.
7. The apparatus for prompting nearby friends according to claim 6, wherein the first obtaining module comprises:
the first collecting unit is used for collecting the GPS positioning data of the user; and
and the first acquisition unit is used for acquiring the current position of the user according to the GPS positioning data of the user.
8. The apparatus for prompting nearby friends according to claim 6, wherein the second determining module comprises:
the second collecting unit is used for collecting the GPS positioning data of the friend; and
and the second acquisition unit is used for acquiring the current position of the friend according to the GPS positioning data of the friend.
9. The apparatus for prompting nearby friends according to claim 6, wherein the first determining module comprises:
the first judging unit is used for judging whether information for starting a nearby friend prompt function sent by the user through terminal equipment is received;
if the information of starting the prompt function of the nearby friend, which is sent by the user through the terminal device, is received, it indicates that the user immediately starts the prompt function of the nearby friend, and the first obtaining module is used for obtaining the current position of the user in real time.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the setting module is used for providing a setting interface for the user, wherein the setting interface comprises a starting switch corresponding to the nearby friend prompt function, a selection item of a distance range and a starting switch corresponding to the friend discovery allowed function.
11. A terminal device, characterized in that the terminal device comprises a memory and a processor, wherein the memory stores a set of program codes, and the processor is configured to call the program codes stored in the memory for executing the method of prompting nearby buddies according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that it stores a computer program comprising program instructions which, when executed by a terminal device, cause the terminal device to carry out the method of alerting nearby buddies according to any one of claims 1 to 5.
CN201510567509.9A 2015-09-08 2015-09-08 Method and device for prompting nearby friends Active CN106503023B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510567509.9A CN106503023B (en) 2015-09-08 2015-09-08 Method and device for prompting nearby friends
PCT/CN2016/095230 WO2017041610A1 (en) 2015-09-08 2016-08-15 Method and apparatus for prompting nearby friend

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510567509.9A CN106503023B (en) 2015-09-08 2015-09-08 Method and device for prompting nearby friends

Publications (2)

Publication Number Publication Date
CN106503023A CN106503023A (en) 2017-03-15
CN106503023B true CN106503023B (en) 2021-03-26

Family

ID=58240601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510567509.9A Active CN106503023B (en) 2015-09-08 2015-09-08 Method and device for prompting nearby friends

Country Status (2)

Country Link
CN (1) CN106503023B (en)
WO (1) WO2017041610A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682809A (en) * 2017-09-26 2018-02-09 上海展扬通信技术有限公司 A kind of computer-readable recording medium, mobile terminal and computer system
CN108596435A (en) * 2018-03-28 2018-09-28 深圳市奥拓体育文化发展有限公司 Stadiums rub field method, management system and storage medium
CN110427572A (en) * 2019-07-15 2019-11-08 奇酷互联网络科技(深圳)有限公司 Find good friend's method, mobile terminal and storage medium
CN110536236B (en) * 2019-08-30 2021-08-27 维沃移动通信有限公司 Communication method, terminal equipment and network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102378106A (en) * 2011-11-10 2012-03-14 北京百纳威尔科技有限公司 Mobile terminal, friend prompt method thereof and mobile terminal server
CN103327443A (en) * 2012-03-21 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and linkman searching method
CN104052779A (en) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 Information recommendation method, system thereof and intelligent terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655960B2 (en) * 2008-06-19 2014-02-18 Verizon Patent And Licensing Inc. Location-aware instant messaging
CN102638770A (en) * 2011-02-14 2012-08-15 中兴通讯股份有限公司 Social network realization method and system
CN102695121A (en) * 2011-03-25 2012-09-26 北京千橡网景科技发展有限公司 Method and system for pushing friend information for user in social network
US9344414B2 (en) * 2013-02-01 2016-05-17 Interman Corporation User similarity provision method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102378106A (en) * 2011-11-10 2012-03-14 北京百纳威尔科技有限公司 Mobile terminal, friend prompt method thereof and mobile terminal server
CN103327443A (en) * 2012-03-21 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and linkman searching method
CN104052779A (en) * 2013-03-14 2014-09-17 腾讯科技(深圳)有限公司 Information recommendation method, system thereof and intelligent terminal

Also Published As

Publication number Publication date
CN106503023A (en) 2017-03-15
WO2017041610A1 (en) 2017-03-16

Similar Documents

Publication Publication Date Title
US11825401B2 (en) Systems and methods for wirelessly modifying detection characteristics of portable devices
CN107464557B (en) Call recording method and device, mobile terminal and storage medium
US9799080B2 (en) Method and apparatus for providing a contact address
US8547342B2 (en) Gesture-based delivery from mobile device
RU2640646C2 (en) Method and device for cloud card transmission
EP3029889A1 (en) Method for instant messaging and device thereof
US20150256352A1 (en) Method and device for sharing content between different terminals
US20130262184A1 (en) Systems and Methods for Presence Detection and Linking to Media Exposure Data
JP6714803B1 (en) Image sharing method and electronic device
CN106341365B (en) New account information deleting method and device
CN109121468A (en) Cut-in method and device about network slice
CN108834132B (en) Data transmission method and equipment and related medium product
CN106503023B (en) Method and device for prompting nearby friends
WO2018103441A1 (en) Network positioning method and terminal device
WO2019140657A1 (en) Method and device for network connection and terminal
CN104092723A (en) File downloading method, device and system
CN106131133B (en) Browsing history record information viewing method, device and system
US20140213189A1 (en) Apparatus and method for processing bluetooth data in portable terminal
WO2015010591A1 (en) Method and terminal device for adding contacts
CN105578401A (en) Locating information collection method, locating information collection device and mobile terminal
US11023544B2 (en) User matching method and apparatus
KR20180078104A (en) Interface display method and apparatus
CN104113620A (en) Contact list updating method, updating device and user terminal
CN109041212B (en) Positioning method and wearable device
CN108900385B (en) Network connection method and related product

Legal Events

Date Code Title Description
C06 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