CN110737491B - Notification display method, device, equipment and computer readable storage medium - Google Patents
Notification display method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110737491B CN110737491B CN201810804228.4A CN201810804228A CN110737491B CN 110737491 B CN110737491 B CN 110737491B CN 201810804228 A CN201810804228 A CN 201810804228A CN 110737491 B CN110737491 B CN 110737491B
- Authority
- CN
- China
- Prior art keywords
- notification
- notification information
- rendering
- rendering result
- resource address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 239
- 238000009877 rendering Methods 0.000 claims abstract description 132
- 230000008569 process Effects 0.000 claims description 152
- 230000026676 system process Effects 0.000 claims description 34
- 230000005540 biological transmission Effects 0.000 claims 4
- 238000004891 communication Methods 0.000 description 28
- 238000010586 diagram Methods 0.000 description 23
- 238000012546 transfer Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present disclosure relates to a notification presentation method, apparatus, device, and computer-readable storage medium, the method comprising: receiving notification information, wherein the notification information comprises notification content and typesetting style; rendering and displaying the received notification information in a notification bar so as to display the notification content with the typesetting style in the notification bar.
Description
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a notification display method, a notification display device, notification display equipment and a computer readable storage medium.
Background
With the rapid development of services, some platforms typically issue corresponding notifications according to their service conditions.
Currently, the Android system (Android) supports two types of notifications, one is a notification of the default layout of the operating system and the other is a notification of the custom layout. The notification uses an operating system layout file or a layout file in an Application (APP) or a client Application, and the notification interface (or a typesetting style called notification) is fixed. When a business requirement changes, the existing notification interface cannot dynamically adapt to the change of the business requirement. If a new notification interface is to be supported, the layout file needs to be redefined to redefine the notification interface, and the changes can involve redevelopment, testing and release of the application program, so that expansion of the service is greatly delayed.
Disclosure of Invention
The present disclosure is directed to a new notification presentation method, apparatus, device, and computer-readable storage medium.
The purpose of the present disclosure is achieved by adopting the following technical solutions. The notification display method provided by the disclosure comprises the following steps: receiving notification information, wherein the notification information comprises notification content and typesetting style; rendering and displaying the received notification information in a notification bar so as to display the notification content with the typesetting style in the notification bar.
The object of the present disclosure can be further achieved by the following technical measures.
The notification display method, wherein the receiving notification information includes: the first process receives the notification information; the rendering and displaying of the received notification information in a notification bar comprises the following steps: and transmitting the notification information from the first process to a second process, rendering the notification information by the second process to obtain a first rendering result, and displaying the first rendering result in the notification bar.
The foregoing notification presentation method, wherein the transferring the notification information from the first process to the second process includes: transmitting a first resource address from the first process to the second process, wherein the first resource address is the resource address of the notification information; the second process rendering the notification information to obtain a first rendering result includes: and the second process renders the notification information according to the first resource address to obtain the first rendering result.
The notification display method, wherein the receiving notification information includes: the first process receives the notification information; the rendering and displaying of the received notification information in a notification bar comprises the following steps: the first process renders the notification information to obtain a second rendering result, the second rendering result is transmitted from the first process to a third process, and the third process loads the second rendering result to display the second rendering result in the notification bar.
The foregoing notification display method, wherein the transferring the second rendering result from the first process to the third process includes: transferring a second resource address from the first process to the third process, wherein the second resource address is a resource address of the second rendering result; the third process loading the second rendering result to display the second rendering result in the notification bar includes: and the third process loads the second rendering result according to the second resource address.
The notification display method, wherein the resource address comprises a uniform resource locator URL and/or a file path.
The notification display method, wherein the notification information is described in a WEB page form.
In the foregoing notification display method, the transferring the notification information from the first process to the second process or transferring the second rendering result from the first process to the third process is: the transfer is made between the first process and the second process, or between the first process and the third process, through a remote view.
The object of the present disclosure is also achieved by the following technical solutions. The notice display device according to the present disclosure includes: a receiving unit configured to receive notification information including notification content and a typesetting style; the rendering unit is used for rendering the received notification information to obtain a rendering result; the display unit is used for displaying the rendering result in a notification bar; to display the notification content having the typeset style in the notification bar.
The object of the present disclosure can be further achieved by the following technical measures.
The notification display device comprises a first process module, a first inter-process communication module and a second process module; the first process module comprises a receiving unit, and the receiving unit is used for receiving the notification information; the first inter-process communication module is used for: transmitting the notification information from the first process module to a second process module; the second process module comprises the rendering unit and the display unit, wherein the rendering unit is specifically used for rendering the notification information to obtain a first rendering result, and the display unit is specifically used for displaying the first rendering result in the notification bar.
The notification display device, wherein the first inter-process communication module is specifically configured to: transmitting a first resource address from the first process to the second process, wherein the first resource address is the resource address of the notification information; the rendering unit is specifically configured to: and rendering the notification information according to the first resource address to obtain the first rendering result.
The notification display device comprises a first process module, a second inter-process communication module and a third process module; the first process module comprises the receiving unit and the rendering unit, the receiving unit is used for receiving the notification information, and the rendering unit is specifically used for rendering the notification information to obtain a second rendering result; the second inter-process communication module is used for: transferring the second rendering result from the first process module to a third process module; the third process module comprises the display unit, and is used for loading the second rendering result to display the second rendering result in the notification bar.
The notification display device, wherein the second inter-process communication module is specifically configured to: transferring a second resource address from the first process to the third process, wherein the second resource address is a resource address of the second rendering result; the display unit is specifically used for: and loading the second rendering result according to the second resource address.
The notification display device, wherein the resource address comprises a uniform resource locator URL and/or a file path.
The notification display device is characterized in that the notification information is described in a WEB page form.
The notification display device, wherein the first inter-process communication module is specifically configured to: the notification information is communicated between the first process and the second process through a remote view.
The notification display device, wherein the second inter-process communication module is specifically configured to: and transmitting the second rendering result between the first process and the third process through a remote view.
The object of the present disclosure is also achieved by the following technical solutions. An apparatus according to the present disclosure includes: a memory for storing non-transitory computer readable instructions; and a processor configured to execute the computer readable instructions such that the processor, when executed, implements any of the notification presentation methods described above.
The object of the present disclosure is also achieved by the following technical solutions. A computer readable storage medium according to the present disclosure stores non-transitory computer readable instructions, which when executed by a computer, cause the computer to perform any one of the aforementioned notification presentation methods.
The foregoing description is only an overview of the disclosed technology, and may be implemented in accordance with the disclosure of the present disclosure, so that the above-mentioned and other objects, features and advantages of the present disclosure can be more clearly understood, and the following detailed description of the preferred embodiments is given with reference to the accompanying drawings.
Drawings
FIG. 1 is a flow diagram of a notification presentation method of one embodiment of the present disclosure.
Fig. 2A, 2B, and 2C are schematic diagrams of three notifications that are presented with the notification presentation method of one embodiment of the present disclosure in the event that three different notification information is received regarding a sports game situation, regarding an entertainment leaderboard, regarding a music application assistant.
FIG. 3 is a flow chart providing dynamic notification through interaction between an application and an operating system process according to one embodiment of the present disclosure.
Fig. 4 is a flow diagram of a notification presentation method of another embodiment of the present disclosure.
Fig. 5 is a flow diagram of a notification presentation method of a further embodiment of the present disclosure.
Fig. 6 is a block diagram of a notification presentation device according to one embodiment of the present disclosure.
Fig. 7 is a block diagram of a notification presentation device according to another embodiment of the present disclosure.
Fig. 8 is a block diagram of a notification presentation device according to yet another embodiment of the present disclosure.
Fig. 9 is a hardware block diagram of an apparatus of one embodiment of the present disclosure.
FIG. 10 is a schematic diagram of a computer-readable storage medium of one embodiment of the present disclosure.
Fig. 11 is a block diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
In order to further describe the technical means and effects adopted by the present disclosure to achieve the preset invention purpose, the following detailed description refers to the specific implementation, structure, characteristics and effects of the notification display method, device, apparatus and computer readable storage medium according to the present disclosure with reference to the accompanying drawings and preferred embodiments.
For ease of understanding the present application, the following terms are briefly described as referred to herein:
dynamic notification refers to determining notification content and typesetting style according to service requirements without re-issuing an application program.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a notification presentation method of the present disclosure. Referring to fig. 1, the notification display method of the disclosed example mainly includes the following steps:
step S11, receiving notification information, wherein the notification information comprises notification content and typesetting style.
It should be noted that, the received notification information is pushed by a service party (or referred to as a server). For example, notification information of a certain website AA in the browser is determined and sent by a third party service platform operating the website AA according to service requirements. The notification content and typesetting style of the notification information may be different for different business requirements, such as sports game conditions, entertainment leaderboards, music application assistants, etc.
Step S12, the received notification information is rendered and displayed in a notification bar, so that the notification content with the typesetting style is displayed in the notification bar.
Fig. 2A, 2B, and 2C are schematic diagrams of three notifications respectively displayed in a notification bar in the case of receiving three different notification information using the notification display method of the present disclosure. Wherein in the embodiment shown in FIG. 2A, the notification information received and presented is a sports game situation; in the embodiment shown in FIG. 2B, the notification information received and presented is an entertainment leaderboard; in the embodiment shown in fig. 2C, the notification information received and presented is a music application assistant. With the notification display method proposed by the present disclosure, when the received notification information is a notification information containing notification content and typesetting style regarding the sports game status, the notification as shown in fig. 2A will be displayed in the notification bar by rendering and displaying the notification information regarding the sports game status; when the received notification information is a notification information about an entertainment leaderboard, wherein the notification information comprises notification content and typesetting style, the notification shown in fig. 2B is displayed in a notification bar by rendering and displaying the notification information about the entertainment leaderboard; when the received notification information is a notification information about the music application assistant including the notification content and the layout style, the notification as shown in fig. 2C will be presented in the notification bar by rendering and presenting the notification information about the music application assistant. As can be seen from fig. 2A, 2B, and 2C, the notification of the notification content and the typesetting style is determined according to the service requirement, namely, dynamic notification is realized, because the positions, sizes, shapes, colors and other typesetting styles of the components in different notification information and the notification content are different.
According to the notification display method, the notification content and the typesetting style of the notification information are received, and the notification content is displayed according to the received typesetting style, so that dynamic notification is realized, the purpose of displaying the notification page according to service requirements is realized, and the service expansion speed is accelerated.
In some embodiments of the present disclosure, the notification presentation methods of the present disclosure may be performed by an operating system such as the Android (Android) operating system and its derivatives.
In some embodiments of the present disclosure, the notification information is described in the form of a WEB page (or WEB page as it is called). Specifically, the WEB page may be implemented by one or more of HTML (hypertext markup language), JS (javascript, an object-and event-driven-based client scripting language), CSS (cascading style sheets), etc., so that a wide variety of typesetting styles can be implemented to meet different business requirements.
According to the notification display method, the dynamic notification is realized by receiving, transmitting and displaying the notification information in the form of the WEB page, the display efficiency of the notification is improved, the purpose of displaying the notification page according to the service requirement is realized, and the service expansion speed is accelerated.
FIG. 3 is a schematic flow chart diagram of implementing dynamic notifications through interactions between application programs and operating system processes provided by one embodiment of a notification presentation method of the present disclosure. Referring to fig. 3, in some embodiments of the present disclosure, an application program receives notification information including notification content and typesetting style provided by a service side, and transmits the notification information to a corresponding operating system process from the application program through an inter-process communication manner, and finally the notification information is displayed by the operating system process. Specifically, the application program (the application program may also be referred to as a first process) receives the notification information sent by the service side, and then directly transmits the notification information to a corresponding operating system process for rendering and displaying (the operating system process for rendering and displaying the notification information may also be referred to as a second process) through an inter-process communication manner, or the application program renders the notification information and then transmits the notification information to the corresponding operating system process for displaying (the operating system process for displaying the result after rendering the notification information may also be referred to as a third process). As an alternative embodiment, the application program is a web browser application, and the notification is actively sent to the user through a javascript registration service worker background service.
The inter-process communication manner may also be referred to as a cross-process communication manner, and, for example, an android operating system may be implemented through remote views (RemoteViews). The remote view defines a data structure for passing information such as layout files between processes. It should be noted that the existing remote view only supports a layout file delivering a preset typesetting style (in practice, loading is performed using an id of the preset typesetting style), and cannot deliver a dynamic notification. Thus, in some embodiments of the present disclosure, the remote view and associated operating system processes are adapted to support the delivery of dynamic notifications, such as in the previous example where the notification information was in the form of a WEB page, the remote view and associated operating system processes need to be adapted to support the sending and receiving of resource addresses (e.g., uniform resource locators URLs, file paths, etc.) of the notification information in the form of WEB pages.
According to the notification display method, the notification information is transmitted and rendered through interaction between the application program and the operating system process and by utilizing an inter-process communication mode, so that dynamic notification is realized, the display efficiency of the notification is improved, the purpose of displaying the notification page according to service requirements is realized, and the service expansion speed is accelerated.
In one embodiment of the present disclosure, dynamic notification is implemented within an operating system process: the service side determines notification information containing notification content and typesetting style, and an application program receiving the notification information directly transmits the notification information to a corresponding operating system process, renders the notification information in the operating system process and displays the notification information. The application may be referred to as a first process, and the operating system process for rendering and exposing the notification information may be referred to as a second process. In practice, the rendering and displaying of the notification information may involve a plurality of operating system processes, which may be collectively referred to as the second process.
Specifically, fig. 4 is a schematic flow chart diagram of implementing dynamic notification inside a second process according to an embodiment of a notification presentation method of the present disclosure, referring to fig. 4, as an alternative embodiment, the notification presentation method of an example of the present disclosure includes the following steps:
in step S21, the first process receives notification information including notification content and typesetting style. Optionally, the first process is an application program that receives notification information. Optionally, the notification information is notification information in the form of a WEB page, where the notification information in the form of a WEB page is implemented through HTML, JS, and CSS.
Step S22, the notification information is sent to the second process. The second process is an operating system process for rendering and exposing notifications.
Step S23, the second process receives the notification information, renders the notification information to obtain a first rendering result, and displays the first rendering result in a notification bar. The first rendering result is in a format capable of being displayed in a notification bar. Specifically, the steps performed by the second process include: data reading, view creation, view rendering and the like, in the rendering process, information such as colors, positions, sizes and the like of different components can be generated according to the notification information, and then the first rendering result is generated according to the information such as the colors, the positions, the sizes and the like of the components. Optionally, the first rendering result is a local View (View).
Optionally, the present embodiment enables the transfer of the notification information between the first process and the second process through a remote view.
Alternatively, the notification information is passed between processes by passing the resource address of the notification information. Wherein the resource address includes a Uniform Resource Locator (URL) and/or a file path. In a specific example, the aforementioned step S22 includes transferring, from the first process to the second process through the remote view, a first resource address, where the first resource address is a resource address of notification information in the form of a WEB page, such as a URL or a file path. Meanwhile, the step S23 includes that the second process receives the first resource address through the remote view, and the second process renders the notification information in the form of the WEB page by loading the first resource address to obtain a first rendering result. Notably, the remote view and associated operating system processes (e.g., the second process described above) need to be adapted so that they can support the transfer and loading of resource addresses. It should be noted that, the manner of delivering notification information by using the resource address according to the present disclosure is not limited to the notification information in the form of WEB pages.
In one embodiment of the present disclosure, dynamic notification is implemented within an application: the service side determines notification information containing notification content and typesetting style, renders the notification information in the application program receiving the notification information, and then transmits the rendering result to a corresponding operating system process, and the operating system process displays the rendering result. The application may be referred to as a first process, and the operating system process for exposing the rendering result may be referred to as a third process. In practice, the rendering result may involve a plurality of operating system processes, which may be collectively referred to as the third process.
Specifically, fig. 5 is a schematic flow chart diagram of implementing dynamic notification inside a first process according to an embodiment of a notification presentation method of the present disclosure, referring to fig. 5, as an alternative embodiment, the notification presentation method of an example of the present disclosure includes the following steps:
in step S31, the first process receives notification information including notification content and typesetting style. Optionally, the first process is an application program that receives notification information. Optionally, the notification information is notification information in the form of a WEB page, where the notification information in the form of a WEB page is implemented through HTML, JS, and CSS.
Step S32, the first process renders the notification information to obtain a second rendering result. The second rendering result is a notification format supported by the operating system process. Specifically, the steps performed by the first process include: and in the rendering process, generating information such as color, position, size and the like of different components according to the notification information, and generating a second rendering result according to the information such as color, position, size and the like of the components. Optionally, the second rendering result is a layout file (layout).
Step S33, the second rendering result is sent to the third process. The third process is an operating system process for exposing notifications.
In step S34, the third process receives the second rendering result, and the third process loads the second rendering result for displaying in the notification bar. It should be noted that, in the process of loading the layout file by the third process to display, the third process may render the layout file, and display the notification to the notification bar by rendering the layout file.
Optionally, the transferring of the second rendering result between the first process and the third process is implemented through a remote view in the present embodiment.
Optionally, the second rendering result is passed between processes by passing a resource address of the second rendering result. Wherein the resource address includes a Uniform Resource Locator (URL) and/or a file path. In a specific example, the aforementioned step S33 includes transferring, from the first process to the third process, a second resource address through the remote view, where the second resource address is a resource address of the second rendering result, such as a file path. Meanwhile, the step S34 includes the third process receiving the second resource address through the remote view, and loading the second rendering result by the third process to be displayed in the notification bar. Notably, the remote view and associated operating system processes (e.g., the third process described above) need to be adapted so that they can support the transfer and loading of resource addresses.
By utilizing the notification display method provided by the disclosure, the service party determines the notification information in the form of the WEB page according to the requirement and sends the notification information in the form of the WEB page to the application program, and the dynamic notification is realized by rendering the notification information into a layout file in the application program or directly rendering the notification information to the operating system, so that the display efficiency of the notification is greatly improved, the purpose of displaying the notification page according to the requirement of the service is realized, and the application program does not need to be redeveloped and reissued when the notification typesetting style is changed, thereby accelerating the service expansion speed.
Fig. 6 is a schematic block diagram of one embodiment of a notification display 100 of the present disclosure. Referring to fig. 6, a notification presentation apparatus 100 of the present disclosure includes a receiving unit 101, a rendering unit 102, and a presentation unit 103.
Wherein the receiving unit 101 is configured to receive notification information, the notification information including notification content and typesetting style. The rendering unit 102 is configured to render the received notification information to obtain a rendering result. The display unit 103 is configured to display the rendering result in a notification bar.
Fig. 7 is a schematic block diagram of one embodiment of a notification display 100 of the present disclosure. Referring to fig. 7, in one embodiment of the present disclosure, a notification presentation apparatus 100 of an example of the present disclosure includes a first process module 110, a first inter-process communication module 120, and a second process module 130.
The first process module 110 includes the aforementioned receiving unit 101, where the receiving unit 101 is configured to receive notification information. The first inter-process communication module 120 is configured to communicate the notification information from the first process module 110 to the second process module 130. The second process module 130 includes the aforementioned rendering unit 102 and presentation unit 103. The rendering unit 102 is specifically configured to render the notification information to obtain a first rendering result, and the display unit 103 is specifically configured to display the first rendering result in a notification bar.
Optionally, the first inter-process communication module 120 is specifically configured to: the first resource address is transferred from the first process module 110 to the second process module 130, wherein the first resource address is the resource address of the notification information. And, the rendering unit 102 is specifically configured to: and rendering the notification information according to the first resource address to obtain the first rendering result.
Optionally, in the present embodiment, the first inter-process communication module 120 implements the transfer of the notification information between the first process module 110 and the second process module 130 through a remote view. Further, the first inter-process communication module 120 communicates the first resource address from the first process module 110 to the second process module 130 via a remote view.
Fig. 8 is a schematic block diagram of one embodiment of a notification display 100 of the present disclosure. Referring to fig. 8, in one embodiment of the present disclosure, a notification presentation apparatus 100 of an example of the present disclosure includes a first process module 110, a second inter-process communication module 140, and a third process module 150.
The first process module 110 includes the receiving unit 101 and the rendering unit 102. The receiving unit 101 is configured to receive notification information, and the rendering unit 102 is specifically configured to render the notification information to obtain a second rendering result. The second inter-process communication module 140 is configured to: the second rendering result is transferred from the first process module 110 to the third process module 150. The third process module 150 includes the aforementioned display unit 103, where the display unit 103 is specifically configured to load the second rendering result to display the second rendering result in a notification bar.
Optionally, the second inter-process communication module 140 is specifically configured to: the second resource address is transferred from the first process module 110 to the third process module 150, where the second resource address is a resource address of the second rendering result. And, the display unit 103 is specifically configured to: and loading the second rendering result according to the second resource address.
Optionally, in the present embodiment, the second inter-process communication module 140 implements the transfer of the second rendering result between the first process module 110 and the third process module 150 through a remote view. Further, the second inter-process communication module 140 communicates the second resource address from the first process module 110 to the third process module 150 via a remote view.
In some embodiments of the present disclosure, the aforementioned notification information is described in the form of a WEB page.
Various embodiments of the notification presentation methods presented in the present disclosure may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementation, various embodiments of the notification presentation methods presented in this disclosure may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein, and in some cases, various embodiments of the notification presentation methods presented in this disclosure may be implemented in a controller. For software implementation, various embodiments of the notification presentation methods presented in this disclosure may be implemented with a separate software module that allows for performing at least one function or operation. The software codes may be implemented by a software application (or program) written in any suitable programming language, which may be stored in memory and executed by a controller.
Fig. 9 is a hardware block diagram illustrating an apparatus according to one embodiment of the present disclosure. As shown in fig. 9, an apparatus 200 according to an embodiment of the present disclosure includes a memory 201 and a processor 202. The components of the device 200 are interconnected by a bus system and/or other forms of connection mechanisms (not shown). The device 200 of the present disclosure may be implemented in various forms including, but not limited to, a server or a mobile terminal device such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, an in-vehicle terminal device, an in-vehicle display terminal, an in-vehicle electronic rear view mirror, and the like, and a fixed terminal device such as a digital TV, a desktop computer, and the like.
The memory 201 is used to store non-transitory computer readable instructions. In particular, memory 201 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like.
The processor 202 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the device 200 to perform desired functions. In one embodiment of the present disclosure, the processor 202 is configured to execute the computer readable instructions stored in the memory 201, so that the device 200 performs all or part of the steps of the notification presentation method of the embodiments of the present disclosure described above.
Fig. 10 is a schematic diagram illustrating a computer-readable storage medium according to an embodiment of the present disclosure. As shown in fig. 10, a computer-readable storage medium 300 according to an embodiment of the present disclosure has stored thereon non-transitory computer-readable instructions 301. When the non-transitory computer readable instructions 301 are executed by a processor, all or part of the steps of the notification presentation method of the various embodiments of the present disclosure described previously are performed.
Fig. 11 is a schematic diagram illustrating a hardware structure of a terminal device according to an embodiment of the present disclosure. The terminal device may be implemented in various forms, and the terminal device in the present disclosure may include, but is not limited to, a mobile terminal device such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation apparatus, an in-vehicle terminal device, an in-vehicle display terminal, an in-vehicle electronic rear view mirror, and the like, and a fixed terminal device such as a digital TV, a desktop computer, and the like.
As shown in fig. 11, the terminal device 1100 may include a wireless communication unit 1110, an a/V (audio/video) input unit 1120, a user input unit 1130, a sensing unit 1140, an output unit 1150, a memory 1160, an interface unit 1170, a controller 1180, a power supply unit 1190, and the like. Fig. 11 shows a terminal device with various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components may be implemented instead.
Wherein the wireless communication unit 1110 allows radio communication between the terminal device 1100 and a wireless communication system or network. The a/V input unit 1120 is used to receive an audio or video signal. The user input unit 1130 may generate key input data according to a command input by a user to control various operations of the terminal device. The sensing unit 1140 detects the current state of the terminal device 1100, the position of the terminal device 1100, the presence or absence of a touch input by the user to the terminal device 1100, the orientation of the terminal device 1100, the acceleration or deceleration movement and direction of the terminal device 1100, and the like, and generates a command or signal for controlling the operation of the terminal device 1100. The interface unit 1170 serves as an interface through which at least one external device can be connected to the terminal device 1100. The output unit 1150 is configured to provide output signals in a visual, audio, and/or tactile manner. The memory 1160 may store software programs or the like for processing and control operations performed by the controller 1180, or may temporarily store data that has been or is to be output. Memory 1160 may include at least one type of storage medium. Also, the terminal apparatus 1100 may cooperate with a network storage device that performs the storage function of the memory 1160 through a network connection. The controller 1180 generally controls the overall operation of the terminal device. In addition, the controller 1180 may include a multimedia module for reproducing or playing back multimedia data. The controller 1180 may perform a pattern recognition process to recognize handwriting input or picture drawing input performed on the touch screen as characters or images. The power supply unit 1190 receives external power or internal power and provides appropriate power required to operate the elements and components under the control of the controller 1180.
Various embodiments of the notification presentation methods presented in the present disclosure may be implemented in the controller 1180. For software implementation, various embodiments of the notification presentation methods presented in this disclosure may be implemented with a separate software module that allows for performing at least one function or operation. The software codes may be implemented by a software application (or program) written in any suitable programming language, which may be stored in the memory 1160 and executed by the controller 1180.
Above, according to the notification display method, device, equipment and computer readable storage medium of the embodiments of the present disclosure, by receiving the notification content and the typesetting style of the notification information and displaying the notification content according to the received typesetting style, dynamic notification is realized, the purpose of displaying the notification page according to the service requirement is realized, and the service expansion speed is accelerated. Further, the method and the device can realize dynamic notification and improve the notification display efficiency by receiving, transmitting and displaying the notification information in the form of the WEB page. Further, the method and the device can realize dynamic notification and improve the display efficiency of the notification by interacting between the application program and the operating system process and transmitting and rendering the resource address of the notification information by utilizing an inter-process communication mode. Further, the method and the device can realize dynamic notification and improve the display efficiency of the notification by using the remote view to transfer and load notification information and the resource address of the rendering result. Further, the method and the device can realize dynamic notification and greatly improve the display efficiency of the notification by rendering the notification information into a layout file in the application program or directly rendering the notification information to the operating system.
The basic principles of the present disclosure have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present disclosure. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, since the disclosure is not necessarily limited to practice with the specific details described.
The block diagrams of the devices, apparatuses, devices, systems referred to in this disclosure are merely illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
In addition, as used herein, the use of "or" in the recitation of items containing "at least one", "one or more" indicates a separate recitation, such that recitation of "at least one of A, B or C" or "one or more of A, B or C" means a or B or C, or AB or AC or BC, or ABC (i.e., a and B and C). Furthermore, the term "exemplary" does not mean that the described example is preferred or better than other examples.
It is also noted that in the apparatus and methods of the present disclosure, components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered equivalent to the present disclosure.
Various changes, substitutions, and alterations are possible to the techniques described herein without departing from the teachings of the techniques defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the particular aspects of the process, machine, manufacture, composition of matter, means, methods and acts described above. The processes, machines, manufacture, compositions of matter, means, methods, or acts, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or acts.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the disclosure to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.
Claims (9)
1. A notification presentation method, the method comprising:
receiving notification information, wherein the notification information comprises notification content and typesetting style;
rendering and displaying the received notification information in a notification bar so as to display the notification content with the typesetting style in the notification bar;
the receiving notification information includes: the first process receives the notification information;
the rendering and displaying of the received notification information in a notification bar comprises the following steps:
transmitting the notification information from the first process to a second process through the adjusted remote view and the adjusted operating system process, wherein the adjusted remote view and the adjusted operating system process are used for supporting the transmission of dynamic notification;
the second process renders the notification information to obtain a first rendering result, and displays the first rendering result in the notification bar, or,
the rendering and displaying of the received notification information in a notification bar comprises the following steps:
the first process renders the notification information to obtain a second rendering result, the second rendering result is transmitted from the first process to a third process through the adjusted remote view and the adjusted operating system process, and the adjusted remote view and the adjusted operating system process are used for supporting the transmission of dynamic notification;
the third process loads the second rendering result to display the second rendering result in the notification bar.
2. The notification presentation method of claim 1, wherein,
said transferring said notification information from said first process to a second process comprises: transmitting a first resource address from the first process to the second process, wherein the first resource address is the resource address of the notification information;
the second process rendering the notification information to obtain a first rendering result includes: and the second process renders the notification information according to the first resource address to obtain the first rendering result.
3. The notification presentation method of claim 1, wherein,
said passing said second rendering result from said first process to a third process comprising: transferring a second resource address from the first process to the third process, wherein the second resource address is a resource address of the second rendering result;
the third process loading the second rendering result to display the second rendering result in the notification bar includes: and the third process loads the second rendering result according to the second resource address.
4. A notification presentation method as claimed in claim 2 or 3, wherein the resource address comprises a uniform resource locator URL and/or a file path.
5. A notification presentation method according to any of claims 1 to 3 wherein the notification information is described in the form of a WEB page.
6. A notification display, the device comprising:
a receiving unit configured to receive notification information including notification content and a typesetting style;
the rendering unit is used for rendering the received notification information to obtain a rendering result;
the display unit is used for displaying the rendering result in a notification bar; to display the notification content with the typeset style in the notification bar;
the receiving notification information includes: the first process receives the notification information;
the rendering and displaying of the received notification information in a notification bar comprises the following steps:
transmitting the notification information from the first process to a second process through the adjusted remote view and the adjusted operating system process, wherein the adjusted remote view and the adjusted operating system process are used for supporting the transmission of dynamic notification;
the second process renders the notification information to obtain a first rendering result, and displays the first rendering result in the notification bar, or,
the rendering and displaying of the received notification information in a notification bar comprises the following steps:
the first process renders the notification information to obtain a second rendering result, the second rendering result is transmitted from the first process to a third process through the adjusted remote view and the adjusted operating system process, and the adjusted remote view and the adjusted operating system process are used for supporting the transmission of dynamic notification;
the third process loads the second rendering result to display the second rendering result in the notification bar.
7. The notification presentation device of claim 6, further comprising a module or unit to perform the method of any of claims 2 to 5.
8. An apparatus, comprising:
a memory for storing non-transitory computer readable instructions; and
a processor for executing the computer readable instructions such that the computer readable instructions when executed by the processor implement the notification presentation method of any of claims 1 to 5.
9. A computer readable storage medium storing non-transitory computer readable instructions which, when executed by a computer, cause the computer to perform the notification presentation method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810804228.4A CN110737491B (en) | 2018-07-20 | 2018-07-20 | Notification display method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810804228.4A CN110737491B (en) | 2018-07-20 | 2018-07-20 | Notification display method, device, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110737491A CN110737491A (en) | 2020-01-31 |
CN110737491B true CN110737491B (en) | 2024-04-05 |
Family
ID=69236610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810804228.4A Active CN110737491B (en) | 2018-07-20 | 2018-07-20 | Notification display method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110737491B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114721754A (en) * | 2021-01-05 | 2022-07-08 | 武汉斗鱼网络科技有限公司 | Method, device, equipment and storage medium for realizing information prompt view |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368248A (en) * | 2011-09-26 | 2012-03-07 | 奇智软件(北京)有限公司 | Page downloading control method and system of IE kernel browser |
CN102722358A (en) * | 2011-03-30 | 2012-10-10 | 联想(北京)有限公司 | Electronic equipment and method for presenting widgets |
CN103955325A (en) * | 2014-03-31 | 2014-07-30 | 可牛网络技术(北京)有限公司 | Message view setting method and device |
CN104238875A (en) * | 2014-08-15 | 2014-12-24 | 小米科技有限责任公司 | Application corner mark addition method and device |
CN104484193A (en) * | 2014-11-20 | 2015-04-01 | 乐视网信息技术(北京)股份有限公司 | Method and device for rapidly starting application program |
CN104765604A (en) * | 2015-03-20 | 2015-07-08 | 福建天晴数码有限公司 | Method and device for embedding DX render engine into another DX render engine |
CN104809122A (en) * | 2014-01-24 | 2015-07-29 | 贝壳网际(北京)安全技术有限公司 | Method and device for visiting web pages |
CN104850388A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for drafting webpage |
CN104951287A (en) * | 2014-03-26 | 2015-09-30 | 可牛网络技术(北京)有限公司 | Method and device for generating webpage |
CN105183307A (en) * | 2015-06-15 | 2015-12-23 | 北京奇虎科技有限公司 | Application message display control method and application message display control device |
CN105824641A (en) * | 2016-03-18 | 2016-08-03 | 腾讯科技(深圳)有限公司 | Method and device for displaying graphic code |
CN106095453A (en) * | 2016-06-16 | 2016-11-09 | 北京金山安全软件有限公司 | Information display method and device and electronic equipment |
CN106528120A (en) * | 2016-11-02 | 2017-03-22 | 珠海市魅族科技有限公司 | Notification message display method and device |
CN106649397A (en) * | 2015-11-03 | 2017-05-10 | 任子行网络技术股份有限公司 | Method and system for parsing push message of mobile application |
CN106648570A (en) * | 2015-11-03 | 2017-05-10 | 深圳市中兴微电子技术有限公司 | Multi-task display processing method and device for mobile terminal |
CN107291431A (en) * | 2016-03-31 | 2017-10-24 | 乐视控股(北京)有限公司 | A kind of notification message management method and system based on android system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ES2691471T3 (en) * | 2011-12-19 | 2018-11-27 | Orange | Method for notification of events on a device that executes identities of multiple users |
-
2018
- 2018-07-20 CN CN201810804228.4A patent/CN110737491B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722358A (en) * | 2011-03-30 | 2012-10-10 | 联想(北京)有限公司 | Electronic equipment and method for presenting widgets |
CN102368248A (en) * | 2011-09-26 | 2012-03-07 | 奇智软件(北京)有限公司 | Page downloading control method and system of IE kernel browser |
CN104809122A (en) * | 2014-01-24 | 2015-07-29 | 贝壳网际(北京)安全技术有限公司 | Method and device for visiting web pages |
CN104850388A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for drafting webpage |
CN104951287A (en) * | 2014-03-26 | 2015-09-30 | 可牛网络技术(北京)有限公司 | Method and device for generating webpage |
CN103955325A (en) * | 2014-03-31 | 2014-07-30 | 可牛网络技术(北京)有限公司 | Message view setting method and device |
CN104238875A (en) * | 2014-08-15 | 2014-12-24 | 小米科技有限责任公司 | Application corner mark addition method and device |
CN104484193A (en) * | 2014-11-20 | 2015-04-01 | 乐视网信息技术(北京)股份有限公司 | Method and device for rapidly starting application program |
CN104765604A (en) * | 2015-03-20 | 2015-07-08 | 福建天晴数码有限公司 | Method and device for embedding DX render engine into another DX render engine |
CN105183307A (en) * | 2015-06-15 | 2015-12-23 | 北京奇虎科技有限公司 | Application message display control method and application message display control device |
CN106649397A (en) * | 2015-11-03 | 2017-05-10 | 任子行网络技术股份有限公司 | Method and system for parsing push message of mobile application |
CN106648570A (en) * | 2015-11-03 | 2017-05-10 | 深圳市中兴微电子技术有限公司 | Multi-task display processing method and device for mobile terminal |
CN105824641A (en) * | 2016-03-18 | 2016-08-03 | 腾讯科技(深圳)有限公司 | Method and device for displaying graphic code |
CN107291431A (en) * | 2016-03-31 | 2017-10-24 | 乐视控股(北京)有限公司 | A kind of notification message management method and system based on android system |
CN106095453A (en) * | 2016-06-16 | 2016-11-09 | 北京金山安全软件有限公司 | Information display method and device and electronic equipment |
CN106528120A (en) * | 2016-11-02 | 2017-03-22 | 珠海市魅族科技有限公司 | Notification message display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110737491A (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109165050B (en) | Program running method and device, computing equipment and storage medium | |
CN107943547B (en) | Multi-service integration method and device, intelligent terminal, server and operating system | |
JP2015513726A (en) | Using the application cache to update installed application resources | |
WO2018036544A1 (en) | Method of playing video in browser window, device, and data storage medium | |
CN110019464B (en) | Page processing method and device | |
US20120166979A1 (en) | Method and Apparatus for Enabling User Interface Customization | |
US9906626B2 (en) | Resource demand-based network page generation | |
CN107807934B (en) | Page display method and device and computing equipment | |
TW201904303A (en) | Television program playing method and related terminal device | |
CN115967691A (en) | Message processing method, message processing device, electronic equipment, storage medium and program product | |
CN108933947B (en) | Bullet screen display method and device | |
JP2021064359A (en) | Web page processing method, web page processing device, electronic device, non-temporary computer-readable storage medium, and computer program | |
CN116127219A (en) | Method and device for displaying pages in applet and computer equipment | |
CN110737491B (en) | Notification display method, device, equipment and computer readable storage medium | |
CN104572771A (en) | Method and device for displaying processing state | |
CN108664498B (en) | Webpage content display method and terminal | |
CN114119901A (en) | Building information model debugging method and related device | |
CN106095886B (en) | Data processing method and device | |
CN112948730B (en) | Webpage data display method and device, storage medium and electronic equipment | |
CN109144446B (en) | Image display method, image display device, electronic equipment and computer readable storage medium | |
CN110895592B (en) | Link starting method, device, equipment and medium on mobile terminal | |
KR20140136587A (en) | Sound storage service system and method | |
CN113486281A (en) | Page display method and device, electronic equipment and storage medium | |
CN110858114B (en) | Webpage display method, bookmark generation method, device, equipment and medium on mobile terminal | |
CN111611038B (en) | Method for inserting view objects in electronic book reading page and computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |