Movatterモバイル変換


[0]ホーム

URL:


CN115706737A - Push message synchronization method, electronic equipment and system - Google Patents

Push message synchronization method, electronic equipment and system
Download PDF

Info

Publication number
CN115706737A
CN115706737ACN202110931528.0ACN202110931528ACN115706737ACN 115706737 ACN115706737 ACN 115706737ACN 202110931528 ACN202110931528 ACN 202110931528ACN 115706737 ACN115706737 ACN 115706737A
Authority
CN
China
Prior art keywords
electronic device
information
push
push message
message
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
Application number
CN202110931528.0A
Other languages
Chinese (zh)
Inventor
余涛
曹春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN202110931528.0ApriorityCriticalpatent/CN115706737A/en
Publication of CN115706737ApublicationCriticalpatent/CN115706737A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本申请提供了一种推送消息同步的方法、电子设备及系统,该方法应用于电子设备,多个电子设备接收到同一个推送消息时,当其中的至少一个电子设备处理该推送消息后,可以将已处理该推送消息的信息同步至其他电子设备,从而其他电子设备可以更新该推送消息的状态。本申请实施例可以避免多个电子设备之间推送消息的冗余,可以提高用户的体验。

Figure 202110931528

The present application provides a push message synchronization method, electronic device and system. The method is applied to electronic devices. When multiple electronic devices receive the same push message, after at least one of the electronic devices processes the push message, it can The information of the processed push message is synchronized to other electronic devices, so that other electronic devices can update the status of the push message. The embodiments of the present application can avoid redundancy of push messages among multiple electronic devices, and can improve user experience.

Figure 202110931528

Description

Translated fromChinese
一种推送消息同步的方法、电子设备及系统A push message synchronization method, electronic device and system

技术领域technical field

本申请涉及电子设备领域,并且更具体地,涉及一种推送消息同步的方法、电子设备及系统。The present application relates to the field of electronic equipment, and more specifically, relates to a push message synchronization method, electronic equipment and system.

背景技术Background technique

随着技术的进步和发展,大部分电子设备中的应用程序都提供了消息推送功能,如新闻应用程序的热点新闻推荐,聊天应用程序的聊天消息提醒等。消息推送对于提高应用程序的活跃度、提高功能模块使用率、提升用户粘性、提升用户留存率起到了重要作用,作为应用程序运营中一个关键的渠道,对信息推送的合理运用能有效促进目标的实现。With the advancement and development of technology, applications in most electronic devices provide message push functions, such as hot news recommendation in news applications, chat message reminders in chat applications, and the like. Message push plays an important role in improving the activity of the application, increasing the utilization rate of functional modules, increasing user stickiness, and improving user retention rate. As a key channel in the operation of the application, the reasonable use of information push can effectively promote the target. accomplish.

同时伴随着经济发展和社会进步,个人或家庭的所拥有的电子设备越来越多,多个电子设备上可以同时接收到同一个推送消息,当一个电子设备处理该推送消息后,其他电子设备上仍会保留该推送消息,从而造成推送消息的冗余,因此如何避免多个电子设备中推送的消息的冗余是一个亟待解决的问题。At the same time, along with economic development and social progress, more and more electronic devices are owned by individuals or families. Multiple electronic devices can receive the same push message at the same time. When one electronic device processes the push message, other electronic devices The push message will still be kept on the computer, thereby causing redundancy of the push message, so how to avoid the redundancy of the message pushed by multiple electronic devices is an urgent problem to be solved.

发明内容Contents of the invention

本申请实施例提供一种推送消息同步的方法、电子设备及系统,该方法可以通过多个电子设备之间的推送消息,避免了推送消息的冗余,提升了用户体验和人机交互的趣味性。The embodiment of the present application provides a push message synchronization method, electronic device and system, the method can avoid the redundancy of push messages through push messages between multiple electronic devices, and improve the user experience and the fun of human-computer interaction sex.

第一方面,提供了一种系统,该系统包括第一电子设备、第二电子设备、推送服务器,该第一电子设备登录第一设备ID,该第二电子设备登录该第二设备ID,该第一设备ID和该第二设备ID相同或关联,其中,该推送服务器,用于根据该第一设备ID向该第一电子设备发送第一推送信息和根据该第二设备ID向该第二电子设备发送该第一推送消息;该第一电子设备,用于接收该第一推送消息;该第二电子设备,用于接收该第一推送消息;该第一电子设备,还用于在检测到处理该第一推送消息的操作时,生成第一信息;该第一电子设备,还用于向该第二电子设备发送该第一信息;该第二电子设备,还用于接收该第一信息,并根据该第一信息更新该第一推送消息的状态。In the first aspect, a system is provided, the system includes a first electronic device, a second electronic device, and a push server, the first electronic device registers the first device ID, the second electronic device registers the second device ID, the The first device ID and the second device ID are the same or associated, wherein the push server is used to send the first push information to the first electronic device according to the first device ID and send the first push information to the second device according to the second device ID. The electronic device sends the first push message; the first electronic device is used to receive the first push message; the second electronic device is used to receive the first push message; the first electronic device is also used to detect When processing the operation of the first push message, first information is generated; the first electronic device is also used to send the first information to the second electronic device; the second electronic device is also used to receive the first information, and update the status of the first push message according to the first information.

本申请实施例中,多个电子设备可以同步推送消息的状态,当多个电子设备接收到同一个推送消息时,其中的至少一个电子设备处理该推送消息时,可以将处理该推送消息的信息同步至其他电子设备,其他电子设备可以根据该信息更新该推送消息的状态,避免了推送消息的冗余,提升了用户体验和人机交互的趣味性。In the embodiment of the present application, multiple electronic devices can synchronize the status of the push message. When multiple electronic devices receive the same push message, at least one of the electronic devices can process the push message and process the push message. Synchronized to other electronic devices, other electronic devices can update the status of the push message according to the information, avoiding the redundancy of push messages, and improving the user experience and the fun of human-computer interaction.

应理解,还可以通过其他方式指示第二电子设备更新推送消息的状态,在另一种可能的实现方式中,该第一电子设备,还用于向该推送服务器发送第一信息;该推送服务器,还用于根据第一信息生成第二信息,该第二信息用于指示该第二电子设备更新该第一推送信息,该第二电子设备,还用于接收该第二信息,并根据该第二信息更新该第一推送消息的状态。It should be understood that the second electronic device may also be instructed to update the status of the push message in other ways. In another possible implementation, the first electronic device is also used to send the first information to the push server; the push server , is also used to generate second information according to the first information, the second information is used to instruct the second electronic device to update the first push information, and the second electronic device is also used to receive the second information, and according to the The second information updates the status of the first push message.

本申请实施例中,第一电子设备还可以将第一信息发送推送服务器,由推送服务器指示第二电子设备更新推送消息的状态。推送服务器可以一直保持与第二电子设备的连接,且推送服务器是根据第二设备ID向第二电子设备推荐第一推送消息的,因此,即使第一推送消息所属的应用程序没有在第二电子设备中运行,第二电子设备也可以根据推送服务器的指示更新第一推送消息。In this embodiment of the present application, the first electronic device may also send the first information to the push server, and the push server instructs the second electronic device to update the status of the push message. The push server can always maintain a connection with the second electronic device, and the push server recommends the first push message to the second electronic device according to the second device ID. Therefore, even if the application program to which the first push message belongs is not on the second electronic device The second electronic device may also update the first push message according to an instruction of the push server.

结合第一方面,在第一方面的某些实现方式中,该系统还包括应用程序服务器,其中,With reference to the first aspect, in some implementation manners of the first aspect, the system further includes an application server, where,

该应用程序服务器,用于向该推送服务器发送该第一推送消息。The application server is configured to send the first push message to the push server.

结合第一方面,在第一方面的某些实现方式中,该第一电子设备,还用于根据用户的操作判断是否发送该第一信息;该第一电子设备,还用于向该第二电子设备发送该第一信息,包括:该第一电子设备,具体用于当确定发送该第一信息时,向该第二电子设备发送该第一信息。With reference to the first aspect, in some implementation manners of the first aspect, the first electronic device is further configured to determine whether to send the first information according to user operations; the first electronic device is also configured to send the second information to the second Sending the first information by the electronic device includes: the first electronic device is specifically configured to send the first information to the second electronic device when it is determined to send the first information.

结合第一方面,在第一方面的某些实现方式中,该第一电子设备,还用于根据用户的操作判断是否发送该第一信息;该第一电子设备,还用于向该推送服务器发送该第一信息,包括:该第一电子设备,具体用于当确定发送该第一信息时,向该推送服务器发送该第一信息。With reference to the first aspect, in some implementations of the first aspect, the first electronic device is also used to determine whether to send the first information according to the user's operation; the first electronic device is also used to send the push server Sending the first information includes: the first electronic device being specifically configured to send the first information to the push server when it is determined to send the first information.

本申请实施例中,第一电子设备在确定用户需要更新第二电子设备的推送消息时,才会发送第一信息,丰富了电子设备的交互方式,增加了用户的可选择性。In the embodiment of the present application, the first electronic device sends the first information only when it determines that the user needs to update the push message of the second electronic device, which enriches the interaction mode of the electronic device and increases the user's selectivity.

结合第一方面,在第一方面的某些实现方式中,该应用服务器,还用于向该推送服务器发送标识信息,该标识信息包括第一设备ID和第二设备ID。With reference to the first aspect, in some implementation manners of the first aspect, the application server is further configured to send identification information to the push server, where the identification information includes a first device ID and a second device ID.

结合第一方面,在第一方面的某些实现方式中,该第一电子设备和该第二电子设备在同一个局域网中,该第一电子设备,具体用于通过路由设备向该第二电子设备发送该第一推送消息。With reference to the first aspect, in some implementation manners of the first aspect, the first electronic device and the second electronic device are in the same local area network, and the first electronic device is specifically used to The device sends the first push message.

结合第一方面,在第一方面的某些实现方式中,该第一电子设备与该第二电子设备共享数据库,该第一电子设备,具体用于在检测到处理该第一推送消息的操作时,生成第一信息,并将该第一信息写入该数据库;该第二电子设备,具体用于访问该数据库,获取该第一信息,并根据该第一信息更新该第一推送消息的状态。With reference to the first aspect, in some implementation manners of the first aspect, the first electronic device shares a database with the second electronic device, and the first electronic device is specifically configured to detect the operation of processing the first push message , generating the first information and writing the first information into the database; the second electronic device is specifically used to access the database, obtain the first information, and update the first push message according to the first information state.

结合第一方面,在第一方面的某些实现方式中,该第一电子设备和该第二电子设备在同一个局域网中,该第一电子设备和该第二电子设备根据预设条件确定该第一电子设备为主电子设备,该主电子设备用于指示该局域网中的电子设备更新推送消息;该第一电子设备,具体用于通过路由设备向该第二电子设备发送该第一信息。With reference to the first aspect, in some implementation manners of the first aspect, the first electronic device and the second electronic device are in the same local area network, and the first electronic device and the second electronic device determine the The first electronic device is a master electronic device, and the master electronic device is used to instruct the electronic devices in the local area network to update push messages; the first electronic device is specifically used to send the first information to the second electronic device through a routing device.

第二方面,提供了一种推送消息同步的方法,该方法应用于第一电子设备,该第一电子设备登录第一设备ID,该方法包括:该第一电子设备接收该推送服务器根据该第一设备ID发送的第一推送消息;该第一电子设备处理该第一推送消息时,生成第一信息,该第一信息用于指示该第一电子设备已处理该第一推送消息;该第一电子设备向该推送服务器发送该第一信息;或该第一电子设备向第二电子设备发送该第一信息。In a second aspect, a method for synchronizing push messages is provided, the method is applied to a first electronic device, and the first electronic device logs in a first device ID, and the method includes: the first electronic device receives the push server according to the first A first push message sent by a device ID; when the first electronic device processes the first push message, it generates first information, and the first information is used to indicate that the first electronic device has processed the first push message; An electronic device sends the first information to the push server; or the first electronic device sends the first information to a second electronic device.

本申请实施例中,多个电子设备可以同步推送消息的状态,当多个电子设备接收到同一个推送消息时,其中的至少一个电子设备处理该推送消息时,可以将处理该推送消息的信息同步至其他电子设备,其他电子设备可以根据该信息更新该推送消息的状态,避免了推送消息的冗余,提升了用户体验和人机交互的趣味性。In the embodiment of the present application, multiple electronic devices can synchronize the status of the push message. When multiple electronic devices receive the same push message, at least one of the electronic devices can process the push message and process the push message. Synchronized to other electronic devices, other electronic devices can update the status of the push message according to the information, avoiding the redundancy of push messages, and improving the user experience and the fun of human-computer interaction.

结合第二方面,在第二方面的某些实现方式中,该第一电子设备发送该第一信息之前,该方法还包括:该第一电子设备根据用户的操作判断是否发送该第一信息;该第一电子设备向该推送服务器发送该第一信息,包括:当该第一电子设备确定发送该第一信息时,该第一电子设备向该推送服务器发送该第一信息;该第一电子设备向第二电子设备发送该第一信息,包括:当该第一电子设备确定发送该第一信息时,该第一电子设备向该第二电子设备发送该第一信息。With reference to the second aspect, in some implementation manners of the second aspect, before the first electronic device sends the first information, the method further includes: the first electronic device judges whether to send the first information according to the user's operation; The first electronic device sending the first information to the push server includes: when the first electronic device determines to send the first information, the first electronic device sends the first information to the push server; Sending the first information by the device to the second electronic device includes: when the first electronic device determines to send the first information, the first electronic device sends the first information to the second electronic device.

本申请实施例中,第一电子设备在确定用户需要更新第二电子设备的推送消息时,才会发送第一信息,丰富了电子设备的交互方式,增加了用户的可选择性。In the embodiment of the present application, the first electronic device sends the first information only when it determines that the user needs to update the push message of the second electronic device, which enriches the interaction mode of the electronic device and increases the user's selectivity.

