CN105095420A - Method and device for displaying notification messages in browser - Google Patents

Method and device for displaying notification messages in browser Download PDF

Info

Publication number
CN105095420A
CN105095420A CN201510413315.3A CN201510413315A CN105095420A CN 105095420 A CN105095420 A CN 105095420A CN 201510413315 A CN201510413315 A CN 201510413315A CN 105095420 A CN105095420 A CN 105095420A
Authority
CN
China
Prior art keywords
notification message
message
informing
browser
time
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.)
Pending
Application number
CN201510413315.3A
Other languages
Chinese (zh)
Inventor
冯琴冲
沈杨红
高淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510413315.3A priority Critical patent/CN105095420A/en
Publication of CN105095420A publication Critical patent/CN105095420A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for displaying a notification message in a browser, wherein the method for displaying the notification message in the browser comprises the following steps: receiving a notification message sent by a server, wherein the notification message comprises configurable fields, and when the configurable fields have different values, the presentation forms of the notification message are different; and displaying the notification message in a notification bar of the browser according to the value in the configurable field. The method can increase the flexibility of the notification message display in the browser.

Description

The methods of exhibiting of notification message and device in browser
Technical field
The present invention relates to communication technical field, particularly relate to methods of exhibiting and the device of notification message in a kind of browser.
Background technology
Client can obtain message from service end and show, such as, after customization notification service, can show the notification message that service end pushes in Android intelligent browser informing.
In correlation technique, service end adopts fixed form sending out notice message, and make corresponding different services, the notification message that user sees in the informing of mobile phone browser all has identical form, the mode underaction of this fixing displaying notification message.
Summary of the invention
The present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.
For this reason, one object of the present invention is the methods of exhibiting proposing notification message in a kind of browser, and the method can increase the dirigibility that in browser, notification message is shown.
Another object of the present invention is the exhibiting device proposing notification message in a kind of browser.
For achieving the above object, the methods of exhibiting of notification message in the browser that first aspect present invention embodiment proposes, comprise: receive the notification message that service end sends, configurable field is comprised in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different; According to the value in described configurable field, in the informing of browser, show described notification message.
Optionally, described configurable field comprises at least one item in following item: message ejects the time period; The expired time of message; The priority of message; Picture pattern.
Optionally, when described configurable field comprises the message ejection time period, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising: the time determining to receive described notification message; If received the time of described notification message before the value of described message ejection time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing; Or, if the time receiving described notification message when described message ejects the scope of the value of time period, eject the informing of browser, and show described notification message in described informing.
Optionally, when described configurable field comprises the expired time of message, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising: the time determining to receive described notification message; If described notification message, after the value of the expired time of described notification message, processes as stale messages by time when receiving described notification message; Or, if time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
Optionally, when described configurable field comprises the priority of message, described according to the value in described configurable field, described notification message is shown in the informing of browser, comprise: the informing ejecting browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
Optionally, when described configurable field comprises picture pattern, in described notification message, also comprise URL address, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising: according to described URL address acquisition picture; Eject the informing of browser, and in described informing, show described picture according to described picture pattern, described picture pattern comprises the dimension information of picture.
First aspect present invention embodiment propose browser in notification message methods of exhibiting in, configurable field is comprised in the message that service end sends, when the value of configurable field is different, the display form of notification message in the informing of browser is different, therefore, can the display form of notice of change message by this configurable field, thus according to the value in configurable field, when showing notification message in browser, specifically multi-form notification message can be shown, improve the displaying dirigibility of notification message in browser.
For achieving the above object, the exhibiting device of notification message in the browser that second aspect present invention embodiment proposes, comprise: receiver module, for receiving the notification message that service end sends, configurable field is comprised in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different; Display module, for according to the value in described configurable field, shows described notification message in the informing of browser.
Optionally, described configurable field comprises at least one item in following item: message ejects the time period; The expired time of message; The priority of message; Picture pattern.
Optionally, when described configurable field comprise message eject the time period time, described display module specifically for: determine the time receiving described notification message; If received the time of described notification message before the value of described message ejection time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing; Or, if the time receiving described notification message when described message ejects the scope of the value of time period, eject the informing of browser, and show described notification message in described informing.
Optionally, when described configurable field comprises the expired time of message, described display module specifically for: determine the time receiving described notification message; If described notification message, after the value of the expired time of described notification message, processes as stale messages by time when receiving described notification message; Or, if time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
Optionally, when described configurable field comprises the priority of message, described display module specifically for: eject the informing of browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
Optionally, when described configurable field comprises picture pattern, in described notification message, also comprise URL address, described display module specifically for: according to described URL address acquisition picture; Eject the informing of browser, and in described informing, show described picture according to described picture pattern, make described picture have described picture pattern, described picture pattern comprises the dimension information of picture.
Second aspect present invention embodiment propose browser in notification message exhibiting device in, configurable field is comprised in the message that service end sends, when the value of configurable field is different, the display form of notification message in the informing of browser is different, therefore, can the display form of notice of change message by this configurable field, thus according to the value in configurable field, when showing notification message in browser, specifically multi-form notification message can be shown, improve the displaying dirigibility of notification message in browser.
For achieving the above object, the client device that third aspect present invention embodiment proposes, comprising: housing, processor, storer, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of client device or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code by reading the executable program code stored in storer, for execution: receive the notification message that service end sends, configurable field is comprised in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different; According to the value in described configurable field, in the informing of browser, show described notification message.
Optionally, described configurable field comprises at least one item in following item: message ejects the time period; The expired time of message; The priority of message; Picture pattern.
Optionally, when described configurable field comprises the message ejection time period, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising: the time determining to receive described notification message; If received the time of described notification message before the value of described message ejection time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing; Or, if the time receiving described notification message when described message ejects the scope of the value of time period, eject the informing of browser, and show described notification message in described informing.
Optionally, when described configurable field comprises the expired time of message, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising: the time determining to receive described notification message; If described notification message, after the value of the expired time of described notification message, processes as stale messages by time when receiving described notification message; Or, if time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
Optionally, when described configurable field comprises the priority of message, described according to the value in described configurable field, described notification message is shown in the informing of browser, comprise: the informing ejecting browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
Optionally, when described configurable field comprises picture pattern, in described notification message, also comprise URL address, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising: according to described URL address acquisition picture; Eject the informing of browser, and in described informing, show described picture according to described picture pattern, described picture pattern comprises the dimension information of picture.
The client device that third aspect present invention embodiment proposes, configurable field is comprised in the message that service end sends, when the value of configurable field is different, the display form of notification message in the informing of browser is different, therefore, can the display form of notice of change message by this configurable field, thus according to the value in configurable field, when showing notification message in browser, specifically multi-form notification message can be shown, improve the displaying dirigibility of notification message in browser.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the schematic flow sheet of the methods of exhibiting of notification message in the browser of one embodiment of the invention proposition;
Fig. 2 is the schematic flow sheet of the methods of exhibiting of notification message in the browser of another embodiment of the present invention proposition;
Fig. 3 is the schematic flow sheet of the methods of exhibiting of notification message in the browser of another embodiment of the present invention proposition;
Fig. 4 is the schematic flow sheet of the methods of exhibiting of notification message in the browser of another embodiment of the present invention proposition;
Fig. 5 is the schematic flow sheet of the methods of exhibiting of notification message in the browser of another embodiment of the present invention proposition;
Fig. 6 is the structural representation of the exhibiting device of notification message in the browser of another embodiment of the present invention proposition.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.On the contrary, embodiments of the invention comprise fall into attached claims spirit and intension within the scope of all changes, amendment and equivalent.
Fig. 1 is the schematic flow sheet of the methods of exhibiting of notification message in the browser of one embodiment of the invention proposition, and the method comprises:
S11: receive the notification message that service end sends, comprise configurable field in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different.
The executive agent of the present embodiment is client.
Client can specifically refer to smart machine client, such as, and android cell-phone customer terminal.
Configurable field comprises: message ejects at least one item in time period, the expired time of message, the priority of message and picture pattern.
Wherein, the message ejection time period can represent by poptime field; The expired time of message can represent by expiredtime field; The priority of message can represent by priority field; Picture pattern can represent by bigicon field, smallicon field.
The notification message that notification message can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S12: according to the value in described configurable field, show described notification message in the informing of browser.
Wherein, according to the difference of the value in configurable field, multi-form displaying can be carried out to notification message.
Particularly, if configurable field comprises message eject the time period, as shown in Figure 2, the present invention also provides another embodiment, and this embodiment comprises:
S21: receive the notification message that service end sends, comprises message and ejects the time period in described notification message.
Wherein, the message ejection time period can represent by poptime field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S22: determine the time receiving described notification message.
Such as, can arrange timing module in client, after notification message reaches client, client can obtain the time on timing module now, thus obtains the time receiving this notification message.
S23: if the time receiving described notification message is before described message ejects the value of time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing.
Particularly, predetermined period such as 5s.
Such as, the value of poptime field is for assign to 9: 02 from 9: 00, the notification message time that client receives service end propelling movement is 8: 59, because client received the time of notification message before the value of poptime field, then notification message can be saved in local file by client.
After being saved in this locality, suppose that predetermined period is 5s, then client starts when notification message being saved in this locality, the notification message preserved in local file is detected, when the time point detected is before 9: 00, due to not in the scope of the value of poptime field every 5s, so do not show notification message, after arriving 9: 00 detection time, then client ejects the informing of browser, and shows notification message in this informing.
S24: if the time receiving described notification message when described message ejects the scope of the value of time period, eject the informing of browser, and show described notification message in described informing.
Such as, the value of poptime field is for assign to 9: 02 from 9: 00, the notification message time that client receives service end propelling movement is 9: 01, because client receives the scope of time in the value of poptime field of notification message, then client ejects the informing of browser, and shows notification message in informing.
In another embodiment, if configurable field comprises the expired time of message, as shown in Figure 3, this embodiment comprises:
S31: receive the notification message that service end sends, comprise the expired time of message in described notification message.
Wherein, the expired time of message can represent by expiredtime field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S32: determine the time receiving described notification message.
Such as, can arrange timing module in client, after notification message reaches client, client can obtain the time on timing module now, thus obtains the time receiving this notification message.
S33: if time when receiving described notification message is after the value of the expired time of described message, described notification message is processed as stale messages.
Described message is carried out process as stale messages specifically to refer to and abandon this message.
Such as, the value of expiredtime field is 9: 00, if time when client receives notification message is 9: 02, time when namely receiving notification message is after the value of expiredtime field, then notification message is out of date, and notification message directly abandons by client.
S34: if time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
Such as, the value of expiredtime field is 9: 00, if time when client receives notification message is 8: 58, time when namely receiving notification message is before the value of expiredtime field, then notification message is not out of date, client ejects the informing of browser, and shows notification message in described informing.
In another embodiment, if configurable field comprises the priority of message, as shown in Figure 4, this embodiment comprises:
S41: receive the notification message that service end sends, comprise the priority of message in described notification message.
Wherein, the priority of message can represent by priority field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S42: the informing ejecting browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
Particularly, client can read priority field from notification message, obtains the priority of message according to priority field.
By the corresponding relation of above-mentioned priority and position, can make the display position of the notification message that priority is high on same interface on the display position of the low notification message of priority.
Android provides the application programming interface (ApplicationProgrammingInterface of the priority arranging message, API), the priority of message can be obtained by calling this API, afterwards, certain notification message can be made to show at the same level or that rank is lower notice.
Such as, the rank of priority can with 1,2 ... represent, wherein, 1 represents highest level, and 2 represent second advanced, and the rest may be inferred.
When the priority of the message A of client reception is 1, the priority of the message B of reception is 2, be then illustrated in above message B by message A.
In another embodiment, if configurable field comprises picture pattern, also comprise URL(uniform resource locator) (UniformResourceLocator, URL) address in this notification message, as shown in Figure 5, this embodiment comprises:
S51: receive the notification message that service end sends, comprise picture pattern and URL address in described notification message.
Wherein, picture pattern can represent by bigicon and smallicon field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S52: according to described URL address acquisition picture.
The URL address acquisition picture of the picture that client is specified by service end.
S53: the informing ejecting browser, and in described informing, show described picture according to described picture pattern, described picture pattern comprises the dimension information of picture.
Particularly, service end can use bigicon and smallicon field to control the display of picture at informing.
Such as, when client receive notification message in field be bigicon, then show large picture, otherwise, in the notification message of reception with field be smallicon, then show little picture.Or, can also by the size of the self-defined picture of picture pattern.
In the present embodiment, configurable field is comprised in the message that service end sends, when the value of configurable field is different, the display form of notification message in the informing of browser is different, therefore, and can the display form of notice of change message by this configurable field, thus according to the value in configurable field, when showing notification message in browser, specifically multi-form notification message can be shown, improve the displaying dirigibility of notification message in browser.
Fig. 6 is the structural representation of the exhibiting device of notification message in the browser of another embodiment of the present invention proposition, and this device 60 comprises receiver module 61 and display module 62.
The notification message that receiver module 61 sends for receiving service end, comprises configurable field in described notification message, and wherein, when the value of described configurable field is different, the display form of described notification message is different.
The device of the present embodiment can be positioned at client.
Client can specifically refer to smart machine client, such as, and android cell-phone customer terminal.
Configurable field comprises: message ejects at least one item in time period, the expired time of message, the priority of message and picture pattern.
Wherein, the message ejection time period can represent by poptime field; The expired time of message can represent by expiredtime field; The priority of message can represent by priority field; Picture pattern can represent by bigicon field, smallicon field.
The notification message that notification message can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
Display module 62, for according to the value in described configurable field, shows described notification message in the informing of browser.
Wherein, according to the difference of the value in configurable field, multi-form displaying can be carried out to notification message.
In an embodiment, when described configurable field comprise message eject the time period time, described display module 62 specifically for: determine the time receiving described notification message; If received the time of described notification message before the value of described message ejection time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing; Or, if the time receiving described notification message when described message ejects the scope of the value of time period, eject the informing of browser, and show described notification message in described informing.
Wherein, the message ejection time period can represent by poptime field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
Such as, can arrange timing module in client, after notification message reaches client, client can obtain the time on timing module now, thus obtains the time receiving this notification message.
Particularly, predetermined period such as 5s.
Such as, the value of poptime field is for assign to 9: 02 from 9: 00, the notification message time that client receives service end propelling movement is 8: 59, because client received the time of notification message before the value of poptime field, then notification message can be saved in local file by client.
After being saved in this locality, suppose that predetermined period is 5s, then client starts when notification message being saved in this locality, the notification message preserved in local file is detected, when the time point detected is before 9: 00, due to not in the scope of the value of poptime field every 5s, so do not show notification message, after arriving 9: 00 detection time, then client ejects the informing of browser, and shows notification message in this informing.
Such as, the value of poptime field is for assign to 9: 02 from 9: 00, the notification message time that client receives service end propelling movement is 9: 01, because client receives the scope of time in the value of poptime field of notification message, then client ejects the informing of browser, and shows notification message in informing.
In another embodiment, when described configurable field comprises the expired time of message, described display module 62 specifically for: determine the time receiving described notification message; If described notification message, after the value of the expired time of described notification message, processes as stale messages by time when receiving described notification message; Or, if time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
Wherein, the expired time of message can represent by expiredtime field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
Such as, can arrange timing module in client, after notification message reaches client, client can obtain the time on timing module now, thus obtains the time receiving this notification message.
Described message is carried out process as stale messages specifically to refer to and abandon this message.
Such as, the value of expiredtime field is 9: 00, if time when client receives notification message is 9: 02, time when namely receiving notification message is after the value of expiredtime field, then notification message is out of date, and notification message directly abandons by client.
Such as, the value of expiredtime field is 9: 00, if time when client receives notification message is 8: 58, time when namely receiving notification message is before the value of expiredtime field, then notification message is not out of date, client ejects the informing of browser, and shows notification message in described informing.
In another embodiment, when described configurable field comprises the priority of message, described display module 62 specifically for: eject the informing of browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
Wherein, the priority of message can represent by priority field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
Particularly, client can read priority field from notification message, obtains the priority of message according to priority field.
By the corresponding relation of above-mentioned priority and position, can make the display position of the notification message that priority is high on same interface on the display position of the low notification message of priority.
Android provides the application programming interface (ApplicationProgrammingInterface of the priority arranging message, API), the priority of message can be obtained by calling this API, afterwards, certain notification message can be made to show at the same level or that rank is lower notice.
Such as, the rank of priority can with 1,2 ... represent, wherein, 1 represents highest level, and 2 represent second advanced, and the rest may be inferred.
When the priority of the message A of client reception is 1, the priority of the message B of reception is 2, be then illustrated in above message B by message A.
In another embodiment, when described configurable field comprises picture pattern, in described notification message, also comprise URL address and uniform resource position mark URL address, described display module 62 specifically for: according to described URL address acquisition picture; Eject the informing of browser, and in described informing, show described picture according to described picture pattern, make described picture have described picture pattern, described picture pattern comprises the dimension information of picture.
Wherein, picture pattern can represent by bigicon and smallicon field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
The URL address acquisition picture of the picture that client is specified by service end.
Particularly, service end can use bigicon and smallicon field to control the display of picture at informing.
Such as, when client receive notification message in field be bigicon, then show large picture, otherwise, in the notification message of reception with field be smallicon, then show little picture.Or, can also by the size of the self-defined picture of picture pattern.
In the present embodiment, configurable field is comprised in the message that service end sends, when the value of configurable field is different, the display form of notification message in the informing of browser is different, therefore, and can the display form of notice of change message by this configurable field, thus according to the value in configurable field, when showing notification message in browser, specifically multi-form notification message can be shown, improve the displaying dirigibility of notification message in browser.
The embodiment of the present invention additionally provides a kind of client device, and this client device comprises housing, processor, storer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of client device or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code, for execution by reading the executable program code stored in storer:
S11 ': receive the notification message that service end sends, comprise configurable field in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different.
The executive agent of the present embodiment is client.
Client can specifically refer to smart machine client, such as, and android cell-phone customer terminal.
Configurable field comprises: message ejects at least one item in time period, the expired time of message, the priority of message and picture pattern.
Wherein, the message ejection time period can represent by poptime field; The expired time of message can represent by expiredtime field; The priority of message can represent by priority field; Picture pattern can represent by bigicon field, smallicon field.
The notification message that notification message can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S12 ': according to the value in described configurable field, show described notification message in the informing of browser.
Wherein, according to the difference of the value in configurable field, multi-form displaying can be carried out to notification message.
Particularly, if configurable field comprises message eject the time period, the present invention also provides another embodiment, performs:
S21 ': receive the notification message that service end sends, comprises message and ejects the time period in described notification message.
Wherein, the message ejection time period can represent by poptime field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S22 ': determine the time receiving described notification message.
Such as, can arrange timing module in client, after notification message reaches client, client can obtain the time on timing module now, thus obtains the time receiving this notification message.
S23 ': if the time receiving described notification message is before described message ejects the value of time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing.
Particularly, predetermined period such as 5s.
Such as, the value of poptime field is for assign to 9: 02 from 9: 00, the notification message time that client receives service end propelling movement is 8: 59, because client received the time of notification message before the value of poptime field, then notification message can be saved in local file by client.
After being saved in this locality, suppose that predetermined period is 5s, then client starts when notification message being saved in this locality, the notification message preserved in local file is detected, when the time point detected is before 9: 00, due to not in the scope of the value of poptime field every 5s, so do not show notification message, after arriving 9: 00 detection time, then client ejects the informing of browser, and shows notification message in this informing.
S24 ': if the time receiving described notification message when described message ejects the scope of the value of time period, eject the informing of browser, and show described notification message in described informing.
Such as, the value of poptime field is for assign to 9: 02 from 9: 00, the notification message time that client receives service end propelling movement is 9: 01, because client receives the scope of time in the value of poptime field of notification message, then client ejects the informing of browser, and shows notification message in informing.
In another embodiment, if configurable field comprises the expired time of message, perform:
S31 ': receive the notification message that service end sends, comprise the expired time of message in described notification message.
Wherein, the expired time of message can represent by expiredtime field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S32 ': determine the time receiving described notification message.
Such as, can arrange timing module in client, after notification message reaches client, client can obtain the time on timing module now, thus obtains the time receiving this notification message.
S33 ': if time when receiving described notification message is after the value of the expired time of described message, described notification message is processed as stale messages.
Described message is carried out process as stale messages specifically to refer to and abandon this message.
Such as, the value of expiredtime field is 9: 00, if time when client receives notification message is 9: 02, time when namely receiving notification message is after the value of expiredtime field, then notification message is out of date, and notification message directly abandons by client.
S34 ': if time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
Such as, the value of expiredtime field is 9: 00, if time when client receives notification message is 8: 58, time when namely receiving notification message is before the value of expiredtime field, then notification message is not out of date, client ejects the informing of browser, and shows notification message in described informing.
In another embodiment, if configurable field comprises the priority of message, perform:
S41 ': receive the notification message that service end sends, comprise the priority of message in described notification message.
Wherein, the priority of message can represent by priority field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S42 ': the informing ejecting browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
Particularly, client can read priority field from notification message, obtains the priority of message according to priority field.
By the corresponding relation of above-mentioned priority and position, can make the display position of the notification message that priority is high on same interface on the display position of the low notification message of priority.
Android provides the application programming interface (ApplicationProgrammingInterface of the priority arranging message, API), the priority of message can be obtained by calling this API, afterwards, certain notification message can be made to show at the same level or that rank is lower notice.
Such as, the rank of priority can with 1,2 ... represent, wherein, 1 represents highest level, and 2 represent second advanced, and the rest may be inferred.
When the priority of the message A of client reception is 1, the priority of the message B of reception is 2, be then illustrated in above message B by message A.
In another embodiment, if configurable field comprises picture pattern, in this notification message, also comprise URL(uniform resource locator) (UniformResourceLocator, URL) address, perform:
S51 ': receive the notification message that service end sends, comprise picture pattern and URL address in described notification message.
Wherein, picture pattern can represent by bigicon and smallicon field.
Particularly, the notification message notification message that can specifically show in browser informing.After client subscription Push Service, this notification message can be pushed to client by service end, and the browser informing of client shows.
S52 ': according to described URL address acquisition picture.
The URL address acquisition picture of the picture that client is specified by service end.
S53 ': the informing ejecting browser, and in described informing, show described picture according to described picture pattern, described picture pattern comprises the dimension information of picture.
Particularly, service end can use bigicon and smallicon field to control the display of picture at informing.
Such as, when client receive notification message in field be bigicon, then show large picture, otherwise, in the notification message of reception with field be smallicon, then show little picture.Or, can also by the size of the self-defined picture of picture pattern.
In the present embodiment, configurable field is comprised in the message that service end sends, when the value of configurable field is different, the display form of notification message in the informing of browser is different, therefore, and can the display form of notice of change message by this configurable field, thus according to the value in configurable field, when showing notification message in browser, specifically multi-form notification message can be shown, improve the displaying dirigibility of notification message in browser.
It should be noted that, in describing the invention, term " first ", " second " etc. only for describing object, and can not be interpreted as instruction or hint relative importance.In addition, in describing the invention, except as otherwise noted, the implication of " multiple " is two or more.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (13)

