WO2016169441A1 - Message pushing method and apparatus - Google Patents

Message pushing method and apparatus Download PDF

Info

Publication number
WO2016169441A1
WO2016169441A1 PCT/CN2016/079435 CN2016079435W WO2016169441A1 WO 2016169441 A1 WO2016169441 A1 WO 2016169441A1 CN 2016079435 W CN2016079435 W CN 2016079435W WO 2016169441 A1 WO2016169441 A1 WO 2016169441A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile device
determining
message
preset
mobile
Prior art date
Application number
PCT/CN2016/079435
Other languages
French (fr)
Chinese (zh)
Inventor
朱一梦
徐亮
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016169441A1 publication Critical patent/WO2016169441A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/4061Push-to services, e.g. push-to-talk or push-to-video

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a message push method and apparatus.
  • the user In order to distinguish different users, the user needs to log in to his own registered account when using the application, thereby implementing messaging based on the account.
  • the message pushing mechanism in the related art cannot meet the application requirements of the user.
  • the present application provides a message pushing method and apparatus, which can implement intelligent selective push between multiple devices.
  • a message pushing method including:
  • a message pushing apparatus including:
  • a determining unit when detecting that the user account is logged in on a predefined non-mobile device, determining a location relationship between the non-mobile device and a predefined mobile device;
  • a pushing unit when the mobile device is in a use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves a use range of the non-mobile device, moving to the mobile device Device push Send unread messages.
  • FIG. 3 is a schematic diagram of determining a positional relationship between devices according to an exemplary embodiment of the present application.
  • FIG. 4 is a schematic diagram of another determining a positional relationship between devices according to an exemplary embodiment of the present application.
  • FIG. 5 is a schematic diagram of still determining a positional relationship between devices according to an exemplary embodiment of the present application.
  • FIG. 6 is a flowchart of another message pushing method according to an exemplary embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • FIG. 8 is a block diagram of a message push apparatus according to an exemplary embodiment of the present application.
  • FIG. 1 is a schematic diagram of message push in the related art. As shown in FIG. 1, it is assumed that user A simultaneously logs in an instant messaging application on a mobile phone and a computer, and when a friend "white" sends an instant communication message to the user A, There may be two situations:
  • the server when the server simultaneously sends an instant messaging message to all the electronic devices of the logged-in user A account, the mobile phone and the computer will simultaneously receive an unread notification of the instant messaging message of "small white sent a picture"; In one case, according to the prior setting or default mechanism of the user A, only one device in the mobile phone or the computer can receive the unread notification of the instant messaging message "small white sent a picture".
  • user A only needs to perform an unread message viewing operation on either the mobile phone or the computer.
  • user A performs an unread message viewing operation on the computer, then the mobile phone The received unread message belongs to the redundant message, and the user A needs to manually enter the display page of the unread message and exit, so that the reminder of the unread message can be eliminated, and the user A's daily life is affected.
  • the present application aims to solve the above-mentioned technical problems existing in the related art by improving the message pushing mechanism.
  • the following examples are provided:
  • FIG. 2 is a flowchart of a message pushing method according to an exemplary embodiment of the present application. As shown in FIG. 2, the method is applied to a server, and may include the following steps:
  • Step 202 Obtain a login status of the user account.
  • Step 204 When detecting that the user account is logged in on a predefined non-mobile device, determine a location relationship between the non-mobile device and a predefined mobile device.
  • the positional relationship between the non-mobile device and the mobile device can be determined in various ways, and several possible ways are exemplified below.
  • the server receives a notification message sent by any one of the mobile device and the non-mobile device, the notification message indicating whether the any device maintains a preset local area network connection with another device;
  • the preset local area network connection is maintained, determining that the mobile device is in the use range of the non-mobile device; if the preset local area network connection is not maintained, determining that the mobile device is away from the non-mobile device The scope of use.
  • FIG. 3 is a schematic diagram of determining a positional relationship between devices according to an exemplary embodiment of the present application.
  • user A owns a mobile phone and a computer, wherein the mobile phone is a predefined mobile phone.
  • Device while the computer is a predefined non-mobile device.
  • the server can know that there are multiple devices logging in at the same time.
  • the server can initiate a request to the computer (or mobile phone), assuming that the connection is established between the mobile phone and the computer via Bluetooth, the computer can return a notification message to the server to inform the Bluetooth connection between the two. Due to the distance limitation of the establishment of the Bluetooth connection, if the Bluetooth connection is normal, the distance between the mobile phone and the computer is very short, and the user A is likely to be using the computer, and the mobile phone is placed beside the computer (in the range of use of the computer). Therefore, it is possible to push a message to the computer, so that user A can quickly view and reply the push message while using the computer; if Bluetooth The connection is disconnected, indicating that the distance between the mobile phone and the computer is very long. User A may not be in front of the computer, but carry the mobile phone out, and the server can push the message to the mobile phone to avoid the user A cannot view it in time when sending to the computer. message notification.
  • any form of local area network connection may be adopted between the mobile phone and the computer.
  • the preset local area network connection may also include: near field communication established between the non-mobile device and the mobile device. (NFC) connections, non-mobile devices and mobile devices connected to the same WIFI hotspot.
  • NFC near field communication
  • the server separately receives the notification message sent by the mobile device and the non-mobile device, where the notification message includes real-time geographic location information of the corresponding sender;
  • FIG. 4 is a schematic diagram of another determining a positional relationship between devices according to an exemplary embodiment of the present application.
  • a "predefined mobile device” is still used as a mobile phone, and a predefined non-mobile device is used.
  • the server can know that there are multiple devices logging in at the same time.
  • the server can separately initiate a request to the mobile phone and the computer, and the mobile phone and the computer each obtain their own real-time geographic location information, and return the real-time geographic location information to the server through the notification message 1 and the notification message 2. Then, the server can be based on the distance between the two real-time geographic location information. If the distance is very close (less than or equal to the preset distance), it means that user A is likely to be using the computer, and the mobile phone is placed next to the computer (located on the computer). Within the scope of use, it is possible to push messages to the computer, so that user A can quickly view and reply the push message while using the computer; if the distance is larger (greater than the preset distance), it means that user A is probably not in front of the computer. Instead, the mobile phone can go out and the server can push a message to the mobile phone to avoid the user A not being able to view the message reminder in time when sending to the computer.
  • the mobile phone and the computer can obtain their real-time geographical location information in various ways, such as built-in GPS (or other positioning system) chip, base station positioning information, location information of the number segment of the IP address, etc., this application does not limit.
  • GPS or other positioning system
  • the server may separately acquire the non-mobile device and the network of the mobile device Network attribute information
  • the computer can quickly view and reply the push message; if it is not in the same local area network, it means that user A is likely not to be in front of the computer, but to carry the mobile phone out, the server can push the message to the mobile phone to avoid the user when sending to the computer. A can't see the message reminder in time.
  • Step 206 When the mobile device is in the use range of the non-mobile device, push an unread message to the non-mobile device; when the mobile device leaves the use range of the non-mobile device, move to the mobile device The device pushes an unread message.
  • the present application can accurately understand the current device usage status by acquiring the login status of the user account, so as to implement the corresponding message pushing mechanism.
  • the user can be inferred by the positional relationship between multiple devices. The device currently in use, thereby performing intelligent message push on the device.
  • FIG. 6 is a flowchart of another message pushing method according to an exemplary embodiment of the present application. As shown in FIG. 6 , the method is applied to a server, and may include the following steps:
  • Step 604 Determine whether the user account has multiple devices logging in at the same time. If yes, go to step 608, otherwise go to step 606.
  • Step 606 Perform a message push operation by using a corresponding policy according to the current actual situation.
  • step 610 it is determined whether the positional relationship between the plurality of electronic devices changes. If the change is made, the process proceeds to step 612. Otherwise, the process returns to step 608.
  • step 614 the push rule is changed according to the changed positional relationship.
  • the mobile device pre-defined by the user A is a mobile phone carried by the user
  • the predefined non-mobile device is a tablet in the home, and when the user goes out to work during the day, even if the mobile phone and the tablet simultaneously log in to the user's instant communication application.
  • the server can still obtain the real-time geographic location information of the mobile phone and the tablet, respectively, to determine that the two are far apart, and only perform message push to the mobile phone; and if the user finds that the file is forgotten when going to work, and needs to go home to retrieve the file, the server It can be detected that when the user goes home, the mobile phone and the tablet are close to each other; but the user just returns the company immediately after taking the file, so the server can detect that the mobile phone and the tablet are restored to a distant state in a short time. Therefore, the policy of performing message push only to the mobile phone is maintained; and if the user keeps the mobile phone and the tablet close to each other for a long time after returning home from work, it can be changed to a policy of performing message push to the tablet.
  • FIG. 7 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may of course include hardware required for other services.
  • the processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a message push device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • a pushing unit when the mobile device is in a use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves a use range of the non-mobile device, moving to the mobile device The device pushes an unread message.
  • the determining unit is specifically configured to:
  • the preset local area network connection is maintained, determining that the mobile device is in the use range of the non-mobile device; if the preset local area network connection is not maintained, determining that the mobile device is away from the use of the non-mobile device range.
  • the preset local area network connection includes at least one of the following:
  • the determining unit is specifically configured to:
  • Determining a separation distance between the non-mobile device and the mobile device according to the real-time geographic location information wherein, if the separation distance is less than or equal to a preset distance, determining that the mobile device is in the non-mobile Equipment a range of use; if the separation distance is greater than the preset distance, determining that the mobile device leaves the use range of the non-mobile device.
  • the determining unit is specifically configured to:
  • it also includes:
  • the pushing unit when detecting that the user initiates the browsing interface on any of the non-mobile device or the mobile device, the pushing unit also pushes a push message that occurs only on another device as a history record. To any of the devices described.
  • the pushing unit pushes the unread message to the mobile device.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory, such as read only memory (ROM) or flash memory (flashRAM), in a computer readable medium.
  • RAM random access memory
  • ROM read only memory
  • flashRAM flash memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic cassette tape, A magnetic tape storage or other magnetic storage device or any other non-transportable medium can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.