结合第二方面,在第二方面的某些实现方式中,该方法还包括:该第一电子设备检测是否与该第二电子设备在同一个局域网,该第一电子设备向第二电子设备发送该第一信息,包括:当该第一电子设备检测到与该第二电子设备未在同一个局域网时,缓存该第一信息,当该第一电子设备和该第二电子设备在同一个局域网后,向该第二电子设备发送该第一信息;当该第一电子设备检测到与该第二电子设备在同一个局域网时,向该第二电子设备发送该第一信息。With reference to the second aspect, in some implementations of the second aspect, the method further includes: the first electronic device detects whether it is in the same local area network as the second electronic device, and the first electronic device sends to the second electronic device The first information includes: when the first electronic device detects that it is not in the same local area network as the second electronic device, cache the first information; when the first electronic device and the second electronic device are in the same local area network Then, send the first information to the second electronic device; when the first electronic device detects that it is in the same local area network as the second electronic device, send the first information to the second electronic device.

结合第二方面,在第二方面的某些实现方式中,该方法还包括:该第一电子设备接收该第二电子设备发送的订阅信息,该订阅信息用于指示该第一电子设备发送该第一信息。With reference to the second aspect, in some implementations of the second aspect, the method further includes: the first electronic device receives subscription information sent by the second electronic device, and the subscription information is used to instruct the first electronic device to send the first information.

结合第二方面,在第二方面的某些实现方式中,该第一电子设备和该第二电子设备在同一个局域网中,该第一电子设备向该第二电子设备发送该第一信息,包括:With reference to the second aspect, in some implementation manners of the second aspect, the first electronic device and the second electronic device are in the same local area network, the first electronic device sends the first information to the second electronic device, include:

该第一电子设备通过路由设备向该第二电子设备发送该第一信息。The first electronic device sends the first information to the second electronic device through a routing device.

结合第二方面,在第二方面的某些实现方式中,该第一电子设备和该第二电子设备共享数据库,该第一电子设备向该第二电子设备发送该第一信息,包括:With reference to the second aspect, in some implementation manners of the second aspect, the first electronic device and the second electronic device share a database, and the first electronic device sends the first information to the second electronic device, including:

该第一电子设备向该数据库写入该第一信息,以使该第二电子设备接收该第一信息。The first electronic device writes the first information into the database, so that the second electronic device receives the first information.

结合第二方面,在第二方面的某些实现方式中,该第一电子设备和该电子设备在同一个局域网中,该第一电子设备和该第二电子设备根据预设条件确定该第一电子设备为主电子设备,该主电子设备用于指示该局域网中的电子设备更新推送消息;该第一电子设备向该第二电子设备发送该第一信息,包括:With reference to the second aspect, in some implementation manners of the second aspect, the first electronic device and the electronic device are in the same local area network, and the first electronic device and the second electronic device determine the first electronic device according to preset conditions The electronic device is a master electronic device, and the master electronic device is used to instruct the electronic devices in the local area network to update push messages; the first electronic device sends the first information to the second electronic device, including:

该第一电子设备通过路由设备向该第二电子设备发送该第一信息。The first electronic device sends the first information to the second electronic device through a routing device.

第三方面,提供了一种推送消息同步的方法,该方法应用于推送服务器,该方法包括:该推送服务器根据第一设备ID向第一电子设备发送第一推送消息,根据第二设备ID向第二电子设备发送该第一推送消息,其中,该第一设备ID为该第一电子设备的设备ID,该第二设备ID为该第二电子设备的设备ID,该第一设备ID与该第二设备ID相同或关联;该推送服务器接收该第一电子设备发送的第一信息,该第一信息用于指示该第一电子设备已处理该第一推送消息;该推送服务器根据该第一信息生成第二信息,该第二信息用于指示该第二电子设备更新该第一推送消息;该推送服务器根据该第二设备ID向该第二电子设备发送该第二信息。In a third aspect, a method for synchronizing push messages is provided, the method is applied to a push server, and the method includes: the push server sends a first push message to the first electronic device according to the first device ID, and sends a push message to the first electronic device according to the second device ID. The second electronic device sends the first push message, wherein the first device ID is the device ID of the first electronic device, the second device ID is the device ID of the second electronic device, and the first device ID and the The ID of the second device is the same or associated; the push server receives the first information sent by the first electronic device, and the first information is used to indicate that the first electronic device has processed the first push message; the push server receives the first message according to the first The information generates second information, and the second information is used to instruct the second electronic device to update the first push message; the push server sends the second information to the second electronic device according to the second device ID.

本申请实施例中,推送服务器可以根据设备ID向电子设备发送推送消息,并且还可以指示电子设备更新推送消息的状态,由于推送服务器可以一直与电子设备保持连接,通过推送服务器指示电子设备更新推送消息的状态,可以保证即使电子设备接收到的推送消息所属的应用程序未运行时,电子设备也可以根据推送服务器的指示更新推送消息的状态,提高了用户的体验。In the embodiment of this application, the push server can send a push message to the electronic device according to the device ID, and can also instruct the electronic device to update the status of the push message. Since the push server can always keep connected with the electronic device, the push server can instruct the electronic device to update the push The status of the message can ensure that even when the application program to which the push message received by the electronic device is not running, the electronic device can update the status of the push message according to the instruction of the push server, thereby improving user experience.

结合第三方面,在第三方面的某些实现方式中,该推送服务器发送该第一推送消息之前,该方法还包括:该推送服务器接收应用服务器发送的该第一推送消息。With reference to the third aspect, in some implementation manners of the third aspect, before the push server sends the first push message, the method further includes: the push server receives the first push message sent by the application server.

结合第三方面,在第三方面的某些实现方式中,该方法还包括:该推送服务器接收该应用程序服务器发送的标识信息,该标识信息包括该第一设备ID和该第二设备ID。With reference to the third aspect, in some implementation manners of the third aspect, the method further includes: the push server receiving identification information sent by the application server, where the identification information includes the first device ID and the second device ID.

第四方面,提供了一种推送消息同步的方法,该方法应用于第二电子设备,该第二电子设备登录第二设备ID,该方法包括:该第二电子设备接收推送服务器根据该第二设备ID发送的第一推送消息;该第二电子设备接收第一电子设备发送的第一信息,该第一信息用于指示该第一电子设备已处理该第一推送消息,并根据该第一信息更新该第一推送消息的状态;或该第二电子设备接收该推送服务器根据该第二设备ID发送的第二信息,并根据该第二信息更新该第一推送消息的状态。In a fourth aspect, a method for synchronizing push messages is provided, the method is applied to a second electronic device, and the second electronic device logs in a second device ID, and the method includes: the second electronic device receives the push server according to the second The first push message sent by the device ID; the second electronic device receives the first information sent by the first electronic device, the first information is used to indicate that the first electronic device has processed the first push message, and according to the first information to update the status of the first push message; or the second electronic device receives the second information sent by the push server according to the second device ID, and updates the status of the first push message according to the second information.

本申请实施例中,第一电子设备和第二电子设备接收到同一个推送消息,在第一电子设备处理该推送消息后,第二电子设备可以接收推送服务器或者第一电子设备的指示更新推送消息的状态,从而避免了推送消息的冗余,提高了用户的体验。In this embodiment of the application, the first electronic device and the second electronic device receive the same push message, and after the first electronic device processes the push message, the second electronic device can receive an instruction from the push server or the first electronic device to update the push message. The state of the message, thereby avoiding the redundancy of pushing messages and improving the user experience.

第五方面,为本申请实施例的一种电子设备,所述电子设备包括执行上述方面或者上述方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。The fifth aspect is an electronic device according to an embodiment of the present application. The electronic device includes modules/units that perform any of the above aspects or any possible design method of the above aspects; these modules/units can be implemented by hardware, or A corresponding software implementation may be performed by hardware.

第六方面,为本申请实施例的一种芯片,所述芯片与电子设备中的存储器耦合,用于调用存储器中存储的计算机程序并执行本申请实施例上述方面及其上述方面任一可能设计的技术方案;本申请实施例中“耦合”是指两个部件彼此直接或间接地结合。The sixth aspect is a chip according to the embodiment of the present application, the chip is coupled with the memory in the electronic device, and is used to call the computer program stored in the memory and execute the above-mentioned aspect of the embodiment of the present application and any possible design of the above-mentioned aspect The technical solution; "coupling" in the embodiment of the present application means that two components are directly or indirectly combined with each other.

第七方面,为本申请实施例的一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行如上述方面及其上述方面任一可能设计的技术方案。The seventh aspect is a computer-readable storage medium according to an embodiment of the present application, the computer-readable storage medium includes a computer program, and when the computer program is run on the electronic device, the electronic device executes the above aspects and its A technical solution for any possible design of the above aspects.

第八方面,为本申请实施例的一种计算机程序,所述计算机程序包括指令,当所述指令在计算机上运行时,使得所述计算机执行如上述方面及其上述方面任一可能设计的技术方案。The eighth aspect is a computer program according to an embodiment of the present application, the computer program includes instructions, and when the instructions are run on a computer, the computer executes the technology as in the above aspect and any possible design of the above aspects plan.

第九方面,为本申请实施例的一种电子设备上的图形用户界面,所述电子设备具有显示屏、一个或多个存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述一个或多个存储器中的一个或多个计算机程序,所述图形用户界面包括所述电子设备执行上述方面及其上述方面任一可能设计的技术方案时显示的图形用户界面。The ninth aspect is a graphical user interface on an electronic device according to an embodiment of the present application. The electronic device has a display screen, one or more memories, and one or more processors, and the one or more processors use When executing one or more computer programs stored in the one or more memories, the graphical user interface includes a graphical user interface displayed when the electronic device executes the technical solution of the above aspect and any possible design of the above aspect .

其中,第五方面至第九方面的有益效果,请参见上述方面的有益效果,不重复赘述。Wherein, for the beneficial effects of the fifth aspect to the ninth aspect, please refer to the beneficial effects of the above aspects, and will not be repeated.

附图说明Description of drawings

图1是本申请实施例提供的一种电子设备的结构示意图。FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图2是本申请实施例提供的一例电子设备的软件结构框图。FIG. 2 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application.

图3是目前处理推送消息的一组GUI。Figure 3 is a set of GUIs currently processing push messages.

图4是本申请实施例提供的一组GUI。Fig. 4 is a set of GUI provided by the embodiment of the present application.

图5是本申请实施例提供的另一组GUI。Fig. 5 is another set of GUI provided by the embodiment of the present application.

图6是本申请实施例提供的另一组GUI。Fig. 6 is another set of GUI provided by the embodiment of the present application.

图7是本申请实施例提供的推送消息同步的方法的示意性流程图。Fig. 7 is a schematic flowchart of a method for synchronizing push messages provided by an embodiment of the present application.

图8是本申请实施例提供的另一种推送消息同步的方法的示意性流程图。FIG. 8 is a schematic flow chart of another method for synchronizing push messages provided by an embodiment of the present application.

图9是本申请实施例提供的一种电子设备数据流向示意图。FIG. 9 is a schematic diagram of data flow of an electronic device provided by an embodiment of the present application.

图10是本申请实施例提供的另一种推送消息同步的方法的示意性流程图。FIG. 10 is a schematic flow chart of another method for synchronizing push messages provided by an embodiment of the present application.

图11是本申请实施例提供的一种电子设备数据流向示意图。FIG. 11 is a schematic diagram of data flow of an electronic device provided by an embodiment of the present application.

图12是本申请实施例提供的另一种推送消息同步的方法的示意性流程图。FIG. 12 is a schematic flow chart of another method for synchronizing push messages provided by an embodiment of the present application.

图13是本申请实施例提供的一种分布式数据库系统示意图。Fig. 13 is a schematic diagram of a distributed database system provided by an embodiment of the present application.

图14是本申请实施例提供的一种电子设备数据流向示意图。FIG. 14 is a schematic diagram of data flow of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following examples are for the purpose of describing particular examples only, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Expressions such as "one or more" are included unless the context clearly dictates otherwise. It should also be understood that in the following embodiments of the present application, "at least one" and "one or more" refer to one, two or more than two. The term "and/or" is used to describe the relationship between associated objects, indicating that there may be three relationships; for example, A and/or B may indicate: A exists alone, A and B exist at the same time, and B exists alone, Wherein A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship.

在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.

以下介绍电子设备、用于这样的电子设备的用户界面、和用于使用这样的电子设备的实施例。在一些实施例中,电子设备可以是还包含其它功能诸如个人数字助理和/或音乐播放器功能的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载

Figure BDA0003211356140000051
Figure BDA0003211356140000052
或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。Electronic devices, user interfaces for such electronic devices, and embodiments for using such electronic devices are described below. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and/or a music player, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch) wait. Exemplary embodiments of portable electronic devices include, but are not limited to
Figure BDA0003211356140000051
Figure BDA0003211356140000052
Or portable electronic devices with other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop). It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer.

