WO2016169441A1 - 消息推送方法及装置 - Google Patents

消息推送方法及装置 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
English (en)
French (fr)
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/zh

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.

Landscapes

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

Abstract

本申请提供一种消息推送方法及装置,包括:获取用户账号的登录状况;当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。通过本申请的技术方案,可以在多设备之间实现智能化的选择性推送,满足用户对推送方式的实时需求。

Description

消息推送方法及装置
本申请要求2015年04月23日递交的申请号为201510199775.0、发明名称为“消息推送方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及消息推送方法及装置。
背景技术
很多用户同时拥有多台电子设备,这些电子设备包括同平台或不同平台的电脑、平板、手机等,而通过在每台电子设备上安装同一应用程序,即可在各台电子设备上分别实现不同的实际需求。
为了区分不同用户,用户需要在使用应用程序时登录自己的注册账号,从而基于该账号实现消息收发。然而,当用户在多台电子设备上均登录了同一账号时,将导致相关技术中的消息推送机制无法满足用户的应用需求。
发明内容
有鉴于此,本申请提供一种消息推送方法及装置,可以实现多设备之间的智能化的选择性推送。
为实现上述目的,本申请提供技术方案如下:
根据本申请的第一方面,提出了一种消息推送方法,包括:
获取用户账号的登录状况;
当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;
当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。
根据本申请的第二方面,提出了一种消息推送装置,包括:
获取单元,获取用户账号的登录状况;
确定单元,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;
推送单元,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推 送未读消息。
由以上技术方案可见,本申请通过获取用户账号的登录状况,可以准确了解当前的设备使用情况,以便执行相应的消息推送机制;同时,通过对多台设备之间的位置关系,可以推断出用户当前使用的设备,从而对该设备执行智能化的消息推送。
附图说明
图1是相关技术中的消息推送的示意图;
图2是根据本申请一示例性实施例的一种消息推送方法的流程图;
图3是根据本申请一示例性实施例的一种确定设备之间的位置关系的示意图;
图4是根据本申请一示例性实施例的另一种确定设备之间的位置关系的示意图;
图5是根据本申请一示例性实施例的又一种确定设备之间的位置关系的示意图;
图6是根据本申请一示例性实施例的另一种消息推送方法的流程图;
图7是根据本申请一示例性实施例的一种电子设备的结构示意图;
图8是根据本申请一示例性实施例的一种消息推送装置的框图。
具体实施方式
图1是相关技术中的消息推送的示意图,如图1所示,假定用户A同时在手机和电脑上登录了即时通信应用,则当好友“小白”向该用户A发送即时通信消息时,可能存在两种情况:
一种情况下,服务器同时将即时通信消息发送至所有已登录用户A账号的电子设备,则手机和电脑将同时接收到“小白发送了一张图片”的即时通信消息的未读通知;另一种情况下,根据用户A的事先设定或默认机制,只有手机或电脑中的一台设备,能够接收到“小白发送了一张图片”的即时通信消息的未读通知。
那么,对于第一种情况而言,用户A只需要在手机或电脑中的任一方进行未读消息的查看操作即可,比如用户A在电脑上执行了未读消息的查看操作,那么手机上接收到的未读消息就属于冗余消息,需要用户A手动进入该未读消息的展示页面并退出,才能够消除该未读消息的提醒,反而对用户A的日常生活造成影响。
对于第二种情况而言,假定用户A设定了仅在电脑上接收未读消息,则当用户A因事外出时,如果忘记在电脑上退出登录,则即便随身携带了已登录账号的手机,仍然无法接收到任何未读消息,给用户A带来极大的困扰。类似的,当用户A在电脑上工作或娱乐时,显然直接在电脑上进行未读消息提醒更方便、回复效率最高,但假定用户A设定了仅在手机上接收未读消息,则即便电脑上已经完成了账号登录,仍然无法接收到任 何未读消息提醒,用户A仍然只能够通过手机进行消息查看和回复操作。
因此,本申请通过对消息推送机制的改进,以期解决相关技术中存在的上述技术问题。为对本申请进行进一步说明,提供下列实施例:
图2是根据本申请一示例性实施例的一种消息推送方法的流程图,如图2所示,该方法应用于服务器中,可以包括以下步骤:
步骤202,获取用户账号的登录状况。
步骤204,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系。
在本申请中,若定义为“非移动设备”,则表明用户不会随身携带该设备,往往在公司办公或在家中娱乐时使用,比如电脑、平板等;若定义为“移动设备”,则表明用户会随身携带该设备,比如手机等。当然,用户可以预先对每台电子设备的属性进行随意定义,无论电子设备本身是否为移动设备,比如电脑、平板、手机等,均可以定义为“非移动设备”或“移动设备”。
在本申请中,可以通过多种方式确定非移动设备与移动设备之间的位置关系,下面对其中几种可能的方式进行举例说明。
实施例一
作为一示例性实施例,服务器接收移动设备与非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;
其中,若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。
图3是根据本申请一示例性实施例的一种确定设备之间的位置关系的示意图,如图3所示,假定在该场景下,用户A拥有手机和电脑,其中手机为预定义的移动设备,而电脑为预定义的非移动设备。当用户A分别在手机和电脑上登录了自己的同一账号后,服务器能够了解到该账号存在多设备同时登录的情况。
服务器可以向电脑(或手机)发起请求,则假定手机和电脑之间通过蓝牙建立了连接,电脑可以向服务器返回通知消息,以告知两者之间的蓝牙连接状况。由于蓝牙连接的建立存在距离限制,则如果蓝牙连接正常,说明手机和电脑之间的距离很短,用户A很可能正在使用电脑,而将手机放在电脑旁(位于电脑的使用范围内),因此可以向电脑推送消息,便于用户A在使用电脑的同时实现推送消息的快速查看和回复;如果蓝牙 连接断开,说明手机和电脑之间的距离很远,用户A很可能并不在电脑前,而是携带手机外出,则服务器可以向手机推送消息,以避免发送至电脑时用户A无法及时查看到消息提醒。
在本实施例中,手机和电脑之间可以采用任意形式的局域网络连接,比如除了蓝牙连接之外,预设的局域网络连接也可以包括:非移动设备与移动设备之间建立的近场通信(NFC)连接、非移动设备与移动设备连接至同一WIFI热点等。
实施例二
在另一示例性实施例中,服务器分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;
然后,根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。
图4是根据本申请一示例性实施例的另一种确定设备之间的位置关系的示意图,如图4所示,仍以“预定义的移动设备”为手机、“预定义的非移动设备”为电脑为例,当用户A分别在手机和电脑上登录了自己的同一账号后,服务器能够了解到该账号存在多设备同时登录的情况。
服务器可以向手机和电脑分别发起请求,则手机和电脑各自获取自身的实时地理位置信息,并通过通知消息1和通知消息2,将实时地理位置信息返回至服务器。那么,服务器可以根据两个实时地理位置信息之间的距离状况,如果距离很近(小于或等于预设距离),则说明用户A很可能正在使用电脑,而将手机放在电脑旁(位于电脑的使用范围内),因此可以向电脑推送消息,便于用户A在使用电脑的同时实现推送消息的快速查看和回复;如果距离较大(大于预设距离),说明用户A很可能并不在电脑前,而是携带手机外出,则服务器可以向手机推送消息,以避免发送至电脑时用户A无法及时查看到消息提醒。
其中,手机和电脑可以通过多种方式获取自身的实时地理位置信息,比如内置的GPS(或其他定位***)芯片、基站定位信息、IP地址所属号段的位置信息等,本申请并不对此进行限制。
实施例三
作为又一示例性实施例,服务器可以分别获取所述非移动设备与所述移动设备的网 络属性信息;
然后,根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。
图5是根据本申请一示例性实施例的又一种确定设备之间的位置关系的示意图,如图5所示,仍以“预定义的移动设备”为手机、“预定义的非移动设备”为电脑为例,当用户A分别在手机和电脑上登录了自己的同一账号后,服务器能够了解到该账号存在多设备同时登录的情况。
服务器在接收到手机和电脑发送的报文后,比如在执行账号登录期间接收到的报文,即可了解手机和电脑所处的网络环境,比如IP地址等网络属性信息,则可以据此判断手机和电脑是否处于同一局域网络内。若采用有线方式连接,则局域网络受限于网线的物理长度、场地限制等,若采用无线方式连接,则局域网络受限于无线信号随距离的逐步衰减、障碍物的阻挡等,因而同一局域网络内的电子设备必然存在较短的间隔距离。所以,当判定手机和电脑处于同一局域网络时,说明用户A很可能正在使用电脑,而将手机放在电脑旁(位于电脑的使用范围内),因此可以向电脑推送消息,便于用户A在使用电脑的同时实现推送消息的快速查看和回复;如果未处于同一局域网络,说明用户A很可能并不在电脑前,而是携带手机外出,则服务器可以向手机推送消息,以避免发送至电脑时用户A无法及时查看到消息提醒。
步骤206,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。
由以上技术方案可见,本申请通过获取用户账号的登录状况,可以准确了解当前的设备使用情况,以便执行相应的消息推送机制;同时,通过对多台设备之间的位置关系,可以推断出用户当前使用的设备,从而对该设备执行智能化的消息推送。
图6是根据本申请一示例性实施例的另一种消息推送方法的流程图,如图6所示,该方法应用于服务器,可以包括以下步骤:
步骤602,获取用户账号的登录状况。
步骤604,判定用户账号是否存在多设备同时登录的情况,若存在,则转入步骤608,否则转入步骤606。
步骤606,根据当前的实际情况,采用对应的策略执行消息推送操作。
步骤608,对于同时登录的多台电子设备,确定相互之间的位置关系。
在本实施例中,可以通过如图3-5中任一实施例的方式,确定多台电子设备之间的位置关系,此处不再赘述。
通过获取多台电子设备之间的位置关系,比如当多台电子设备之间存在局域网络连接或位于同一处时,说明用户可能正在使用其中预定义的非移动设备,则转入步骤606时,向该预定义的非移动设备执行消息推送即可;当多台电子设备不存在局域网络连接或未处于同一处时,说明用户可能携带预定义的移动设备外出,则转入步骤606时,向该预定义的移动设备执行消息推送即可。
步骤610,判断多台电子设备之间的位置关系是否发生变化,若变化则转入步骤612,否则返回步骤608。
步骤612,记录位置关系的持续变化时长,若超出预设时长,则转入步骤614,否则返回步骤608。
步骤614,按照变化后的位置关系,更改推送规则。
在本实施例中,假定用户A预定义的移动设备为随身携带的手机,预定义的非移动设备为家中的平板,则当用户白天外出上班时,即便手机和平板同时登录用户的即时通信应用,服务器仍然可以通过如分别获取手机和平板的实时地理位置信息,确定两者相距较远,仅向手机执行消息推送;而如果用户在上班时发现文件忘记带,需要回家取文件,则服务器可以检测到用户回家时,手机和平板之间相距较近;但用户只是拿了文件后立即返回公司,因而服务器可以检测到手机和平板在短时间内,间隔距离重新恢复到较远的状态,因而维持仅向手机执行消息推送的策略;而如果用户下班回家后,手机和平板长时间保持较近的距离,则可以更改为向平板执行消息推送的策略。
此外,本申请的上述任一实施例中,服务器还可以检测用户在预定义的非移动设备或预定义的移动设备中的任一设备上启动浏览界面操作(即推送消息对应的应用程序的浏览界面);若检测到,则将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备,以便用户在每台设备上均可以查看所有的消息推送内容,无需在多台设备之间反复对比和查看。
此外,在本申请的上述实施例中,当向预定义的非移动设备推送的未读消息在预设时间内未被读取时,可以向预定义的移动设备推送所述未读消息。由于用户可能未在使用非移动设备,或者非移动设备的消息提示方式未能引起用户注意,往往导致用户无法 及时意识到未读消息并进行查看,因而可以通过向移动设备执行相应的消息推送,从而确保用户能够完成对该消息的查看,避免遗漏。
图7示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图7,在硬件层面,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成消息推送装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图8,在软件实施方式中,该消息推送装置可以包括获取单元、确定单元和推送单元。其中:
获取单元,获取用户账号的登录状况;
确定单元,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;
推送单元,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。
可选的,所述确定单元具体用于:
接收所述移动设备与所述非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;
若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。
可选的,预设的局域网络连接包括以下至少之一:
所述非移动设备与所述移动设备之间建立的蓝牙连接、所述非移动设备与所述移动设备之间建立的近场通信连接、所述非移动设备与所述移动设备连接至同一WIFI热点。
可选的,所述确定单元具体用于:
分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;
根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备 的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。
可选的,所述确定单元具体用于:
分别获取所述非移动设备与所述移动设备的网络属性信息;
根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。
可选的,还包括:
记录单元,当所述非移动设备与所述移动设备之间的位置关系发生变化时,记录变化持续时长;
若所述变化持续时长大于或等于预设时长,则所述推送单元按照变化后的位置关系执行消息推送;若所述变化持续时长小于预设时长,则所述推送单元维持原来的消息推送方式。
可选的,当检测到用户在所述非移动设备或所述移动设备中的任一设备上启动浏览界面时,所述推送单元还将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备。
可选的,当向所述非移动设备推送的未读消息在预设时间内未被读取时,所述推送单元向所述移动设备推送所述未读消息。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flashRAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带, 磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (16)

  1. 一种消息推送方法,其特征在于,包括:
    获取用户账号的登录状况;
    当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;
    当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述非移动设备与所述移动设备之间的位置关系,包括:
    接收所述移动设备与所述非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;
    若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。
  3. 根据权利要求2所述的方法,其特征在于,预设的局域网络连接包括以下至少之一:
    所述非移动设备与所述移动设备之间建立的蓝牙连接、所述非移动设备与所述移动设备之间建立的近场通信连接、所述非移动设备与所述移动设备连接至同一WIFI热点。
  4. 根据权利要求1所述的方法,其特征在于,所述确定所述非移动设备与所述移动设备之间的位置关系,包括:
    分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;
    根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。
  5. 根据权利要求1所述的方法,其特征在于,所述确定所述非移动设备与所述移动设备之间的位置关系,包括:
    分别获取所述非移动设备与所述移动设备的网络属性信息;
    根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网 络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。
  6. 根据权利要求1所述的方法,其特征在于,还包括:
    当所述非移动设备与所述移动设备之间的位置关系发生变化时,记录变化持续时长;
    若所述变化持续时长大于或等于预设时长,则按照变化后的位置关系执行消息推送;若所述变化持续时长小于预设时长,则维持原来的消息推送方式。
  7. 根据权利要求1所述的方法,其特征在于,还包括:
    当检测到用户在所述非移动设备或所述移动设备中的任一设备上启动浏览界面时,将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备。
  8. 根据权利要求1所述的方法,其特征在于,还包括:
    当向所述非移动设备推送的未读消息在预设时间内未被读取时,向所述移动设备推送所述未读消息。
  9. 一种消息推送装置,其特征在于,包括:
    获取单元,获取用户账号的登录状况;
    确定单元,当检测到所述用户账号在预定义的非移动设备上登录时,确定所述非移动设备与预定义的移动设备之间的位置关系;
    推送单元,当所述移动设备处于所述非移动设备的使用范围时,向所述非移动设备推送未读消息;当所述移动设备离开所述非移动设备的使用范围时,向所述移动设备推送未读消息。
  10. 根据权利要求9所述的装置,其特征在于,所述确定单元具体用于:
    接收所述移动设备与所述非移动设备中的任一设备发送的通知消息,所述通知消息表明所述任一设备是否与另一设备维持着预设的局域网络连接;
    若维持着预设的局域网络连接,则判定所述移动设备处于所述非移动设备的使用范围;若未维持预设的局域网络连接,则判定所述移动设备离开所述非移动设备的使用范围。
  11. 根据权利要求10所述的装置,其特征在于,预设的局域网络连接包括以下至少之一:
    所述非移动设备与所述移动设备之间建立的蓝牙连接、所述非移动设备与所述移动 设备之间建立的近场通信连接、所述非移动设备与所述移动设备连接至同一WIFI热点。
  12. 根据权利要求9所述的装置,其特征在于,所述确定单元具体用于:
    分别接收所述移动设备和所述非移动设备发送的通知消息,所述通知消息包含相应的发送方的实时地理位置信息;
    根据所述实时地理位置信息,确定所述非移动设备与所述移动设备之间的间隔距离;其中,若所述间隔距离小于或等于预设距离,则判定所述移动设备处于所述非移动设备的使用范围;若所述间隔距离大于所述预设距离,则判定所述移动设备离开所述非移动设备的使用范围。
  13. 根据权利要求9所述的装置,其特征在于,所述确定单元具体用于:
    分别获取所述非移动设备与所述移动设备的网络属性信息;
    根据所述网络属性信息,若识别出所述非移动设备与所述移动设备处于同一局域网络内,则判定所述移动设备处于所述非移动设备的使用范围;若识别出所述非移动设备与所述移动设备未处于同一局域网络内,则判定所述移动设备离开所述非移动设备的使用范围。
  14. 根据权利要求9所述的装置,其特征在于,还包括:
    记录单元,当所述非移动设备与所述移动设备之间的位置关系发生变化时,记录变化持续时长;
    若所述变化持续时长大于或等于预设时长,则所述推送单元按照变化后的位置关系执行消息推送;若所述变化持续时长小于预设时长,则所述推送单元维持原来的消息推送方式。
  15. 根据权利要求9所述的装置,其特征在于,当检测到用户在所述非移动设备或所述移动设备中的任一设备上启动浏览界面时,所述推送单元还将仅在另一设备上发生的推送消息作为历史记录推送至所述任一设备。
  16. 根据权利要求9所述的装置,其特征在于,当向所述非移动设备推送的未读消息在预设时间内未被读取时,所述推送单元向所述移动设备推送所述未读消息。