Abstract

The present invention provides a message pushing method and apparatus. The method comprises: acquiring login condition of a user account; when it is detected that the user account is logged in a predefined non-mobile device, determining a position relationship between the non-mobile device and a predefined mobile device; and when the mobile device is in a use range of the non-mobile device, pushing an unread message to the non-mobile device; and when the mobile device leaves away from the use range of the non-mobile device, pushing an unread message to the mobile device. By means of the technical solution of the present application, intelligent selective pushing among multiple devices can be implemented, thereby satisfying a real-time demand of a user on a pushing mode.

Description

消息推送方法及装置Message pushing method and device
本申请要求2015年04月23日递交的申请号为201510199775.0、发明名称为“消息推送方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本申请涉及通信技术领域,尤其涉及消息推送方法及装置。The present application relates to the field of communications technologies, and in particular, to a message push method and apparatus.
背景技术Background technique
很多用户同时拥有多台电子设备,这些电子设备包括同平台或不同平台的电脑、平板、手机等,而通过在每台电子设备上安装同一应用程序,即可在各台电子设备上分别实现不同的实际需求。Many users have multiple electronic devices at the same time. These electronic devices include computers, tablets, mobile phones, etc. on the same platform or different platforms. By installing the same application on each electronic device, different electronic devices can be implemented separately. Actual needs.
为了区分不同用户,用户需要在使用应用程序时登录自己的注册账号,从而基于该账号实现消息收发。然而,当用户在多台电子设备上均登录了同一账号时,将导致相关技术中的消息推送机制无法满足用户的应用需求。In order to distinguish different users, the user needs to log in to his own registered account when using the application, thereby implementing messaging based on the account. However, when a user logs in to the same account on multiple electronic devices, the message pushing mechanism in the related art cannot meet the application requirements of the user.
发明内容Summary of the invention
有鉴于此,本申请提供一种消息推送方法及装置,可以实现多设备之间的智能化的选择性推送。In view of this, the present application provides a message pushing method and apparatus, which can implement intelligent selective push between multiple devices.
为实现上述目的,本申请提供技术方案如下:To achieve the above objective, the present application provides the following technical solutions:
根据本申请的第一方面,提出了一种消息推送方法,包括:According to a first aspect of the present application, a message pushing method is provided, including:
获取用户账号的登录状况;Obtain the login status of the user account;
当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;Determining a location relationship between the non-mobile device and a predefined mobile device when detecting that the user account is logged in on a predefined non-mobile device;
当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。When the mobile device is in the use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves the use range of the non-mobile device, pushing the mobile device to the mobile device Read the message.
根据本申请的第二方面,提出了一种消息推送装置,包括:According to a second aspect of the present application, a message pushing apparatus is provided, including:
获取单元,获取用户账号的登录状况;Obtain a unit to obtain a login status of the user account;
确定单元,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;a determining unit, when detecting that the user account is logged in on a predefined non-mobile device, determining a location relationship between the non-mobile device and a predefined mobile device;
推送单元,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推 送未读消息。a pushing unit, when the mobile device is in a use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves a use range of the non-mobile device, moving to the mobile device Device push Send unread messages.
由以上技术方案可见,本申请通过获取用户账号的登录状况,可以准确了解当前的设备使用情况,以便执行相应的消息推送机制;同时,通过对多台设备之间的位置关系,可以推断出用户当前使用的设备,从而对该设备执行智能化的消息推送。It can be seen from the above technical solution that the present application can accurately understand the current device usage status by acquiring the login status of the user account, so as to implement the corresponding message pushing mechanism. At the same time, the user can be inferred by the positional relationship between multiple devices. The device currently in use, thereby performing intelligent message push on the device.
附图说明DRAWINGS
图1是相关技术中的消息推送的示意图;1 is a schematic diagram of message push in the related art;
图2是根据本申请一示例性实施例的一种消息推送方法的流程图;2 is a flowchart of a message pushing method according to an exemplary embodiment of the present application;
图3是根据本申请一示例性实施例的一种确定设备之间的位置关系的示意图;FIG. 3 is a schematic diagram of determining a positional relationship between devices according to an exemplary embodiment of the present application; FIG.
图4是根据本申请一示例性实施例的另一种确定设备之间的位置关系的示意图;FIG. 4 is a schematic diagram of another determining a positional relationship between devices according to an exemplary embodiment of the present application; FIG.
图5是根据本申请一示例性实施例的又一种确定设备之间的位置关系的示意图;FIG. 5 is a schematic diagram of still determining a positional relationship between devices according to an exemplary embodiment of the present application; FIG.
图6是根据本申请一示例性实施例的另一种消息推送方法的流程图;FIG. 6 is a flowchart of another message pushing method according to an exemplary embodiment of the present application; FIG.
图7是根据本申请一示例性实施例的一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application; FIG.
图8是根据本申请一示例性实施例的一种消息推送装置的框图。FIG. 8 is a block diagram of a message push apparatus according to an exemplary embodiment of the present application.
具体实施方式detailed description
图1是相关技术中的消息推送的示意图,如图1所示,假定用户A同时在手机和电脑上登录了即时通信应用,则当好友“小白”向该用户A发送即时通信消息时,可能存在两种情况:1 is a schematic diagram of message push in the related art. As shown in FIG. 1, it is assumed that user A simultaneously logs in an instant messaging application on a mobile phone and a computer, and when a friend "white" sends an instant communication message to the user A, There may be two situations:
一种情况下,服务器同时将即时通信消息发送至所有已登录用户A账号的电子设备,则手机和电脑将同时接收到“小白发送了一张图片”的即时通信消息的未读通知;另一种情况下,根据用户A的事先设定或默认机制,只有手机或电脑中的一台设备,能够接收到“小白发送了一张图片”的即时通信消息的未读通知。In one case, when the server simultaneously sends an instant messaging message to all the electronic devices of the logged-in user A account, the mobile phone and the computer will simultaneously receive an unread notification of the instant messaging message of "small white sent a picture"; In one case, according to the prior setting or default mechanism of the user A, only one device in the mobile phone or the computer can receive the unread notification of the instant messaging message "small white sent a picture".
那么,对于第一种情况而言,用户A只需要在手机或电脑中的任一方进行未读消息的查看操作即可,比如用户A在电脑上执行了未读消息的查看操作,那么手机上接收到的未读消息就属于冗余消息,需要用户A手动进入该未读消息的展示页面并退出,才能够消除该未读消息的提醒,反而对用户A的日常生活造成影响。Then, for the first case, user A only needs to perform an unread message viewing operation on either the mobile phone or the computer. For example, user A performs an unread message viewing operation on the computer, then the mobile phone The received unread message belongs to the redundant message, and the user A needs to manually enter the display page of the unread message and exit, so that the reminder of the unread message can be eliminated, and the user A's daily life is affected.
对于第二种情况而言,假定用户A设定了仅在电脑上接收未读消息,则当用户A因事外出时,如果忘记在电脑上退出登录,则即便随身携带了已登录账号的手机,仍然无法接收到任何未读消息,给用户A带来极大的困扰。类似的,当用户A在电脑上工作或娱乐时,显然直接在电脑上进行未读消息提醒更方便、回复效率最高,但假定用户A设定了仅在手机上接收未读消息,则即便电脑上已经完成了账号登录,仍然无法接收到任 何未读消息提醒,用户A仍然只能够通过手机进行消息查看和回复操作。In the second case, suppose that User A has set to receive unread messages only on the computer, and when User A goes out of business, if he forgets to log out on the computer, even if he carries the mobile phone with the registered account , still can not receive any unread messages, causing great trouble to User A. Similarly, when user A is working or playing on a computer, it is obviously more convenient and efficient to perform unread message prompts directly on the computer, but assume that user A sets to receive unread messages only on the mobile phone, even if the computer I have already completed the account login and still can't receive any account. Why did not read the message reminder, User A can still only view and reply to the message through the mobile phone.
因此,本申请通过对消息推送机制的改进,以期解决相关技术中存在的上述技术问题。为对本申请进行进一步说明,提供下列实施例:Therefore, the present application aims to solve the above-mentioned technical problems existing in the related art by improving the message pushing mechanism. In order to further illustrate this application, the following examples are provided:
图2是根据本申请一示例性实施例的一种消息推送方法的流程图,如图2所示,该方法应用于服务器中,可以包括以下步骤:FIG. 2 is a flowchart of a message pushing method according to an exemplary embodiment of the present application. As shown in FIG. 2, the method is applied to a server, and may include the following steps:
步骤202,获取用户账号的登录状况。Step 202: Obtain a login status of the user account.
步骤204,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系。Step 204: When detecting that the user account is logged in on a predefined non-mobile device, determine a location relationship between the non-mobile device and a predefined mobile device.
在本申请中,若定义为“非移动设备”,则表明用户不会随身携带该设备,往往在公司办公或在家中娱乐时使用,比如电脑、平板等;若定义为“移动设备”,则表明用户会随身携带该设备,比如手机等。当然,用户可以预先对每台电子设备的属性进行随意定义,无论电子设备本身是否为移动设备,比如电脑、平板、手机等,均可以定义为“非移动设备”或“移动设备”。In the present application, if it is defined as "non-mobile device", it means that the user does not carry the device with him or her, and is often used in the company office or at home for entertainment, such as a computer, a tablet, etc.; if defined as "mobile device", Indicates that the user will carry the device with him or her, such as a mobile phone. Of course, the user can define the attributes of each electronic device in advance, regardless of whether the electronic device itself is a mobile device, such as a computer, a tablet, a mobile phone, etc., and can be defined as a "non-mobile device" or a "mobile device."
在本申请中,可以通过多种方式确定非移动设备与移动设备之间的位置关系,下面对其中几种可能的方式进行举例说明。In the present application, the positional relationship between the non-mobile device and the mobile device can be determined in various ways, and several possible ways are exemplified below.
实施例一Embodiment 1
作为一示例性实施例,服务器接收移动设备与非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;As an exemplary embodiment, the server receives a notification message sent by any one of the mobile device and the non-mobile device, the notification message indicating whether the any device maintains a preset local area network connection with another device;
其中,若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。If the preset local area network connection is maintained, determining that the mobile device is in the use range of the non-mobile device; if the preset local area network connection is not maintained, determining that the mobile device is away from the non-mobile device The scope of use.
图3是根据本申请一示例性实施例的一种确定设备之间的位置关系的示意图,如图3所示,假定在该场景下,用户A拥有手机和电脑,其中手机为预定义的移动设备,而电脑为预定义的非移动设备。当用户A分别在手机和电脑上登录了自己的同一账号后,服务器能够了解到该账号存在多设备同时登录的情况。FIG. 3 is a schematic diagram of determining a positional relationship between devices according to an exemplary embodiment of the present application. As shown in FIG. 3, it is assumed that in this scenario, user A owns a mobile phone and a computer, wherein the mobile phone is a predefined mobile phone. Device, while the computer is a predefined non-mobile device. When user A logs in to the same account on the mobile phone and the computer respectively, the server can know that there are multiple devices logging in at the same time.
服务器可以向电脑(或手机)发起请求,则假定手机和电脑之间通过蓝牙建立了连接,电脑可以向服务器返回通知消息,以告知两者之间的蓝牙连接状况。由于蓝牙连接的建立存在距离限制,则如果蓝牙连接正常,说明手机和电脑之间的距离很短,用户A很可能正在使用电脑,而将手机放在电脑旁(位于电脑的使用范围内),因此可以向电脑推送消息,便于用户A在使用电脑的同时实现推送消息的快速查看和回复;如果蓝牙 连接断开,说明手机和电脑之间的距离很远,用户A很可能并不在电脑前,而是携带手机外出,则服务器可以向手机推送消息,以避免发送至电脑时用户A无法及时查看到消息提醒。The server can initiate a request to the computer (or mobile phone), assuming that the connection is established between the mobile phone and the computer via Bluetooth, the computer can return a notification message to the server to inform the Bluetooth connection between the two. Due to the distance limitation of the establishment of the Bluetooth connection, if the Bluetooth connection is normal, the distance between the mobile phone and the computer is very short, and the user A is likely to be using the computer, and the mobile phone is placed beside the computer (in the range of use of the computer). Therefore, it is possible to push a message to the computer, so that user A can quickly view and reply the push message while using the computer; if Bluetooth The connection is disconnected, indicating that the distance between the mobile phone and the computer is very long. User A may not be in front of the computer, but carry the mobile phone out, and the server can push the message to the mobile phone to avoid the user A cannot view it in time when sending to the computer. message notification.
在本实施例中,手机和电脑之间可以采用任意形式的局域网络连接,比如除了蓝牙连接之外,预设的局域网络连接也可以包括:非移动设备与移动设备之间建立的近场通信(NFC)连接、非移动设备与移动设备连接至同一WIFI热点等。In this embodiment, any form of local area network connection may be adopted between the mobile phone and the computer. For example, in addition to the Bluetooth connection, the preset local area network connection may also include: near field communication established between the non-mobile device and the mobile device. (NFC) connections, non-mobile devices and mobile devices connected to the same WIFI hotspot.
实施例二Embodiment 2
在另一示例性实施例中,服务器分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;In another exemplary embodiment, the server separately receives the notification message sent by the mobile device and the non-mobile device, where the notification message includes real-time geographic location information of the corresponding sender;
然后,根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。And determining, according to the real-time geographic location information, a separation distance between the non-mobile device and the mobile device; wherein, if the separation distance is less than or equal to a preset distance, determining that the mobile device is in the The range of use of the non-mobile device; if the separation distance is greater than the preset distance, determining that the mobile device leaves the use range of the non-mobile device.
图4是根据本申请一示例性实施例的另一种确定设备之间的位置关系的示意图,如图4所示,仍以“预定义的移动设备”为手机、“预定义的非移动设备”为电脑为例,当用户A分别在手机和电脑上登录了自己的同一账号后,服务器能够了解到该账号存在多设备同时登录的情况。FIG. 4 is a schematic diagram of another determining a positional relationship between devices according to an exemplary embodiment of the present application. As shown in FIG. 4, a "predefined mobile device" is still used as a mobile phone, and a predefined non-mobile device is used. For the example of a computer, when user A logs in to the same account on the mobile phone and the computer respectively, the server can know that there are multiple devices logging in at the same time.
服务器可以向手机和电脑分别发起请求,则手机和电脑各自获取自身的实时地理位置信息,并通过通知消息1和通知消息2,将实时地理位置信息返回至服务器。那么,服务器可以根据两个实时地理位置信息之间的距离状况,如果距离很近(小于或等于预设距离),则说明用户A很可能正在使用电脑,而将手机放在电脑旁(位于电脑的使用范围内),因此可以向电脑推送消息,便于用户A在使用电脑的同时实现推送消息的快速查看和回复;如果距离较大(大于预设距离),说明用户A很可能并不在电脑前,而是携带手机外出,则服务器可以向手机推送消息,以避免发送至电脑时用户A无法及时查看到消息提醒。The server can separately initiate a request to the mobile phone and the computer, and the mobile phone and the computer each obtain their own real-time geographic location information, and return the real-time geographic location information to the server through the notification message 1 and the notification message 2. Then, the server can be based on the distance between the two real-time geographic location information. If the distance is very close (less than or equal to the preset distance), it means that user A is likely to be using the computer, and the mobile phone is placed next to the computer (located on the computer). Within the scope of use, it is possible to push messages to the computer, so that user A can quickly view and reply the push message while using the computer; if the distance is larger (greater than the preset distance), it means that user A is probably not in front of the computer. Instead, the mobile phone can go out and the server can push a message to the mobile phone to avoid the user A not being able to view the message reminder in time when sending to the computer.
其中,手机和电脑可以通过多种方式获取自身的实时地理位置信息,比如内置的GPS(或其他定位系统)芯片、基站定位信息、IP地址所属号段的位置信息等,本申请并不对此进行限制。Among them, the mobile phone and the computer can obtain their real-time geographical location information in various ways, such as built-in GPS (or other positioning system) chip, base station positioning information, location information of the number segment of the IP address, etc., this application does not limit.
实施例三Embodiment 3
作为又一示例性实施例,服务器可以分别获取所述非移动设备与所述移动设备的网 络属性信息;As still another exemplary embodiment, the server may separately acquire the non-mobile device and the network of the mobile device Network attribute information;
然后,根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。And determining, according to the network attribute information, that the non-mobile device is in the same local area network as the mobile device, determining that the mobile device is in a use range of the non-mobile device; If the mobile device is not in the same local area network as the mobile device, it is determined that the mobile device leaves the use range of the non-mobile device.
图5是根据本申请一示例性实施例的又一种确定设备之间的位置关系的示意图,如图5所示,仍以“预定义的移动设备”为手机、“预定义的非移动设备”为电脑为例,当用户A分别在手机和电脑上登录了自己的同一账号后,服务器能够了解到该账号存在多设备同时登录的情况。FIG. 5 is a schematic diagram of still determining a positional relationship between devices according to an exemplary embodiment of the present application. As shown in FIG. 5, a "predefined mobile device" is still used as a mobile phone, and a predefined non-mobile device is used. For the example of a computer, when user A logs in to the same account on the mobile phone and the computer respectively, the server can know that there are multiple devices logging in at the same time.
服务器在接收到手机和电脑发送的报文后,比如在执行账号登录期间接收到的报文,即可了解手机和电脑所处的网络环境,比如IP地址等网络属性信息,则可以据此判断手机和电脑是否处于同一局域网络内。若采用有线方式连接,则局域网络受限于网线的物理长度、场地限制等,若采用无线方式连接,则局域网络受限于无线信号随距离的逐步衰减、障碍物的阻挡等,因而同一局域网络内的电子设备必然存在较短的间隔距离。所以,当判定手机和电脑处于同一局域网络时,说明用户A很可能正在使用电脑,而将手机放在电脑旁(位于电脑的使用范围内),因此可以向电脑推送消息,便于用户A在使用电脑的同时实现推送消息的快速查看和回复;如果未处于同一局域网络,说明用户A很可能并不在电脑前,而是携带手机外出,则服务器可以向手机推送消息,以避免发送至电脑时用户A无法及时查看到消息提醒。After receiving the message sent by the mobile phone and the computer, for example, the message received during the account login period, the server can understand the network environment where the mobile phone and the computer are located, such as the network attribute information such as the IP address, and then can judge according to this Is the phone and computer in the same local area network? If wired connection is used, the local area network is limited by the physical length of the network cable, the site limitation, etc. If the wireless connection is used, the local area network is limited by the gradual attenuation of the wireless signal with distance, the blocking of obstacles, etc., and thus the same local area network. Electronic devices within the network must have a short separation distance. Therefore, when it is determined that the mobile phone and the computer are in the same local area network, it indicates that user A is likely to be using the computer, and the mobile phone is placed beside the computer (in the range of use of the computer), so that the message can be pushed to the computer, so that user A is using At the same time, the computer can quickly view and reply the push message; if it is not in the same local area network, it means that user A is likely not to be in front of the computer, but to carry the mobile phone out, the server can push the message to the mobile phone to avoid the user when sending to the computer. A can't see the message reminder in time.
步骤206,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。Step 206: When the mobile device is in the use range of the non-mobile device, push an unread message to the non-mobile device; when the mobile device leaves the use range of the non-mobile device, move to the mobile device The device pushes an unread message.
由以上技术方案可见,本申请通过获取用户账号的登录状况,可以准确了解当前的设备使用情况,以便执行相应的消息推送机制;同时,通过对多台设备之间的位置关系,可以推断出用户当前使用的设备,从而对该设备执行智能化的消息推送。It can be seen from the above technical solution that the present application can accurately understand the current device usage status by acquiring the login status of the user account, so as to implement the corresponding message pushing mechanism. At the same time, the user can be inferred by the positional relationship between multiple devices. The device currently in use, thereby performing intelligent message push on the device.
图6是根据本申请一示例性实施例的另一种消息推送方法的流程图,如图6所示,该方法应用于服务器,可以包括以下步骤:FIG. 6 is a flowchart of another message pushing method according to an exemplary embodiment of the present application. As shown in FIG. 6 , the method is applied to a server, and may include the following steps:
步骤602,获取用户账号的登录状况。Step 602: Obtain a login status of the user account.
步骤604,判定用户账号是否存在多设备同时登录的情况,若存在,则转入步骤608,否则转入步骤606。 Step 604: Determine whether the user account has multiple devices logging in at the same time. If yes, go to step 608, otherwise go to step 606.
步骤606,根据当前的实际情况,采用对应的策略执行消息推送操作。Step 606: Perform a message push operation by using a corresponding policy according to the current actual situation.
步骤608,对于同时登录的多台电子设备,确定相互之间的位置关系。 Step 608, determining a positional relationship between each other for a plurality of electronic devices that are simultaneously logged in.
在本实施例中,可以通过如图3-5中任一实施例的方式,确定多台电子设备之间的位置关系,此处不再赘述。In this embodiment, the positional relationship between multiple electronic devices may be determined by using any of the embodiments in FIG. 3-5, and details are not described herein again.
通过获取多台电子设备之间的位置关系,比如当多台电子设备之间存在局域网络连接或位于同一处时,说明用户可能正在使用其中预定义的非移动设备,则转入步骤606时,向该预定义的非移动设备执行消息推送即可;当多台电子设备不存在局域网络连接或未处于同一处时,说明用户可能携带预定义的移动设备外出,则转入步骤606时,向该预定义的移动设备执行消息推送即可。By obtaining a positional relationship between multiple electronic devices, such as when there is a local area network connection between multiple electronic devices or at the same place, indicating that the user may be using a predefined non-mobile device therein, then proceeding to step 606, Performing message push to the predefined non-mobile device; when multiple electronic devices do not have a local area network connection or are not in the same place, indicating that the user may carry a predefined mobile device to go out, then when proceeding to step 606, The predefined mobile device can perform message push.
步骤610,判断多台电子设备之间的位置关系是否发生变化,若变化则转入步骤612,否则返回步骤608。In step 610, it is determined whether the positional relationship between the plurality of electronic devices changes. If the change is made, the process proceeds to step 612. Otherwise, the process returns to step 608.
步骤612,记录位置关系的持续变化时长,若超出预设时长,则转入步骤614,否则返回步骤608。In step 612, the duration of the change of the positional relationship is recorded. If the preset duration is exceeded, the process proceeds to step 614, otherwise, the process returns to step 608.
步骤614,按照变化后的位置关系,更改推送规则。In step 614, the push rule is changed according to the changed positional relationship.
在本实施例中,假定用户A预定义的移动设备为随身携带的手机,预定义的非移动设备为家中的平板,则当用户白天外出上班时,即便手机和平板同时登录用户的即时通信应用,服务器仍然可以通过如分别获取手机和平板的实时地理位置信息,确定两者相距较远,仅向手机执行消息推送;而如果用户在上班时发现文件忘记带,需要回家取文件,则服务器可以检测到用户回家时,手机和平板之间相距较近;但用户只是拿了文件后立即返回公司,因而服务器可以检测到手机和平板在短时间内,间隔距离重新恢复到较远的状态,因而维持仅向手机执行消息推送的策略;而如果用户下班回家后,手机和平板长时间保持较近的距离,则可以更改为向平板执行消息推送的策略。In this embodiment, it is assumed that the mobile device pre-defined by the user A is a mobile phone carried by the user, and the predefined non-mobile device is a tablet in the home, and when the user goes out to work during the day, even if the mobile phone and the tablet simultaneously log in to the user's instant communication application. The server can still obtain the real-time geographic location information of the mobile phone and the tablet, respectively, to determine that the two are far apart, and only perform message push to the mobile phone; and if the user finds that the file is forgotten when going to work, and needs to go home to retrieve the file, the server It can be detected that when the user goes home, the mobile phone and the tablet are close to each other; but the user just returns the company immediately after taking the file, so the server can detect that the mobile phone and the tablet are restored to a distant state in a short time. Therefore, the policy of performing message push only to the mobile phone is maintained; and if the user keeps the mobile phone and the tablet close to each other for a long time after returning home from work, it can be changed to a policy of performing message push to the tablet.
此外,本申请的上述任一实施例中,服务器还可以检测用户在预定义的非移动设备或预定义的移动设备中的任一设备上启动浏览界面操作(即推送消息对应的应用程序的浏览界面);若检测到,则将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备,以便用户在每台设备上均可以查看所有的消息推送内容,无需在多台设备之间反复对比和查看。In addition, in any of the foregoing embodiments of the present application, the server may further detect that the user initiates a browsing interface operation on any one of the predefined non-mobile devices or the predefined mobile device (ie, browsing the application corresponding to the push message). Interface); if detected, the push message generated only on another device is pushed to the any device as a history, so that the user can view all the message push content on each device without having to be in multiple devices. Repeated comparison and viewing between devices.
此外,在本申请的上述实施例中,当向预定义的非移动设备推送的未读消息在预设时间内未被读取时,可以向预定义的移动设备推送所述未读消息。由于用户可能未在使用非移动设备,或者非移动设备的消息提示方式未能引起用户注意,往往导致用户无法 及时意识到未读消息并进行查看,因而可以通过向移动设备执行相应的消息推送,从而确保用户能够完成对该消息的查看,避免遗漏。Moreover, in the above-described embodiments of the present application, when an unread message pushed to a predefined non-mobile device is not read within a preset time, the unread message can be pushed to a predefined mobile device. Since the user may not be using a non-mobile device, or the message prompting method of the non-mobile device fails to attract the user's attention, the user is often unable to Being aware of unread messages and viewing them in time can ensure that users can complete the viewing of the messages and avoid omissions by performing corresponding message pushes to the mobile device.
图7示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图7,在硬件层面,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成消息推送装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。FIG. 7 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. Referring to FIG. 7, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may of course include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs to form a message push device at a logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
请参考图8,在软件实施方式中,该消息推送装置可以包括获取单元、确定单元和推送单元。其中:Referring to FIG. 8, in a software implementation, the message pushing apparatus may include an obtaining unit, a determining unit, and a pushing unit. among them:
获取单元,获取用户账号的登录状况;Obtain a unit to obtain a login status of the user account;
确定单元,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;a determining unit, when detecting that the user account is logged in on a predefined non-mobile device, determining a location relationship between the non-mobile device and a predefined mobile device;
推送单元,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。a pushing unit, when the mobile device is in a use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves a use range of the non-mobile device, moving to the mobile device The device pushes an unread message.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
接收所述移动设备与所述非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;Receiving a notification message sent by the mobile device and any one of the non-mobile devices, the notification message indicating whether the any device maintains a preset local area network connection with another device;
若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。If the preset local area network connection is maintained, determining that the mobile device is in the use range of the non-mobile device; if the preset local area network connection is not maintained, determining that the mobile device is away from the use of the non-mobile device range.
可选的,预设的局域网络连接包括以下至少之一:Optionally, the preset local area network connection includes at least one of the following:
所述非移动设备与所述移动设备之间建立的蓝牙连接、所述非移动设备与所述移动设备之间建立的近场通信连接、所述非移动设备与所述移动设备连接至同一WIFI热点。a Bluetooth connection established between the non-mobile device and the mobile device, a near field communication connection established between the non-mobile device and the mobile device, and the non-mobile device and the mobile device connected to the same WIFI hot spot.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;Receiving, by the mobile device and the non-mobile device, a notification message, where the notification message includes real-time geographic location information of the corresponding sender;
根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备 的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。Determining a separation distance between the non-mobile device and the mobile device according to the real-time geographic location information; wherein, if the separation distance is less than or equal to a preset distance, determining that the mobile device is in the non-mobile Equipment a range of use; if the separation distance is greater than the preset distance, determining that the mobile device leaves the use range of the non-mobile device.
可选的,所述确定单元具体用于:Optionally, the determining unit is specifically configured to:
分别获取所述非移动设备与所述移动设备的网络属性信息;Obtaining network attribute information of the non-mobile device and the mobile device respectively;
根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。Determining, according to the network attribute information, that the non-mobile device is in the same local area network as the mobile device, determining that the mobile device is in a use range of the non-mobile device; and if the non-mobile device is identified If the mobile device is not in the same local area network, it is determined that the mobile device leaves the use range of the non-mobile device.
可选的,还包括:Optionally, it also includes:
记录单元,当所述非移动设备与所述移动设备之间的位置关系发生变化时,记录变化持续时长;a recording unit, when the positional relationship between the non-mobile device and the mobile device changes, the change duration of the record is changed;
若所述变化持续时长大于或等于预设时长,则所述推送单元按照变化后的位置关系执行消息推送;若所述变化持续时长小于预设时长,则所述推送单元维持原来的消息推送方式。If the duration of the change is greater than or equal to the preset duration, the push unit performs message push according to the changed positional relationship; if the change duration is less than the preset duration, the push unit maintains the original message push mode. .
可选的,当检测到用户在所述非移动设备或所述移动设备中的任一设备上启动浏览界面时,所述推送单元还将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备。Optionally, when detecting that the user initiates the browsing interface on any of the non-mobile device or the mobile device, the pushing unit also pushes a push message that occurs only on another device as a history record. To any of the devices described.
可选的,当向所述非移动设备推送的未读消息在预设时间内未被读取时,所述推送单元向所述移动设备推送所述未读消息。Optionally, when the unread message pushed to the non-mobile device is not read within a preset time, the pushing unit pushes the unread message to the mobile device.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flashRAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory, such as read only memory (ROM) or flash memory (flashRAM), in a computer readable medium. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带, 磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic cassette tape, A magnetic tape storage or other magnetic storage device or any other non-transportable medium can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (16)

  1. 一种消息推送方法,其特征在于,包括:A message pushing method, comprising:
    获取用户账号的登录状况;Obtain the login status of the user account;
    当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;Determining a location relationship between the non-mobile device and a predefined mobile device when detecting that the user account is logged in on a predefined non-mobile device;
    当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。When the mobile device is in the use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves the use range of the non-mobile device, pushing the mobile device to the mobile device Read the message.
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述非移动设备与所述移动设备之间的位置关系,包括:The method according to claim 1, wherein the determining a positional relationship between the non-mobile device and the mobile device comprises:
    接收所述移动设备与所述非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;Receiving a notification message sent by the mobile device and any one of the non-mobile devices, the notification message indicating whether the any device maintains a preset local area network connection with another device;
    若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。If the preset local area network connection is maintained, determining that the mobile device is in the use range of the non-mobile device; if the preset local area network connection is not maintained, determining that the mobile device is away from the use of the non-mobile device range.
  3. 根据权利要求2所述的方法,其特征在于,预设的局域网络连接包括以下至少之一:The method according to claim 2, wherein the preset local area network connection comprises at least one of the following:
    所述非移动设备与所述移动设备之间建立的蓝牙连接、所述非移动设备与所述移动设备之间建立的近场通信连接、所述非移动设备与所述移动设备连接至同一WIFI热点。a Bluetooth connection established between the non-mobile device and the mobile device, a near field communication connection established between the non-mobile device and the mobile device, and the non-mobile device and the mobile device connected to the same WIFI hot spot.
  4. 根据权利要求1所述的方法,其特征在于,所述确定所述非移动设备与所述移动设备之间的位置关系,包括:The method according to claim 1, wherein the determining a positional relationship between the non-mobile device and the mobile device comprises:
    分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;Receiving, by the mobile device and the non-mobile device, a notification message, where the notification message includes real-time geographic location information of the corresponding sender;
    根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。Determining a separation distance between the non-mobile device and the mobile device according to the real-time geographic location information; wherein, if the separation distance is less than or equal to a preset distance, determining that the mobile device is in the non-mobile a range of use of the device; if the separation distance is greater than the preset distance, determining that the mobile device leaves the use range of the non-mobile device.
  5. 根据权利要求1所述的方法,其特征在于,所述确定所述非移动设备与所述移动设备之间的位置关系,包括:The method according to claim 1, wherein the determining a positional relationship between the non-mobile device and the mobile device comprises:
    分别获取所述非移动设备与所述移动设备的网络属性信息;Obtaining network attribute information of the non-mobile device and the mobile device respectively;
    根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网 络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。Determining, according to the network attribute information, that the non-mobile device is in the same local area network as the mobile device Within the network, determining that the mobile device is in the use range of the non-mobile device; if it is recognized that the non-mobile device is not in the same local area network as the mobile device, determining that the mobile device is away from the non-mobile device The scope of use of the device.
  6. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    当所述非移动设备与所述移动设备之间的位置关系发生变化时,记录变化持续时长;When the positional relationship between the non-mobile device and the mobile device changes, the record change duration is long;
    若所述变化持续时长大于或等于预设时长,则按照变化后的位置关系执行消息推送;若所述变化持续时长小于预设时长,则维持原来的消息推送方式。If the duration of the change is greater than or equal to the preset duration, the message push is performed according to the changed positional relationship; if the duration of the change is less than the preset duration, the original message push mode is maintained.
  7. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    当检测到用户在所述非移动设备或所述移动设备中的任一设备上启动浏览界面时,将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备。When it is detected that the user launches the browsing interface on any of the non-mobile device or the mobile device, push messages generated only on the other device are pushed to the any device as a history.
  8. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    当向所述非移动设备推送的未读消息在预设时间内未被读取时,向所述移动设备推送所述未读消息。The unread message is pushed to the mobile device when an unread message pushed to the non-mobile device is not read within a preset time.
  9. 一种消息推送装置,其特征在于,包括:A message pushing device, comprising:
    获取单元,获取用户账号的登录状况;Obtain a unit to obtain a login status of the user account;
    确定单元,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;a determining unit, when detecting that the user account is logged in on a predefined non-mobile device, determining a location relationship between the non-mobile device and a predefined mobile device;
    推送单元,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。a pushing unit, when the mobile device is in a use range of the non-mobile device, pushing an unread message to the non-mobile device; when the mobile device leaves a use range of the non-mobile device, moving to the mobile device The device pushes an unread message.
  10. 根据权利要求9所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 9, wherein the determining unit is specifically configured to:
    接收所述移动设备与所述非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;Receiving a notification message sent by the mobile device and any one of the non-mobile devices, the notification message indicating whether the any device maintains a preset local area network connection with another device;
    若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。If the preset local area network connection is maintained, determining that the mobile device is in the use range of the non-mobile device; if the preset local area network connection is not maintained, determining that the mobile device is away from the use of the non-mobile device range.
  11. 根据权利要求10所述的装置,其特征在于,预设的局域网络连接包括以下至少之一:The apparatus according to claim 10, wherein the preset local area network connection comprises at least one of the following:
    所述非移动设备与所述移动设备之间建立的蓝牙连接、所述非移动设备与所述移动 设备之间建立的近场通信连接、所述非移动设备与所述移动设备连接至同一WIFI热点。a Bluetooth connection established between the non-mobile device and the mobile device, the non-mobile device and the mobile A near field communication connection established between the devices, the non-mobile device and the mobile device being connected to the same WIFI hotspot.
  12. 根据权利要求9所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 9, wherein the determining unit is specifically configured to:
    分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;Receiving, by the mobile device and the non-mobile device, a notification message, where the notification message includes real-time geographic location information of the corresponding sender;
    根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。Determining a separation distance between the non-mobile device and the mobile device according to the real-time geographic location information; wherein, if the separation distance is less than or equal to a preset distance, determining that the mobile device is in the non-mobile a range of use of the device; if the separation distance is greater than the preset distance, determining that the mobile device leaves the use range of the non-mobile device.
  13. 根据权利要求9所述的装置,其特征在于,所述确定单元具体用于:The device according to claim 9, wherein the determining unit is specifically configured to:
    分别获取所述非移动设备与所述移动设备的网络属性信息;Obtaining network attribute information of the non-mobile device and the mobile device respectively;
    根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。Determining, according to the network attribute information, that the non-mobile device is in the same local area network as the mobile device, determining that the mobile device is in a use range of the non-mobile device; and if the non-mobile device is identified If the mobile device is not in the same local area network, it is determined that the mobile device leaves the use range of the non-mobile device.
  14. 根据权利要求9所述的装置,其特征在于,还包括:The device according to claim 9, further comprising:
    记录单元,当所述非移动设备与所述移动设备之间的位置关系发生变化时,记录变化持续时长;a recording unit, when the positional relationship between the non-mobile device and the mobile device changes, the change duration of the record is changed;
    若所述变化持续时长大于或等于预设时长,则所述推送单元按照变化后的位置关系执行消息推送;若所述变化持续时长小于预设时长,则所述推送单元维持原来的消息推送方式。If the duration of the change is greater than or equal to the preset duration, the push unit performs message push according to the changed positional relationship; if the change duration is less than the preset duration, the push unit maintains the original message push mode. .
  15. 根据权利要求9所述的装置,其特征在于,当检测到用户在所述非移动设备或所述移动设备中的任一设备上启动浏览界面时,所述推送单元还将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备。The apparatus according to claim 9, wherein when it is detected that a user launches a browsing interface on any of the non-mobile device or the mobile device, the push unit will also be only on another device Push messages that occur on the push are pushed to any of the devices as a history.
  16. 根据权利要求9所述的装置,其特征在于,当向所述非移动设备推送的未读消息在预设时间内未被读取时,所述推送单元向所述移动设备推送所述未读消息。 The apparatus according to claim 9, wherein said push unit pushes said unread to said mobile device when an unread message pushed to said non-mobile device is not read within a preset time Message.
