Method and device for managing notification message, chip and communication equipment
By introducing a reuse mechanism of the on-use identifier pool and identifier in notification message management, the problem of large memory usage in notification message management is solved, and efficient memory management and effective use of identifiers are realized.
Patent Information
- Application Number
- CN202310965157.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-01
- Publication Date
- 2025-02-14
AI Technical Summary
The management mechanism of notification messages in the prior art has the problem of large memory occupancy, which is difficult to effectively reduce memory occupancy and simplify memory management.
By generating and managing notification messages containing identifiers in the pool of to-use identifiers, the user releases the mapping relationship between the notification message and the identifier after reading it, and puts the identifier back to the pool of to-use, realizing the reuse of the identifier.
Reduces memory footprint, simplifies memory management, and reuses identifiers, while meeting the requirements for identification notification messages, it reduces memory usage.
Smart Images

Figure CN119450371A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of wireless communication technology, and more specifically, to a method and apparatus for managing notification messages, a chip, and a communication device. Background Art
[0002] With the continuous development of mobile Internet, mobile phones and other communication devices are becoming indispensable tools in people's daily lives. Take mobile phones as an example. They have more and more functions and are installed with many applications (APPs). When users receive calls, make transactions, or their status, account balance and other information change, they will receive notification information in a timely manner. In some cases, wearable devices may establish a short-distance communication link with mobile phones to transmit data to each other. The display interface of wearable devices can enable users to perceive incoming calls (or messages) in a timely manner, providing convenience for users. However, the current management mechanism of notification messages has the problem of occupying a large amount of memory. Summary of the invention
[0003] The embodiments of the present application provide a method and apparatus for managing notification messages, a chip, and a communication device. The following introduces various aspects involved in the embodiments of the present application.
[0004] In a first aspect, a method for managing notification messages is provided, which is applied to a first communication device, and the method includes: generating a first notification message, wherein the first notification message is notification information of a received first message, the first message is a signaling message associated with a communication service, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a standby identifier pool; sending the first notification message to a second communication device; confirming that the first message is in a read state; releasing the association between the first identifier and the first notification message, and placing the first identifier into the standby identifier pool; wherein a wireless communication link is established between the second communication device and the first communication device.
[0005] In a second aspect, a method for managing notification messages is provided, which is applied to a second communication device, and the method comprises: receiving a first notification message sent by a first communication device, wherein the first notification message is notification information of a first message received by the first communication device, the first message is a signaling message associated with a communication service, and the first notification message includes a first identifier, which is identification information associated with the first notification message, and the first identifier is an identifier in a standby identifier pool; receiving the first message sent by the first communication device; wherein, after the first message has been read, the association between the first identifier and the first notification message is released, and the first identifier is placed in the standby identifier pool, and a wireless communication link is established between the second communication device and the first communication device.
[0006] According to a third aspect, a device for managing notification messages is provided, which is applied to a first communication device, and the device includes: a receiving module, which is used to receive a first message, wherein the first message is a signaling message associated with a communication service; a generating module, which is used to generate a first notification message, wherein the first notification message is notification information of the first message, and the first notification message includes a first identifier, which is identification information associated with the first notification message, and the first identifier is an identifier in a standby identifier pool; a sending module, which is used to send the first notification message to a second communication device; a confirmation module, which is used to confirm that the first message is in a read state; and a recycling module, which is used to release the association between the first identifier and the first notification message, and put the first identifier into the standby identifier pool; wherein a wireless communication link is established between the second communication device and the first communication device.
[0007] In a fourth aspect, a device for managing notification messages is provided, which is applied to a second communication device, and the device includes: a receiving module, used to receive a first notification message sent by a first communication device, the first notification message is notification information of a first message received by the first communication device, the first message is a signaling message associated with a communication service, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a standby identifier pool; the receiving module is also used to receive the first message sent by the first communication device; wherein, after the first message has been read, the first identifier corresponding to the first message is placed in the standby identifier pool, and the second communication device establishes a wireless communication link with the first communication device.
[0008] According to a fifth aspect, a chip is provided, comprising a processor, wherein the processor is configured to execute the method described in the first aspect or the second aspect.
[0009] In a sixth aspect, a communication device is provided, comprising: a memory for storing code; a transceiver for sending and receiving wireless communication signals; and a processor connected to the transceiver, for executing the code stored in the memory to execute the method described in the first aspect.
[0010] In the seventh aspect, a communication device is provided, comprising: a memory for storing code; a transceiver for sending and receiving wireless communication signals; and a processor connected to the transceiver, for executing the code stored in the memory to execute the method described in the second aspect.
[0011] In an eighth aspect, a non-volatile computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program is used to execute the method as described in the first aspect or the second aspect.
[0012] In a ninth aspect, a computer program product is provided, comprising instructions for executing the method as described in the first aspect or the second aspect.
[0013] In an embodiment of the present application, after the user has read the first message corresponding to the first notification message, the mapping relationship between the read first notification message and the first identifier is released. There is no need to cache the first notification message record that has been viewed, and the identifier can be reused. When the user uses a repeatable identifier value to view, the notification message is always the unread notification information that exists in the notification list, and these unread notification information correspond to different identifiers. Therefore, an embodiment of the present application helps to use a smaller number of identifiers to meet the needs of identifying notification information, helps to reduce memory usage, and simplifies memory management. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a flowchart of a method for managing notification messages provided in an embodiment of the present application.
[0015] Figure 2 yes Figure 1 Schematic diagram of a possible application scenario of the method.
[0016] Figure 3 yes Figure 1 A flowchart of a possible implementation of the method.
[0017] Figure 4 It is a flowchart of another method for managing notification messages provided in an embodiment of the present application.
[0018] Figure 5 It is a schematic diagram of a device for managing notification messages provided in an embodiment of the present application.
[0019] Figure 6 It is a schematic diagram of another device for managing notification messages provided in an embodiment of the present application.
[0020] Figure 7 It is a schematic diagram of a component unit / partial component unit of a communication device provided in an embodiment of the present application.
[0021] Figure 8 It is a schematic diagram of a component unit / partial component unit of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0023] In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the application scenarios of the embodiments of the present application and the technical terms that may be involved are first introduced.
[0024] With the continuous development of mobile Internet, mobile phones and other communication devices are becoming indispensable tools in people's daily lives. Take mobile phones as an example. They have more and more functions and are installed with many applications (APPs). When users' transactions, points, status, account balance and other information change, they will receive notification information in time. In addition to traditional SMS methods, APP application notifications or third-party platform in-site messages will also be used for push notifications and displayed in the notification bar.
[0025] For example, when a mobile phone receives an incoming call, the mobile phone can display the incoming caller ID. However, when the mobile phone is not with the user, or the mobile phone is placed in the user's trouser pocket or handbag, the mobile phone may not allow the user to perceive and process the incoming call or message in time.
[0026] At present, wearable devices have become a part of people's work and life. For example, people can carry wearable devices (such as smart watches) with them to record sports data, health data, and check time information. In some cases, people may establish a short-range communication link between the wearable device and the mobile phone, so that the wearable device and the mobile phone can transmit data to each other. Since wearable devices are usually worn by users, the display interface of the wearable device can enable users to perceive incoming calls (or messages) in time so as to handle the calls and provide convenience for users.
[0027] In the embodiments of the present application, the communication device may be referred to as a terminal device, a terminal, a user equipment (UE), a user terminal, an access terminal, a user unit, a user station, a mobile station, a mobile station (MS), a mobile terminal (MT), a remote terminal, a remote station, a mobile device, a wireless communication device, a user agent or a user device. The terminal device in the embodiments of the present application may be a device that provides voice and / or data connectivity to a user, and may be used to connect people, objects and machines, such as a handheld device with a wireless connection function, a vehicle-mounted device, etc. The terminal devices in the embodiments of the present application may include but are not limited to mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MID), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc. Optionally, UE can be used to act as a base station. Cellular phones and smart home devices communicate without relaying communication signals through base stations.
[0028] In the embodiments of the present application, the wearable device may include but is not limited to a smart bracelet, a smart watch, smart glasses, an augmented reality wearable device, etc. The embodiments of the present application do not limit the specific technology and specific device form used by the wearable device.
[0029] The following uses the commonly used Apple Notification Center Service (ANCS) protocol as an example. The ANCS protocol can transmit notification messages on the mobile phone to smart watches or other peripheral accessories via Bluetooth links, which can prompt (or alert) users to check messages immediately.
[0030] For example, when a text message is received on a mobile phone, a notification message of the newly received text message can be seen through the notification bar on the mobile phone (the notification bar appears by sliding down from the upper left corner of the screen). The content of the notification message may include: the sender, a brief summary of the text message, etc.
[0031] If the mobile phone is linked to the watch via Bluetooth, the mobile phone will send a prompt message to the watch. The prompt message contains a unique identifier, which identifies the notification message (i.e., corresponds to the text message). For example, the letter K can be used to represent the unique identifier value used here.
[0032] After receiving the prompt message, the watch can send a request message including the unique identifier K to the mobile phone to obtain the detailed content of the message and the specified message parameter content.
[0033] This reminder message is not only for messages such as text messages, any message content that appears in the notification bar of the mobile phone can be sent to the watch in this way.
[0034] If there is a reminder message notification of a text message, the unique identifier value it contains is K; at this time, a WeChat message comes, and the unique identifier used for the WeChat message is inconsistent with K. That is, different unread notification messages correspond to different identifiers, and the unique identifiers will not be repeated, so as to ensure the uniqueness of the notification message and avoid confusion and conflict.
[0035] However, this method requires recording the notification messages that have been viewed, which is not conducive to simplifying the memory management of the mobile phone.
[0036] It should be noted that in the message notification services of the mobile phones and watches mentioned above, the unique identifier of the notification information will not be repeated, and the problem of large memory usage is only an example. The embodiments of the present application can be applied to the message notification service between communication devices. The identifier management of the notification information is not conducive to simplifying any type of scenario in which memory is not simplified.
[0037] Therefore, how to develop a solution for managing notification information that reduces memory usage is a problem that needs to be solved.
[0038] Based on this, an embodiment of the present application proposes a method for managing notification messages. Figure 1 This is a flow chart of the method for managing notification messages proposed in the application embodiment. Figure 1 The method for managing notification messages in an embodiment of the present application is described in detail. The method is applied to a first communication device, and the first communication device may be any of the communication devices described above. Figure 1 As shown, the method for managing notification messages may mainly include steps S110 to S140, which are described in detail below.
[0039] It should be pointed out that the size of the serial numbers of the steps in the embodiments of the present application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0040] In step S110, a first notification message is generated. The first notification message is notification information of the received first message, and the first message is a signaling message associated with the communication service. The first notification message includes a first identifier, and the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in the pool of in-use identifiers. That is, the first identifier and the first notification message are associated with each other in a one-to-one mapping relationship.
[0041] Among them, the signaling message associated with the communication service can be information from a cellular network, information from a WiFi local area network, or information from a future wireless communication network. The first message can be, for example, any of the following messages: a missed call, a text message, a message from another service, or a message from a predetermined application. The predetermined application can be a currently commonly used application or an application that will appear in the future. For example, the first message can be a message from a WeChat APP, or a message from a bank APP.
[0042] Identifiers can be divided into used identifiers and standby identifiers. Identifiers associated with unread notification information are used identifiers, and identifiers in the standby identifier pool that have not established an association with notification information are standby identifiers. The first identifier can be unique identification information associated with the first notification message. Different notification information has unused identifiers, that is, each notification information has a unique identifier.
[0043] The notification message is usually displayed in the notification bar of the first communication device, and the notification bar is usually displayed by sliding down from the upper left (top) of the screen of the first communication device. The notification message can be any information that may appear in the notification bar, such as a preview of a text message, a missed call, information of user applications such as WeChat, and messages of system built-in applications or services (such as prompts that an update package is available).
[0044] In step S120, a first notification message is sent to the second communication device. A wireless communication link is established between the second communication device and the first communication device. The second communication device may be, for example, a wearable device, such as a smart bracelet, a smart watch, smart glasses, etc. The second communication device may also be any device based on short-range wireless communication such as Bluetooth, such as a vehicle-mounted system, a television, etc. that can receive notification information on the first communication device. The second communication device may also be a device based on wireless communication of a user identification card (such as an eSIM card), such as a phone watch.
[0045] The wireless communication may be cellular network communication or short-range wireless communication, such as Bluetooth communication, WIFI direct communication, or WiFi communication.
[0046] In step S130, it is confirmed that the first message is in a read state.
[0047] In step S140, the association relationship between the first identifier and the first notification message is released, and the first identifier is put into a pool of standby identifiers so as to be used for identification association of a new notification message.
[0048] After the user has read the first message corresponding to the first notification message, the mapping relationship between the read first notification message and the first identifier is released. There is no need to cache the first notification message record that has been viewed, and the identifier can be reused. When the user uses a repeatable identifier value to view, the notification message is always the unread notification information that exists in the notification list, and these unread notification information correspond to different identifiers. Therefore, the embodiments of the present application help to reduce memory usage and simplify memory management.
[0049] Before generating the first notification message, the first communication device may receive a first message associated with the communication service.
[0050] In some implementations, the method for managing notification messages further includes: generating a second notification message, the second notification message being notification information of a received second message, the second message being a signaling message associated with a communication service. The second notification message includes a second identifier, the second identifier being identification information associated with the second notification message, and the second identifier being an identifier configured for the second notification message from a pool of standby identifiers according to a predetermined scheduling rule, the predetermined scheduling rule being a rule of giving priority to the use of a released first identifier. That is, the predetermined scheduling rule gives priority to the use of a released identifier. In this way, it is possible to use a smaller number of identifiers to meet the need to identify multiple notification messages.
[0051] In some embodiments, the predetermined scheduling rule may also be not to give priority to using the released identifier.
[0052] In some implementations, the first message can be confirmed to be in the read state by any of the following methods: the user checks the first message on the first communication device and confirms that the first message is in the read state; or, a first response message sent by the second communication device is received, and the first response message is used to instruct the user to check the first message on the second communication device. There are many ways to check the first message, such as text display or voice playback.
[0053] In some implementations, before sending the first message to the second communication device, a first request message sent by the second communication device may be received, the first request message being used to obtain the content of the first message, the first request message including the first identifier. The first request message may be used to obtain the entire content of the first message, or may be used to obtain a specified portion of message parameter content, such as the sender and a summary of the content of the message.
[0054] The notification message is usually displayed in the notification bar of the first communication device. In some implementations, after the user views the first message on the first communication device, the first notification information corresponding to the first message is automatically deleted from the notification bar, that is, the first notification information is no longer displayed (or recorded) on the notification bar, ensuring that all notification information displayed on the notification bar is unread. In addition, a first termination message containing a first identifier is sent to the second communication device, and the first termination message is used to prompt that the first notification message has been deleted. This helps to prevent the second communication device from sending a request message to obtain the first message again.
[0055] In some implementations, if the first message is updated (i.e., any parameter value of the first message is updated), the notification message in the notification bar may update the content. As long as the first message is updated, the first communication device will send a prompt message to the second communication device to prompt that the first message corresponding to the first identifier has been updated.
[0056] In some implementations, messages (first messages) may be divided into different categories, such as missed calls, proposed connections (e.g., voice / video), text messages, various forms of messaging services, messages from other application classes, and the like. Identifiers mapped one-to-one with notification messages may also be divided into different categories, that is, the categories of identifiers may be divided according to the categories of messages, which helps users quickly identify the types of messages. For example, some fields of the identifier value may represent categories, and representative categories may include email, various forms of messaging services (e.g., voice / video), text messages, and the like. In some implementations, the categories of identifiers may also be divided according to the importance of the message, which helps users quickly identify the importance or urgency of the message.
[0057] In some implementations, short-range wireless communication may be, for example, Bluetooth communication or WIFI direct communication. Among them, Bluetooth is a widely used short-range wireless communication technology that enables wireless information exchange between multiple electronic devices that support Bluetooth transmission. Bluetooth technology may include: basic data rate / enhanced data rate (BR / EDR) and Bluetooth low energy (BLE) technology. In Bluetooth technology that uses the serial port profile (SPP) protocol, devices can be divided into clients and servers. A server is a Bluetooth device that waits for other devices to connect, and a client is a device that actively connects to a server.
[0058] In some embodiments, the first communication device and the second communication device may have a one-to-one relationship. In other embodiments, the first communication device and the second communication device may have a one-to-many relationship. For example, in Bluetooth communication, the first communication device as a client may be connected to multiple server Bluetooth devices, and the server Bluetooth devices may be, for example, Bluetooth headsets and Bluetooth bracelets. The second communication device may be any of the multiple server Bluetooth devices in the same coordination set. The first communication device may also simultaneously send a first notification message to multiple server Bluetooth devices as second communication devices.
[0059] In an embodiment of the present application, after the user has read the first message corresponding to the first notification message, the mapping relationship between the read first notification message and the first identifier is released. Therefore, there is no need to cache the first notification message record that has been viewed, and the identifier can be reused. When the user uses a repeatable identifier value to view, the notification message is always an unread notification message that exists in the notification list, and these unread notification messages correspond to different identifiers. Therefore, an embodiment of the present application helps to use a smaller number of identifiers to meet the needs of identifying notification messages, helps to reduce memory usage, and simplifies memory management.
[0060] The method for managing and adjusting messages in the embodiment of the application is further described below in conjunction with some possible implementation methods of the embodiment of the application.
[0061] Figure 2 yes Figure 1 A schematic diagram of a possible application scenario of the method. The following is an exemplary description using a first communication device as a mobile phone and a second communication device as a smart watch, and the unique identifier is changed to a reusable identifier. Figure 2 As shown, the wireless communication system 200 may include a mobile phone 210 and a smart watch 220 .
[0062] The mobile phone 210 can obtain signaling messages associated with communication services, such as missed calls, voice calls, video calls, text messages, or messages from third-party service platforms, through a base station 230 (or wireless hotspot) of a cellular network. The user usually carries a smart watch 220 with him.
[0063] If the mobile phone 210 currently has three warning notification messages (unread notification messages), they are:
[0064] 1) Notification message 1 representing the short message uses identifier value 1, that is, notification message 1 and identifier value 1 have a mapping (association) relationship.
[0065] 2) Notification message 2 representing a message sent by WeChat friend A, using identifier value 2.
[0066] 3) Notification message 3 representing a message sent by WeChat friend B, using identifier value 3.
[0067] It can be seen that different unread notification messages correspond to different identifier values. Mobile phone 210 sends the three warning notification messages to smart watch 220 respectively. After the user reads the text message (corresponding to the unique identifier value 1) on the smart watch 220, a command will be sent to the mobile phone 210 to prompt that the text message has been read, and the corresponding record of notification message 1 can be deleted to release the mapping relationship between notification message 1 and identifier value 1. Alternatively, after the user reads the text message on the mobile phone 210, the mobile phone 210 will issue a warning message to prompt that the message represented by identifier value 1 has been read, and the identifier value 1 will be recycled. If the identifier value 1 is recycled to the standby identifier pool, it means that the identifier value 1 can be reused.
[0068] Subsequently, if the mobile phone 210 receives a new QQ message, according to the predetermined scheduling rule, the repeatable identifier value 1 will be used to send a notification message corresponding to the QQ message to the watch 220, that is, a mapping relationship is established between the repeatable identifier value 1 and the notification message corresponding to the QQ message.
[0069] Alternatively, in some embodiments, according to a predetermined scheduling rule, a notification message corresponding to the QQ message is sent to the watch 220 using the identifier value 4 (located after the identifier value 3). Since the notification message of this QQ message does not use the repeatable identifier value 1, the subsequent new message may also use the repeatable identifier value 1.
[0070] In the embodiment of the present application, after the user has read the first message corresponding to the first notification message, the mapping relationship between the read first notification message and the first identifier is released. Therefore, it is not necessary to cache the first notification message record that has been viewed, and the identifier can be reused. Therefore, the embodiment of the present application helps to use a smaller number of identifiers to meet the needs of identifying notification messages, helps to reduce memory usage, and simplifies memory management.
[0071] Figure 3 yes Figure 1 A flowchart of a possible implementation of the method. The first communication device 31 and the second communication device 32 in the wireless communication system may be linked by Bluetooth. Figure 3 As shown, the method for managing notification messages may mainly include steps S310 to S340, and these steps are described in detail below.
[0072] After receiving the first message associated with the communication service, the first communication device 31 generates a first notification message corresponding to the first message. The first notification message includes a first identifier, which is identification information associated with the first notification message, and the first identifier is an identifier in the pool of standby identifiers. That is, the first identifier and the first notification message are associated in a one-to-one mapping relationship.
[0073] In step S310 , the first communication device 31 sends a first notification message to the second communication device 32 , prompting a user on the second communication device 32 that the first message has been received.
[0074] In step S320, the second communication device 32 sends a first request message to the first communication device 31. The first request message is used to obtain the content of the first message, and the first request message includes a first identifier.
[0075] In step S330 , in response to receiving the first request message, the first communication device 31 sends a first message to the second communication device 32 .
[0076] In step S340, the second communication device 32 sends a first response message to the first communication device 31. The user has read the first message on the second communication device 32, and the first response message is sent to indicate that the user has read the first message on the second communication device.
[0077] After receiving the first response message, the first communication device 31 may confirm that the first message is in a read state, and then release the association between the first identifier and the first notification message, and put the first identifier into a standby identifier pool for reuse.
[0078] In an embodiment of the present application, after the user has read the first message corresponding to the first notification message, the mapping relationship between the read first notification message and the first identifier is released. Therefore, there is no need to cache the first notification message record that has been viewed, and the identifier can be reused. When the user uses a repeatable identifier value to view, the notification message is always an unread notification message that exists in the notification list, and these unread notification messages correspond to different identifiers. Therefore, an embodiment of the present application helps to use a smaller number of identifiers to meet the needs of identifying notification messages, helps to reduce memory usage, and simplifies memory management.
[0079] Figure 4 It is a flowchart of another method for managing notification messages provided in an embodiment of the present application. Figure 4 The method for managing notification messages is applied to a second communication device, which may be, for example, any of the wearable devices described above, such as a smart watch or smart glasses. Figure 4 As shown, the method for managing notification messages may mainly include steps S410 to S420, and these steps are described in detail below.
[0080] In step S410, a first notification message sent by a first communication device is received.
[0081] The first notification message is notification information of a first message received by the first communication device, the first message being a signaling message associated with a communication service. The first notification message includes a first identifier, the first identifier being identification information associated with the first notification message, and the first identifier being an identifier in a pool of standby identifiers. The second communication device establishes a wireless communication link with the first communication device.
[0082] In step S420, a first message sent by a first communication device is received.
[0083] After the first message has been read, the association between the first identifier and the first notification message is released, and the first identifier is placed in a pool of in-use identifiers.
[0084] Optionally, the method of the embodiment of the present application further includes: receiving a second notification message, the second notification message being notification information of a second message received by the first communication device, the second message being a signaling message associated with a communication service. The second notification message includes a second identifier, the second identifier being identification information associated with the second notification message, and the second identifier being an identifier configured for the second notification message from a pool of inactive identifiers according to a predetermined scheduling rule, the predetermined scheduling rule being a rule of giving priority to the use of a released first identifier.
[0085] Optionally, the method of the embodiment of the present application includes: if the user views the first message on the second communication device, sending a first response message to the first communication device, the first response message being used to instruct the user to view the first message on the second communication device.
[0086] Optionally, before receiving the first message sent by the first communication device, the method of the embodiment of the present application includes: sending a first request message to the first communication device, the first request message is used to obtain content of the first message, and the first request message includes a first identifier.
[0087] Optionally, the wireless communication may be short-range wireless communication, such as Bluetooth communication.
[0088] Optionally, the first message may be any one of the following messages: a missed call, a text message, or a message from a predetermined application.
[0089] In the embodiment of the present application, after the user has read the first message corresponding to the first notification message, the mapping relationship between the read first notification message and the first identifier is released. Therefore, it is not necessary to cache the first notification message record that has been viewed, and the identifier can be reused. Therefore, the embodiment of the present application helps to reduce memory usage and simplify memory management.
[0090] Combination of the above Figures 1 to 4 The method embodiment of the present application is described in detail. Figure 5 and Figure 8 The device embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the parts not described in detail can refer to the previous method embodiment.
[0091] Figure 5 It is a schematic diagram of a device for managing notification messages provided in an embodiment of the present application. Figure 5 The device is applied to a first communication device, and the first communication device may be any terminal device mentioned above. Figure 5 As shown, the device 500 for managing notification messages includes: a receiving module 510 , a generating module 520 , a sending module 530 , a confirming module 540 and a recycling module 550 .
[0092] The receiving module 510 is used to receive a first message, where the first message is a signaling message associated with a communication service.
[0093] The generating module 520 is used to generate a first notification message. The first notification message is notification information of the first message, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in the pool of standby identifiers.
[0094] The sending module 530 is used to send a first notification message to the second communication device. The second communication device establishes a wireless communication link with the first communication device.
[0095] The confirmation module 540 is used to confirm that the first message is in a read state.
[0096] The recycling module 550 is used to release the association between the first identifier and the first notification message, and put the first identifier into a pool of in-use identifiers.
[0097] The generating module 520 is further configured to generate a second notification message. The second notification message is notification information of the received second message, the second message is a signaling message associated with the communication service, and the apparatus 500 may include a configuration module. Optionally, the configuration module is configured to configure the second identifier in the standby identifier pool as identification information associated with the second notification message according to a predetermined scheduling rule, the second notification message includes the second identifier, and the predetermined scheduling rule is a rule of preferentially using the released first identifier.
[0098] Optionally, the confirmation module 540 is used for the user to check the first message on the first communication device and confirm that the first message is in a read state; or, the receiving module 510 is also used to receive a first reply message sent by the second communication device, and the confirmation module 540 is used to confirm that the first message is in a read state, and the first reply message is used to instruct the user to check the first message on the second communication device.
[0099] Optionally, the receiving module 510 is further used to receive a first request message sent by the second communication device, where the first request message is used to obtain content of the first message, and the first request message includes a first identifier.
[0100] The notification message is displayed in the notification bar of the first communication device. The apparatus 500 further includes a deletion module. The deletion module is used to delete the first notification information if the user has read the first message on the first communication device; and the sending module 530 is also used to send a first termination message including the first identifier to the second communication device, and the first termination message is used to prompt that the first notification message has been deleted.
[0101] Optionally, the wireless communication may be short-range wireless communication, such as Bluetooth communication.
[0102] Optionally, the first message may be any one of the following messages: a missed call, a text message, or a message from a predetermined application.
[0103] Figure 6 It is a schematic diagram of another device for managing notification messages provided in an embodiment of the present application. Figure 6 The device is applied to a second communication device, and the second communication device may be any of the wearable devices mentioned above. Figure 6 As shown, the device 600 for managing notification messages includes: a receiving module 610.
[0104] The receiving module 610 is used to receive a first notification message sent by a first communication device. The first notification message is notification information of a first message received by the first communication device, and the first message is a signaling message associated with a communication service. The first notification message includes a first identifier, and the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a pool of standby identifiers.
[0105] The receiving module 610 is further configured to receive a first message sent by a first communication device.
[0106] After the first message has been read, the first identifier corresponding to the first message is put into a pool of standby identifiers, and a wireless communication link is established between the second device and the first device.
[0107] The receiving module 610 is also used to receive a second notification message. The second notification message is notification information of a second message received by the first communication device, and the second message is a signaling message associated with a communication service. The second notification message includes a second identifier, and the second identifier is identification information associated with the second notification message in a standby identifier pool determined according to a predetermined scheduling rule, and the predetermined scheduling rule is a rule of giving priority to using the released first identifier.
[0108] Optionally, the apparatus 600 further includes a sending module 620. The sending module 620 is configured to send a first response message to the first communication device if the user views the first message on the second communication device. The first response message is used to instruct the user to view the first message on the second communication device.
[0109] Optionally, the sending module 620 is further configured to send a first request message to the first communication device. The first request message is used to obtain the content of the first message, and the first request message includes a first identifier.
[0110] Optionally, the wireless communication may be short-range wireless communication, and the short-range wireless communication may be Bluetooth communication.
[0111] Optionally, the first message is any one of the following messages: a missed call, a text message, or a message from other services or applications.
[0112] Figure 7 Schematic diagram of a component unit / partial component unit of a communication device provided in an embodiment of the present application. The communication device 700 can be used to implement the method for managing notification messages described in the above method embodiment. The communication device 700 is a first communication device and can be any terminal device mentioned above. Figure 7 As shown, the communication device 700 includes a memory 710 , a transceiver 720 , and a processor 730 .
[0113] The memory 710 is used to store codes.
[0114] The transceiver 720 is used to send and receive wireless communication signals, such as Bluetooth communication signals;
[0115] The processor 730 is connected to the transceiver 720 and is configured to execute the code stored in the memory 710 to perform any of the methods for managing notification messages described above.
[0116] The processor is the computing and control core of the electronic device and is the final execution unit for information processing and program operation. The processor 730 can be a general-purpose processor, including a central processing unit, a microcontroller unit, a network processor, or other conventional processors. It can also be a special-purpose processor, including a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0117] Figure 8 800 is a schematic diagram of a component unit / partial component unit of another communication device provided in an embodiment of the present application. The communication device 800 can be used to implement the method for managing notification messages described in the above method embodiment. The communication device 800 is a second communication device and can be any of the wearable devices mentioned above. Figure 8 As shown, the communication device 800 includes a memory 810 , a transceiver 820 , and a processor 830 .
[0118] The memory 810 is used to store codes.
[0119] The transceiver 820 is used to send and receive wireless communication signals;
[0120] The processor 830 is connected to the transceiver 820, and is used to execute the code stored in the memory 810 to perform any of the methods for managing notification messages as described above.
[0121] An embodiment of the present application also provides a chip, including a processor, wherein the processor is configured to execute any of the methods described above.
[0122] An embodiment of the present application also provides a non-volatile computer-readable storage medium on which a computer program is stored, and the computer program is used to execute any of the methods described above.
[0123] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can 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 a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.
[0125] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0128] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for managing notification messages, characterized in that: Applied to a first communication device, the method includes: Generate a first notification message, where the first notification message is notification information of a received first message, the first message is a signaling message associated with a communication service, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a pool of standby identifiers; Sending the first notification message to the second communication device; confirming that the first message is in a read state; releasing the association between the first identifier and the first notification message, and placing the first identifier into the standby identifier pool; Wherein, the second communication device establishes a wireless communication link with the first communication device.
2. The method according to claim 1, characterized in that The method further comprises: Generate a second notification message, wherein the second notification message is notification information of a received second message, the second message is a signaling message associated with a communication service, the second notification message includes a second identifier, the second identifier is identification information associated with the second notification message, and the second identifier is an identifier configured for the second notification message from the standby identifier pool according to a predetermined scheduling rule, and the predetermined scheduling rule is a rule of giving priority to the released first identifier.
3. The method according to claim 1, characterized in that The confirming that the first message is in a read state includes: The user checks the first message on the first communication device and confirms that the first message is in a read state; or, A first response message sent by the second communication device is received, where the first response message is used to indicate that the user has viewed the first message on the second communication device.
4. The method according to claim 3, characterized in that Before sending the first message to the second communication device, the method includes: A first request message sent by the second communication device is received, where the first request message is used to obtain content of the first message, and the first request message includes the first identifier.
5. The method according to claim 3, characterized in that: The first notification message is displayed in a notification bar of the first communication device, and the user checks the first message on the first communication device, including: deleting the first notification information; and, A first termination message including the first identifier is sent to the second communication device, where the first termination message is used to prompt that the first notification message has been deleted.
6. The method according to any one of claims 1 to 5, characterized in that The wireless communication is Bluetooth communication.
7. The method according to any one of claims 1 to 5, characterized in that The first message is any one of the following messages: a missed call, a text message, and a message from a predetermined application.
8. A method for managing notification messages, characterized in that: Applied to a second communication device, the method includes: receiving a first notification message sent by a first communication device, where the first notification message is notification information of a first message received by the first communication device, the first message is a signaling message associated with a communication service, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a pool of standby identifiers; receiving the first message sent by the first communication device; After the first message is read, the association between the first identifier and the first notification message is released, and the first identifier is placed in the standby identifier pool, and a wireless communication link is established between the second communication device and the first communication device.
9. The method according to claim 8, characterized in that The method further comprises: Receive a second notification message, where the second notification message is notification information of a second message received by the first communication device, where the second message is a signaling message associated with a communication service, where the second notification message includes a second identifier, where the second identifier is identification information associated with the second notification message, and where the second identifier is an identifier configured for the second notification message from the standby identifier pool according to a predetermined scheduling rule, where the predetermined scheduling rule is a rule of giving priority to using the released first identifier.
10. The method according to claim 8, characterized in that The method comprises: If the user reads the first message on the second communication device, a first response message is sent to the first communication device, where the first response message is used to instruct the user to read the first message on the second communication device.
11. The method according to claim 8, characterized in that Before receiving the first message sent by the first communication device, the method includes: A first request message is sent to the first communication device, where the first request message is used to obtain content of the first message, and the first request message includes the first identifier.
12. The method according to any one of claims 8 to 11, characterized in that The wireless communication is Bluetooth communication.
13. The method according to any one of claims 8 to 11, characterized in that: The first message is any one of the following messages: a missed call, a text message, and a message from a predetermined application.
14. A device for managing notification messages, characterized in that: Applied to a first communication device, the apparatus includes: A receiving module, configured to receive a first message, where the first message is a signaling message associated with a communication service; a generating module, configured to generate a first notification message, wherein the first notification message is notification information of the first message, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a pool of standby identifiers; A sending module, configured to send the first notification message to a second communication device; A confirmation module, used for confirming that the first message is in a read state; a recycling module, configured to release the association between the first identifier and the first notification message, and put the first identifier into the standby identifier pool; Wherein, the second communication device establishes a wireless communication link with the first communication device.
15. The device according to claim 14, characterized in that The generating module is further used to generate a second notification message, where the second notification message is notification information of the received second message, where the second message is a signaling message associated with the communication service, and the device includes: A configuration module is used to configure the second identifier in the standby identifier pool as identification information associated with the second notification message according to a predetermined scheduling rule, wherein the second notification message includes the second identifier, and the predetermined scheduling rule is a rule of giving priority to using the released first identifier.
16. The device according to claim 14, characterized in that The confirmation module is used for the user to check the first message on the first communication device to confirm that the first message is in a read state; or, The receiving module is further used to receive a first response message sent by the second communication device, the confirming module is used to confirm that the first message is in a read state, and the first response message is used to instruct the user to check the first message on the second communication device.
17. The device according to claim 16, characterized in that The receiving module is further used to receive a first request message sent by the second communication device, where the first request message is used to obtain content of the first message, and the first request message includes the first identifier.
18. The device according to claim 14, characterized in that The first notification message is displayed in a notification bar of the first communication device, and the apparatus further includes: a deleting module, configured to delete the first notification information if the user has read the first message on the first communication device; and The sending module is further used to send a first termination message including the first identifier to the second communication device, where the first termination message is used to prompt that the first notification message has been deleted.
19. A device for managing notification messages, characterized in that: Applied to a second communication device, the apparatus comprises: a receiving module, configured to receive a first notification message sent by a first communication device, where the first notification message is notification information of a first message received by the first communication device, the first message is a signaling message associated with a communication service, the first notification message includes a first identifier, the first identifier is identification information associated with the first notification message, and the first identifier is an identifier in a pool of standby identifiers; The receiving module is further configured to receive the first message sent by the first communication device; After the first message has been read, the first identifier corresponding to the first message is put into the standby identifier pool, and the second communication device establishes a wireless communication link with the first communication device.
20. A chip, characterized in that: Comprising a processor configured to perform the method of any one of claims 1-7 or claims 8-13.
21. A communication device, characterized in that: include: A memory for storing codes; A transceiver for sending and receiving wireless communication signals; A processor, connected to the transceiver, configured to execute the code stored in the memory to perform the method according to any one of claims 1 to 7.
22. A communication device, characterized in that: include: A memory for storing codes; A transceiver for sending and receiving wireless communication signals; A processor, connected to the transceiver, configured to execute the code stored in the memory to perform the method as claimed in any one of claims 8 to 13.
23. A non-volatile computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the computer program is used to implement the method according to any one of claims 1 to 7 or claims 8 to 13.