1. the methods of exhibiting of notification message in browser, is characterized in that, comprising:
Receive the notification message that service end sends, comprise configurable field in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different;
According to the value in described configurable field, in the informing of browser, show described notification message.
2. method according to claim 1, is characterized in that, described configurable field comprises at least one item in following item:
Message ejects the time period;
The expired time of message;
The priority of message;
Picture pattern.
3. method according to claim 2, is characterized in that, when described configurable field comprises the message ejection time period, described according to the value in described configurable field, shows described notification message, comprising in the informing of browser:
Determine the time receiving described notification message;
If received the time of described notification message before the value of described message ejection time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing; Or,
If the time receiving described notification message, when described message ejects the scope of the value of time period, ejects the informing of browser, and show described notification message in described informing.
4. method according to claim 2, is characterized in that, when described configurable field comprises the expired time of message, described according to the value in described configurable field, shows described notification message, comprising in the informing of browser:
Determine the time receiving described notification message;
If described notification message, after the value of the expired time of described notification message, processes as stale messages by time when receiving described notification message; Or,
If time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
5. method according to claim 2, is characterized in that, when described configurable field comprises the priority of message, described according to the value in described configurable field, shows described notification message, comprising in the informing of browser:
Eject the informing of browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
6. method according to claim 2, is characterized in that, when described configurable field comprises picture pattern, URL address is also comprised in described notification message, described according to the value in described configurable field, in the informing of browser, show described notification message, comprising:
According to described URL address acquisition picture;
Eject the informing of browser, and in described informing, show described picture according to described picture pattern, described picture pattern comprises the dimension information of picture.
7. the exhibiting device of notification message in browser, is characterized in that, comprising:
Receiver module, for receiving the notification message that service end sends, comprises configurable field in described notification message, and wherein, when the value of described configurable field is different, the display form of described notification message is different;
Display module, for according to the value in described configurable field, shows described notification message in the informing of browser.
8. device according to claim 7, is characterized in that, described configurable field comprises at least one item in following item:
Message ejects the time period;
The expired time of message;
The priority of message;
Picture pattern.
9. device according to claim 8, is characterized in that, when described configurable field comprise message eject the time period time, described display module specifically for:
Determine the time receiving described notification message;
If received the time of described notification message before the value of described message ejection time period, described notification message is preserved in this locality, and detect the local notification message preserved with predetermined period, when the time detected belongs to the scope of the value of described message ejection time period, eject the informing of browser, and show described notification message in described informing; Or,
If the time receiving described notification message, when described message ejects the scope of the value of time period, ejects the informing of browser, and show described notification message in described informing.
10. device according to claim 8, is characterized in that, when described configurable field comprises the expired time of message, described display module specifically for:
Determine the time receiving described notification message;
If described notification message, after the value of the expired time of described notification message, processes as stale messages by time when receiving described notification message; Or,
If time when receiving described notification message is before the value of the expired time of described message, ejects the informing of browser, and show described notification message in described informing.
11. devices according to claim 8, is characterized in that, when described configurable field comprises the priority of message, described display module specifically for:
Eject the informing of browser, and according to priority order from high to low, show described notification message successively in the position from top to bottom at the interface of described informing.
12. devices according to claim 8, is characterized in that, when described configurable field comprises picture pattern, also comprise URL address in described notification message, described display module specifically for:
According to described URL address acquisition picture;
Eject the informing of browser, and in described informing, show described picture according to described picture pattern, make described picture have described picture pattern, described picture pattern comprises the dimension information of picture.
13. 1 kinds of client devices, is characterized in that, comprising: housing, processor, storer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of client device or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code, for execution by reading the executable program code stored in storer:
Receive the notification message that service end sends, comprise configurable field in described notification message, wherein, when the value of described configurable field is different, the display form of described notification message is different;
According to the value in described configurable field, in the informing of browser, show described notification message.
CN201510413315.3A 2015-07-14 2015-07-14 Method and device for displaying notification messages in browser Pending CN105095420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510413315.3A CN105095420A (en) 2015-07-14 2015-07-14 Method and device for displaying notification messages in browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510413315.3A CN105095420A (en) 2015-07-14 2015-07-14 Method and device for displaying notification messages in browser