示例性地,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,指南针190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。Exemplarily, FIG. 1 shows a schematic structural diagram of an electronic device 100 . The electronic device 100 may include aprocessor 110, anexternal memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, acharging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 ,mobile communication module 150,wireless communication module 160,audio module 170,speaker 170A,receiver 170B,microphone 170C,earphone jack 170D, sensor module 180, compass 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM)card interface 195 and the like.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备101也可以包括一个或多个处理器110。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在其他一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例性地,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。这样就避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备101处理数据或执行指令的效率。Theprocessor 110 may include one or more processing units, for example: theprocessor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor (ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent components, or may be integrated in one or more processors. In some embodiments, the electronic device 101 may also include one ormore processors 110 . Wherein, the controller can generate an operation control signal according to the instruction operation code and the timing signal, and complete the control of fetching and executing the instruction. In some other embodiments, a memory may also be set in theprocessor 110 for storing instructions and data. Exemplarily, the memory in theprocessor 110 may be a cache memory. The memory may hold instructions or data that theprocessor 110 has just used or recycled. If theprocessor 110 needs to use the instruction or data again, it can be called directly from the memory. In this way, repeated access is avoided, and the waiting time of theprocessor 110 is reduced, thereby improving the efficiency of the electronic device 101 in processing data or executing instructions.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口,集成电路间音频(nter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,SIM卡接口,和/或USB接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备101充电,也可以用于电子设备101与外围设备之间传输数据。该USB接口130也可以用于连接耳机,通过耳机播放音频。In some embodiments,processor 110 may include one or more interfaces. The interface may include inter-integrated circuit (I2C) interface, inter-integrated circuit sound (I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input-output (general-purpose input/output, GPIO) interface, SIM card interface, and/or USB interface, etc. Wherein, the USB interface 130 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 101 , and can also be used to transmit data between the electronic device 101 and peripheral devices. The USB interface 130 can also be used to connect earphones to play audio through the earphones.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。Thecharging management module 140 is configured to receive a charging input from a charger. Wherein, the charger may be a wireless charger or a wired charger. In some wired charging embodiments, thecharging management module 140 can receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, thecharging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While thecharging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , thecharging management module 140 and theprocessor 110 . The power management module 141 receives the input from the battery 142 and/or thecharging management module 140 to provide power for theprocessor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and thewireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be disposed in theprocessor 110 . In some other embodiments, the power management module 141 and thecharging management module 140 may also be set in the same device.

电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , themobile communication module 150 , thewireless communication module 160 , a modem processor, a baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。Themobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . Themobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. Themobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. Themobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of themobile communication module 150 may be set in theprocessor 110 . In some embodiments, at least part of the functional modules of themobile communication module 150 and at least part of the modules of theprocessor 110 may be set in the same device.

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。Thewireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. Thewireless communication module 160 may be one or more devices integrating at least one communication processing module. Thewireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to theprocessor 110 . Thewireless communication module 160 can also receive the signal to be sent from theprocessor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),也可以采用有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-OLed、量子点发光二极管(quantum dotlight emitting diodes,QLED)等制造。在一些实施例中,电子设备100可以包括1个或多个显示屏194。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), or an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode, or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). Manufacturing of matrix organic light emitting diode (AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-OLed, quantum dot light emitting diode (quantum dotlight emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include one or more display screens 194 .

在本申请的一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,上述图1中的显示屏194可以被弯折。这里,上述显示屏194可以被弯折是指显示屏可以在任意部位被弯折到任意角度,并可以在该角度保持,例如,显示屏194可以从中部左右对折。也可以从中部上下对折。In some embodiments of the present application, when materials such as OLED, AMOLED, and FLED are used for the display panel, the display screen 194 in FIG. 1 above can be bent. Here, the above-mentioned display screen 194 being bendable means that the display screen 194 can be bent to any angle at any position, and can be kept at this angle, for example, the display screen 194 can be folded in half from the middle. It can also be folded in half from the middle up and down.

电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 , and the application processor.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。Theexternal memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with theprocessor 110 through theexternal memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.

内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备101执行本申请一些实施例中所提供的方法,以及各种应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存储数据区可存储电子设备101使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备101执行本申请实施例中所提供的方法,以及其他应用及数据处理。电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现音频功能。例如音乐播放、录音等。The internal memory 121 may be used to store one or more computer programs including instructions. Theprocessor 110 may execute the above-mentioned instructions stored in the internal memory 121, so that the electronic device 101 executes the methods provided in some embodiments of the present application, as well as various applications and data processing. The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system; the stored program area can also store one or more applications (such as a gallery, contacts, etc.) and the like. The storage data area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101 . In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (universal flash storage, UFS) and the like. In some embodiments, theprocessor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in theprocessor 110, so that the electronic device 101 executes the instructions provided in the embodiments of the present application. methods, and other applications and data processing. The electronic device 100 can implement audio functions through theaudio module 170 , thespeaker 170A, thereceiver 170B, themicrophone 170C, theearphone interface 170D, and the application processor. Such as music playback, recording, etc.

传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L,bone conduction sensor 180M, etc.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .

图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can consist of a series of application packages.

如图2所示,应用程序包可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频、短信息等应用程序。As shown in FIG. 2, the application package may include application programs such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架,应用程序框架层包括一些预先定义的函数。The application program framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application program layer, and the application program framework layer includes some pre-defined functions.

如图2所示,应用程序框架层可以包括窗口管理器、内容提供器、视图系统、电话管理器、资源管理器、通知管理器等。As shown in Figure 2, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

窗口管理器用于管理窗口程序,窗口管理器可以获取显示屏大小,判断是否有状态栏、锁定屏幕、截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频、图像、音频、拨打和接听的电话、浏览历史和书签、电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, and the like.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串、图标、图片、布局文件、视频文件等等。The resource manager provides various resources to the application, such as localized strings, icons, pictures, layout files, video files, and so on.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息、发出提示音、电子设备振动、指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating electronic equipment, and flashing an indicator light, etc.

系统库可以包括多个功能模块。例如:表面管理器(surface manager)、媒体库(media libraries)、三维图形处理库(例如:OpenGL ES)、2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频、视频格式回放和录制以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4、H.264、MP3、AAC、AMR、JPG和PNG等。The media library supports playback and recording of many commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG and PNG.

三维图形处理库用于实现三维图形绘图、图像渲染、合成和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.

2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动、摄像头驱动、音频驱动、传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.

在介绍本申请的技术方案之前,首先简单介绍以下本申请方案可能涉及的一些专业术语。Before introducing the technical solution of the application, some technical terms that may be involved in the solution of the application are briefly introduced below.

用户界面(user interface,UI):是系统和用户之间进行交互和信息交换的媒介,它实现信息的内部形式与人类可以接受形式之间的转换。目前常用的是图形用户界面,显示直接形象,操作简便,也叫人机界面,简称界面。User interface (UI): It is a medium for interaction and information exchange between the system and users, which realizes the conversion between the internal form of information and the form acceptable to humans. Currently commonly used is the graphical user interface, which displays a direct image and is easy to operate. It is also called a man-machine interface, or interface for short.

推送消息:是操作系统或者应用程序主动向用户推送的消息,用户可以在电子设备的锁屏界面、通知栏等看到推送消息。目前应用程序向用户发送推送消息的常见方法是应用程序的服务器向推送服务器发送推送消息,再有推送服务器发送至用户的电子设备,或者应用程序的服务器直接向用户发送推送消息Push message: It is a message actively pushed by the operating system or application program to the user. The user can see the push message on the lock screen interface and notification bar of the electronic device. At present, the common method for an application to send a push message to a user is that the server of the application program sends a push message to the push server, and then the push server sends the message to the user's electronic device, or the server of the application program directly sends a push message to the user

分布式数据库(distributed data base,DDB):是指多个分布在网络中,逻辑上互相关联的数据库。Distributed database (distributed data base, DDB): Refers to multiple databases distributed in the network and logically related to each other.

下面结合图3介绍目前多个电子设备中处理推送消息的方法。The following introduces the current methods for processing push messages in multiple electronic devices with reference to FIG. 3 .

图3示出了目前多个电子设备处理推送消息的一组用户图形界面(graphicaluser interface,GUI)。FIG. 3 shows a set of graphical user interfaces (graphical user interface, GUI) for processing push messages by multiple electronic devices at present.

如图3中的(a)和(b)所示,手机和平板电脑接收到推送服务器(push server)同一个推送消息,该推送消息来自于“华为音乐”,用以提示用户可以播放每天新增加的歌曲,手机可以在界面301上显示通知栏302,通知栏302中显示“每日新曲”,用以提示用户手机接收到该推送消息,类似地,平板电脑可以在界面303上显示通知栏304,用以提示用户平板电脑接收到该推送消息。As shown in (a) and (b) in Figure 3, the mobile phone and the tablet computer receive the same push message from the push server (push server). For added songs, the mobile phone can display anotification bar 302 on theinterface 301, and "new song every day" is displayed in thenotification bar 302 to remind the user that the mobile phone receives the push message. Similarly, the tablet computer can display a notification bar on theinterface 303 304, used to prompt the user that the tablet computer receives the push message.

手机可以检测到用户针对通知栏302的操作,根据用户的操作以执行不同的功能,例如,用户可以执行忽略该推送消息的操作,响应于该操作,手机可以不再在界面301上显示通知栏302。但是平板电脑仍会在界面303显示通知栏304中显示“每日新曲”。The mobile phone can detect the user's operation on thenotification bar 302, and perform different functions according to the user's operation. For example, the user can perform the operation of ignoring the push message. In response to this operation, the mobile phone can no longer display the notification bar on theinterface 301 302. However, the tablet computer will still display "new song of the day" in thenotification bar 304 displayed on theinterface 303 .

再例如,用户可以执行打开该推送消息对应的界面的操作,响应于该操作,手机可以显示该推送消息对应的界面。例如,如图3中的(a)和(c)所示,手机检测到用户点击通知栏302的操作,响应于该操作,手机显示界面305,界面305为“华为音乐”的界面,该界面可以用于播放每天新增加的歌曲。但是平板电脑仍会在界面303上显示通知栏304中显示“每日新曲”。For another example, the user may perform an operation of opening an interface corresponding to the push message, and in response to the operation, the mobile phone may display the interface corresponding to the push message. For example, as shown in (a) and (c) in Figure 3, the mobile phone detects that the user clicks the operation of thenotification bar 302, and in response to the operation, the mobile phone displays an interface 305, which is an interface of "Huawei Music". Can be used to play new songs added every day. However, the tablet computer will still display "New Songs of the Day" in thenotification bar 304 on theinterface 303 .

综上所述,当用户的多个电子设备接收到同一个推送消息时,其中一个或则多个电子设备处理该推送消息后,其他电子设备上仍会保留该推送消息的原始状态,从而造成推送消息的冗余,基于此,本申请实施例提供了一种推送消息同步的方法,多个电子设备之间可以同步更新推送信息的状态,从而避免了推送消息的冗余。To sum up, when multiple electronic devices of a user receive the same push message, after one or more electronic devices process the push message, other electronic devices will still retain the original state of the push message, resulting in Redundancy of push messages. Based on this, an embodiment of the present application provides a method for synchronizing push messages. Multiple electronic devices can update the status of push messages synchronously, thereby avoiding redundancy of push messages.

图4示出了本申请实施例提供的一组GUI。Fig. 4 shows a set of GUI provided by the embodiment of the present application.

如图4中的(a)和(b)所示,第一电子设备和第二电子设备接收到推送服务器发送的推送消息,第一电子设备可以在界面401上显示通知栏402,并在通知栏402中显示推送消息403,用以提示用户接收到推送消息,第二电子设备可以在界面404上显示通知栏405,并在通知栏405中显示推送消息406,用以提示用户接收到推送消息。As shown in (a) and (b) in Figure 4, the first electronic device and the second electronic device receive the push message sent by the push server, the first electronic device can display anotification bar 402 on theinterface 401, and notify Apush message 403 is displayed in thebar 402 to prompt the user to receive the push message, and the second electronic device may display anotification bar 405 on theinterface 404, and display apush message 406 in thenotification bar 405 to prompt the user to receive the push message .

例如,如图4中的(a)所示,第一电子设备和第二电子设备接收到来自于“华为音乐”的推送消息,该推送消息可以用于推送最新的歌曲,第一电子设备在通知栏402中显示该推送消息,第二电子设备在通知栏404中显示该推送消息。For example, as shown in (a) in Figure 4, the first electronic device and the second electronic device receive a push message from "Huawei Music", which can be used to push the latest song. The push message is displayed in thenotification bar 402 , and the second electronic device displays the push message in thenotification bar 404 .

再例如,第一电子设备和第二电子设备还可以接收到来自于“华为视频”的推送消息,该推送消息可以用于推送播放量最高的视频。For another example, the first electronic device and the second electronic device may also receive a push message from "Huawei Video", and the push message may be used to push the video with the highest playback volume.

需要说明的是,推送消息403和推送消息406是来自于同一个应用程序(例如该应用程序可以是“华为音乐”)的推送信息,且第一电子设备和第二电子设备登录同一设备ID(比如华为账号),设备ID是与电子设备关联的账号,第一电子设备登录设备ID时,第一电子设备可以将第一电子设备中已安装应用程序的信息、数据、偏好设置等信息与该设备ID关联,当第二电子设备登录该设备ID时,可以通过该设备ID同步第一电子设备的上述信息至第二电子设备,从而保证第一电子设备和第二电子设备可以通过该设备ID进行信息同步,当第一电子设备和第二电子设备登录同一个设备ID时,可以接收到来自于同一个应用程序的推送消息,或者,It should be noted thatpush message 403 and pushmessage 406 are push messages from the same application program (for example, the application program may be "Huawei Music"), and the first electronic device and the second electronic device are registered with the same device ID ( For example, Huawei account), the device ID is an account associated with the electronic device. When the first electronic device logs in to the device ID, the first electronic device can share the information, data, preference settings and other information of the installed applications in the first electronic device with the Device ID association, when the second electronic device logs in the device ID, the above information of the first electronic device can be synchronized to the second electronic device through the device ID, so as to ensure that the first electronic device and the second electronic device can pass the device ID For information synchronization, when the first electronic device and the second electronic device log in to the same device ID, they can receive push messages from the same application, or,

推送消息403和推送消息406是来自于同一个应用程序的推送信息,且电子设备组包括第一电子设备和第二电子设备。电子设备组可以理解为多个电子设备在同一个局域网中。本申请实施例中,对于局域网的类型并不作限定,局域网的类型可以是无线局域网,也可以是有线局域网。例如,当第一电子设备和第二电子设备连接同一个Wi-Fi信号时,第一电子设备和第二电子设备可以自动进行无线局域网设置,从而电子设备之间可以通过路由设备发送信息,或者,Thepush message 403 and thepush message 406 are push information from the same application program, and the electronic device group includes the first electronic device and the second electronic device. An electronic device group can be understood as multiple electronic devices in the same local area network. In the embodiment of the present application, the type of the local area network is not limited, and the type of the local area network may be a wireless local area network or a wired local area network. For example, when the first electronic device and the second electronic device are connected to the same Wi-Fi signal, the first electronic device and the second electronic device can automatically perform wireless local area network settings, so that the electronic devices can send information through the routing device, or ,

推送消息403和推送消息406来自于同一个应用程序的推送消息,其中,第一电子设备和第二电子设备登录的是家庭账号组,家庭账号组可以理解为包括至少两个关联的设备ID的设备ID组。例如,家庭账号组可以包括第一设备ID和第二设备ID,其中第一设备ID可以是由家长控制的账号,第二设备ID可以是由孩子控制的账号,其中家长使用第一电子设备登录第一设备ID,孩子使用第二电子设备登录第二设备ID,由于第一设备ID和第二设备ID是属于同一个家庭账号组,则家长可以通过第一电子设备查看第二电子设备接收到推送消息,并且第一电子设备和第二电子设备之间也可以共享数据。Thepush message 403 and thepush message 406 are push messages from the same application, where the first electronic device and the second electronic device log in to a family account group, and the family account group can be understood as a group of at least two associated device IDs. Device ID group. For example, the family account group may include a first device ID and a second device ID, wherein the first device ID may be an account controlled by a parent, and the second device ID may be an account controlled by a child, wherein the parent uses the first electronic device to log in The first device ID, the child uses the second electronic device to log in the second device ID, since the first device ID and the second device ID belong to the same family account group, the parents can check the information received by the second electronic device through the first electronic device Push messages, and data can also be shared between the first electronic device and the second electronic device.

当第一电子设备检测到用户针对通知栏402的第一操作,响应于该操作,可以执行不同的功能,具体描述可以参见上文描述,在此不再赘述。When the first electronic device detects the user's first operation on thenotification bar 402, different functions may be executed in response to the operation. For specific description, please refer to the above description, which will not be repeated here.

当第一电子设备执行第一操作对应的功能时,可以将包括已针对推送消息进行操作的信息同步至第二电子设备,第二电子设备可以更新推送消息的状态。When the first electronic device executes the function corresponding to the first operation, the information including the operation performed on the push message can be synchronized to the second electronic device, and the second electronic device can update the status of the push message.

例如,如图4中的(a)-(d)所示,第一电子设备检测到用户点击通知栏402以执行阅读推送消息的操作,响应于该操作,显示界面405,第一电子设备还可以将包括已打开推送消息的信息同步至第二电子设备,则第二电子设备可以不再在界面403上显示通知栏404。For example, as shown in (a)-(d) in FIG. The information including the opened push message may be synchronized to the second electronic device, and then the second electronic device may no longer display thenotification bar 404 on theinterface 403 .

再例如,如图4中的(e)和(f)所示,第一电子设备检测到用户在通知栏402的显示区域向左滑动的操作,响应于该操作,第一电子设备可以忽略该推送消息,第一电子设备不再显示通知栏402,第一电子设备还可以将包括已忽略推送消息的信息同步至第二电子设备,则第二电子设备可以不再在界面403上显示通知栏404。For another example, as shown in (e) and (f) in FIG. 4, the first electronic device detects that the user slides to the left in the display area of thenotification bar 402. In response to this operation, the first electronic device may ignore the operation. Push messages, the first electronic device no longer displays thenotification bar 402, and the first electronic device can also synchronize information including ignored push messages to the second electronic device, then the second electronic device can no longer display the notification bar on theinterface 403 404.

应理解,图4中的第一电子设备以手机为例,第二电子设备以平板电脑为例,但是本申请实施例对于第一电子设备和第二电子设备的类型并不作限定。It should be understood that the first electronic device in FIG. 4 is an example of a mobile phone, and the second electronic device is an example of a tablet computer, but the embodiment of the present application does not limit the types of the first electronic device and the second electronic device.

本申请实施例中,第一电子设备可以通过多种方式将已处理推送消息的信息同步至第二电子设备,为了便于介绍,将已处理推送消息的信息称为第一信息,示例性地,在一些实施例中,第一电子设备可以将第一信息发送至推送服务器,然后推送服务器根据第一信息生成第二信息,并将第二信息发送至第二电子设备中,示例性地,可以采取类似于方法700中的步骤将第二信息发送至第二电子设备中,具体内容请参见后文说明。In this embodiment of the application, the first electronic device can synchronize the information of the processed push message to the second electronic device in various ways. For the convenience of introduction, the information of the processed push message is referred to as the first information. For example, In some embodiments, the first electronic device may send the first information to the push server, and then the push server generates the second information according to the first information, and sends the second information to the second electronic device. Steps similar to those in method 700 are taken to send the second information to the second electronic device. For details, please refer to the description below.

在另一些实施例中,第一电子设备可以不通过推送服务器发送第一信息,而是直接将第一信息发送至第二电子设备,示例性地,可以采取类似于方法800中的步骤,或者采取类似于方法1000中,具体内容请参见后文说明。In some other embodiments, the first electronic device may not send the first information through the push server, but directly sends the first information to the second electronic device. For example, steps similar to those in method 800 may be taken, or Similar to method 1000, please refer to the following description for specific content.

在另一些实施例中,第一电子设备可以将第一信息写入到数据库中,第二电子设备可以访问该数据库,得到第一信息,示例性地,数据库可以是分布式数据库,示例性地,可以采取类似于方法1200中的步骤,具体内容请参见后文说明。In some other embodiments, the first electronic device may write the first information into the database, and the second electronic device may access the database to obtain the first information. Exemplarily, the database may be a distributed database. Exemplarily , steps similar to those in method 1200 may be taken, and for details, please refer to the following description.

在另一些实施例中,第一电子设备可以将第一信息发送至第一服务器,第一服务器可以由电子设备的制造商提供,还可以是第一电子设备的操作系统提供商提供,第一服务器可以与推送服务器不同,然后第一服务器将第一信息发送至第二电子设备。In some other embodiments, the first electronic device may send the first information to the first server. The first server may be provided by the manufacturer of the electronic device, or by the operating system provider of the first electronic device. The first The server may be different from the push server, and then the first server sends the first information to the second electronic device.

可选地,在一些实施例中,第一电子设备和第二电子设备可以接收应用程序服务器发送的推送消息,当第一电子设备处理该推送消息后,可以将包括已针对该推送消息行操作的信息的第一信息发送至应用程序服务器,再由应用程序服务器将第一信息发送至第二电子设备,第二电子设备可以根据第一信息更新该推送消息的状态。Optionally, in some embodiments, the first electronic device and the second electronic device may receive a push message sent by the application server, and after the first electronic device processes the push message, it may include The first information of the information is sent to the application server, and then the application server sends the first information to the second electronic device, and the second electronic device can update the status of the push message according to the first information.

图4中以第一电子设备和第二电子设备接收到一个推送消息为例,但是本申请实施例并不限定于此,下面将结合图5介绍本申请实施例提供的另一组GUI。In FIG. 4 , the first electronic device and the second electronic device receive a push message as an example, but the embodiment of the present application is not limited thereto. The following will introduce another set of GUI provided by the embodiment of the present application in conjunction with FIG. 5 .

如图5中的(a)和(b)所示,第一电子设备和第二电子设备可以接收到推送服务器发送的第一推送消息和第二推送消息,第一电子设备在界面501上显示通知栏502,用以提示用户接收到的推送消息,类似地,第二电子设备在界面503上显示通知栏504,用以提示用户接收到的推送消息,其中,第一推送消息来自于第一应用程序,第二推送消息来自于第二应用程序。例如,第一电子设备和第二电子设备接收到推送服务器发送的两个推送消息,分别是来自于“华为音乐”和“华为视频”的推送消息。As shown in (a) and (b) in Figure 5, the first electronic device and the second electronic device can receive the first push message and the second push message sent by the push server, and the first electronic device displays on theinterface 501 Thenotification bar 502 is used to remind the user of the received push message. Similarly, the second electronic device displays anotification bar 504 on theinterface 503 to remind the user of the received push message, wherein the first push message comes from the first application program, the second push message comes from the second application program. For example, the first electronic device and the second electronic device receive two push messages sent by the push server, which are respectively push messages from "Huawei Music" and "Huawei Video".

如图5中的(a)-(d)所示,第一电子设备检测到用户打开第一推送消息的操作,响应于该操作,第一电子设备显示界面505,界面505为第一应用程序的界面。第一电子设备可以将已打开第一推送消息的第一信息同步至第二电子设备,则第二电子设备可以不再在通知栏504上显示第一推送消息,但是在通知栏504上仍可以显示第二推送消息。As shown in (a)-(d) in Figure 5, the first electronic device detects the user's operation of opening the first push message, and in response to the operation, the first electronic device displays aninterface 505, which is the first application program interface. The first electronic device can synchronize the first information of the opened first push message to the second electronic device, then the second electronic device can no longer display the first push message on thenotification bar 504, but can still display the first push message on thenotification bar 504 Display the second push message.

再例如,如图5中的(e)和(g)所示,第一电子设备检测到用户选择忽略第一推送消息的操作,响应于该操作,第一电子设备可以不再在通知栏502上显示第一推送消息,第一电子设备还可以将包括已忽略第一推送消息的信息的第一信息同步至第二电子设备,则第二电子设备可以不再在通知栏504上显示第一推送消息。For another example, as shown in (e) and (g) in FIG. 5, the first electronic device detects that the user chooses to ignore the operation of the first push message. The first push message is displayed on thenotification bar 504, and the first electronic device can also synchronize the first information including the information that the first push message has been ignored to the second electronic device, and the second electronic device can no longer display the first push message on thenotification bar 504. forward news.

需要说明的是,针对第一电子设备将第一信息同步至第二电子设备的描述,可以参见前述实施例,在此不再赘述。It should be noted that, for the description of synchronizing the first information to the second electronic device by the first electronic device, reference may be made to the foregoing embodiments, and details are not repeated here.

可选地,第一电子设备在同步第一信息之前,还可以询问用户是否需要同步推送消息状态,当用户确定同步推送消息状态,则第一电子设备可以同步第一信息,当用户确定不同步推送消息状态,则第一电子设备可以不同步第一信息。例如,如图6中的(a)和(b)所示,第一电子设备和第二电子设备接收到同一个推送消息,针对推送消息的显示的描述,可以参见前述实施例,在此不再赘述。Optionally, before synchronizing the first information, the first electronic device may also ask the user whether to synchronize the push message status. When the user determines to synchronize the push message status, the first electronic device may synchronize the first information. When the user determines not to synchronize If the message status is pushed, the first electronic device may not synchronize the first information. For example, as shown in (a) and (b) in FIG. 6, the first electronic device and the second electronic device receive the same push message. For the description of the display of the push message, please refer to the foregoing embodiments, which will not be discussed here. Let me repeat.

如图6中的(a)-(e)所示,第一电子设备检测到用户打开推送消息的操作,响应于该操作,可以显示操作提示栏605,其中操作提示栏605可以包括控件606、控件607、控件608,当第一电子设备检测到控件606被选中,且检测到用户点击控件608的操作,则第一电子设备可以显示界面609,界面609为推送消息对应的界面,并将第一信息同步至第二电子设备,则第二电子设备不再显示该推送消息。As shown in (a)-(e) in FIG. 6 , the first electronic device detects the user's operation of opening the push message, and in response to the operation, an operationprompt bar 605 may be displayed, wherein the operationprompt bar 605 may includecontrols 606, Forcontrol 607 andcontrol 608, when the first electronic device detects thatcontrol 606 is selected and detects that the user clicks oncontrol 608, the first electronic device can displayinterface 609, which is the interface corresponding to the push message, and the second Once the information is synchronized to the second electronic device, the second electronic device will no longer display the push message.

再例如,如图6中的(f)所示,当第一电子设备检测到控件606未被选中,且检测到用户点击控件607或控件608的操作,则第一电子设备可以显示界面609,但不会同步第一信息,则第二电子设备仍会显示该推送消息。For another example, as shown in (f) in FIG. 6, when the first electronic device detects that thecontrol 606 is not selected, and detects that the user clicks on thecontrol 607 or thecontrol 608, the first electronic device may display theinterface 609, But the first information will not be synchronized, and the second electronic device will still display the push message.

可选地,如图6中的(h)所示,当大于2个电子设备接收到同一个推送消息时(例如手机、平板电脑、智慧屏电视接收到同一个推送消息),手机检测到用户打开推送消息的操作,响应于该操作,可以显示操作提示栏605,当手机检测到控件606被选中时,还可以在操作提示栏605中显示控件610和控件611,当手机检测到控件610和611被选中且检测到用户点击控件608的操作,手机可以显示界面609,并可以将第一信息同步至平板电脑和智慧屏电视,从而平板电脑和智慧屏电视可以不再在各自的通知栏中显示该推送消息。Optionally, as shown in (h) in Figure 6, when more than two electronic devices receive the same push message (for example, mobile phones, tablet computers, and smart screen TVs receive the same push message), the mobile phone detects that the user The operation of opening the push message, in response to this operation, can display the operationprompt bar 605, when the mobile phone detects that thecontrol 606 is selected, it can also display the control 610 and thecontrol 611 in the operationprompt bar 605, when the mobile phone detects that thecontrol 610 and 611 is selected and it is detected that the user clicks on thecontrol 608, the mobile phone can display theinterface 609, and can synchronize the first information to the tablet computer and the smart screen TV, so that the tablet computer and the smart screen TV can no longer be in their respective notification bars Display the push message.

应理解,本申请实施例中以第一电子设备检测到用户打开推送消息的操作为例,但是并不限定于此,当第一电子设备检测到用户针对该推送消息的其他操作时,也可以显示操作提示栏605,例如,当第一电子设备检测到用户选择忽略该推送消息的操作,第一电子设备也可以显示操作提示栏605。It should be understood that in the embodiment of the present application, the first electronic device detects the user's operation of opening the push message as an example, but it is not limited thereto. When the first electronic device detects other operations of the user on the push message, it can also An operationprompt bar 605 is displayed. For example, when the first electronic device detects that the user chooses to ignore the operation of the push message, the first electronic device may also display the operationprompt bar 605 .

还应理解,本申请实施例中以一个通知栏显示多个推送消息为例,但是并不限定于此,本申请实施例中还可以一个通知栏显示一个推送消息,例如,第一电子设备和第二电子设备接收到第一推送消息和第二推送消息,其中第一电子设备在第一通知栏显示第一推送消息,在第二通知栏显示第二推送消息,第二电子设备在第三通知栏显示第一推送消息,在第四通知栏显示第二推送消息,则当第一电子设备处理第一推送消息后,可以将包含已处理第一推送消息的信息同步至第二电子设备,则第二电子设备可以不再显示第三通知栏。It should also be understood that in the embodiment of the present application, one notification bar displays multiple push messages as an example, but it is not limited thereto. In the embodiment of the present application, one notification bar can also display one push message, for example, the first electronic device and The second electronic device receives the first push message and the second push message, wherein the first electronic device displays the first push message in the first notification bar, displays the second push message in the second notification bar, and the second electronic device displays the second push message in the third notification bar. The notification column displays the first push message, and the fourth notification column displays the second push message, then after the first electronic device processes the first push message, it can synchronize the information including the processed first push message to the second electronic device, Then the second electronic device may no longer display the third notification bar.

下面结合图7介绍本申请实施例的信息同步的方法的示例性流程图。An exemplary flow chart of the information synchronization method according to the embodiment of the present application is introduced below with reference to FIG. 7 .

图7示出了本申请实施例的推送消息同步的方法500的示例性流程图,该方法包括:FIG. 7 shows an exemplary flow chart of a method 500 for synchronizing push messages according to an embodiment of the present application. The method includes:

S701,应用程序服务器发送推送消息。S701. The application program server sends a push message.

第一电子设备和第二电子设备安装了第一应用程序,当该第一应用程序需要向第一电子设备和第二电子设备发送推送消息时,需要该第一应用程序的应用程序服务器向推送服务器发送推送消息。The first electronic device and the second electronic device have installed the first application program. When the first application program needs to send push messages to the first electronic device and the second electronic device, the application program server of the first application program needs to send a push message The server sends a push message.

应用程序服务器向推送服务器发送推送消息时,还可以发送标识信息,该标识信息用于标识第一电子设备和第二电子设备,从而可以将该推送消息发送至第一电子设备和第二电子设备。示例性地,该标识信息可以是第一电子设备和第二电子设备登录的设备ID,,第一电子设备和第二电子设备的国际移动用户识别码(International MobileSubscriber Identification Number,IMSI),第一电子设备和第二电子设备的国际移动设备识别码(International Mobile Equipment Identity,IMEI)等。When the application program server sends a push message to the push server, it may also send identification information, which is used to identify the first electronic device and the second electronic device, so that the push message can be sent to the first electronic device and the second electronic device . Exemplarily, the identification information may be the device ID registered by the first electronic device and the second electronic device, the International Mobile Subscriber Identification Number (International Mobile Subscriber Identification Number, IMSI) of the first electronic device and the second electronic device, the first International Mobile Equipment Identity (IMEI) of the electronic device and the second electronic device, etc.

例如,第一电子设备和第二电子设备安装了“华为视频”应用程序,第一电子设备和第二电子设备登录的设备ID是“HW”,则“HW”即为标识信息,“华为视频”应用程序需要向第一电子设备和第二电子设备推送Mate40的发布会视频,则“华为视频”应用程序服务器会向推送服务器发送关于Mate40的发布会视频的推送消息和标识信息“HW”。For example, if the "Huawei Video" application is installed on the first electronic device and the second electronic device, and the device IDs registered by the first electronic device and the second electronic device are "HW", "HW" is the identification information, and "Huawei Video "The application needs to push the Mate40 launch video to the first electronic device and the second electronic device, then the "Huawei Video" application server will send a push message and identification information "HW" about the Mate40 launch video to the push server.

应理解,本申请实施例中仅以标识信息可以是设备ID、电子设备的IMSI、IMEI为例,但是并不限定于此,还可以采用其他标识信息以标识第一电子设备和第二电子设备,例如应用程序的账号,例如第一电子设备和第二电子设备安装了“华为视频”应用程序,第一电子设备和第二电子设备登录“华为视频”应用程序的账号是“HW 1”,则“HW 1”即为标识信息。It should be understood that in the embodiment of the present application, only the identification information may be the device ID, IMSI, and IMEI of the electronic device as an example, but it is not limited thereto, and other identification information may also be used to identify the first electronic device and the second electronic device , such as the account number of the application, for example, the first electronic device and the second electronic device have installed the "Huawei Video" application, and the accounts used by the first electronic device and the second electronic device to log in to the "Huawei Video" application are "HW 1", Then "HW 1" is the identification information.

S702,推送服务器发送推送消息。S702. The push server sends a push message.

推送服务器接收到应用程序服务器发送的推送消息后,可以对推送消息进行编号处理,对于不同推送消息,其编号不同,即每一个推送消息的编号是唯一的,以及推送服务器可以根据标识信息向该标识信息对应的电子设备发送推送消息。After the push server receives the push message sent by the application server, it can number the push message. For different push messages, the numbers are different, that is, the number of each push message is unique, and the push server can send the push message to the push message according to the identification information. The electronic device corresponding to the identification information sends a push message.

例如,推送服务器可以将关于Mate40的发布会视频的推送消息的编号设置为001,并向使用设备ID为“HW”的第一电子设备和第二电子设备发送该推送信息。For example, the push server may set the serial number of the push message about the Mate40 launch video as 001, and send the push message to the first electronic device and the second electronic device whose device ID is "HW".

S703,第一电子设备处理推送消息。S703. The first electronic device processes the push message.

第一电子设备在接收到该推送消息时,可以针对该推送消息进行不同的处理,示例性的,如图4中(a)所示,第一电子设备可以响应于检测到用户选择打开该推送消息的操作,显示推送消息对应的界面,再例如,如图4中的(f)所示,第一电子设备还可以响应于检测到用户选择忽略该推送消息的操作,不再在通知栏中显示该推送消息。。When the first electronic device receives the push message, it can perform different processing on the push message. For example, as shown in (a) in FIG. The operation of the message displays the interface corresponding to the push message. For another example, as shown in (f) in FIG. Display the push message. .

S704,第一电子设备发送第一信息。S704. The first electronic device sends first information.

第一电子设备对推送消息的处理时,可以生成第一信息并向推送服务器发送第一信息,该第一信息用于指示第一电子设备已处理该推送消息。When processing the push message, the first electronic device may generate first information and send the first information to the push server, where the first information is used to indicate that the first electronic device has processed the push message.

需要说明的是,S703和S704并没有实际的先后顺序,可以先执行S703,再执行S704,也可以同时执行S703和S704。示例性地,在一些实施例中,第一电子设备执行的操作是删除、隐藏推送消息时,则可以在第一电子设备删除、隐藏该推送消息后,向推送服务器发送第一信息。It should be noted that there is no actual order of S703 and S704, S703 may be executed first, and then S704 may be executed, or S703 and S704 may be executed simultaneously. Exemplarily, in some embodiments, when the operation performed by the first electronic device is to delete or hide the push message, the first electronic device may send the first information to the push server after the first electronic device deletes or hides the push message.

在另一些实施例中,第一电子设备执行的操作是显示该推送消息对应的界面时,则可以在显示该界面时,向推送服务器发送第一信息。例如,第一电子设备响应于用户选择打开关于Mate40发布会视频的推送消息,第一电子设备播放Mate40发布会视频时,向推送服务器发送第一信息。In other embodiments, when the operation performed by the first electronic device is to display the interface corresponding to the push message, the first information may be sent to the push server when the interface is displayed. For example, the first electronic device sends the first information to the push server when the first electronic device plays the Mate40 launch video in response to the user's selection to open a push message about the Mate40 launch video.

在一些实施例中,第一电子设备在发送第一信息之前,可以确定是否需要同步该推送消息的状态,当确定需要同步该推送消息的状态时,则发送第一信息。In some embodiments, before sending the first information, the first electronic device may determine whether to synchronize the state of the push message, and send the first information when it is determined that the state of the push message needs to be synchronized.

S705,推送服务器发送第二信息。S705. The push server sends the second information.

推送服务器接收到第一信息后,可以根据该第一信息生成第二信息,该第二信息用于指示第二电子设备更新推送消息的状态,然后将第二信息发送给第二电子设备。After receiving the first information, the push server may generate second information according to the first information, the second information is used to instruct the second electronic device to update the status of the push message, and then send the second information to the second electronic device.

S706,第二电子设备更新推送消息的状态。S706. The second electronic device updates the status of the push message.

第二电子设备接收到第二信息后,可以根据第二信息确定第一电子设备已经处理推送消息,则第二电子设备可以更新该推送消息的状态。示例性地,如图4中的(d)所示,第二电子设备可以不再通知栏404中显示该推送消息。After receiving the second information, the second electronic device may determine according to the second information that the first electronic device has processed the push message, and then the second electronic device may update the status of the push message. Exemplarily, as shown in (d) in FIG. 4 , the second electronic device may no longer display the push message in thenotification bar 404 .

可选地,在一些实施例中,可以不包括S705和S706,第一电子设备发送第一信息时,该第一信息可以包括指示信息,该指示信息用于指示推送服务器将第一信息发送至第二电子设备,则第二电子设备可以根据第一信息更新推送信息的状态。Optionally, in some embodiments, S705 and S706 may not be included. When the first electronic device sends the first information, the first information may include indication information, and the indication information is used to instruct the push server to send the first information to the second electronic device, the second electronic device may update the status of the pushed information according to the first information.

第二电子设备更新推送消息的状态可以包括:删除该推送消息,或不在通知栏中显示该推送消息,而是在第一界面中显示该推送消息,该第一界面在后台显示,当第二电子设备检测到用户选择第一界面的操作,第二电子设备才会显示该第一界面。第二电子设备在第一界面中显示第一电子设备已经处理过的推送消息,避免推送消息冗余的同时还可以保留推送消息,从而即使第一电子设备已经处理过推送消息,第二电子设备仍可以针对该推送消息进行处理。Updating the status of the push message by the second electronic device may include: deleting the push message, or not displaying the push message in the notification bar, but displaying the push message in the first interface, which is displayed in the background, when the second The second electronic device will display the first interface only when the electronic device detects that the user selects the first interface. The second electronic device displays the push messages that have been processed by the first electronic device on the first interface, so as to avoid redundant push messages and at the same time retain the push messages, so that even if the first electronic device has processed the push messages, the second electronic device The push message can still be processed.

本申请实施例中,多个电子设备通过推送服务器同步推送消息的状态,当一个或多个电子设备处理推送消息后,其余电子设备可以更新该推送信息的状态,从而避免了推送消息的冗余。In the embodiment of the present application, multiple electronic devices push the status of the push message synchronously through the push server. After one or more electronic devices process the push message, the rest of the electronic devices can update the status of the push message, thereby avoiding the redundancy of the push message .

下面结合图8介绍本申请实施例的另一种信息同步的方法的示例性流程图。An exemplary flow chart of another information synchronization method according to the embodiment of the present application is introduced below with reference to FIG. 8 .

图8示出了本申请实施例的另一种推送消息同步的方法600的示例性流程图,该方法包括:FIG. 8 shows an exemplary flowchart of another method 600 for synchronizing push messages according to an embodiment of the present application. The method includes:

S801,推送服务器发送推送消息。S801. The push server sends a push message.

S802,第一电子设备处理推送消息。S802. The first electronic device processes the push message.

针对推送服务器发送推送消息和第一电子设备处理推送消息的描述可以参见前述实施例,在此不再赘述。For the description of sending the push message by the push server and processing the push message by the first electronic device, reference may be made to the foregoing embodiments, and details are not repeated here.

可选地,在推送服务器发送推送消息之前,该方法还包括:应用程序服务器向推送服务器发送推送消息,针对应用服务器向推送服务器发送推送消息的描述可以参见前述实施例,在此不再赘述。Optionally, before the push server sends the push message, the method further includes: the application server sends the push message to the push server. For the description of the application server sending the push message to the push server, reference can be made to the foregoing embodiments, and details are not repeated here.

S803,第一电子设备发送第三信息。S803. The first electronic device sends third information.

第一电子设备可以向第二电子设备发送第三信息,该第三信息用于指示第一电子设备已经处理过推送消息。The first electronic device may send third information to the second electronic device, where the third information is used to indicate that the first electronic device has processed the push message.

可选地,在第一电子设备向第二电子设备发送第三信息之前,第二电子设备可以向第一电子设备发送第一订阅消息,该第一订阅消息用于指示第一电子设备处理推送消息时,发送第三信息。Optionally, before the first electronic device sends the third information to the second electronic device, the second electronic device may send a first subscription message to the first electronic device, where the first subscription message is used to instruct the first electronic device to process the push When a message is sent, the third message is sent.

示例性地,在一些实施例中,第一电子设备可以通过蓝牙信号发送第三信息。Exemplarily, in some embodiments, the first electronic device may send the third information through a Bluetooth signal.

在一些实施例中,第一电子设备可以通过Wi-Fi信号发送第三信息。In some embodiments, the first electronic device may send the third information through a Wi-Fi signal.

在一些实施例中,第一电子设备可以通过近场通信(Near Field Communication,NFC)发送第三信息。In some embodiments, the first electronic device may send the third information through near field communication (Near Field Communication, NFC).

在一些实施例中,第一电子设备和第二电子设备位于同一个组网系统中,则第一电子设备可以经过该组网系统内的路由设备转发第三信息。In some embodiments, the first electronic device and the second electronic device are located in the same networking system, and the first electronic device may forward the third information through a routing device in the networking system.

在一些实施例中,第一电子设备在发送第三信息之前,可以确定是否需要同步该推送消息的状态,当确定需要同步该推送消息的状态时,则发送第一信息。In some embodiments, before sending the third information, the first electronic device may determine whether to synchronize the state of the push message, and send the first information when it is determined that the state of the push message needs to be synchronized.

需要说明的是,电子设备组包括第一电子设备和第二电子设备,其中第一电子设备和第二电子设备登录的设备ID可以是同一个设备ID,也可以是不同的设备ID,但是设备ID之间互相关联。针对电子设备组的描述可以参见前述描述,在此不再赘述。It should be noted that the electronic device group includes a first electronic device and a second electronic device, and the device IDs registered by the first electronic device and the second electronic device may be the same device ID or different device IDs, but the device IDs are related to each other. For the description of the electronic device group, reference may be made to the foregoing description, and details are not repeated here.

在一些实施例中,第一电子设备和第二电子设备未在同一个局域网中,则电子设备组不包括第一电子设备和/或第二电子设备,第一电子设备处理推送消息后,可以缓存第三信息,当第一电子设备和第二电子设备在同一个局域网中,即电子设备组包括第一电子设备和第二电子设备时,第一电子设备可以将缓存的第三信息发送至第二电子设备。In some embodiments, the first electronic device and the second electronic device are not in the same local area network, then the electronic device group does not include the first electronic device and/or the second electronic device, and after the first electronic device processes the push message, it can cache the third information, when the first electronic device and the second electronic device are in the same local area network, that is, when the electronic device group includes the first electronic device and the second electronic device, the first electronic device can send the cached third information to second electronic device.

还需要说明的是,S802和S803并没有实际的先后顺序,可以先执行S802,再执行S803,也可以同时执行S802和S803,本申请不对此进行限定。It should also be noted that there is no actual sequence of S802 and S803, S802 may be executed first, and then S803 may be executed, or S802 and S803 may be executed simultaneously, which is not limited in this application.

应理解,本申请实施例中的第一信息可以和第三信息相同。It should be understood that the first information in this embodiment of the present application may be the same as the third information.

S804,第二电子设备更新推送消息的状态。S804, the second electronic device updates the status of the push message.

针对第二电子设备更新推送消息的状态的描述,可以参见前述实施例,在此不再赘述。For the description of updating the state of the push message by the second electronic device, reference may be made to the foregoing embodiments, and details are not repeated here.

本申请实施例中,电子设备组包括多个电子设备,多个电子设备之间可以互相发送信息,当一个或多个电子设备处理推送消息后,可以将包括已处理推送消息的信息的第三信息发送至其余电子设备,其余电子设备可以根据第三信息更新该推送信息的状态,从而避免了推送消息的冗余。In the embodiment of the present application, the electronic device group includes multiple electronic devices, and the multiple electronic devices can send information to each other. The information is sent to other electronic devices, and the other electronic devices can update the state of the push information according to the third information, thereby avoiding redundancy of push messages.

应理解,上述实施例中,以第一电子设备和第二电子设备两个电子设备为例,但是并不限定于此,本申请实施例中还可以包括三个及以上的电子设备以实施上述描述的本申请实施例中的信息同步的方法。It should be understood that, in the above-mentioned embodiments, two electronic devices, the first electronic device and the second electronic device, are taken as an example, but it is not limited thereto. The embodiment of the present application may also include three or more electronic devices to implement the above-mentioned The information synchronization method in the embodiment of this application is described.

下面结合图9介绍方法800中的电子设备数据流向示意图。A schematic diagram of the data flow of the electronic device in the method 800 will be introduced below with reference to FIG. 9 .

第一电子设备包括第一通知栏、第一通知管理服务模块、第一公共事件服务模块、第一通信模块,第二电子设备包括第二通知栏、第二通知管理服务模块、第二公共事件服务模块、第二通信模块。第一电子设备和第二电子设备的通知管理服务模块可以监听公共事件服务模块,从而当公共事件服务模块接收到信息时,通知管理服务模块可以得到该信息。本申请实施例中,第一电子设备和第二电子设备接收到同一个推送消息,且第一电子设备处理该推送消息,则第一公共事件服务模块可以将第三信息通过第一通信模块发送至第二电子设备的第二通信模块,则第二公共事件服务模块通过第二通信模块接收到第三信息,第二通知管理服务器监听到该第三信息,可以根据该第三信息更新第二通知栏的推送消息的状态。The first electronic device includes a first notification bar, a first notification management service module, a first public event service module, and a first communication module, and the second electronic device includes a second notification bar, a second notification management service module, and a second public event service module. A service module and a second communication module. The notification management service modules of the first electronic device and the second electronic device can listen to the public event service module, so that when the public event service module receives information, the notification management service module can obtain the information. In this embodiment of the application, the first electronic device and the second electronic device receive the same push message, and the first electronic device processes the push message, then the first public event service module can send the third information through the first communication module to the second communication module of the second electronic device, the second public event service module receives the third information through the second communication module, the second notification management server monitors the third information, and can update the second The status of push messages in the notification bar.

下面结合图10介绍本申请实施例的另一种信息同步的方法的示例性流程图。An exemplary flow chart of another information synchronization method according to the embodiment of the present application is introduced below with reference to FIG. 10 .

图10示出了本申请实施例的另一种推送消息同步的方法1000的示例性流程图。FIG. 10 shows an exemplary flow chart of another method 1000 for synchronizing push messages according to an embodiment of the present application.

S1001,选择第一电子设备为主电子设备。S1001. Select the first electronic device as the main electronic device.

电子设备组包括第一电子设备、第二电子设备、第三电子设备,可以选择第一电子设备为主电子设备。The electronic device group includes a first electronic device, a second electronic device, and a third electronic device, and the first electronic device may be selected as the main electronic device.

示例性地,在一些实施例中,可以根据电子设备的处理器的能力选择主电子设备。例如,第一电子设备的处理器的能力强于第二电子设备和第三电子设备的处理器的能力,则可以选择第一电子设备为主电子设备。Exemplarily, in some embodiments, the master electronic device may be selected according to the capability of the processor of the electronic device. For example, if the capability of the processor of the first electronic device is stronger than that of the processors of the second electronic device and the third electronic device, the first electronic device may be selected as the master electronic device.

在一些实施例中,可以根据电子设备接收的信号的强弱选择主电子设备。In some embodiments, the main electronic device can be selected according to the strength of the signal received by the electronic device.

在一些实施例中,用户可以设定电子设备组中的一个电子设备为主电子设备。In some embodiments, the user can set one electronic device in the electronic device group as the master electronic device.

在一些实施例中,根据电子设备的设置和不同权重值选择主电子设备。例如,可以根据表一的权重值选择主电子设备。In some embodiments, the master electronic device is selected according to the settings of the electronic device and different weight values. For example, the main electronic device may be selected according to the weight values in Table 1.

表一不同电子设备类型权重值Table 1 Weight values of different types of electronic equipment

电子设备类型electronic device type权重值Weights网络附属存储(Network Attached Storage,NAS)Network Attached Storage (NAS)200200路由器router100100无线访问接入点(Access Point,AP)Wireless access point (Access Point, AP)9090电脑computer8080平板电脑(亮屏)Tablet PC (bright screen)7070平板电脑(息屏)tablet computer (screen off)6060手机(亮屏)Mobile phone (bright screen)5050手机(息屏)mobile phone (screen off)4040平板电脑(充电中)Tablet (charging)3030平板电脑(非充电)Tablet (non-charging)2020手机(充电中)mobile phone (charging)2020手机(非充电)Mobile phone (non-charging)1010

例如,第一电子设备为手机并处于亮屏状态,第二电子设备为平板电脑且处于充电状态中,第三电子设备为手机且处于充电状态中,则第一电子设备的权重值为50,第二电子设备的权重值为30,第三电子设备的权重值为20,则第一电子设备可以为主电子设备。For example, if the first electronic device is a mobile phone and is in a bright screen state, the second electronic device is a tablet computer and is in a charging state, and the third electronic device is a mobile phone and is in a charging state, then the weight value of the first electronic device is 50. The weight value of the second electronic device is 30, and the weight value of the third electronic device is 20, so the first electronic device may be the master electronic device.

S1002,推送服务器发送推送消息。S1002. The push server sends a push message.

S1003,第二电子设备处理推送消息。S1003. The second electronic device processes the push message.

应理解,针对推送服务器发送推送消息和第二电子设备处理推送消息的描述,可以参见前述实施例,在此不再赘述。It should be understood that, for the description of sending the push message by the push server and processing the push message by the second electronic device, reference may be made to the foregoing embodiments, and details are not repeated here.

可选地,在推送服务器发送推送消息之前,该方法还包括:应用程序服务器向推送服务器发送推送消息,针对应用服务器向推送服务器发送推送消息的描述可以参见前述实施例,在此不再赘述。Optionally, before the push server sends the push message, the method further includes: the application server sends the push message to the push server. For the description of the application server sending the push message to the push server, reference can be made to the foregoing embodiments, and details are not repeated here.

S1004,第二电子设备发送第四信息至主电子设备。S1004. The second electronic device sends fourth information to the main electronic device.

第二电子设备处理推送消息时,可以向主电子设备(即第一电子设备)发送第四信息,该第四信息用于指示第二电子设备已经处理推送消息。When the second electronic device processes the push message, it may send fourth information to the main electronic device (that is, the first electronic device), where the fourth information is used to indicate that the second electronic device has processed the push message.

需要说明的是,S1003和S1004并没有实际的先后顺序,可以先执行S1003,再执行S1004,也可以同时执行S1003和S1004。It should be noted that there is no actual order of S1003 and S1004, S1003 may be executed first, and then S1004 may be executed, or S1003 and S1004 may be executed simultaneously.

应理解,本申请实施例中的第四信息可以与第一信息相同。It should be understood that the fourth information in this embodiment of the present application may be the same as the first information.

S1005,第一电子设备发送第五信息。S1005. The first electronic device sends fifth information.

第一电子设备接收到第四信息后,可以根据该第四信息生成第五信息,该第五信息用于指示第二电子设备已经处理推送消息,然后将第五信息发送给第三电子设备。After receiving the fourth information, the first electronic device may generate fifth information according to the fourth information, and the fifth information is used to indicate that the second electronic device has processed the push message, and then sends the fifth information to the third electronic device.

在一些实施例中,第一电子设备也可以不生成第五信息,而是将第四信息发送给第三电子设备。In some embodiments, the first electronic device may not generate the fifth information, but send the fourth information to the third electronic device.

可选地,在第一电子设备向第三电子设备发送第五信息之前,第三电子设备可以向第一电子设备发送第二订阅消息,该第二订阅消息用于指示第一电子设备发送第五信息(或第四信息)。Optionally, before the first electronic device sends the fifth information to the third electronic device, the third electronic device may send a second subscription message to the first electronic device, where the second subscription message is used to instruct the first electronic device to send the fifth information. Fifth message (or fourth message).

S1006,第一电子设备更新推送消息的状态。S1006. The first electronic device updates the status of the push message.

应理解,S1005和S1006并没有实际的先后顺序,第一电子设备可以先发送第五信息(或第四信息),然后更新推送消息的状态,或第一电子设备可以先更新推送消息的状态,然后发送第五信息(或第四信息),或第一电子设备同时发送第五信息(或第四信息)和更新推送消息的状态。It should be understood that there is no actual order of S1005 and S1006. The first electronic device may send the fifth information (or fourth information) first, and then update the status of the push message, or the first electronic device may first update the status of the push message, Then send fifth information (or fourth information), or the first electronic device simultaneously sends fifth information (or fourth information) and updates the state of the push message.

S1007,第三电子设备更新推送消息的状态。S1007, the third electronic device updates the status of the push message.

第三电子设备接收到第五信息(或第四信息),第三电子设备可以根据第五信息(或第四信息)更新推送消息的状态。The third electronic device receives the fifth information (or the fourth information), and the third electronic device may update the status of the push message according to the fifth information (or the fourth information).

应理解,上述实施例中,通过3个电子设备构成电子设备组并选出主电子设备为例,但并不限定于此,本申请实施例中,还可以电子设备组可以包括3个以上电子设备并选出主电子设备,还可以电子设备组包括2个电子设备并选出主电子设备,例如,电子设备组包括第一电子设备和第二电子设备,其中选择第一电子设备为主电子设备,第一电子设备和第二电子设备均接收到同一个推送消息,第二电子设备处理该推送消息后,可以将包含已处理推送消息的信息发送至第一电子设备,第一电子设备根据该信息更新推送消息的状态。It should be understood that in the above embodiment, an electronic device group is formed by three electronic devices and the main electronic device is selected as an example, but it is not limited thereto. In the embodiment of the present application, the electronic device group can also include more than three electronic devices. device and select the main electronic device, the electronic device group can also include 2 electronic devices and select the main electronic device, for example, the electronic device group includes the first electronic device and the second electronic device, and the first electronic device is selected as the main electronic device device, the first electronic device and the second electronic device both receive the same push message, and after the second electronic device processes the push message, it can send information including the processed push message to the first electronic device, and the first electronic device according to This information updates the status of the push message.

本申请实施例中,多个电子设备构成电子设备组,并选择出主电子设备,当该多个电子设备接收到推送信息,其中一个或多个电子设备处理该推送信息后,可以将包含已处理推送消息的信息发送至主电子设备,然后主电子设备向其余电子设备发送信息以指示更新推送信息的状态,从而避免了推送消息的冗余。In the embodiment of the present application, multiple electronic devices form an electronic device group, and the main electronic device is selected. When the multiple electronic devices receive the push information, one or more of the electronic devices can process the push information and send the The information for processing the push message is sent to the main electronic device, and then the main electronic device sends information to the remaining electronic devices to indicate the status of updating the push message, thereby avoiding redundancy of the push message.

下面结合图11介绍方法1000中的电子设备数据流向示意图。A schematic diagram of data flow of the electronic device in the method 1000 will be introduced below with reference to FIG. 11 .

第一电子设备包括第一通知栏、第一通知管理服务模块、推送消息同步管理模块,第二电子设备包括第二通知栏、第二通知管理服务模块,第三电子设备包括第三通知栏、第三通知管理服务模块。第一电子设备、第二电子设备、第三电子设备构成电子设备组时,第二电子设备和第三电子设备的通知管理服务模块可以向第一电子设备的推送消息同步管理模块发送第二订阅信息。第一电子设备、第二电子设备、第三电子设备接收到同一个推送消息且第二电子设备已处理该推送消息,则第二电子设备的第二通知管理服务模块可以向推送消息同步管理模块发送第四信息,推送消息同步管理模块接收到第四信息后,可以向第一通知管理服务模块发送信息以指示第一通知栏更新该推送消息的状态,还可以向第三通知管理服务模块发送第五信息(或第四信息),然后第三通知管理服务模块根据第五信息(或第四信息)更新该推送消息的状态,且第三通知栏不再显示该推送消息。The first electronic device includes a first notification bar, a first notification management service module, and a push message synchronization management module; the second electronic device includes a second notification bar and a second notification management service module; the third electronic device includes a third notification bar, The third notification management service module. When the first electronic device, the second electronic device, and the third electronic device form an electronic device group, the notification management service module of the second electronic device and the third electronic device can send a second subscription to the push message synchronization management module of the first electronic device information. The first electronic device, the second electronic device, and the third electronic device receive the same push message and the second electronic device has processed the push message, then the second notification management service module of the second electronic device can send a message to the push message synchronization management module Send the fourth information. After the push message synchronization management module receives the fourth information, it can send information to the first notification management service module to instruct the first notification bar to update the status of the push message, and can also send the message to the third notification management service module. Fifth information (or fourth information), and then the third notification management service module updates the status of the push message according to the fifth information (or fourth information), and the third notification bar no longer displays the push message.

下面结合图12介绍本申请实施例的另一种信息同步的方法的示例性流程图。An exemplary flow chart of another information synchronization method according to the embodiment of the present application will be introduced below with reference to FIG. 12 .

图12示出了本申请实施例的另一种推送消息同步的方法1200的示例性流程图。FIG. 12 shows an exemplary flow chart of another method 1200 for synchronizing push messages according to an embodiment of the present application.

S1201,第一电子设备和第二电子设备构建分布式数据库。S1201. The first electronic device and the second electronic device construct a distributed database.

第一电子设备和第二电子设备可以共享各自存储器的一部分存储资源用以构建分布式数据库,如图13所示,是本申请实施例提供的一种分布式数据库系统的示意图,第一电子设备包括第一处理器和第一存储器,第一存储器包括第一分区和第二分区,第二电子设备包括第二处理器和第二存储器,第二存储器包括第三分区和第四分区,网络可以是有线网络和/或无线网络并且用于可操作地耦合第一电子设备和第二电子设备的任何类型网络(例如,局域网(LAN)、广域网(WAN)、虚拟网络、电信网络)。第一电子设备和第二电子设备可以通过网络构建分布式数据库,将第一电子设备中的第一分区和第二电子设备中的第三分区构建形成分布式数据库。在另一些实施例中,分布式数据库可以设置在一个独立电子设备中,第一电子设备和第二电子设备通过网络可以访问该分布式数据库。The first electronic device and the second electronic device can share a part of the storage resources of their respective memories to build a distributed database, as shown in Figure 13, which is a schematic diagram of a distributed database system provided by the embodiment of the present application. The first electronic device It includes a first processor and a first memory, the first memory includes a first partition and a second partition, the second electronic device includes a second processor and a second memory, and the second memory includes a third partition and a fourth partition, and the network can Any type of network (eg, local area network (LAN), wide area network (WAN), virtual network, telecommunications network) that is a wired network and/or wireless network and used to operatively couple the first electronic device and the second electronic device. The first electronic device and the second electronic device may construct a distributed database through the network, and construct the first partition in the first electronic device and the third partition in the second electronic device to form a distributed database. In some other embodiments, the distributed database can be set in an independent electronic device, and the first electronic device and the second electronic device can access the distributed database through a network.

S1202,推送服务器发送推送消息。S1202. The push server sends a push message.

S1203,第一电子设备处理推送消息。S1203. The first electronic device processes the push message.

应理解,针对推送服务器发送推送消息和第一电子设备处理推送消息的描述,可以参见前述实施例,在此不再赘述。It should be understood that, for descriptions about sending the push message by the push server and processing the push message by the first electronic device, reference may be made to the foregoing embodiments, and details are not repeated here.

还应理解,在推送服务器发送推送消息之前,该方法还包括:应用程序服务器向推送服务器发送推送消息,针对应用服务器向推送服务器发送推送消息的描述可以参见前述实施例,在此不再赘述。It should also be understood that before the push server sends the push message, the method further includes: the application server sends the push message to the push server. For the description of the application server sending the push message to the push server, reference can be made to the foregoing embodiments, and details are not repeated here.

S1204,第一电子设备将第六信息写入分布式数据库。S1204. The first electronic device writes the sixth information into the distributed database.

第一电子设备在处理推送消息时,可以将第六信息写入到分布式数据库中,该第六信息用以指示第一电子设备已经处理该推送消息。When processing the push message, the first electronic device may write sixth information into the distributed database, where the sixth information is used to indicate that the first electronic device has processed the push message.

需要说明的是,S1203和S1204并没有实际的先后顺序,可以先执行S1203,再执行S1204,也可以同时执行S1203和S1204。It should be noted that there is no actual order of S1203 and S1204, S1203 may be executed first, and then S1204 may be executed, or S1203 and S1204 may be executed simultaneously.

应理解,本申请实施例中的第六信息可以与第一信息相同。It should be understood that the sixth information in this embodiment of the present application may be the same as the first information.

S1205,第二电子设备访问分布式数据库。S1205. The second electronic device accesses the distributed database.

第二电子设备可以包括监听模块,该监听模块可以监听分布式数据库,当第二电子设备确定该分布式数据库中新写入第六信息时,第二电子设备可以解析该第六信息。The second electronic device may include a monitoring module, and the monitoring module may monitor the distributed database, and when the second electronic device determines that sixth information is newly written in the distributed database, the second electronic device may parse the sixth information.

在一些实施例中,该分布式数据库包括第二电子设备存储器的一部分,则该分布式数据库写入第六信息时,第二电子设备可以确定该分布式数据库已新写入第六信息,然后第二电子设备可以解析该第六信息。In some embodiments, the distributed database includes a part of the memory of the second electronic device, then when the distributed database writes the sixth information, the second electronic device can determine that the distributed database has newly written the sixth information, and then The second electronic device can parse the sixth information.

应理解,步骤S1005与步骤S1002、S1003、S1004并没有实际的先后顺序,示例性地,在一些实施例中,当第一电子设备和第二电子设备完成分布式数据库的构建后,第二电子设备中的监听模块可以一直保持监听该分布式数据库的状态。It should be understood that there is no actual sequence between step S1005 and steps S1002, S1003, and S1004. For example, in some embodiments, after the first electronic device and the second electronic device complete the construction of the distributed database, the second electronic device The monitoring module in the device can keep monitoring the state of the distributed database.

在另一些实施例中,第二电子设备中的监听模块可以定期监听分布式数据库,从而可以节省电量的消耗。In some other embodiments, the monitoring module in the second electronic device can regularly monitor the distributed database, thereby saving power consumption.

S1206,第二电子设备更新推送消息的状态。S1206. The second electronic device updates the status of the push message.

针对第二电子设备更新推送消息的状态的描述,可以参见前述实施例,在此不再赘述。For the description of updating the state of the push message by the second electronic device, reference may be made to the foregoing embodiments, and details are not repeated here.

本申请实施例中,多个电子设备可以构建分布式数据库,当该多个电子设备接收到同一个推送消息时,其中的一个或多个处理该推送消息时,可以将包含已处理推送消息的信息的第六信息写入到该分布式数据库中,其他电子设备可以访问该分布式数据库,从而其他电子设备可以根据第六信息更新推送消息的状态,避免了推送消息的冗余。In the embodiment of the present application, multiple electronic devices can build a distributed database. When the multiple electronic devices receive the same push message, when one or more of them process the push message, they can include the processed push message. The sixth information of the message is written into the distributed database, and other electronic devices can access the distributed database, so that other electronic devices can update the state of the push message according to the sixth information, avoiding the redundancy of the push message.

下面结合图14介绍方法1200的电子设备数据流向示意图。A schematic diagram of electronic device data flow in method 1200 will be introduced below with reference to FIG. 14 .

第一电子设备包括第一通知栏、第一通知管理服务模块、第一分布式数据库,第二电子设备包括第二通知栏、第二通知管理服务模块,第二分布式数据库。第一电子设备、第二电子设备可以根据第一分布式数据库和第二分布式数据库构建分布式数据库。第一电子设备和第二电子设备接收到同一个推送消息且第一电子设备处理该推送消息时,可以将第六信息写入到分布式数据库中,第二通知管理服务模块可以访问该分布式数据库,从而第二通知管理服务模块可以根据第六信息更新该推送消息的状态,从而第二通知栏可以不再显示该推送消息。The first electronic device includes a first notification bar, a first notification management service module, and a first distributed database, and the second electronic device includes a second notification bar, a second notification management service module, and a second distributed database. The first electronic device and the second electronic device may construct a distributed database according to the first distributed database and the second distributed database. When the first electronic device and the second electronic device receive the same push message and the first electronic device processes the push message, it can write the sixth information into the distributed database, and the second notification management service module can access the distributed database. database, so that the second notification management service module can update the status of the push message according to the sixth information, so that the second notification bar can no longer display the push message.

以上各个实施例可以单独使用,也可以相互结合使用,以实现不同的技术效果。Each of the above embodiments can be used alone or in combination with each other to achieve different technical effects.

上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above-mentioned embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of an electronic device serving as an execution subject. In order to realize the various functions in the method provided by the above embodiments of the present application, the electronic device may include a hardware structure and/or a software module, and realize the above-mentioned functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above-mentioned functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

本申请实施例还提供了一种电子设备,包括:处理器、存储器、一个或多个传感器、电源键、应用程序以及计算机程序。上述各器件可以通过一个或多个通信总线连接。其中,该一个或多个计算机程序被存储在上述存储器中并被配置为被该一个或多个处理器执行,该一个或多个计算机程序包括指令,上述指令可以用于使电子设备执行上述各实施例中消息同步的方法的各个步骤。The embodiment of the present application also provides an electronic device, including: a processor, a memory, one or more sensors, a power key, an application program, and a computer program. The various components described above may be connected by one or more communication buses. Wherein, the one or more computer programs are stored in the above-mentioned memory and are configured to be executed by the one or more processors, the one or more computer programs include instructions, and the above-mentioned instructions can be used to make the electronic device execute the above-mentioned Various steps of the message synchronization method in the embodiment.

示例性地,上述处理器具体可以为图2所示的处理器110,上述存储器具体可以为图2所示的内部存储器120和/或与电子设备连接的外部存储器,上述显示屏具体可以为图2所示的显示屏130,上述传感器具体可以为图2所示的传感器模块150中的一个或多个传感器,上述电源键可以为图2所示的电源键141。本申请实施例对此不做任何限制。Exemplarily, the above-mentioned processor may specifically be theprocessor 110 shown in FIG. 2, the above-mentioned memory may specifically be theinternal memory 120 shown in FIG. 2, the sensor may specifically be one or more sensors in thesensor module 150 shown in FIG. 2 , and the power key may be the power key 141 shown in FIG. 2 . The embodiments of this application do not impose any limitation on this.

示例性地,该电子设备可以是手机、平板电脑、电视、电脑、智能手表等。Exemplarily, the electronic device may be a mobile phone, a tablet computer, a TV, a computer, a smart watch, and the like.

另外,本申请实施例还提供了一种电子设备上的图形用户界面(graphical userinterface,GUI),该图形用户界面具体包括电子设备在执行上述各方法实施例时显示的图形用户界面。In addition, an embodiment of the present application also provides a graphical user interface (graphical user interface, GUI) on an electronic device, where the graphical user interface specifically includes a graphical user interface displayed when the electronic device executes the foregoing method embodiments.

本申请实施例还提供一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如前文中任一种可能的实现方式中所述的消息同步的方法被执行。The embodiment of the present application also provides a chip, the chip includes a processor and a communication interface, the communication interface is used to receive a signal, and transmit the signal to the processor, and the processor processes the signal, The method for synchronizing messages as described in any one of the possible implementation manners above is executed.

本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的消息同步的方法。This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned relevant method steps to realize the steps in the above-mentioned embodiments. Method for message synchronization.

本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的消息同步的方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to implement the message synchronization method in the above embodiment.

另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的消息同步的方法。In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the method for message synchronization in the above method embodiments.

以上实施例中所用,根据上下文,术语“当…时”或“当…后”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, depending on the context, the terms "when" or "after" may be interpreted to mean "if" or "after" or "in response to determining..." or "in response to detecting ...". Similarly, depending on the context, the phrases "in determining" or "if detected (a stated condition or event)" may be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)".

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。在不冲突的情况下,以上各实施例的方案都可以组合使用。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)). In the case of no conflict, the solutions of the above embodiments can be used in combination.