PCT/CN2016/079435 2015-04-23 2016-04-15 Message pushing method and apparatus WO2016169441A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510199775.0 2015-04-23
CN201510199775.0A CN106161565B (en) 2015-04-23 2015-04-23 Information push method and device

Publications (1)

Publication Number Publication Date
WO2016169441A1 true WO2016169441A1 (en) 2016-10-27

Family

ID=57144406

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079435 WO2016169441A1 (en) 2015-04-23 2016-04-15 Message pushing method and apparatus

Country Status (2)

Country Link
CN (1) CN106161565B (en)
WO (1) WO2016169441A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804434A (en) * 2017-04-26 2018-11-13 腾讯科技(深圳)有限公司 A kind of message query method, server and terminal device
CN111884906A (en) * 2020-06-10 2020-11-03 维沃移动通信有限公司 Information notification method and device and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156311B (en) * 2017-12-05 2021-04-13 北京小米移动软件有限公司 Message reminding method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060098795A1 (en) * 2004-11-10 2006-05-11 Choti Joseph F Multiple user login detection and response system
CN101938689A (en) * 2009-06-29 2011-01-05 阿尔卡特朗讯 Position information-based session establishing method and device in one number service
CN102546640A (en) * 2012-01-13 2012-07-04 百度在线网络技术(北京)有限公司 Information circulation method and server in single-account number and multiple-device login

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061730A (en) * 2004-09-21 2007-10-24 内托马特公司 Mobile messaging system and method
US9226020B2 (en) * 2011-05-03 2015-12-29 Lg Electronics Inc. Electronic device and method for operating the same
AU2013397219B2 (en) * 2013-06-26 2017-08-24 Huawei Technologies Co., Ltd. User information notification method and mobile service switching center

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060098795A1 (en) * 2004-11-10 2006-05-11 Choti Joseph F Multiple user login detection and response system
CN101938689A (en) * 2009-06-29 2011-01-05 阿尔卡特朗讯 Position information-based session establishing method and device in one number service
CN102546640A (en) * 2012-01-13 2012-07-04 百度在线网络技术(北京)有限公司 Information circulation method and server in single-account number and multiple-device login

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804434A (en) * 2017-04-26 2018-11-13 腾讯科技(深圳)有限公司 A kind of message query method, server and terminal device
CN108804434B (en) * 2017-04-26 2022-12-27 腾讯科技(深圳)有限公司 Message query method, server and terminal equipment
CN111884906A (en) * 2020-06-10 2020-11-03 维沃移动通信有限公司 Information notification method and device and electronic equipment

