A method and terminal for displaying offline messages
An offline message and terminal technology, applied in the field of offline messages, can solve the problems of long time for obtaining and counting offline messages, slow loading of client display interface, etc., to achieve fast display, improve user experience, and improve efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] Please refer to figure 1 , a method for displaying offline messages, including steps:
[0067] S1. Adding an offline message quantity record table, the offline message quantity record table including the offline message quantity and the latest offline message record information;
[0068] Wherein, the offline message quantity recording table also includes user ID, application ID and type of offline message;
[0069] The information of the latest offline message record in the offline message quantity record table includes the identifier of the latest offline message record;
[0070] Specifically, the field format of the offline message quantity record table is:
[0071] User_id: User ID
[0072] app_id: Application ID
[0073] msg_type: offline message type
[0074] count: the number of offline messages
[0075] last_msg_id: the message ID of the latest offline message
[0076] The user ID and application ID can be used as a unique identifier for offline messages c...
Embodiment 2
[0094] The difference between this embodiment and Embodiment 1 is that step S3 of this embodiment is:
[0095] S3. Judging whether to receive the request for obtaining the specified type of offline message details, and if so, calling the interface for obtaining the specified type of offline message record table, obtaining and displaying the specified type of offline message details;
[0096] Specifically, display the type, generation time, and specific offline message content of the specified type of offline message;
[0097] If not, use an asynchronous thread to call the interface to obtain all offline message details in the background, or obtain all offline message details by sending an acquisition command in the case of a long connection, and obtain all offline messages according to the generation time of the offline message records Record, and perform local update according to all offline message records, offline messages saved locally can be directly viewed or used by use...
Embodiment 3
[0100] Please refer to figure 2 , a terminal 1 for displaying offline messages, comprising a memory 2, a processor 3 and a computer program stored on the memory 2 and operable on the processor 3, the processor 3 implements the computer program when executing the computer program Steps in Example 1.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