Claims (13)

Translated fromChinese
1.一种系统,其特征在于,所述系统包括第一电子设备、第二电子设备、推送服务器,所述第一电子设备登录第一设备ID,所述第二电子设备登录所述第二设备ID,所述第一设备ID和所述第二设备ID相同或关联,其中,1. A system, characterized in that the system includes a first electronic device, a second electronic device, and a push server, the first electronic device logs in the first device ID, and the second electronic device logs in the second Device ID, the first device ID and the second device ID are the same or associated, wherein,所述推送服务器,用于根据所述第一设备ID向所述第一电子设备发送第一推送信息和根据所述第二设备ID向所述第二电子设备发送所述第一推送消息;The push server is configured to send first push information to the first electronic device according to the first device ID and send the first push message to the second electronic device according to the second device ID;所述第一电子设备,用于接收所述第一推送消息;The first electronic device is configured to receive the first push message;所述第二电子设备,用于接收所述第一推送消息;The second electronic device is configured to receive the first push message;所述第一电子设备,还用于在检测到处理所述第一推送消息的操作时,生成第一信息;The first electronic device is further configured to generate first information when detecting the operation of processing the first push message;所述第一电子设备,还用于向所述第二电子设备发送所述第一信息;The first electronic device is further configured to send the first information to the second electronic device;所述第二电子设备,还用于接收所述第一信息,并根据所述第一信息更新所述第一推送消息的状态。The second electronic device is further configured to receive the first information, and update the status of the first push message according to the first information.2.根据权利要求1所述的系统,其特征在于,所述系统还包括应用程序服务器,其中,2. The system according to claim 1, further comprising an application server, wherein,所述应用程序服务器,用于向所述推送服务器发送所述第一推送消息。The application server is configured to send the first push message to the push server.3.根据权利要求1或2所述的系统,其特征在于,所述第一电子设备,还用于根据用户的操作判断是否发送所述第一信息;3. The system according to claim 1 or 2, wherein the first electronic device is further configured to determine whether to send the first information according to user operations;所述第一电子设备,还用于向所述第二电子设备发送所述第一信息,包括:The first electronic device is further configured to send the first information to the second electronic device, including:所述第一电子设备,具体用于当确定发送所述第一信息时,向所述第二电子设备发送所述第一信息。The first electronic device is specifically configured to send the first information to the second electronic device when it is determined to send the first information.4.一种推送消息同步的方法,其特征在于,所述方法应用于第一电子设备,所述第一电子设备登录第一设备ID,所述方法包括:4. A method for pushing message synchronization, wherein the method is applied to a first electronic device, and the first electronic device logs in a first device ID, and the method includes:所述第一电子设备接收所述推送服务器根据所述第一设备ID发送的第一推送消息;The first electronic device receives a first push message sent by the push server according to the first device ID;所述第一电子设备处理所述第一推送消息时,生成第一信息,所述第一信息用于指示所述第一电子设备已处理所述第一推送消息;When the first electronic device processes the first push message, it generates first information, where the first information is used to indicate that the first electronic device has processed the first push message;所述第一电子设备向所述推送服务器发送所述第一信息;或The first electronic device sends the first information to the push server; or所述第一电子设备向第二电子设备发送所述第一信息。The first electronic device sends the first information to the second electronic device.5.根据权利要求4所述的方法,其特征在于,所述第一电子设备发送所述第一信息之前,所述方法还包括:5. The method according to claim 4, wherein before the first electronic device sends the first information, the method further comprises:所述第一电子设备根据用户的操作判断是否发送所述第一信息;The first electronic device judges whether to send the first information according to the user's operation;所述第一电子设备向所述推送服务器发送所述第一信息,包括:The sending of the first information by the first electronic device to the push server includes:当所述第一电子设备确定发送所述第一信息时,所述第一电子设备向所述推送服务器发送所述第一信息;When the first electronic device determines to send the first information, the first electronic device sends the first information to the push server;所述第一电子设备向第二电子设备发送所述第一信息,包括:The sending of the first information by the first electronic device to the second electronic device includes:当所述第一电子设备确定发送所述第一信息时,所述第一电子设备向所述第二电子设备发送所述第一信息。When the first electronic device determines to send the first information, the first electronic device sends the first information to the second electronic device.6.根据权利要求4或5所述的方法,其特征在于,所述方法还包括:所述第一电子设备检测是否与所述第二电子设备在同一个局域网,所述第一电子设备向第二电子设备发送所述第一信息,包括:6. The method according to claim 4 or 5, characterized in that the method further comprises: the first electronic device detects whether it is in the same local area network as the second electronic device, and the first electronic device sends The second electronic device sends the first information, including:当所述第一电子设备检测到与所述第二电子设备未在同一个局域网时,缓存所述第一信息,当所述第一电子设备和所述第二电子设备在同一个局域网后,向所述第二电子设备发送所述第一信息;When the first electronic device detects that it is not in the same local area network as the second electronic device, cache the first information; when the first electronic device and the second electronic device are in the same local area network, sending the first information to the second electronic device;当所述第一电子设备检测到与所述第二电子设备在同一个局域网时,向所述第二电子设备发送所述第一信息。When the first electronic device detects that it is in the same local area network as the second electronic device, send the first information to the second electronic device.7.根据权利要求4至6中任一项所述的方法,其特征在于,所述方法还包括:7. The method according to any one of claims 4 to 6, wherein the method further comprises:所述第一电子设备接收所述第二电子设备发送的订阅信息,所述订阅信息用于指示所述第一电子设备发送所述第一信息。The first electronic device receives subscription information sent by the second electronic device, where the subscription information is used to instruct the first electronic device to send the first information.8.一种推送消息同步的方法,其特征在于,所述方法应用于推送服务器,所述方法包括:8. A method for pushing message synchronization, characterized in that the method is applied to a push server, and the method comprises:所述推送服务器根据第一设备ID向第一电子设备发送第一推送消息,根据第二设备ID向第二电子设备发送所述第一推送消息,其中,所述第一设备ID为所述第一电子设备的设备ID,所述第二设备ID为所述第二电子设备的设备ID,所述第一设备ID与所述第二设备ID相同或关联;The push server sends the first push message to the first electronic device according to the first device ID, and sends the first push message to the second electronic device according to the second device ID, wherein the first device ID is the first A device ID of an electronic device, the second device ID is the device ID of the second electronic device, and the first device ID is the same as or associated with the second device ID;所述推送服务器接收所述第一电子设备发送的第一信息,所述第一信息用于指示所述第一电子设备已处理所述第一推送消息;The push server receives first information sent by the first electronic device, where the first information is used to indicate that the first electronic device has processed the first push message;所述推送服务器根据所述第一信息生成第二信息,所述第二信息用于指示所述第二电子设备更新所述第一推送消息;The push server generates second information according to the first information, and the second information is used to instruct the second electronic device to update the first push message;所述推送服务器根据所述第二设备ID向所述第二电子设备发送所述第二信息。The push server sends the second information to the second electronic device according to the second device ID.9.根据权利要求8所述的方法,其特征在于,所述推送服务器发送所述第一推送消息之前,所述方法还包括:9. The method according to claim 8, wherein before the push server sends the first push message, the method further comprises:所述推送服务器接收应用服务器发送的所述第一推送消息。The push server receives the first push message sent by the application server.10.根据权利要求9所述的方法,其特征在于,所述方法还包括:10. The method according to claim 9, further comprising:所述推送服务器接收所述应用程序服务器发送的标识信息,所述标识信息包括所述第一设备ID和所述第二设备ID。The push server receives the identification information sent by the application program server, where the identification information includes the first device ID and the second device ID.11.一种推送消息同步的方法,其特征在于,所述方法应用于第二电子设备,所述第二电子设备登录第二设备ID,所述方法包括:11. A method for pushing message synchronization, wherein the method is applied to a second electronic device, and the second electronic device logs in a second device ID, and the method comprises:所述第二电子设备接收推送服务器根据所述第二设备ID发送的第一推送消息;The second electronic device receives the first push message sent by the push server according to the second device ID;所述第二电子设备接收第一电子设备发送的第一信息,所述第一信息用于指示所述第一电子设备已处理所述第一推送消息,并根据所述第一信息更新所述第一推送消息的状态;或The second electronic device receives first information sent by the first electronic device, the first information is used to indicate that the first electronic device has processed the first push message, and updates the the status of the first push message; or所述第二电子设备接收所述推送服务器根据所述第二设备ID发送的第二信息,并根据所述第二信息更新所述第一推送消息的状态。The second electronic device receives the second information sent by the push server according to the second device ID, and updates the status of the first push message according to the second information.12.一种电子设备,其特征在于,包括一个或多个处理器;一个或多个存储器,显示屏;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行上述权利要求4至7中任一项所述的方法,或者执行上述要求要求8至10中任一项所述的方法,或者,执行上述权利要求11所述的方法。12. An electronic device, characterized in that it includes one or more processors; one or more memories, display screens; one or more computer programs are stored in the one or more memories, and the one or more The computer program includes instructions that, when executed by the one or more processors, cause the electronic device to perform the method described in any one of the above claims 4 to 7, or to perform the above requirements 8 to 10 The method described in any one, or, carry out the method described in claim 11 above.13.一种计算机可读存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述权利要求4至7中任一项所述的方法,或者执行上述要求要求8至10中任一项所述的方法,或者,执行上述权利要求11所述的方法。13. A computer-readable storage medium, comprising computer instructions, when the computer instructions are run on an electronic device, the electronic device is made to execute the method according to any one of claims 4 to 7, or execute the above-mentioned The method of any one of claims 8 to 10 is required, or the method of claim 11 above is performed.
CN202110931528.0A2021-08-132021-08-13Push message synchronization method, electronic equipment and systemPendingCN115706737A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110931528.0ACN115706737A (en)2021-08-132021-08-13Push message synchronization method, electronic equipment and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110931528.0ACN115706737A (en)2021-08-132021-08-13Push message synchronization method, electronic equipment and system