Also Published As

Publication number Publication date
CN106161565B (en) 2019-08-16
CN106161565A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US9501771B2 (en) Method and system for exchanging information updates between mobile devices
CA2862876C (en) Systems and methods for sharing data among multiple end user devices
JP6352407B2 (en) Fusion of geofence events
US9419733B2 (en) Effective broadcasting of emergency messages
US20150119084A1 (en) System and method for positioning terminal
US10212544B2 (en) Method for deleting push information, server and terminal device
KR102249413B1 (en) Image sharing method and electronic device
TWI737227B (en) Event processing method, device and computer readable storage medium
US11210633B2 (en) Collaborative event processing method and apparatus
WO2016169441A1 (en) Message pushing method and apparatus
US20140310780A1 (en) Communication system
JP6085719B2 (en) User notification method, user notification device, program, and recording medium
US9485633B2 (en) Message timestamp re-alignment for message thread consistency across multiple devices
US20160041879A1 (en) Data backup to and restore from trusted devices
WO2014190777A1 (en) Method, apparatus, and system for exchanging electronic business card
JP5632315B2 (en) Terminal remote operation system and remote operation method
CN106331035A (en) Tracking prevention method and terminal
US11038828B2 (en) Automatic display of session interface for communication with neighboring device
US10171394B2 (en) Multimedia mail service
TW201621694A (en) Data backup control system and method based on cloud computing
JP6311460B2 (en) Information sharing service providing method, information sharing service providing system, and information sharing service providing apparatus
JP6299204B2 (en) Information notification apparatus, information notification method, information notification system, and computer program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16782588

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16782588

Country of ref document: EP

Kind code of ref document: A1