Summary of the invention
It is an object of the present invention to provide a kind of display methods of the unread Messages of third-party application and equipment.
According to an aspect of the invention, there is provided a kind of display methods of the unread Messages of third-party application, the partyMethod includes:
The chat app of third-party application receives message, generates notice based on received message, wherein the notice includes:Unread message content and unread Messages;
The notice is obtained by system Rom source code, unread Messages are intercepted from the notice, and do not read to disappear by describedBreath number is shown on the desktop footmark of the system.
Further, in the display methods of the unread Messages of above-mentioned third-party application, by the unread Messages in instituteIt states after being shown on the desktop footmark of system, further includes:
The operation that is purged is notified to described when receiving user in the chat app of third-party application, and is not receivedFor user to the unread message content when checking operation, the chat app of third-party application deletes the notice;
It keeps the unread Messages constant, the unread Messages is shown on the desktop footmark of the systemShow.
Further, in the display methods of the unread Messages of above-mentioned third-party application, by the unread Messages in instituteIt states after being shown on the desktop footmark of system, further includes:
The operation that is purged is notified to described when receiving user in the chat app of third-party application, and receives useTo the unread message content when checking operation, the chat app of third-party application deletes the notice at family;
The unread Messages are updated to zero, updated unread Messages are enterprising in the desktop footmark of the systemRow display.
Further, in the display methods of the unread Messages of above-mentioned third-party application, by the unread Messages in instituteIt states after being shown on the desktop footmark of system, further includes:
When the chat app of third-party application receives new message, new notice is generated based on received new message,In, the new notice includes: new unread message content and updated unread Messages;
Updated unread Messages are obtained, updated unread Messages are carried out on the desktop footmark of the systemDisplay.
According to another aspect of the present invention, a kind of display equipment of the unread Messages of third-party application is additionally provided, it shouldEquipment includes:
First device receives message for the chat app for third-party application, generates notice based on received message,In, the notice includes: unread message content and unread Messages;
Second device, for intercepting unread Messages from the notice by the system Rom source code acquisition notice,And the unread Messages are shown on the desktop footmark of the system.
Further, in the display equipment of the unread Messages of above-mentioned third-party application,
The first device is also used to clear to notice progress when receiving user in the chat app of third-party applicationThe operation removed, and user is not received to the unread message content when checking operation, for the chat of the third-party applicationApp deletes the notice;
The second device is also used to keep the unread Messages constant, by the unread Messages in the systemDesktop footmark on shown.
Further, in the display equipment of the unread Messages of above-mentioned third-party application,
The first device is also used to clear to notice progress when receiving user in the chat app of third-party applicationThe operation removed, and user is received to the unread message content when checking operation, for the chat app of the third-party applicationDelete the notice;
The second device is also used to the unread Messages being updated to zero, by updated unread Messages in instituteIt states and is shown on the desktop footmark of system.
Further, in the display equipment of the unread Messages of above-mentioned third-party application,
The first device is also used to the chat app when third-party application and receives new message, based on it is received newlyMessage generates new notice, wherein the new notice includes: new unread message content and updated unread Messages;
The second device is also used to obtain updated unread Messages, by updated unread Messages describedIt is shown on the desktop footmark of system.
Another side according to the present invention also provides a kind of equipment based on calculating, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executedManage device:
The chat app of third-party application receives message, generates notice based on received message, wherein the notice includes:Unread message content and unread Messages;
The notice is obtained by system Rom source code, unread Messages are intercepted from the notice, and do not read to disappear by describedBreath number is shown on the desktop footmark of the system.
Another side according to the present invention also provides a kind of computer readable storage medium, and being stored thereon with computer can holdRow instruction, wherein the computer executable instructions make processor when being executed by processor:
The chat app of third-party application receives message, generates notice based on received message, wherein the notice includes:Unread message content and unread Messages;
The notice is obtained by system Rom source code, unread Messages are intercepted from the notice, and do not read to disappear by describedBreath number is shown on the desktop footmark of the system.
Compared with prior art, the present invention receives message by the chat app of third-party application, raw based on received messageAt notice, wherein the notice includes: unread message content and unread Messages;It is obtained by system Rom source code described logicalKnow, unread Messages is intercepted from the notice, and the unread Messages are shown on the desktop footmark of the systemShow.When third-party application has unread message, third-party application do not have source code, without provide interface, system side without andIn the case that third party cooperates, the present invention also may be implemented accurately to read unread Messages, be shown on desktop footmark.
Specific embodiment
Present invention is further described in detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or moreProcessor (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/orThe forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is showing for computer-readable mediumExample.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any methodOr technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), movesState random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasableProgrammable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices orAny other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computerReadable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
The present invention provides a kind of display methods of the unread Messages of third-party application, comprising:
The chat app of step S1, third-party application receive message, generate notice based on received message, wherein described logicalKnow to include: unread message content and unread Messages;
Step S2 obtains the notice by system Rom source code, intercepts unread Messages from the notice, and by instituteUnread Messages are stated to be shown on the desktop footmark of the system.
Here, there is no source code, without providing interface, being in third-party application when third-party application has unread messageSystem side is that in the case where cooperating with third party, the present invention also not may be implemented accurately to read unread Messages, be shown in desktop angleIt puts on.
Specifically, when WhatsApp has unread message, notification bar has notice by taking WhatsApp as an example, have not in noticeThe number for reading message, the content of notice can be parsed, and then carry out the interception of character string, accurately to obtain and do not read to disappearThe number of breath.
In one embodiment of display methods of the unread Messages of third-party application of the invention, step S2 is not read describedAfter message count is shown on the desktop footmark of the system, further includes:
Step S31 notifies the operation that is purged to described when receiving user in the chat app of third-party application, andAnd user is not received to the unread message content when checking operation, the chat app of third-party application deletes the notice;
Step S32 keeps the unread Messages constant, by the unread Messages on the desktop footmark of the systemIt is shown.
Here, when notice is deleted, but when user does not check the unread message content, it will can not also read to disappearBreath number is accurately shown on the desktop footmark of the system, to remind user.
Specifically, system ROM source code can confirm different situations according to the reason of notice and flag, withFor whatsapp, such as:
User does not read message, manually sliding removing notice, i.e., notice is removed and message is not read, at this time reason=8,Flag=8 or 512, unread message is constant, shows that unread Messages are constant on desktop footmark.
In one embodiment of display methods of the unread Messages of third-party application of the invention, step S2 is not read describedAfter message count is shown on the desktop footmark of the system, further includes:
Step S41 is generated new based on received new message when the chat app of third-party application receives new messageNotice, wherein the new notice includes: new unread message content and updated unread Messages;
Step S42 obtains updated unread Messages, by updated unread Messages at the desktop angle of the systemIt puts on and is shown.
Here, the present invention can timely update unread message when the chat app of third-party application updates unread MessagesNumber, and be accurately shown on the desktop footmark of the system, to remind user.
In one embodiment of display methods of the unread Messages of third-party application of the invention, step S2 is not read describedAfter message count is shown on the desktop footmark of the system, further includes:
Step S51 notifies the operation that is purged to described when receiving user in the chat app of third-party application, andUser is received to the unread message content when checking operation, the chat app of third-party application deletes the notice;
The unread Messages are updated to zero by step S52, by updated unread Messages the system desktopIt is shown on footmark.
Here, when notice is deleted, and when user checks the unread message content, it can also be by unread messageNumber is accurately shown on the desktop footmark of the system, to remind user.
In one embodiment of display methods of the unread Messages of third-party application of the invention, step S52 is not read describedMessage count is updated to zero, after updated unread Messages are shown on the desktop footmark of the system, further includes:
Step S53 is generated new based on received new message when the chat app of third-party application receives new messageNotice, wherein the new notice includes: new unread message content and updated unread Messages;
Step S54, obtains that updated unread Messages are constant, by updated unread Messages the system tableFace angle, which is put on, to be shown.
Here, the present invention can timely update unread message when the chat app of third-party application updates unread MessagesNumber, and be accurately shown on the desktop footmark of the system, to remind user.
Specifically, system ROM source code can confirm different situations according to the reason of notice and flag, withFor whatsapp, such as:
User has read message and removes notice, i.e., notice is removed and message has been read, and sends out reason at this time and is not equal to 8,Flag is not 8 and 512, and sending out reason at this time not equal to 8, flag is not 8 and 512, obtains new unread message at this time, is shown inOn desktop icons.
According to another aspect of the present invention, a kind of display equipment of the unread Messages of third-party application is additionally provided, it shouldEquipment includes:
First device receives message for the chat app for third-party application, generates notice based on received message,In, the notice includes: unread message content and unread Messages;
Second device, for intercepting unread Messages from the notice by the system Rom source code acquisition notice,And the unread Messages are shown on the desktop footmark of the system.
Here, there is no source code, without providing interface, being in third-party application when third-party application has unread messageSystem side is that in the case where cooperating with third party, the present invention also not may be implemented accurately to read unread Messages, be shown in desktop angleIt puts on.
Specifically, when WhatsApp has unread message, notification bar has notice by taking WhatsApp as an example, have not in noticeThe number for reading message, the content of notice can be parsed, and then carry out the interception of character string, accurately to obtain and do not read to disappearThe number of breath.
Further, in the display equipment of the unread Messages of above-mentioned third-party application,
The first device is also used to clear to notice progress when receiving user in the chat app of third-party applicationThe operation removed, and user is not received to the unread message content when checking operation, for the chat of the third-party applicationApp deletes the notice;
The second device is also used to keep the unread Messages constant, by the unread Messages in the systemDesktop footmark on shown.
Here, when notice is deleted, but when user does not check the unread message content, it will can not also read to disappearBreath number is accurately shown on the desktop footmark of the system, to remind user.
Specifically, system ROM source code can confirm different situations according to the reason of notice and flag, withFor whatsapp, such as:
User does not read message, manually sliding removing notice, i.e., notice is removed and message is not read, at this time reason=8,Flag=8 or 512, unread message is constant, shows that unread Messages are constant on desktop footmark.
Further, in the display equipment of the unread Messages of above-mentioned third-party application,
The first device is also used to clear to notice progress when receiving user in the chat app of third-party applicationThe operation removed, and user is received to the unread message content when checking operation, for the chat app of the third-party applicationDelete the notice;
The second device is also used to the unread Messages being updated to zero, by updated unread Messages in instituteIt states and is shown on the desktop footmark of system.
Here, when notice is deleted, and when user checks the unread message content, it can also be by unread messageNumber is accurately shown on the desktop footmark of the system, to remind user.
Further, in the display equipment of the unread Messages of above-mentioned third-party application,
The first device is also used to the chat app when third-party application and receives new message, based on it is received newlyMessage generates new notice, wherein the new notice includes: new unread message content and updated unread Messages;
The second device is also used to obtain updated unread Messages, by updated unread Messages describedIt is shown on the desktop footmark of system.
Here, the present invention can timely update unread message when the chat app of third-party application updates unread MessagesNumber, and be accurately shown on the desktop footmark of the system, to remind user.
Specifically, system ROM source code can confirm different situations according to the reason of notice and flag, withFor whatsapp, such as:
User has read message and removes notice, i.e., notice is removed and message has been read, and sends out reason at this time and is not equal to 8,Flag is not 8 and 512, and sending out reason at this time not equal to 8, flag is not 8 and 512, obtains new unread message at this time, is shown inOn desktop icons.
Another side according to the present invention also provides a kind of equipment based on calculating, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executedManage device:
The chat app of third-party application receives message, generates notice based on received message, wherein the notice includes:Unread message content and unread Messages;
The notice is obtained by system Rom source code, unread Messages are intercepted from the notice, and do not read to disappear by describedBreath number is shown on the desktop footmark of the system.
Another side according to the present invention also provides a kind of computer readable storage medium, and being stored thereon with computer can holdRow instruction, wherein the computer executable instructions make processor when being executed by processor:
The chat app of third-party application receives message, generates notice based on received message, wherein the notice includes:Unread message content and unread Messages;
The notice is obtained by system Rom source code, unread Messages are intercepted from the notice, and do not read to disappear by describedBreath number is shown on the desktop footmark of the system.
Compared with prior art, the present invention receives message by the chat app of third-party application, raw based on received messageAt notice, wherein the notice includes: unread message content and unread Messages;It is obtained by system Rom source code described logicalKnow, unread Messages is intercepted from the notice, and the unread Messages are shown on the desktop footmark of the systemShow.When third-party application has unread message, third-party application do not have source code, without provide interface, system side without andIn the case that third party cooperates, the present invention also may be implemented accurately to read unread Messages, be shown on desktop footmark.
Obviously, those skilled in the art can carry out various modification and variations without departing from the essence of the application to the applicationMind and range.In this way, if these modifications and variations of the application belong to the range of the claim of this application and its equivalent technologiesWithin, then the application is also intended to include these modifications and variations.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adoptWith specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodimentIn, software program of the invention can be executed to implement the above steps or functions by processor.Similarly, of the inventionSoftware program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory,Magnetic or optical driver or floppy disc and similar devices.In addition, some of the steps or functions of the present invention may be implemented in hardware, exampleSuch as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the invention can be applied to computer program product, such as computer program instructions, when its quiltWhen computer executes, by the operation of the computer, it can call or provide according to the method for the present invention and/or technical solution.And the program instruction of method of the invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass throughBroadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operationIn the working storage of computer equipment.Here, according to one embodiment of present invention including a device, which includes usingMemory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers toWhen enabling by processor execution, method and/or skill of the device operation based on aforementioned multiple embodiments according to the present invention are triggeredArt scheme.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er QieIn the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matterFrom the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended powerBenefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claimsVariation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.ThisOutside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multipleUnit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to tableShow title, and does not indicate any particular order.