Publications (1)

Publication Number Publication Date
CN105095420A true CN105095420A (en) 2015-11-25

Family

ID=54575857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510413315.3A Pending CN105095420A (en) 2015-07-14 2015-07-14 Method and device for displaying notification messages in browser

Country Status (1)

Country Link
CN (1) CN105095420A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511727A (en) * 2015-12-14 2016-04-20 魅族科技(中国)有限公司 Message processing method and device
CN106791145A (en) * 2016-12-30 2017-05-31 北京小米移动软件有限公司 Short message management method and device
CN106791139A (en) * 2016-12-29 2017-05-31 北京猎豹移动科技有限公司 A kind of message display method and device
CN107205031A (en) * 2017-05-31 2017-09-26 北京京东尚科信息技术有限公司 Information prompting method, device and terminal device
CN108021419A (en) * 2016-11-02 2018-05-11 阿里巴巴集团控股有限公司 A kind of ejection layer shows control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399781A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Message sending method, system, device and message server
CN103997507A (en) * 2013-02-20 2014-08-20 腾讯科技(深圳)有限公司 Information push method and apparatus
US20140258409A1 (en) * 2013-01-30 2014-09-11 Tencent Technology (Shenzhen) Company Limited Method, server and browser for pushing message actively
CN104407827A (en) * 2014-10-31 2015-03-11 广东欧珀移动通信有限公司 Method for displaying messages in notification bar and mobile terminal
CN104461510A (en) * 2014-11-12 2015-03-25 小米科技有限责任公司 Notification message displaying method and device
CN104579903A (en) * 2013-10-15 2015-04-29 镇江雅迅软件有限责任公司 Network information management system based on Android handheld terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399781A (en) * 2007-09-26 2009-04-01 华为技术有限公司 Message sending method, system, device and message server
US20140258409A1 (en) * 2013-01-30 2014-09-11 Tencent Technology (Shenzhen) Company Limited Method, server and browser for pushing message actively
CN103997507A (en) * 2013-02-20 2014-08-20 腾讯科技(深圳)有限公司 Information push method and apparatus
CN104579903A (en) * 2013-10-15 2015-04-29 镇江雅迅软件有限责任公司 Network information management system based on Android handheld terminal
CN104407827A (en) * 2014-10-31 2015-03-11 广东欧珀移动通信有限公司 Method for displaying messages in notification bar and mobile terminal
CN104461510A (en) * 2014-11-12 2015-03-25 小米科技有限责任公司 Notification message displaying method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511727A (en) * 2015-12-14 2016-04-20 魅族科技(中国)有限公司 Message processing method and device
CN105511727B (en) * 2015-12-14 2019-02-15 魅族科技(中国)有限公司 A kind of message treatment method and device
CN108021419A (en) * 2016-11-02 2018-05-11 阿里巴巴集团控股有限公司 A kind of ejection layer shows control method and device
CN106791139A (en) * 2016-12-29 2017-05-31 北京猎豹移动科技有限公司 A kind of message display method and device
CN106791145A (en) * 2016-12-30 2017-05-31 北京小米移动软件有限公司 Short message management method and device
CN107205031A (en) * 2017-05-31 2017-09-26 北京京东尚科信息技术有限公司 Information prompting method, device and terminal device