Publications (1)

Publication NumberPublication Date
CN115706737Atrue CN115706737A (en)2023-02-17

Family

ID=85180171

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110931528.0APendingCN115706737A (en)2021-08-132021-08-13Push message synchronization method, electronic equipment and system

Country Status (1)

CountryLink
CN (1)CN115706737A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101771709A (en)*2008-12-022010-07-07华为终端有限公司Propelling method and client based on session initiation protocol
CN102461099A (en)*2009-06-232012-05-16德国电信股份公司Method for transmitting an electronic short message to multiple receivers
CN106657329A (en)*2016-12-212017-05-10北京奇虎科技有限公司Mobile terminal as well as notification information control method and device
CN107368518A (en)*2017-06-052017-11-21努比亚技术有限公司The management method and terminal of a kind of notification message, computer-readable recording medium
CN108243085A (en)*2016-12-262018-07-03腾讯科技(深圳)有限公司Push, setting method and the device of communication group status indicator
WO2021013105A1 (en)*2019-07-192021-01-28深圳前海微众银行股份有限公司Job state pushing method and apparatus
CN112788128A (en)*2020-12-312021-05-11青岛海尔科技有限公司Business information pushing method and device, storage medium and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101771709A (en)*2008-12-022010-07-07华为终端有限公司Propelling method and client based on session initiation protocol
CN102461099A (en)*2009-06-232012-05-16德国电信股份公司Method for transmitting an electronic short message to multiple receivers
CN106657329A (en)*2016-12-212017-05-10北京奇虎科技有限公司Mobile terminal as well as notification information control method and device
CN108243085A (en)*2016-12-262018-07-03腾讯科技(深圳)有限公司Push, setting method and the device of communication group status indicator
CN107368518A (en)*2017-06-052017-11-21努比亚技术有限公司The management method and terminal of a kind of notification message, computer-readable recording medium
WO2021013105A1 (en)*2019-07-192021-01-28深圳前海微众银行股份有限公司Job state pushing method and apparatus
CN112788128A (en)*2020-12-312021-05-11青岛海尔科技有限公司Business information pushing method and device, storage medium and electronic device

