IP Library Granted Patent US 12712857
Granted Patent B2
US 12712857 · App. 18/839,894 · Granted Aug 18, 2026

Message processing method and apparatus, and electronic device

Inventor: Ping Li (Shenzhen, CN)
Assignee: Honor Device Co., Ltd.
H04L63/0428H04L51/224H04L67/55
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12712857
App. No.
18/839,894
Granted
Aug 18, 2026
Kind
B2
Abstract

Embodiments of this application provide a message processing method and apparatus, and an electronic device. The method is applied to a terminal device, and the method includes: receiving a first message; and pulling up a first application when the first message is a reassembly message, so that the first application performs message reassembly on the first message, including: reading, by the first application, message reassembly configuration information, and performing a message reassembly operation on the first message based on the message reassembly configuration information, to generate a second message. According to the method in the embodiments of this application, after a pushed message is received, the first application is pulled up to reassemble the message, so as to improve user experience of message display.

Claims (56)

1 . A message processing method, the method comprising:

receiving, by push agent software that is executed by a processor included in a terminal device, a first message from a server device;

based on the push agent software determining that the first message is a reassembly message, starting, by the push agent software, a first application; and

invoking, by the push agent software, the first application to perform message reassembly on the first message, wherein performing the message reassembly comprises:

reading, by the first application, message reassembly configuration information, wherein the message reassembly configuration information is information configured by a second application for the first application, wherein an operation capable of being implemented by the second application comprises at least a message reassembly operation, and the message reassembly configuration information is used to support the first application in implementing the message reassembly operation; and

performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information, to generate a second message.

2 . The method according to claim 1 , wherein the first application is a trusted application.

3 . The method according to claim 2 , wherein the message reassembly configuration information is stored in a trusted credential of the first application.

4 . The method according to claim 1 ,

wherein the message reassembly configuration information comprises message reassembly code and an initialization parameter; and

wherein the performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information, to generate the second message comprises:

executing, by the first application, the message reassembly code for the first message based on the initialization parameter, to generate the second message.

5 . The method according to claim 1 , wherein before the receiving the first message by the push agent software, the second application invokes the first application, to set the message reassembly configuration information.

6 . The method according to claim 1 , wherein before the receiving the first message by the push agent software, the method further comprises:

obtaining, from a cloud, a range of resources and interfaces that the first application is allowed to access;

wherein the performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information, to generate the second message comprises:

performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information under a limitation of the range of resources and interfaces that the first application is allowed to access, to generate the second message.

7 . The method according to claim 6 , wherein the obtaining, from the cloud, the range of resources and interfaces that the first application is allowed to access comprises:

obtaining, by the push agent software from the cloud, the range of resources and interfaces that the first application is allowed to access.

8 . The method according to claim 1 , wherein the method further comprises:

outputting the second message for display.

9 . The method according to claim 8 , wherein the outputting the second message for display comprises:

outputting, by the first application, the second message to the push agent software; and

outputting, by the push agent software, the second message to a notification manager software for message display.

10 . The method according to claim 8 , wherein the method further comprises:

based on an exception occurring when the first application performs the message reassembly operation, preventing display of the second message.

11 . The method according to claim 1 , wherein before the receiving the first message by the push agent software, the method further comprises:

sending, by the second application, an application to the push agent software for a push token;

after receiving the application for the push token from the second application, setting, by the push agent software, to allow the second application to invoke the first application, and returning, by the push agent software, the push token to the second application;

after the second application obtains the push token, invoking, by the second application, the first application, to set the message reassembly configuration information for the first application; and

storing, by the first application, the message reassembly configuration information.

12 . The method according to claim 1 ,

wherein the first message is end-to-end encrypted information; and

wherein in a process in which the first application performs the message reassembly operation on the first message, the first application invokes an encryption/decryption interface to decrypt the first message.

13 . An electronic device, comprising:

a memory configured to store computer instructions; and

a processor configured to execute the computer instructions to cause the electronic device to perform operations comprising:

receiving, by push agent software that is executed by the processor, a first message from a server device;

based on the push agent software determining that the first message is a reassembly message, starting, by the push agent software, a first application; and

invoking, by the push agent software, the first application to perform message reassembly on the first message, wherein performing the message reassembly comprises:

reading, by the first application, message reassembly configuration information, wherein the message reassembly configuration information is information configured by a second application for the first application, wherein an operation capable of being implemented by the second application comprises at least a message reassembly operation, and the message reassembly configuration information is used to support the first application in implementing the message reassembly operation; and

performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information, to generate a second message.

14 . The electronic device according to claim 13 , wherein the first application is a trusted application.

15 . The electronic device according to claim 14 , wherein the message reassembly configuration information is stored in a trusted credential of the first application.

16 . The electronic device according to claim 13 , wherein the message reassembly configuration information comprises message reassembly code and an initialization parameter, and the performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information, to generate the second message comprises:

executing, by the first application, the message reassembly code for the first message based on the initialization parameter, to generate the second message.

17 . The electronic device according to claim 13 , wherein the second application invokes the first application, to set the message reassembly configuration information.

18 . The electronic device according to claim 13 , wherein when the processor executes the computer instructions, the electronic device further performs operations comprising:

obtaining, from a cloud, a range of resources and interfaces that the first application is allowed to access; and

performing the message reassembly operation on the first message based on the message reassembly configuration information under a limitation of the range of resources and interfaces that the first application is allowed to access, to generate the second message.

19 . A non-transitory computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor included in an electronic device, the electronic device performs operations comprising:

receiving, by push agent software that is executed by the processor, a first message from a server device;

based on the push agent software determining that the first message is a reassembly message, starting, by the push agent software, a first application; and

invoking, by the push agent software, the first application to perform message reassembly on the first message, wherein performing the message reassembly comprises:

reading, by the first application, message reassembly configuration information, wherein the message reassembly configuration information is information configured by a second application for the first application, wherein an operation capable of being implemented by the second application comprises at least a message reassembly operation, and the message reassembly configuration information is used to support the first application in implementing the message reassembly operation; and

performing, by the first application, the message reassembly operation on the first message based on the message reassembly configuration information, to generate a second message.