Similar Documents

Publication Publication Date Title
CN105095420A (en) Method and device for displaying notification messages in browser
CN104219617B (en) Service acquisition method and device
CN105487760B (en) Method and device for displaying message and electronic equipment
CN104091277A (en) Association method and apparatus for user identity identifications, and advertisement delivery method and apparatus
EP3028477B1 (en) Facilitating individualized user interaction with an electronic device
CN107818433B (en) Pickup method, logistics information processing method, device and system
CN103886044A (en) Method and device for providing search results
CN109766071B (en) Display adjustment method and device for bar-shaped electronic shelf label
CN104021218A (en) Information display method and device
CN104580334B (en) A kind of merchandise news method for pushing and device
CN110990733B (en) Page loading method and device, electronic equipment and medium
CN103987028A (en) Method and system for automatically updating contact persons
CN105100062A (en) Information push method, device and system
CN103796040A (en) Method and device for releasing multimedia data according to network status of mobile terminal
CN103995846A (en) Application message searching method and device
CN110022260A (en) A kind of Cross-environment acknowledgement message processing method and system
CN104021500A (en) Product quality tracing device based on two-dimensional bar code technology
CN101540949B (en) Method for prompting user of current roaming position, system, mobile terminal and intelligent card
CN107548055B (en) Multi-region SIM card selection method, system and device and industrial personal computer
CN103179207A (en) Data transmission method and system as well as device
CN111050217B (en) Video playing method and device
CN106020605A (en) Application icon display method, user terminal and system
CN108415916B (en) Goods sorting prompting method and device and electronic equipment
US20090210508A1 (en) Methods and systems for providing information associated with a consumer good
CN105243315A (en) Single picture verification code input method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125

RJ01 Rejection of invention patent application after publication