PCT/CN2016/079435 2015-04-23 2016-04-15 消息推送方法及装置 WO2016169441A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510199775.0 2015-04-23
CN201510199775.0A CN106161565B (zh) 2015-04-23 2015-04-23 消息推送方法及装置

Publications (1)

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

Family

ID=57144406

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079435 WO2016169441A1 (zh) 2015-04-23 2016-04-15 消息推送方法及装置

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804434A (zh) * 2017-04-26 2018-11-13 腾讯科技(深圳)有限公司 一种消息查询方法、服务器及终端设备
CN111884906A (zh) * 2020-06-10 2020-11-03 维沃移动通信有限公司 信息通知方法、装置及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156311B (zh) * 2017-12-05 2021-04-13 北京小米移动软件有限公司 消息提醒的方法及装置

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 (zh) * 2009-06-29 2011-01-05 阿尔卡特朗讯 在一号通业务中基于位置信息建立会话的方法及装置
CN102546640A (zh) * 2012-01-13 2012-07-04 百度在线网络技术(北京)有限公司 单账号多设备登录时的信息流通方法及服务器

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101061730A (zh) * 2004-09-21 2007-10-24 内托马特公司 移动消息传送***及方法
EP2521372A1 (en) * 2011-05-03 2012-11-07 LG Electronics Inc. Electronic device and method for operating the same
CN104509138A (zh) * 2013-06-26 2015-04-08 华为技术有限公司 用户信息通知方法及移动业务交换中心

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 (zh) * 2009-06-29 2011-01-05 阿尔卡特朗讯 在一号通业务中基于位置信息建立会话的方法及装置
CN102546640A (zh) * 2012-01-13 2012-07-04 百度在线网络技术(北京)有限公司 单账号多设备登录时的信息流通方法及服务器

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804434A (zh) * 2017-04-26 2018-11-13 腾讯科技(深圳)有限公司 一种消息查询方法、服务器及终端设备
CN108804434B (zh) * 2017-04-26 2022-12-27 腾讯科技(深圳)有限公司 一种消息查询方法、服务器及终端设备
CN111884906A (zh) * 2020-06-10 2020-11-03 维沃移动通信有限公司 信息通知方法、装置及电子设备

Also Published As

Publication number Publication date
CN106161565B (zh) 2019-08-16
CN106161565A (zh) 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 (ja) ジオフェンスイベントの融合
US10638258B2 (en) Method for deleting push information, server, and terminal device
KR102249413B1 (ko) 이미지 공유 방법 및 전자 디바이스
WO2014161433A1 (en) System and method for positioning terminal
JP2013509038A (ja) ネットワーク・コネクションにおける変化に基づくアクションのトリガー
CN106658568B (zh) 一种用于提供可用无线接入点信息的方法与设备
US11210633B2 (en) Collaborative event processing method and apparatus
WO2016169441A1 (zh) 消息推送方法及装置
TWI737227B (zh) 事件處理方法、設備以及電腦可讀儲存媒體
US20140310780A1 (en) Communication system
JP6085719B2 (ja) ユーザ通知方法、ユーザ通知装置、プログラム及び記録媒体
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 (ja) 端末のリモート操作システム、リモート操作方法
US11038828B2 (en) Automatic display of session interface for communication with neighboring device
CN106331035A (zh) 一种防追踪方法和终端
US10171394B2 (en) Multimedia mail service
KR20240108654A (ko) 문자 메시지를 통한 피싱을 검출 및 경고하는 피싱 차단 서비스를 제공하는 방법, 사용자 단말 및 컴퓨터 프로그램
JP6311460B2 (ja) 情報共有サービス提供方法、情報共有サービス提供システム及び情報共有サービス提供装置
JP6299204B2 (ja) 情報通知装置及び情報通知方法、情報通知システム、並びにコンピュータ・プログラム

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