Notification Message Cache for Duplicate Trigger Filtering
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing notification systems in terminals often trigger multiple responses to the same notification, wasting system resources and reducing user experience due to repeated clicks on notifications in the Notification Bar.
Innovation Solution
A method and apparatus that utilize a message cache to identify and ignore duplicate notification trigger messages by checking for the presence of an identifier in the cache, updating timestamps, and considering system conditions to determine whether to process a notification, thereby preventing multiple responses.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the notification system processes every notification trigger message, then all user interactions are responded to, but multiple responses to identical notifications waste system resources
Solution Approach 1:
The patent applies preliminary action by checking the message cache before processing the notification trigger message. The system pre-checks whether the push message identifier exists in the cache to determine if the notification has already been processed, preventing redundant responses before they occur. This early detection mechanism resolves the contradiction by filtering out duplicate notifications in advance while maintaining accurate response tracking for valid notifications.
2Reliability
If the system checks the message cache for every notification, then duplicate notifications are avoided, but the processing time increases
Solution Approach 1:
The patent uses copying by storing only the essential push message identifier in the message cache rather than duplicating entire notification objects or processing logic. This lightweight copy approach enables rapid lookup to prevent duplicate notifications while minimizing the time overhead associated with cache checking. The identifier serves as a compact representation that preserves uniqueness information without the burden of full notification data.
3Measurement precision
If the message cache stores all historical timestamps, then accurate duplicate detection is achieved, but the storage memory increases
Solution Approach 1:
The patent extracts only the essential element (push message identifier) needed for duplicate detection from the complete notification data structure. By storing merely the identifier in the message cache rather than full notification objects with all their attributes and timestamps, the system achieves sufficient duplicate detection accuracy while dramatically reducing the storage memory required in the cache.
Data Source
AI summary
The present application discloses a method and apparatus for processing a notification trigger message, which method and apparatus relate to the technical field of computers. One specific implementation of the method comprises: receiving a notification trigger message formed by triggering a notification, wherein the notification trigger message includes an identifier of a current push message corresponding to the notification; determining whether the identifier of the current push message exists in a message cache, and if the identifier of the current push message exists in a message cache, ignoring the notification trigger message, wherein the message cache is used for storing an identifier of a push message corresponding to a notification that has been responded to. The implementation can avoid multiple responses of a client to an identical notification.


