CN111884906A - Information notification method and device and electronic equipment - Google Patents
Information notification method and device and electronic equipment Download PDFInfo
- Publication number
- CN111884906A CN111884906A CN202010525667.9A CN202010525667A CN111884906A CN 111884906 A CN111884906 A CN 111884906A CN 202010525667 A CN202010525667 A CN 202010525667A CN 111884906 A CN111884906 A CN 111884906A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- message notification
- notification function
- electronic
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000006870 function Effects 0.000 claims description 147
- 230000008569 process Effects 0.000 abstract description 12
- 238000004891 communication Methods 0.000 abstract description 10
- 101150053844 APP1 gene Proteins 0.000 description 8
- 101100189105 Homo sapiens PABPC4 gene Proteins 0.000 description 8
- 102100039424 Polyadenylate-binding protein 4 Human genes 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000001934 delay Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/222—Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及一种信息通知方法、装置及电子设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to an information notification method, apparatus, and electronic device.
背景技术Background technique
随着电子设备技术的发展,用户在电子设备上使用各种社交软件与他人进行沟通交流,而即时通信(Instant Messaging,IM)软件作为使用频率最高的社交软件,已经渗透到我们生活中的每个角落。With the development of electronic device technology, users use various social software on electronic devices to communicate with others, and Instant Messaging (IM) software, as the most frequently used social software, has penetrated into every aspect of our lives. corner.
通常情况下,多台电子设备可以同时在应用程序上登录同一个账户,如此,当该账户接收到新消息时,登陆该账户的所有电子设备均会发出通知消息,以提醒用户电子设备接收到新消息。然而,当该账户频繁接收到新消息时,则会导致用户当前未操作的电子设备频繁震动或亮屏,增加电量损耗,减少电子设备的续航时间。在相关技术中,应用程序可以设置关闭在电子设备上的通知提醒。Usually, multiple electronic devices can log in to the same account on the application at the same time, so when the account receives a new message, all electronic devices logged in to the account will send a notification message to remind the user that the electronic device receives a new message. new news. However, when the account frequently receives new messages, it will cause the electronic device that the user is not currently operating to vibrate or brighten the screen frequently, which increases power consumption and reduces the battery life of the electronic device. In the related art, an application can set a notification reminder to be turned off on an electronic device.
然而,用户在使用多个电子设备时,需要用户频繁的手动设置电子设备的通知提醒功能的开启或关闭,操作繁琐。However, when a user uses multiple electronic devices, the user needs to frequently manually set the notification and reminder function of the electronic device to be turned on or off, which is cumbersome to operate.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种信息通知方法、装置及电子设备,能够解决用户频繁的手动设置电子设备的通知提醒功能的开启或关闭,操作繁琐的问题。The embodiments of the present application provide an information notification method, device, and electronic device, which can solve the problem that the user frequently manually sets the electronic device's notification reminder function on or off, and the operation is cumbersome.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供一种信息通知方法,该方法包括:在第一电子设备和第二电子设备均登陆第一账户的情况下,获取第一电子设备与第二电子设备间的相对位置信息;根据相对位置信息,控制目标电子设备的消息通知功能的开启或关闭;其中,目标电子设备为第一电子设备和第二电子设备中的至少一个。In a first aspect, an embodiment of the present application provides an information notification method. The method includes: when both the first electronic device and the second electronic device log in to the first account, acquiring the information between the first electronic device and the second electronic device. relative position information; according to the relative position information, control on or off of the message notification function of the target electronic device; wherein the target electronic device is at least one of the first electronic device and the second electronic device.
第二方面,本申请实施例还提供了一种信息通知装置,该装置包括获取模块和控制模块;获取模块,用于在第一电子设备和第二电子设备均登陆第一账户的情况下,获取第一电子设备与第二电子设备间的相对位置信息;控制模块,用于根据获取模块获取的相对位置信息,控制目标电子设备的消息通知功能的开启或关闭;其中,目标电子设备为第一电子设备和第二电子设备中的至少一个。In a second aspect, an embodiment of the present application further provides an information notification device, the device includes an acquisition module and a control module; the acquisition module is configured to, when both the first electronic device and the second electronic device log in to the first account, Obtain the relative position information between the first electronic device and the second electronic device; the control module is used to control the opening or closing of the message notification function of the target electronic device according to the relative position information obtained by the obtaining module; wherein, the target electronic device is the first electronic device. At least one of an electronic device and a second electronic device.
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面所述的信息通知方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is implemented when executed by the processor The steps of the information notification method according to the first aspect.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
在本申请实施例中,在第一电子设备和第二电子设备均登陆第一账户的情况下,通过获取第一电子设备与第二电子设备间的相对位置信息,并根据该相对位置信息,控制目标电子设备的消息通知功能的开启或关闭,使得第一电子设备远离第二电子设备时能够开启第一电子设备的消息通知,或者第二电子设备远离第一电子设备时能够开启第二电子设备的消息通知,避免用户在使用多个电子设备时,需要频繁的手动设置电子设备的通知提醒功能的开启或关闭。In this embodiment of the present application, when both the first electronic device and the second electronic device log into the first account, by acquiring the relative position information between the first electronic device and the second electronic device, and according to the relative position information, Control the opening or closing of the message notification function of the target electronic device, so that the message notification of the first electronic device can be turned on when the first electronic device is far away from the second electronic device, or the second electronic device can be turned on when the second electronic device is far away from the first electronic device. The message notification of the device avoids the need for the user to frequently manually set the notification reminder function of the electronic device to be turned on or off when using multiple electronic devices.
附图说明Description of drawings
图1是本申请实施例提供的一种通信系统结构示意图;1 is a schematic structural diagram of a communication system provided by an embodiment of the present application;
图2是本申请实施例提供的一种信息通知方法流程示意图;2 is a schematic flowchart of an information notification method provided by an embodiment of the present application;
图3是本申请实施例提供的一种信息通知所应用的界面的示意图之一;FIG. 3 is one of the schematic diagrams of an interface to which an information notification provided by an embodiment of the present application is applied;
图4是本申请实施例提供的一种信息通知所应用的界面的示意图之二;4 is a second schematic diagram of an interface to which an information notification provided by an embodiment of the present application is applied;
图5是本申请实施例提供的一种信息通知装置的结构示意图;5 is a schematic structural diagram of an information notification device provided by an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的结构示意图之一;6 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的结构示意图之二。FIG. 7 is a second schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, the objects distinguished by "first", "second", etc. are usually one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
本申请实施例提供的技术方案可以应用于图1所示的通信系统中。如图1所示,该通信系统包括:至少两个电子设备01和服务器02。其中,电子设备01和服务器02可以通过网络互连并通信。上述电子设备01可以包括第一电子设备以及至少一个第二电子设备,应注意的是,图1仅仅是一种示例,实际应用中电子设备的数量可按照实际需求设定。The technical solutions provided in the embodiments of the present application can be applied to the communication system shown in FIG. 1 . As shown in FIG. 1 , the communication system includes: at least two electronic devices 01 and a server 02 . Wherein, the electronic device 01 and the server 02 can be interconnected and communicated through a network. The above electronic device 01 may include a first electronic device and at least one second electronic device. It should be noted that FIG. 1 is only an example, and the number of electronic devices in practical applications can be set according to actual needs.
示例性的,上述电子设备01可以是任何一种可与用户通过键盘、触摸板、触摸屏、遥控器、语音交互或手写设备等一种或多种方式进行人机交互的电子产品,例如手机、平板电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)、服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。Exemplarily, the above-mentioned electronic device 01 can be any electronic product that can perform human-computer interaction with the user through one or more ways such as a keyboard, a touchpad, a touchscreen, a remote control, a voice interaction or a handwriting device, such as a mobile phone, Tablet PC, PDA, vehicle electronic equipment, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (PDA), server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., which are not specifically limited in the embodiments of the present application.
示例性的,上述服务器可以为上述电子设备01发送消息,而电子设备01接收到消息后,会发出消息提醒,以提醒用户接收到消息。在一种示例中,上述服务器02可以是一台服务器,也可以是由多台服务器组成的服务器集群,或者是一个云计算服务中心。Exemplarily, the above-mentioned server may send a message to the above-mentioned electronic device 01, and after receiving the message, the electronic device 01 will issue a message reminder to remind the user to receive the message. In an example, the above server 02 may be a server, a server cluster composed of multiple servers, or a cloud computing service center.
本申请实施例提供的信息通知方法可以应用于用户在多台电子设备上登录同一账户的场景中。The information notification method provided by the embodiment of the present application can be applied to a scenario where a user logs in to the same account on multiple electronic devices.
示例性的,针对用户在多台电子设备上登录同一账户场景,多台电子设备均会接收到服务器发送的消息,并对用户进行提醒,此时,多台电子设备频繁的提醒,会对用户产生一定的干扰,因此,用户希望只有当前正在操作的电子设备提醒用户或者靠近用户的电子设备提醒用户。在相关技术中,应用程序可以手动设置关闭消息通知功能,用户可以在不希望发出消息通知的电子设备上关闭该应用程序的消息通知功能。然而,当用户操作已关闭消息通知功能的电子设备,且忘记打开该电子设备上的应用程序的消息通知时,可能导致用户未能及时获知及处理应用程序发送的新消息,造成延误,并且,在用户使用多个电子设备时,需要频繁的手动设置电子设备的通知提醒功能的开启或关闭,操作繁琐。Exemplarily, for a scenario where a user logs into the same account on multiple electronic devices, multiple electronic devices will receive messages sent by the server and remind the user. A certain amount of interference is generated. Therefore, the user hopes that only the electronic device currently operating or the electronic device close to the user reminds the user. In the related art, the application program can manually set to disable the message notification function, and the user can disable the message notification function of the application program on the electronic device that does not want to send out the message notification. However, when the user operates an electronic device with the message notification function turned off and forgets to open the message notification of the application on the electronic device, it may cause the user to fail to know and process new messages sent by the application in time, causing delays, and, When a user uses multiple electronic devices, it is necessary to frequently manually set on or off the notification reminder function of the electronic devices, which is cumbersome to operate.
针对这一问题,在本申请实施例提供的技术方案中,在电子设备1和电子设备2均在APP1中登陆账户1的情况下,通过获取电子设备1与电子设备2间的相对位置信息,并根据该相对位置信息,控制目标电子设备的消息通知功能的开启或关闭,其中,上述目标电子设备可以为电子设备1,也可以为电子设备2。例如,当上述电子设备1与电子设备2距离较近,且用户当前正在操作电子设备2时,可以关闭电子设备1上APP1的消息通知功能,避免对用户产生过多的干扰;或者,当用户靠近电子设备1、且用户当前正在操作的电子设备2的消息通知功能开启时,可以关闭电子设备2上APP1的消息通知功能,并开启电子设备1上APP1的消息通知功能;或者,当用户转而操作电子设备1,且电子设备1的与电子设备2的距离较远,或电子设备1正在远离电子设备2时,可以开启电子设备1上APP1的消息通知功能,避免用户获取不到APP1的消息通知,造成延误,同时,也解决了需要频繁的手动设置消息通知功能的开启或关闭,操作繁琐的问题。In response to this problem, in the technical solutions provided in the embodiments of the present application, when both
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的信息通知方法进行详细地说明。The information notification method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
如图2所示,本申请实施例提供的一种信息通知方法,该方法可以包括下述步骤201和步骤202:As shown in FIG. 2, an information notification method provided by an embodiment of the present application may include the
步骤201、在第一电子设备和第二电子设备均登陆第一账户的情况下,信息通知装置获取第一电子设备与第二电子设备间的相对位置信息。Step 201: In the case where both the first electronic device and the second electronic device log into the first account, the information notification apparatus acquires relative position information between the first electronic device and the second electronic device.
示例性的,上述相对位置信息可以包括以下至少一项:第一电子设备的经纬度坐标,第二电子设备的经纬度坐标,第一电子设备和第二电子设备间的距离。Exemplarily, the above-mentioned relative position information may include at least one of the following items: the latitude and longitude coordinates of the first electronic device, the latitude and longitude coordinates of the second electronic device, and the distance between the first electronic device and the second electronic device.
示例性的,在第一电子设备和第二电子设备上登录同一账户的情况下,触发信息通知装置检测第一电子设备和第二电子设备间的相对位置信息。Exemplarily, in the case that the first electronic device and the second electronic device are logged into the same account, the trigger information notification apparatus detects the relative position information between the first electronic device and the second electronic device.
需要说明的是,上述信息通知装置检测第一电子设备和第二电子设备间的相对位置信息,可以是周期性的检测,也可以是在满足预定条件的情况下,触发检测,本申请实施例对此不做限定。It should be noted that the above-mentioned information notification device detects the relative position information between the first electronic device and the second electronic device, which may be periodic detection, or may trigger detection when a predetermined condition is met. This is an embodiment of the present application. This is not limited.
示例性的,上述步骤201中信息通知装置获取第一电子设备与第二电子设备间的相对位置信息,可以根据以下至少三种方式确定上述相对位置信息:Exemplarily, in the
方式1:Way 1:
在方式1中,可以根据第一电子设备和第二电子设备中设置的定位装置,获取第一电子设备的位置信息和第二电子设备的位置信息,进而计算得出第一电子设备与第二电子设备间的相对位置信息。In
例如,在如图3所示的空间坐标系中,根据电子设备1和电子设备2中设置的定位装置,可知电子设备1的位置21的坐标为(1,1),电子设备2的位置22的坐标为(4,5),根据上述位置21和位置22计算可知,电子设备1与电子设备2的相对距离23为5。For example, in the space coordinate system shown in FIG. 3 , according to the positioning devices set in the
方式2:Way 2:
在方式2中,第一电子设备和第二电子设备可以通过第一电子设备和第二电子设备建立蓝牙连接,之后,利用蓝牙信号的信号强度随着距离的增大而衰减的特性,根据第一电子设备接收到第二电子设备发射的蓝牙信号的信号强度,或者第二电子设备接收到第一电子设备发射的蓝牙信号的信号强度计算第一电子设备与第二电子设备间的距离。In
方式3:Way 3:
在方式3中,第一电子设备和第二电子设备可以结合上述两种方式,确定第一电子设备和第二电子设备间的距离,并根据多次获取的上述相对位置信息,确定两个电子设备的运动趋势,例如,第二电子设备位置信息未发生变化,第一电子设备与第二电子设备间的距离增大,可以确定第一电子设备远离了第二电子设备。In
示例性的,上述相对位置信息可以通过以下至少一种方式进行获取:全球定位系统(global positioning system,gps)、格洛纳斯(GLONASS)、北斗卫星导航系统(beidounavigation satellite system,bds)以及伽利略卫星导航系统(galileo satellitenavigation system)。Exemplarily, the above-mentioned relative position information may be acquired in at least one of the following manners: global positioning system (gps), GLONASS (GLONASS), Beidou satellite navigation system (beidounavigation satellite system, bds) and Galileo Satellite navigation system (galileo satellitenavigation system).
步骤202、信息通知装置根据上述相对位置信息,控制目标电子设备的消息通知功能的开启或关闭。Step 202: The information notification device controls to enable or disable the message notification function of the target electronic device according to the above-mentioned relative position information.
其中,上述目标电子设备为第一电子设备和第二电子设备中的至少一个。Wherein, the above-mentioned target electronic device is at least one of the first electronic device and the second electronic device.
示例性的,上述第一电子设备可以为用户正在操作的电子设备,或者,用户移动时随身携带的电子设备。上述第二电子设备可以为用户正在靠近的电子设备,或者,用户将要对其进行操作的电子设备。Exemplarily, the above-mentioned first electronic device may be an electronic device that the user is operating, or an electronic device that the user carries with him when he moves. The above-mentioned second electronic device may be an electronic device that the user is approaching, or an electronic device that the user is about to operate.
进一步的,以第一电子设备为手机,第二电子设备为电脑为例,上述控制目标电子设备的消息通知功能的开启或关闭可以包括以下三种示例:Further, taking the first electronic device as a mobile phone and the second electronic device as a computer as an example, the above-mentioned enabling or disabling of the message notification function of the control target electronic device may include the following three examples:
示例1:Example 1:
在示例1中,上述目标电子设备为手机(即上述第一电子设备)。当用户正在操作的电子设备从电脑(即上述第二电子设备)变为手机,且用户拿起手机远离电脑时,手机周期性的计算与电脑的相对位置信息,当手机与电脑的距离大于距离L时,手机打开消息通知,使其能够在接收到服务器发送的新消息时能够提醒用户。反之,当用户拿着手机靠近电脑,并在电脑上操作时,若手机与电脑的距离小于或等于L,则手机关闭消息通知,避免电脑和手机同时对同一消息进行提醒,进而对用户产生干扰。In Example 1, the above-mentioned target electronic device is a mobile phone (ie, the above-mentioned first electronic device). When the electronic device that the user is operating changes from a computer (that is, the above-mentioned second electronic device) to a mobile phone, and the user picks up the mobile phone and moves away from the computer, the mobile phone periodically calculates the relative position information between the mobile phone and the computer. When the distance between the mobile phone and the computer is greater than the distance When L, the phone turns on message notification, enabling it to alert the user when it receives a new message sent by the server. On the contrary, when the user holds the mobile phone close to the computer and operates on the computer, if the distance between the mobile phone and the computer is less than or equal to L, the mobile phone will turn off the message notification to prevent the computer and the mobile phone from simultaneously reminding the same message, thereby causing interference to the user. .
示例2:Example 2:
在示例2中,上述目标电子设备为电脑。当用户拿着手机远离电脑时,若电脑与手机的距离大于L,则电脑可以关闭消息通知,避免用户在使用手机的同时,电脑依然对用户进行消息通知。或者,当用户手动关闭手机的消息通知后,靠近电脑,且手机与电脑间的距离小于或等于L,则开启电脑的消息通知。In Example 2, the above-mentioned target electronic device is a computer. When the user holds the mobile phone away from the computer, if the distance between the computer and the mobile phone is greater than L, the computer can turn off the message notification, so as to prevent the computer from still notifying the user of the message while the user is using the mobile phone. Alternatively, after the user manually turns off the message notification of the mobile phone, and approaches the computer, and the distance between the mobile phone and the computer is less than or equal to L, the message notification of the computer is turned on.
示例3:Example 3:
在示例3中,第一电子设备(第二电子设备)周期性的获取与第二电子设备(第一电子设备)间的相对位置信息以及第一电子设备当前是否处于正在操作状态。若第一电子设备与第二电子设备间的相对位置信息满足预设条件(第一电子设备与第二电子设备间的距离小于L),且第一电子设备和第二电子设备均未处于正在操作状态并持续预设时间,则控制第一电子设备和第二电子设备的消息通知装置开启。In Example 3, the first electronic device (the second electronic device) periodically acquires relative position information with the second electronic device (the first electronic device) and whether the first electronic device is currently in an operating state. If the relative position information between the first electronic device and the second electronic device satisfies the preset condition (the distance between the first electronic device and the second electronic device is less than L), and neither the first electronic device nor the second electronic device is in the When the operation state lasts for a preset time, the message notification devices for controlling the first electronic device and the second electronic device are turned on.
示例性的,若电子设备在预设时间内接收到或者持续接收到用户的输入指令,则该电子设备处于正在操作状态。上述输入指令可以包括一下至少一项:用户对电子设备触摸屏的操作,用户对电子设备物理按键的按压操作,用户对鼠标、键盘等外设的按压或者触摸操作。Exemplarily, if the electronic device receives or continues to receive an input instruction from the user within a preset time, the electronic device is in an operating state. The above input instructions may include at least one of the following: the user's operation on the touch screen of the electronic device, the user's pressing operation on the physical keys of the electronic device, and the user's pressing or touching operation on peripheral devices such as a mouse and a keyboard.
如此,在第一电子设备和第二电子设备均登陆第一账户的情况下,通过获取第一电子设备与第二电子设备间的相对位置信息,并根据该相对位置信息,控制目标电子设备的消息通知功能的开启或关闭,使得第一电子设备远离第二电子设备时能够自动开启第一电子设备的消息通知,或者第二电子设备远离第一电子设备时能够自动开启第二电子设备的消息通知,避免用户在使用多个电子设备时,需要频繁的手动设置电子设备的通知提醒功能的开启或关闭。In this way, when both the first electronic device and the second electronic device are logged into the first account, the relative position information between the first electronic device and the second electronic device is obtained, and according to the relative position information, the target electronic device is controlled. The message notification function is turned on or off, so that the first electronic device can automatically turn on the message notification of the first electronic device when the first electronic device is far away from the second electronic device, or the message notification of the second electronic device can be automatically turned on when the second electronic device is far away from the first electronic device Notification, to avoid the need for the user to frequently manually set the notification reminder function of the electronic device to be turned on or off when using multiple electronic devices.
可选地,在本申请实施例中,上述第一账户为目标应用程序的账户。其中,上述消息通知功能包括:目标应用程序的消息通知功能,或者,目标应用程序中的目标会话的消息通知功能。Optionally, in this embodiment of the present application, the above-mentioned first account is an account of the target application. The above message notification function includes: a message notification function of a target application, or a message notification function of a target session in the target application.
示例性的,可以通过在第一电子设备和第二电子设备中安装服务的方式,判断第一电子设备和第二电子设备是否登录同一账户。Exemplarily, it may be determined whether the first electronic device and the second electronic device log into the same account by installing a service in the first electronic device and the second electronic device.
举例说明,以第一电子设备为电子设备1,第二电子设备为电子设备2为例。电子设备1中安装有服务ServiceA,电子设备2中安装有服务ServiceB。ServiceA用于获取电子设备1中的应用程序APP1中登陆的账户ID1(例如,身份IdentityID1),ServiceB用于获取电子设备2中的应用程序APP1中登陆的账户ID2(例如,身份IdentityID2)。电子设备1和电子设备2可以通过比较上述IdentityID1和IdentityID2是否相同,来确定电子设备和电子设备2是否登录同一账户。For example, it is assumed that the first electronic device is the
示例性的,上述第一账户可以为在电子设备中安装的应用程序上登录的账户。以上述目标应用程序为IM软件为例,上述消息通知可以为该IM软件发出的消息通知,或者,上述消息通知可以为该IM软件中用户参与的某个会话发出的消息通知。Exemplarily, the above-mentioned first account may be an account logged in on an application program installed in the electronic device. Taking the target application as IM software as an example, the message notification may be a message notification sent by the IM software, or the message notification may be a message notification sent by a session in which the user participates in the IM software.
如此,在确定第一电子设备和第二电子设备登陆同一账户的情况下,控制目标电子设备的消息通知的开启或关闭,防止在两个电子设备登录不同账户时关闭其中一个电子设备的消息通知。同时也可以选择控制目标应用程序或者该目标应用程序中某个会话的消息通知,使得用户可以关闭不需要的通知或对某个重要的会话进行强通知。In this way, when it is determined that the first electronic device and the second electronic device are logged into the same account, the message notification of the target electronic device is controlled to be turned on or off, so as to prevent the message notification of one of the electronic devices from being turned off when the two electronic devices log in to different accounts . At the same time, you can also choose to control the message notification of the target application or a session in the target application, so that the user can turn off unnecessary notifications or make strong notifications for an important session.
可选地,在本申请实施例中,第一电子设备和第二电子设备可以根据两个电子设备间的相对位置信息,分别控制第一电子设备和第二电子设备的消息通知功能的开启或关闭。Optionally, in this embodiment of the present application, the first electronic device and the second electronic device can respectively control the enabling or closure.
示例性的,结合上述示例1,上述步骤202,可以包括以下步骤202a或步骤202b:Exemplarily, in combination with the above example 1, the
步骤202a、若根据上述相对位置信息确定第一电子设备和第二电子设备之间的相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,则信息通知装置开启第一消息通知功能。Step 202a: If it is determined according to the above-mentioned relative position information that the relative distance between the first electronic device and the second electronic device is greater than or equal to a predetermined threshold, and the first message notification function of the first electronic device is in an off state, then the information notification device is turned on. First message notification function.
步骤202b、若根据上述相对距离小于预定阈值、且上述第一消息通知功能处于开启状态,则信息通知装置关闭第一消息通知功能。Step 202b: If the relative distance is less than a predetermined threshold and the first message notification function is in an enabled state, the information notification device turns off the first message notification function.
示例性的,上述预定阈值可以为上述示例1中的距离L,该距离L可以是预先设置好的,也可以是用户手动设置的,本申请实施例对此不做限定。Exemplarily, the above predetermined threshold may be the distance L in the above example 1, and the distance L may be preset or manually set by a user, which is not limited in this embodiment of the present application.
示例性的,第一电子设备可以在不受第二电子设备的消息通知功能状态的影响,只根据第一电子设备和第二电子设备间的相对位置信息,控制第一电子设备的第一消息通知功能的开启或关闭。Exemplarily, the first electronic device may control the first message of the first electronic device only according to the relative position information between the first electronic device and the second electronic device without being affected by the state of the message notification function of the second electronic device. Turn on or off the notification function.
举例说明,结合上述示例1,第一电子设备可以为上述示例1中的手机,也可以为上述示例1中的电脑。第一电子设备周期性的检测第一电子设备和第二电子设备间的相对位置信息,当第一电子设备检测到两个电子设备间的距离大于或者等于L,且第一电子设备的消息通知功能处于关闭状态时,则开启第一电子设备的消息通知;当第一电子设备检测到两个电子设备间的距离小于L,且第一电子设备的消息通知功能处于开启状态时,则关闭第一电子设备的消息通知。For example, in conjunction with the above example 1, the first electronic device may be the mobile phone in the above example 1, or may be the computer in the above example 1. The first electronic device periodically detects the relative position information between the first electronic device and the second electronic device. When the first electronic device detects that the distance between the two electronic devices is greater than or equal to L, and the first electronic device notifies a message When the function is turned off, the message notification of the first electronic device is turned on; when the first electronic device detects that the distance between the two electronic devices is less than L, and the message notification function of the first electronic device is turned on, then the first electronic device is turned off. A message notification from an electronic device.
如此,第一电子设备可以根据两个电子设备间的距离,控制第一电子设备的消息通知功能的开启或关闭。防止两个电子设备间距离较近时,重复向用户发出消息通知,或者,两个电子设备间的距离较远时,电子设备不能及时向用户发出消息通知,造成延误。In this way, the first electronic device can control on or off the message notification function of the first electronic device according to the distance between the two electronic devices. When the distance between the two electronic devices is relatively close, a message notification is repeatedly sent to the user, or when the distance between the two electronic devices is relatively far, the electronic device cannot send a message notification to the user in time, causing delay.
进一步可选地,在本申请实施例中,第一电子设备还可以根据第二电子设备的当前操作状态,确定第一电子设备的消息通知功能的开启或关闭。Further optionally, in this embodiment of the present application, the first electronic device may further determine whether to enable or disable the message notification function of the first electronic device according to the current operating state of the second electronic device.
示例性的,上述步骤202a,可以包括以下步骤202a1和步骤202a2:Exemplarily, the above step 202a may include the following steps 202a1 and 202a2:
步骤202a1、若上述相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,且第二电子设备在预设时间内未接收到用户的输入,则信息通知装置开启第一消息通知功能。Step 202a1, if the above-mentioned relative distance is greater than or equal to a predetermined threshold, and the first message notification function of the first electronic device is in an off state, and the second electronic device does not receive the user's input within a preset time, then the information notification device is turned on. First message notification function.
步骤202a2、若相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,且第二电子设备在预设时间内接收到用户的输入,则信息通知装置保持第一消息通知功能处于关闭状态。Step 202a2: If the relative distance is greater than or equal to a predetermined threshold, and the first message notification function of the first electronic device is turned off, and the second electronic device receives the user's input within a preset time, the information notification device keeps the first message notification function. The message notification feature is turned off.
示例性的,上述步骤202b,可以包括以下步骤202b1和步骤202b2:Exemplarily, the above step 202b may include the following steps 202b1 and 202b2:
步骤202b1、若相对距离小于预定阈值、且第一消息通知功能处于开启状态,且第二电子设备在预设时间内未接收到用户的输入,则信息通知装置保持第一消息通知功能处于开启状态。Step 202b1: If the relative distance is less than a predetermined threshold, the first message notification function is on, and the second electronic device does not receive user input within a preset time, the information notification device keeps the first message notification function on .
步骤202b2、若相对距离小于预定阈值、且第一消息通知功能处于开启状态,且第二电子设备在预设时间内接收到用户的输入,则信息通知装置关闭第一消息通知功能。Step 202b2: If the relative distance is less than a predetermined threshold, the first message notification function is on, and the second electronic device receives the user's input within a preset time, the information notification device turns off the first message notification function.
如此,第一电子设备可以在第二电子设备不处于正在操作状态时,依然开启第一电子设备的消息通知功能,避免遗漏消息;在第二电子设备处于正在操作状态时,关闭第一电子设备的消息通知功能,避免重复提醒。In this way, the first electronic device can still turn on the message notification function of the first electronic device when the second electronic device is not in the operating state to avoid missing messages; when the second electronic device is in the operating state, turn off the first electronic device The message notification function to avoid repeated reminders.
可选地,在本申请实施例中,当第一电子设备和第二电子设备间的距离小于上述预定阈值时,由于第一电子设备会选择关闭第一电子设备的消息通知,那么,为了保证用户不遗漏消息,需要控制第二电子设备开启消息通知。Optionally, in this embodiment of the present application, when the distance between the first electronic device and the second electronic device is less than the above-mentioned predetermined threshold, since the first electronic device will choose to close the message notification of the first electronic device, then, in order to ensure The user does not miss the message and needs to control the second electronic device to enable the message notification.
示例性的,上述步骤202b中若上述相对距离小于预定阈值之后,本申请实施例提供的信息通知方法还可以包括以下步骤202c:Exemplarily, after the relative distance is less than a predetermined threshold in the above step 202b, the information notification method provided in this embodiment of the present application may further include the following step 202c:
步骤202c、若上述第二电子设备的第二消息通知功能处于关闭状态,则信息通知装置开启上述第二消息通知功能。Step 202c: If the second message notification function of the second electronic device is in an off state, the information notification device enables the second message notification function.
如此,第二电子设备可以在两个电子设备间的距离较近,且第一电子设备关闭消息通知时,开启第二电子设备的消息通知,防止电子设备不能及时向用户发出消息通知,造成延误。In this way, the second electronic device can turn on the message notification of the second electronic device when the distance between the two electronic devices is close and the first electronic device turns off the message notification, so as to prevent the electronic device from not being able to send the message notification to the user in time, causing delays .
可选地,在本申请实施例中,针对用户在至少三个电子设备上登录同一账户的情况,本申请实施例提供了多种方法对上述多个电子设备的消息通知功能进行控制。Optionally, in the embodiment of the present application, for the case where the user logs in to the same account on at least three electronic devices, the embodiment of the present application provides various methods to control the message notification function of the above-mentioned multiple electronic devices.
示例性的,上述第二电子设备可以包括N个电子设备。上述步骤202,还可以包括以下步骤202d:Exemplarily, the above-mentioned second electronic device may include N electronic devices. The
步骤202d、在上述第一电子设备与上述N个电子设备的消息通知功能均处于关闭状态的情况下,若第一电子设备与N个电子设备中的至少两个电子设备间的相对距离小于预定阈值,则信息通知装置开启第三电子设备的消息通知功能。Step 202d, in the case that the message notification functions of the above-mentioned first electronic device and the above-mentioned N electronic devices are in a closed state, if the relative distance between the first electronic device and at least two electronic devices in the N electronic devices is less than a predetermined If the threshold value is set, the information notification device enables the message notification function of the third electronic device.
其中,上述第三电子设备为上述至少两个电子设备中的一个。Wherein, the above-mentioned third electronic device is one of the above-mentioned at least two electronic devices.
示例性的,根据上述步骤202b所述的方法,当第一电子设备与第二电子设备间的距离小于预设阈值时,第一电子设备会关闭消息通知。且由于第二电子设备为N个电子设备,上述至少两个电子设备间的距离可能大于或者等于预设阈值,也可能小于预设阈值,因此,上述至少两个电子设备的消息通知功能不确定。当第一电子设备与上述至少两个电子设备间的距离小于预定阈值时,可能存在第一电子设备和上述至少两个电子设备的消息通知功能均处于关闭状态。此时,我们可以根据第一电子设备与上述至少两个电子设备间的相对位置信息,控制上述至少两个电子设备的消息通知功能的开启或关闭。Exemplarily, according to the method described in the above step 202b, when the distance between the first electronic device and the second electronic device is less than a preset threshold, the first electronic device will close the message notification. And because the second electronic device is N electronic devices, the distance between the at least two electronic devices may be greater than or equal to the preset threshold, or may be smaller than the preset threshold, therefore, the message notification function of the at least two electronic devices is uncertain. . When the distance between the first electronic device and the at least two electronic devices is less than the predetermined threshold, it may exist that the message notification functions of the first electronic device and the at least two electronic devices are both turned off. At this time, we can control the message notification function of the at least two electronic devices to be turned on or off according to the relative position information between the first electronic device and the at least two electronic devices.
示例性的,当上述相对位置信息指示第一电子设备与上述至少两个电子设备中的一个电子设备(即上述第三电子设备)的距离小于上述至少两个电子设备中的其他电子设备的距离时,控制该第三电子设备开启消息通知功能。Exemplarily, when the relative position information indicates that the distance between the first electronic device and one of the at least two electronic devices (that is, the third electronic device) is smaller than the distance between the other electronic devices in the at least two electronic devices when the third electronic device is controlled to enable the message notification function.
举例说明,如图4所示,为4个登陆同一账户的电子设备,包括手机31、电脑32、电脑33和电脑34。通常情况下,用户都会随身携带手机,因此手机会随着用户的移动而移动,电子设备间的位置变化通常由于手机的位置改变引起。当手机31靠近上述3个电脑,且手机31与上述3个电脑的距离均小于预设阈值L时,手机31关闭消息通知。通过对比上述手机31与电脑32间的距离L1、手机31与电脑33间的距离32以及手机与电脑34间的距离L3可知,L1<L2<L3,因此,手机31与电脑32的距离最近,此时,用户可能正在操作电脑32,因此,可以控制电脑32开启消息通知。若上述L1=L2<L3,则可以控制电脑32和电脑33均开启消息通知。For example, as shown in FIG. 4 , there are four electronic devices that log into the same account, including a
示例性的,若在确保用户能够获取新消息提醒的前提下,只开启上述N个电子设备中的一个电子设备的消息通知,可以根据上述N个电子设备是否处于正在操作状态,确定上述N个电子设备的消息提醒状态的开启或关闭。Exemplarily, if the message notification of only one of the above-mentioned N electronic devices is enabled under the premise of ensuring that the user can obtain new message reminders, the above-mentioned N electronic devices can be determined according to whether the above-mentioned N electronic devices are in an operating state. The electronic device's message reminder status is turned on or off.
举例说明,在上述第一电子设备与上述N个电子设备的消息通知功能均处于关闭状态的情况下,若上述N个电子设备中的某个电子设备处于正在操作状态,则表示用户当前正在操作该电子设备,用户必然能够获取该电子设备发送的消息通知。因此,开启该电子设备的消息通知,可以保证在只开启一台电子设备的消息通知的情况下,确保用户能够获取应用程序发送的新消息。For example, when the message notification functions of the first electronic device and the N electronic devices are both turned off, if one of the N electronic devices is in an operating state, it means that the user is currently operating For the electronic device, the user must be able to obtain the message notification sent by the electronic device. Therefore, enabling the message notification of the electronic device can ensure that the user can obtain new messages sent by the application under the condition that the message notification of only one electronic device is enabled.
如此,在多台电子设备登录同一账户的情况下,可以在确保用户能够获取应用程序发送的新消息的同时,尽可能的降低电子设备在向用户发送消息通知时的干扰。In this way, when multiple electronic devices log in to the same account, while ensuring that the user can obtain new messages sent by the application, interference when the electronic device sends a message notification to the user can be reduced as much as possible.
本申请实施例提供的信息通知方法,根据第一电子设备与第二电子设备间的相对位置信息,控制第一电子设备和第二电子设备的消息通知的开启或关闭。即当第一电子设备与第二电子设备间的距离较近时,关闭第一电子设备的消息通知,距离较远时,开启第一电子设备的消息通知。同时,在第二电子设备为N个电子设备时,可以根据第一电子设备与N个电子设备中至少两个电子设备间的距离,控制至少两个电子设备的消息通知的开启或关闭。The information notification method provided by the embodiment of the present application controls on or off the message notification of the first electronic device and the second electronic device according to the relative position information between the first electronic device and the second electronic device. That is, when the distance between the first electronic device and the second electronic device is relatively short, the message notification of the first electronic device is turned off, and when the distance is relatively far, the message notification of the first electronic device is turned on. Meanwhile, when the second electronic device is N electronic devices, the message notification of at least two electronic devices can be controlled to be turned on or off according to the distance between the first electronic device and at least two of the N electronic devices.
需要说明的是,本申请实施例提供的信息通知方法,执行主体可以为信息通知装置,或者该信息通知装置中的用于执行信息通知方法的控制模块。本申请实施例中以信息通知装置执行信息通知方法为例,说明本申请实施例提供的信息通知方法。It should be noted that, in the information notification method provided by the embodiments of the present application, the execution body may be an information notification device, or a control module in the information notification device for executing the information notification method. In the embodiment of the present application, the information notifying method provided by the embodiment of the present application is described by taking the information notifying apparatus executing the information notifying method as an example.
需要说明的是,本申请实施例中,上述各个方法附图所示的。信息通知方法均是以结合本申请实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的信息通知方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiments of the present application, the above methods are shown in the accompanying drawings. The information notification methods are all exemplarily described with reference to a figure in the embodiments of the present application. During specific implementation, the information notification methods shown in the drawings of the above methods can also be implemented in combination with any other drawings shown in the above embodiments that can be combined, and details are not described herein again.
图5为实现本申请实施例提供的一种信息通知装置的可能的结构示意图,如图5所示,信息通知装置600包括:获取模块601和控制模块602,其中:FIG. 5 is a schematic diagram of a possible structure for implementing an information notification apparatus provided by an embodiment of the present application. As shown in FIG. 5 , the
获取模块601,用于在第一电子设备和第二电子设备均登陆第一账户的情况下,获取第一电子设备与第二电子设备间的相对位置信息。The obtaining
控制模块602,用于根据获取模块601获取的相对位置信息,控制目标电子设备的消息通知功能的开启或关闭。The
其中,目标电子设备为第一电子设备和第二电子设备中的至少一个。Wherein, the target electronic device is at least one of the first electronic device and the second electronic device.
可选地,上述第一账户为目标应用程序的账户;其中,消息通知功能包括:目标应用程序的消息通知功能,或者,目标应用程序中的目标会话的消息通知功能。Optionally, the above-mentioned first account is an account of the target application; wherein, the message notification function includes: a message notification function of the target application, or a message notification function of a target session in the target application.
可选地,控制模块602,具体用于若根据相对位置信息确定第一电子设备和第二电子设备之间的相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,则开启第一消息通知功能。控制模块602,具体用于若相对距离小于预定阈值、且第一消息通知功能处于开启状态,则关闭第一消息通知功能。Optionally, the
可选地,控制模块602,具体用于若相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,且第二电子设备在预设时间内未接收到用户的输入,则开启第一消息通知功能;控制模块602,具体用于若相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,且第二电子设备在预设时间内接收到用户的输入,则保持第一消息通知功能处于关闭状态;控制模块602,具体用于若相对距离小于预定阈值、且第一消息通知功能处于开启状态,且第二电子设备在预设时间内未接收到用户的输入,则保持第一消息通知功能处于开启状态;控制模块602,具体用于若相对距离小于预定阈值、且第一消息通知功能处于开启状态,且第二电子设备在预设时间内接收到用户的输入,则关闭第一消息通知功能。Optionally, the
可选地,控制模块602,还用于若第二电子设备的第二消息通知功能处于关闭状态,则开启第二消息通知功能。Optionally, the
可选地,上述第二电子设备包括N个电子设备;控制模块602,具体用于在第一电子设备与N个电子设备的消息通知功能均处于关闭状态的情况下,若第一电子设备与N个电子设备中的至少两个电子设备间的相对距离小于预定阈值,则开启第三电子设备的消息通知功能。其中,第三电子设备为至少两个电子设备中的一个。Optionally, the above-mentioned second electronic device includes N electronic devices; the
本申请实施例中的信息通知装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The information notification device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiments of the present application There is no specific limitation.
本申请实施例中的信息通知装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The information notification device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的信息通知装置能够实现图1至图4的方法实施例中会议控制装置实现的各个过程,为避免重复,这里不再赘述。The information notification apparatus provided in the embodiment of the present application can implement each process implemented by the conference control apparatus in the method embodiments of FIG. 1 to FIG. 4 , and to avoid repetition, details are not repeated here.
本申请实施例提供的信息通知装置,根据第一电子设备与第二电子设备间的相对位置信息,控制第一电子设备和第二电子设备的消息通知的开启或关闭。即当第一电子设备与第二电子设备间的距离较近时,关闭第一电子设备的消息通知,距离较远时,开启第一电子设备的消息通知。同时,在第二电子设备为N个电子设备时,可以根据第一电子设备与N个电子设备中至少两个电子设备间的距离,控制至少两个电子设备的消息通知的开启或关闭。The information notification apparatus provided by the embodiment of the present application controls the on or off of the message notification of the first electronic device and the second electronic device according to the relative position information between the first electronic device and the second electronic device. That is, when the distance between the first electronic device and the second electronic device is relatively short, the message notification of the first electronic device is turned off, and when the distance is relatively far, the message notification of the first electronic device is turned on. Meanwhile, when the second electronic device is N electronic devices, the message notification of at least two electronic devices can be controlled to be turned on or off according to the distance between the first electronic device and at least two of the N electronic devices.
可选的,如图6所示,本申请实施例还提供一种电子设备M00,包括处理器M01,存储器M02,存储在存储器M02上并可在所述处理器M01上运行的程序或指令,该程序或指令被处理器M01执行时实现上述信息通知方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 6 , an embodiment of the present application further provides an electronic device M00, including a processor M01, a memory M02, a program or instruction stored in the memory M02 and running on the processor M01, When the program or instruction is executed by the processor M01, each process of the above information notification method embodiment is implemented, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图7为实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
其中,传感器105,用于在第一电子设备和第二电子设备均登陆第一账户的情况下,获取第一电子设备与第二电子设备间的相对位置信息。The
处理器110,用于根据传感器105获取的相对位置信息,控制目标电子设备的消息通知功能的开启或关闭。The
如此,在第一电子设备和第二电子设备均登陆第一账户的情况下,通过获取第一电子设备与第二电子设备间的相对位置信息,并根据该相对位置信息,控制目标电子设备的消息通知功能的开启或关闭,使得第一电子设备远离第二电子设备时能够开启第一电子设备的消息通知,或者第二电子设备远离第一电子设备时能够开启第二电子设备的消息通知,避免用户在使用多个电子设备时,需要频繁的手动设置电子设备的通知提醒功能的开启或关闭。In this way, when both the first electronic device and the second electronic device are logged into the first account, the relative position information between the first electronic device and the second electronic device is obtained, and according to the relative position information, the target electronic device is controlled. Turning on or off the message notification function enables the message notification of the first electronic device to be turned on when the first electronic device is far away from the second electronic device, or the message notification of the second electronic device to be turned on when the second electronic device is far away from the first electronic device, When using multiple electronic devices, the user needs to frequently manually set to enable or disable the notification reminder function of the electronic devices.
可选的,处理器110,具体用于若根据相对位置信息确定第一电子设备和第二电子设备之间的相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,则开启第一消息通知功能。Optionally, the
处理器110,具体用于若相对距离小于预定阈值、且第一消息通知功能处于开启状态,则关闭第一消息通知功能。The
如此,第一电子设备可以根据两个电子设备间的距离,控制第一电子设备的消息通知功能的开启或关闭。防止两个电子设备间距离较近时,重复向用户发出消息通知,或者,两个电子设备间的距离较远时,电子设备不能及时向用户发出消息通知,造成延误。In this way, the first electronic device can control on or off the message notification function of the first electronic device according to the distance between the two electronic devices. When the distance between the two electronic devices is relatively close, a message notification is repeatedly sent to the user, or when the distance between the two electronic devices is relatively far, the electronic device cannot send a message notification to the user in time, causing delay.
可选地,处理器110,具体用于若相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,且第二电子设备在预设时间内未接收到用户的输入,则开启第一消息通知功能;处理器110,具体用于若相对距离大于或等于预定阈值、且第一电子设备的第一消息通知功能处于关闭状态,且第二电子设备在预设时间内接收到用户的输入,则保持第一消息通知功能处于关闭状态;处理器110,具体用于若相对距离小于预定阈值、且第一消息通知功能处于开启状态,且第二电子设备在预设时间内未接收到用户的输入,则保持第一消息通知功能处于开启状态;处理器110,具体用于若相对距离小于预定阈值、且第一消息通知功能处于开启状态,且第二电子设备在预设时间内接收到用户的输入,则关闭第一消息通知功能。Optionally, the
如此,第一电子设备可以在第二电子设备不处于正在操作状态时,依然开启第一电子设备的消息通知功能,避免遗漏消息;在第二电子设备处于正在操作状态时,关闭第一电子设备的消息通知功能,避免重复提醒。In this way, the first electronic device can still turn on the message notification function of the first electronic device when the second electronic device is not in the operating state to avoid missing messages; when the second electronic device is in the operating state, turn off the first electronic device The message notification function to avoid repeated reminders.
可选地,处理器110,还用于若第二电子设备的第二消息通知功能处于关闭状态,则开启第二消息通知功能。Optionally, the
如此,第二电子设备可以在两个电子设备间的距离较近,且第一电子设备关闭消息通知时,开启第二电子设备的消息通知,防止电子设备不能及时向用户发出消息通知,造成延误。In this way, the second electronic device can turn on the message notification of the second electronic device when the distance between the two electronic devices is close and the first electronic device turns off the message notification, so as to prevent the electronic device from not being able to send the message notification to the user in time, causing delays .
可选地,处理器110,具体用于在上述第一电子设备与上述N个电子设备的消息通知功能均处于关闭状态的情况下,若第一电子设备与N个电子设备中的至少两个电子设备间的相对距离小于预定阈值,则开启第三电子设备的消息通知功能。Optionally, the
如此,在多台电子设备登录同一账户的情况下,可以在确保用户能够获取应用程序发送的新消息的同时,尽可能的降低电子设备在向用户发送消息通知时的干扰。In this way, when multiple electronic devices log in to the same account, while ensuring that the user can obtain new messages sent by the application, interference when the electronic device sends a message notification to the user can be reduced as much as possible.
本申请实施例提供的电子设备,根据第一电子设备与第二电子设备间的相对位置信息,控制第一电子设备和第二电子设备的消息通知的开启或关闭。即当第一电子设备与第二电子设备间的距离较近时,关闭第一电子设备的消息通知,距离较远时,开启第一电子设备的消息通知。同时,在第二电子设备为N个电子设备时,可以根据第一电子设备与N个电子设备中至少两个电子设备间的距离,控制至少两个电子设备的消息通知的开启或关闭。The electronic device provided by the embodiment of the present application controls the on or off of the message notification of the first electronic device and the second electronic device according to the relative position information between the first electronic device and the second electronic device. That is, when the distance between the first electronic device and the second electronic device is relatively short, the message notification of the first electronic device is turned off, and when the distance is relatively far, the message notification of the first electronic device is turned on. Meanwhile, when the second electronic device is N electronic devices, the message notification of at least two electronic devices can be controlled to be turned on or off according to the distance between the first electronic device and at least two of the N electronic devices.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述信息通知方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing information notification method embodiment can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述信息通知方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above information notification method embodiments Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010525667.9A CN111884906A (en) | 2020-06-10 | 2020-06-10 | Information notification method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010525667.9A CN111884906A (en) | 2020-06-10 | 2020-06-10 | Information notification method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111884906A true CN111884906A (en) | 2020-11-03 |
Family
ID=73156738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010525667.9A Pending CN111884906A (en) | 2020-06-10 | 2020-06-10 | Information notification method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111884906A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112866983A (en) * | 2021-01-19 | 2021-05-28 | 维沃移动通信有限公司 | Control method, control device and electronic equipment |
CN116527806A (en) * | 2023-05-15 | 2023-08-01 | 维沃移动通信有限公司 | Application notification control method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973786A (en) * | 2014-05-07 | 2014-08-06 | 惠州Tcl移动通信有限公司 | Synchronization method for notification messages of electronic device and electronic device |
US20140337443A1 (en) * | 2013-05-13 | 2014-11-13 | International Business Machines Corporation | Using the distance from a forum posting as criteria to selectively convey email notifications or not |
US20150105105A1 (en) * | 2013-10-15 | 2015-04-16 | The Toronto Dominion Bank | Location-based account activity alerts |
WO2016169441A1 (en) * | 2015-04-23 | 2016-10-27 | 阿里巴巴集团控股有限公司 | Message pushing method and apparatus |
CN111106997A (en) * | 2019-12-30 | 2020-05-05 | 北京三快在线科技有限公司 | Message reminding method, device, equipment and storage medium |
-
2020
- 2020-06-10 CN CN202010525667.9A patent/CN111884906A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140337443A1 (en) * | 2013-05-13 | 2014-11-13 | International Business Machines Corporation | Using the distance from a forum posting as criteria to selectively convey email notifications or not |
US20150105105A1 (en) * | 2013-10-15 | 2015-04-16 | The Toronto Dominion Bank | Location-based account activity alerts |
CN103973786A (en) * | 2014-05-07 | 2014-08-06 | 惠州Tcl移动通信有限公司 | Synchronization method for notification messages of electronic device and electronic device |
WO2016169441A1 (en) * | 2015-04-23 | 2016-10-27 | 阿里巴巴集团控股有限公司 | Message pushing method and apparatus |
CN111106997A (en) * | 2019-12-30 | 2020-05-05 | 北京三快在线科技有限公司 | Message reminding method, device, equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112866983A (en) * | 2021-01-19 | 2021-05-28 | 维沃移动通信有限公司 | Control method, control device and electronic equipment |
CN112866983B (en) * | 2021-01-19 | 2024-01-12 | 维沃移动通信有限公司 | Control method, control device and electronic equipment |
CN116527806A (en) * | 2023-05-15 | 2023-08-01 | 维沃移动通信有限公司 | Application notification control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111354360A (en) | Voice interaction processing method and device and electronic equipment | |
US9037455B1 (en) | Limiting notification interruptions | |
WO2021109882A1 (en) | Application starting method and apparatus, and storage medium and electronic device | |
US8849303B2 (en) | Apparatus and method for determining a wireless device's location after shutdown | |
US10222900B2 (en) | Method and apparatus for differentiating between grip touch events and touch input events on a multiple display device | |
EP3113549A1 (en) | Method and device for waking up mcu chip | |
EP3112979B1 (en) | Method and device for waking up mcu | |
CN111343677B (en) | A terminal behavior triggering method and terminal | |
WO2019019835A1 (en) | Method and device for responding to blank screen gesture, and storage medium and mobile terminal | |
CN105306682A (en) | Method and device for automatically disconnecting network connection | |
CN108111974A (en) | Control method and device of positioning module, storage medium and terminal | |
CN113992615B (en) | Method and device for displaying withdrawal message, electronic equipment and storage medium | |
CN113138786B (en) | Application updating method and device | |
KR102619117B1 (en) | Electronic device and method for operating electronic device | |
WO2023045885A1 (en) | Synchronization method and apparatus | |
CN113138560B (en) | Terminal control method, device, equipment and readable storage medium | |
CN111629045A (en) | Device wake-up method, system, apparatus, device and storage medium | |
CN111884906A (en) | Information notification method and device and electronic equipment | |
CN112764611B (en) | Application program control method and device and electronic equipment | |
CN108112061B (en) | Positioning control method, device, storage medium and terminal device | |
WO2022135259A1 (en) | Speech input method and apparatus, and electronic device | |
CN112764512B (en) | Power saving control method, device, electronic equipment and readable storage medium | |
US20130052991A1 (en) | Transfer of status information concerning a mobile device via a cloud based service | |
CN112333329B (en) | Method, device and electronic device for reminding unread information | |
CN115016868A (en) | Screen control method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201103 |
|
RJ01 | Rejection of invention patent application after publication |