Similar Documents

PublicationPublication DateTitle
US9690621B2 (en)Multitasking method and electronic device therefor
US10230791B2 (en)Electronic device and method for controlling execution of application in electronic device
US10503459B2 (en)Method for sharing screen and electronic device thereof
US10346359B2 (en)Electronic device and method providing an object management user interface
US20170011010A1 (en)Method for displaying web content and electronic device supporting the same
CN111263002B (en)Display method and electronic equipment
KR102628856B1 (en)System for sharing contents between electronic devices and method for sharing contents in an electronic device
US20180032259A1 (en)Method of displaying content and electronic device adapted to the same
CN110377235B (en)Data processing method and device, mobile terminal and computer readable storage medium
WO2022052928A1 (en)Application access method and related apparatus
WO2023029993A1 (en)Search method and electronic device
WO2022052758A1 (en)Network configuration method and device
CN113608610B (en)Interaction control method, electronic equipment and system
CN115905673A (en) A service recommendation method and electronic device
WO2022161024A1 (en)Upgrade prompt method, terminal device, and computer readable storage medium
CN116048830B (en)Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN114490442B (en)File fragment adjusting method and electronic equipment
CN115706737A (en)Push message synchronization method, electronic equipment and system
CN115250261B (en)Information display method and electronic equipment
EP4621539A1 (en)Method for implementing media playback control, electronic device, system, and readable storage medium
CN114625303B (en) Window display method, terminal device, and computer-readable storage medium
WO2023066036A1 (en)Cross-device file display method and system, and device
WO2024104131A1 (en)Method for gaining window focus in multi-window scenario, device and system
WO2024193214A1 (en)Screen content sharing method, and device and system
WO2024046062A1 (en)Cross-device card interaction method and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp