CN107391273B - Message display method, message pushing method and device - Google Patents

Message display method, message pushing method and device Download PDF

Info

Publication number
CN107391273B
CN107391273B CN201710502804.5A CN201710502804A CN107391273B CN 107391273 B CN107391273 B CN 107391273B CN 201710502804 A CN201710502804 A CN 201710502804A CN 107391273 B CN107391273 B CN 107391273B
Authority
CN
China
Prior art keywords
message
display mode
push
identifier
type identifier
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
Application number
CN201710502804.5A
Other languages
Chinese (zh)
Other versions
CN107391273A (en
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.)
Qingdao Hisense Smart Life Technology Co Ltd
Original Assignee
Qingdao Hisense Smart Home Systems 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 Qingdao Hisense Smart Home Systems Co ltd filed Critical Qingdao Hisense Smart Home Systems Co ltd
Priority to CN201710502804.5A priority Critical patent/CN107391273B/en
Publication of CN107391273A publication Critical patent/CN107391273A/en
Application granted granted Critical
Publication of CN107391273B publication Critical patent/CN107391273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The invention discloses a message display method, a message pushing method and a message pushing device, and belongs to the field of internet. The method comprises the steps of receiving a push message sent by a message push server, wherein the push message carries a type identifier, and the type identifier is used for identifying the message type of the push message; and determining a display mode corresponding to the type identifier according to the preset corresponding relation, and displaying the push message by using the display mode. According to the invention, when the user needs to modify the display mode of a certain message, the corresponding relation between the type identifier and the display mode only needs to be reset in the preset application program of the control equipment, so that the workload of the message pushing server is not increased, and the personalized requirements of the user are met.

Description

Message display method, message pushing method and device
Technical Field
The embodiment of the invention relates to the technical field of smart home, in particular to a message display method, a message pushing method and a message pushing device.
Background
A typical smart home system includes: control device, server and a plurality of intelligent house equipment. Taking an example that an Operating System of the control device is an apple Operating System (IOS), the server corresponding to the control device includes: an application server and Apple Push Notification Services (APNs).
In the smart home system, a message display method provided by the related art includes: when the intelligent home equipment detects that the equipment state or the surrounding environment state changes, reporting a notification message to an application server corresponding to the intelligent home equipment; correspondingly, the application server receives the notification message reported by the intelligent home equipment and sends the notification message to the message pushing server, so that the message pushing server pushes the notification message to the control equipment bound with the intelligent home equipment. When the control device receives the notification message, the IOS operating system acquires the message content of the notification message and displays the notification message.
In the method, various notification messages are often displayed in a form of popping up a prompt box and playing a prompt tone, and the personalized requirements of different users are not considered sufficiently.
Disclosure of Invention
In order to solve the problem that the display modes of various notification messages at present are insufficient for consideration of personalized requirements of different users, embodiments of the present invention provide a message display method, a message push method and a message push device. The technical scheme is as follows:
in a first aspect, a message display method is provided, which includes:
receiving a push message sent by a message push server, wherein the push message carries a type identifier, and the type identifier is used for identifying the message type of the push message;
determining a display mode corresponding to the type identifier according to a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the type identifier of the preset message type and the display mode;
and displaying the push message by using a display mode.
Optionally, determining a display mode corresponding to the type identifier according to the preset corresponding relationship includes:
if the type identifier is in the first type identifier set, determining that a display mode corresponding to the type identifier is a first display mode, wherein the first display mode comprises displaying a pop-up box and/or playing a prompt tone;
if the type identifier is in the second type identifier set, determining that the display mode corresponding to the type identifier is a second display mode, wherein the second display mode comprises a popup box which does not need to be displayed and a prompt tone which does not need to be played;
and the first type identification set and the second type identification set do not have intersection.
Optionally, when the display manner corresponding to the type identifier is the second display manner, before displaying the push message using the display manner, the method further includes:
determining the running state of a preset application program, wherein the running state comprises one of a foreground running state and a background running state;
when the preset application program is in a foreground running state, the display mode is changed from the second display mode to the first display mode;
and when the preset application program is in the background running state, keeping the display mode as the second display mode unchanged.
Optionally, the message push server includes an APNS server, and receives a push message sent by the message push server, including:
when a target account in a predetermined application program is in a logged-in state, receiving a push message sent by an APNS server, wherein the push message also carries a silence parameter, and the silence parameter is used for indicating that the predetermined application program is allowed to directly read message content in the push message when the push message is received;
and reading the message content of the push message according to the silence parameter through a preset application program.
Optionally, the message type of the push message includes at least one of a device alarm message, an operation home attribute message, and a device control message.
Optionally, the method is applied to a control device, and the method further includes:
when a target account in a preset application program is switched from a non-logged state to a logged state, opening an offline message pushing channel, wherein the offline message pushing channel comprises a message pushing channel between a control device and an application server, the application server is used for caching offline messages, the offline messages comprise at least one notification message cached in a time period when the target account is in the non-logged state, and the notification message is used for indicating the device state and/or the environment state of the intelligent home equipment;
acquiring an offline message from an application server through an offline message pushing channel;
the offline message is displayed in a message center of a predetermined application.
Optionally, the method further includes:
and when the target account in the preset application program is switched from the logged-in state to the logged-out state, disconnecting the offline message pushing channel.
In a second aspect, a message pushing method is provided, where the method includes:
receiving a notification message sent by the intelligent home equipment, wherein the notification message is used for indicating the equipment state and/or the environment state of the intelligent home equipment;
obtaining a push message according to the notification message and a type identifier of the notification message, wherein the type identifier is used for identifying the message type of the push message, and the push message carries the type identifier;
and sending the push message to a message push server, wherein the message push server is used for forwarding the push message to the control equipment.
Optionally, before obtaining the push message according to the notification message and the type identifier of the notification message, the method further includes:
when determining that a target account in a preset application program of the control equipment is in a logged-in state, executing a step of obtaining a push message according to the notification message and a type identifier of the notification message;
and caching the notification message when the target account in the predetermined application program of the control device is determined to be in the non-logged-in state.
Optionally, the method further includes:
receiving an offline message acquisition request sent by control equipment through an offline message pushing channel, wherein the offline message pushing channel comprises a message pushing channel between the control equipment and an application server;
and sending the offline message to the control equipment through an offline message pushing channel according to the offline message acquisition request, wherein the offline message comprises at least one notification message cached in the application server.
In a third aspect, there is provided a message display apparatus comprising:
the receiving module is used for receiving a push message sent by the message push server, wherein the push message carries a type identifier, and the type identifier is used for identifying the message type of the push message;
the determining module is used for determining a display mode corresponding to the type identifier according to a preset corresponding relation, and the preset corresponding relation comprises the corresponding relation between the type identifier of the preset message type and the display mode;
and the first display module is used for displaying the push message in a display mode.
Optionally, the determining module includes:
a first determination unit and a second determination unit;
the first determining unit is used for determining that the display mode corresponding to the type identifier is a first display mode if the type identifier is in the first type identifier set, wherein the first display mode comprises displaying a pop-up box and/or playing a prompt tone;
the second determining unit is used for determining that the display mode corresponding to the type identifier is the second display mode if the type identifier is in the second type identifier set, and the second display mode comprises a popup box which does not need to be displayed and a prompt tone which does not need to be played;
and the first type identification set and the second type identification set do not have intersection.
Optionally, when the display mode corresponding to the type identifier is the second display mode, the second determining unit is further configured to determine an operating state of the predetermined application program, where the operating state includes one of a foreground operating state and a background operating state; when the preset application program is in a foreground running state, the display mode is changed from the second display mode to the first display mode; and when the preset application program is in the background running state, keeping the display mode as the second display mode unchanged.
Optionally, the message push server includes an APNS server, and the receiving module includes:
a receiving unit and a reading unit;
a receiving unit, configured to receive a push message sent by an APNS server when a target account in a predetermined application is in a logged-in state, where the push message also carries a silence parameter, and the silence parameter is used to indicate that the predetermined application is allowed to directly read message content in the push message when the push message is received;
and the reading unit is used for reading the message content of the push message according to the silence parameter through a preset application program.
Optionally, the message type of the push message includes at least one of a device alarm message, an operation home attribute message, and a device control message.
Optionally, the apparatus is applied to a control device, and the apparatus further includes:
the system comprises an opening module, a sending module and a processing module, wherein the opening module is used for opening an offline message pushing channel when a target account in a preset application program is switched from a non-logged state to a logged state, the offline message pushing channel comprises a message pushing channel between control equipment and an application server, the application server is used for caching offline messages, the offline messages comprise at least one notification message cached in a time period when the target account is in the non-logged state, and the notification message is used for indicating the equipment state and/or the environment state of the intelligent home equipment;
the acquisition module is used for acquiring the offline message from the application server through the offline message pushing channel;
and the second display module is used for displaying the offline message in the message center of the preset application program.
Optionally, the device is further configured to disconnect the offline message push channel when the target account in the predetermined application is switched from the logged-in state to the non-logged-in state.
In a fourth aspect, a message pushing apparatus is provided, the apparatus including:
the first receiving module is used for receiving a notification message sent by the intelligent home equipment, wherein the notification message is used for indicating the equipment state and/or the environment state of the intelligent home equipment;
the obtaining module is used for obtaining a push message according to the notification message and a type identifier of the notification message, wherein the type identifier is used for identifying the message type of the push message, and the push message carries the type identifier;
the first sending module is used for sending the push message to a message push server, and the message push server is used for forwarding the push message to the control equipment.
Optionally, the apparatus further includes:
the obtaining module is further used for executing the step of obtaining the push message according to the notification message and the type identifier of the notification message when the target account in the preset application program of the control device is determined to be in the logged-in state;
and the cache module is used for caching the notification message when the target account in the preset application program of the control equipment is determined to be in the non-logged state.
Optionally, the apparatus further includes:
the second receiving module is used for receiving an offline message acquisition request sent by the control equipment through an offline message pushing channel, wherein the offline message pushing channel comprises a message pushing channel between the control equipment and the application server;
and the second sending module is used for sending the offline message to the control equipment through the offline message pushing channel according to the offline message acquisition request, wherein the offline message comprises at least one notification message cached in the application server.
In a fifth aspect, a terminal is provided, where the terminal includes a processor and a memory, and the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the message display method according to the first aspect and any one of the possible implementation manners of the first aspect.
In a sixth aspect, a server is provided, which includes a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the message pushing method provided in the second aspect and any one of the possible implementation manners of the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, where at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the message display method according to the first aspect and any one of the possible implementation manners of the first aspect.
In an eighth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the message pushing method provided in the second aspect and any one of the possible implementation manners of the second aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps that a type identifier of a message type is obtained in a received push message through a control device, a display mode corresponding to the type identifier is determined according to a preset corresponding relation, and the push message is displayed through the display mode; when a user needs to modify the display mode of a certain message, the corresponding relation between the type identifier and the display mode only needs to be reset in a preset application program of the control equipment, so that the workload of the APNS server is not increased, and the personalized requirements of the user are met.
Drawings
FIG. 1 is a schematic illustration of an implementation environment provided by one embodiment of the invention;
fig. 2 is a flowchart of a message pushing method and a message displaying method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a message pushing method according to another embodiment of the present invention;
fig. 4 is a flowchart of a message display method according to another embodiment of the present invention;
fig. 5 is a flowchart of a message pushing method and a message displaying method according to another embodiment of the present invention;
fig. 6 is a schematic interface diagram according to a message display method provided by an embodiment of the present invention;
fig. 7 is a schematic interface diagram according to a message display method provided by an embodiment of the present invention;
fig. 8 is a structural diagram of a message display apparatus provided in one embodiment of the present invention;
fig. 9 is a block diagram of a message pushing apparatus according to an embodiment of the present invention;
FIG. 10 is a block diagram of a server provided by one embodiment of the present invention;
fig. 11 is a block diagram of a control device provided in one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
At present, when a control device receives a notification message sent by a message push server, various notification messages are often displayed on the control device in a form of popping up a prompt box and playing a prompt tone, and personalized requirements of different users are not considered sufficiently.
In the related art, if a user needs to modify a display mode of a certain type of notification message on a control device, the user needs to reset the display mode corresponding to the type of the message on the control device, and after the user resets the display mode, the control device also needs to send a modification request to a message push server, so that the message push server performs corresponding modification and adaptation on the display mode reset by the type of the message according to the modification request.
For example, for a certain type of message, the control device modifies the display mode corresponding to the type of message from a dynamic display mode to a silent display mode, where the silent display mode is that a pop-up box and a prompt tone do not need to be displayed when a notification message is displayed, and then after the modification, the message push server also needs to correspondingly adjust the push mode corresponding to the type of message, so that the control device does not display the pop-up box and does not play the prompt tone when receiving the notification message corresponding to the type of message.
However, in the above method, when the user resets the display mode of the notification message according to the user's own needs, both the message push server and the control device side need to be modified accordingly, which increases the redundant workload of the message push server. Therefore, the present application provides a message display method and device to solve the above problems in the related art. According to the technical scheme, the application server adds a type identifier in the notification message to obtain the push message, wherein the type identifier is used for indicating the message type of the push message, and the application server sends the push message to the control equipment through the message push server; correspondingly, the control equipment can acquire the type identifier in the received push message and determine the display mode corresponding to the type identifier according to the preset corresponding relation; when a user needs to modify the display mode of some notification message, the corresponding relation between the type identifier and the display mode only needs to be reset in a preset application program of the control equipment, so that the situation that the message pushing server needs to perform corresponding adaptation according to the reset of the display mode by the control equipment is avoided, the message pushing server only needs to forward the pushing message sent by the application server to the control equipment, and the personalized requirement of the user is met while the redundant workload of the message pushing server is not increased.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an embodiment of the invention is shown. The implementation environment may include: the intelligent home equipment 120, the application server 140, the message push server 160 and the control equipment 180.
The smart home devices 120 include, but are not limited to, smart appliances such as smart televisions, smart refrigerators, smart air conditioners, smart washing machines, smart lights, smart gates, smart curtains, and the like.
When the device state and/or the environment state of the smart home device 120 changes, a notification message is generated and sent to the application server 140.
Optionally, the smart home device 120 and the application server 140 may be connected through a wired or wireless network.
The application server 140 may be one server, a server cluster composed of a plurality of servers, or a cloud computing service center. Alternatively, the application server 140 is typically a server installed by the manufacturer of the smart home device 120. The application server 140 has remote connection capability and remote control capability to the smart home devices 120.
Optionally, when the application server 140 receives the notification message sent by the smart home device 120, a push message is obtained according to the notification message and the type identifier of the notification message, where the push message carries the type identifier.
Optionally, the push message is a notification message carrying a type identifier, where the type identifier is used to identify a message type of the notification message, that is, the type identifier is used to identify a message type of the push message.
For example, the application server 140 adds the type identifier to the received notification message to obtain the push message.
When the control device 180 is an IOS device, due to the IOS push mechanism, if there is a push message that needs to be pushed to the control device 180, the application server 140 first sends the push message to the message push server 160. The message push server 160 includes an APNS server, and is configured to receive the push message sent by the application server 140 and send the push message to the control device 180. In the following, the message push server 160 is described as including an APNS server.
Optionally, the application server 140 and the APNS server 160 are connected via a wired or wireless network.
The control device 180 is a device whose operating system is an IOS system, that is, the control device 180 is an IOS device. Optionally, a predetermined Application (Application) for sending a control command to the smart home device 120 is installed in the control device 180, and the control device 180 runs the predetermined Application to establish a communication connection with the APNS server 160.
Alternatively, the control device 180 is connected to the APNS server 160 through a wired or wireless network.
Alternatively, the control device 180 is a portable electronic device such as a mobile phone, a tablet computer, a multimedia player, a PDA (personal digital Assistant), and the like. The control device 180 is typically a portable electronic device used by an administrator or owner that has remote control authority over the smart home devices 120 in the home.
It should be noted that, only one smart home device 120 and one control device 180 are schematically illustrated in the drawing, and the number of the smart home devices 120 and the number of the control devices 180 are not limited in the embodiment of the present invention.
The Network is typically the Internet, but may be any Network including, but not limited to, a local Area Network (L cal Area Network, L AN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wireline, or wireless Network, a Private Network, or any combination of Virtual Private networks, hi some embodiments, data exchanged over the Network is represented using techniques and/or formats including Hypertext Markup language (HTM L), Extensible Markup language (XM 6725, XM L), etc.
Referring to fig. 2, a flowchart of a message pushing method and a message displaying method according to an embodiment of the present invention is shown. This embodiment is illustrated in the manner in which the method may be applied to the implementation environment shown in FIG. 1. The method may include the steps of:
step 201, an application server receives a notification message sent by an intelligent home device.
Optionally, when the device state and/or the environment state of the smart home device changes, the smart home device sends a notification message to the application server.
Optionally, the notification message carries the home device identifier of the smart home device.
Optionally, the message type of the notification message includes at least one of a device alarm message, an operation home attribute message, and a device control message. The message type of the notification message may also include other message types, and the present embodiment does not limit the type and number of the message types of the notification message. In the following, the description will be given only by taking four message types, i.e., the notification message includes a device alarm message, an operation home attribute message, and a device control message as an example.
For example, when a gas stove in a home leaks gas, the gas stove generates an equipment alarm message, the equipment alarm message carries a household equipment identifier RQ1 of the gas stove, and the gas stove reports the equipment alarm message to an application server through a gas sensor.
Step 202, the application server obtains the push message according to the notification message and the type identifier of the notification message.
The type identifier is used for identifying the message type of the push message, and the push message carries the type identifier.
Optionally, each notification message corresponds to a type identifier, and for example, a correspondence between the notification message and a message type of the notification message is shown in table one. When the message type of the notification message is the equipment alarm message, the type identifier of the notification message is 1; when the message type of the notification message is the operation message, the type identifier of the notification message is 2; when the message type of the notification message is the operation family attribute message, the type identifier of the notification message is 3; when the message type of the notification message is the device control message, the type identifier of the notification message is 4.
Watch 1
Message type Type identification
Device alert messages 1
Operational messages 2
Manipulating home property messages 3
Device control messages 4
In a possible implementation manner, the application server adds the type identifier of the notification message to obtain a push message, where the push message includes the notification message carrying the type identifier.
For example, the notification message is a message a, and the application server determines that the message type of the notification message is "device alarm message", and adds a type identifier "1" corresponding to the message type to the notification message, so that the push message includes the message a carrying the type identifier "1".
In another possible implementation manner, the application server adds the type identifier of the notification message and the message content to the message template according to a preset message template to obtain the push message.
Optionally, the application server presets a general message template, and the message template is used for specifying each message item of the push message.
Illustratively, the message item includes at least one of a message content item corresponding to the message content of the push message, a message type item corresponding to the message type of the push message, a message source item corresponding to the home device identifier of the smart home device, and a push object item corresponding to the control device identifier of the control device.
For example, when the notification message received by the application server is a message E, it is determined that the message type of the message E is "device alarm message" and the message content of the message E is "malicious intrusion", a type identifier "1" corresponding to the message type "device alarm message" is added to the message type item format id of the message template, and the message content "malicious intrusion" is added to the message content item of the message template, so that a push message is generated based on the message template.
In step 203, the application server sends the push message to the APNS server.
And the application server sends the push message carrying the type identifier to a push server. Optionally, the push message further carries a control device identifier of the control device.
At step 204, the APNS server sends the push message to the control device.
Optionally, the APNS server receives a push message sent by the application server, acquires a control device identifier in the push message, and sends the push message to the control device corresponding to the control device identifier.
In step 205, the control device receives a push message sent by the APNS server.
Step 206, the control device determines a display mode corresponding to the type identifier according to a preset corresponding relationship, where the preset corresponding relationship includes a corresponding relationship between the type identifier of the preset message type and the display mode.
Optionally, at the time when the control device receives the push message, the type identifier carried in the push message is obtained through a predetermined application program, so that the display mode corresponding to the type identifier is determined according to the preset corresponding relationship.
Optionally, the display mode includes a first display mode and a second display mode, where the first display mode is also called a dynamic display mode and includes displaying a pop-up box and/or playing a prompt tone; the second display mode is also called a silent display mode, and includes a mode that a pop-up box is not required to be displayed and a prompt tone is not required to be played.
Step 207, the control device displays the push message in a display mode.
Optionally, the display content of the displayed push message may include the message content of the push message received by the control device, and may also include a customized display content. The present embodiment does not limit the display content of the displayed push message.
For example, when the control device determines that the type identifier carried in the push message "message a" is "1", and determines that the display mode corresponding to the type identifier "1" is the first display mode according to the preset corresponding relationship, the control device displays the message a by displaying a pop-up box and playing a prompt tone.
It should be noted that, before the application server sends the push message to the APNS server, a step related to the application engineering program applying for the registration message push is further included. In one possible embodiment, please refer to fig. 3:
1. the preset application program of the control device sends a registration channel request to the APNS server, and the registration channel request is used for requesting to register an online message push channel between the control device and the APNS server.
Optionally, the registration channel request carries a first control device identifier of the control device and an application identifier of a predetermined application. Illustratively, the first control device identification includes a Unique Device Identifier (UDID), and the application identification includes an identifier of the application (Bundle identifier).
2. And the APNS server returns a second control device identifier corresponding to the control device.
Optionally, the APNS server generates a second control device identifier corresponding to the control device according to the registration channel request, and returns the second control device identifier to the control device.
Optionally, the second control device identifier is used to uniquely identify the control device in each IOS device in the APNS server. Illustratively, the second control device identification includes a device token (English).
3. The control device sends the second control device identification to the application server.
Optionally, when receiving the second control device identifier sent by the APNS server, the control device sends the second control device identifier to the application server.
Optionally, the application server receives the second control device identifier, and stores the corresponding relationship between the second control device identifier and the home device identifier in the database.
4. The intelligent home equipment sends a notification message to the application server, wherein the notification message is used for indicating the equipment state and/or the environment state of the intelligent home equipment.
Optionally, the notification message carries a home device identifier of the smart home device.
5. The application server sends a push message to the APNS server.
Optionally, when the application server receives a notification message sent by the smart home device, the application server determines a type identifier of the notification message and a second control device identifier of the control device, so as to generate a push message, where the push message carries the type identifier and the second control device identifier.
When the application server receives the notification message, and the notification message carries the home device identifier of the intelligent home device, the application server can determine the second control device identifier corresponding to the furniture device identifier according to the stored corresponding relationship, that is, determine that the message pushing object is the control device corresponding to the second control device identifier.
Optionally, the correspondence between the second control device identifier and the home device identifier stored in the application server includes one of the following three correspondence relationships:
the first correspondence relationship: the second control equipment identification and the household equipment identification have a one-to-one correspondence relationship;
the second correspondence relationship: each second control equipment identifier corresponds to at least two home equipment identifiers;
the third correspondence relationship: and each household equipment identifier corresponds to at least two second control equipment identifiers.
If the corresponding relationship between the second control device identifier and the home device identifier is the first corresponding relationship or the second corresponding relationship, the application server determines a control device identifier corresponding to the home device identifier when receiving the home device identifier of the smart home device.
If the corresponding relationship between the second control device identifier and the home device identifier is the third corresponding relationship, when the application server receives the home device identifier of the smart home device, one second control device identifier is randomly determined or the preset second control device identifier with the highest priority is determined in at least two second control device identifiers corresponding to the home device identifier.
For convenience of description, the description will be given only by taking the first correspondence relationship as the correspondence relationship between the second control device identifier and the home device identifier.
6. The APNS server sends a push message to the control device.
When the APNS receives the push message sent by the application server, the APNS determines a second control equipment identifier in the push message, and sends the push message to the control equipment corresponding to the second control equipment identifier.
In summary, in the embodiment of the present invention, the control device obtains the type identifier of the message type from the received push message, determines the display mode corresponding to the type identifier according to the preset corresponding relationship, and displays the push message by using the display mode; when a user needs to modify a display mode of a certain type of sending message, the corresponding relation between the type identifier and the display mode only needs to be reset in a preset application program of the control equipment, the situation that the message pushing server needs to carry out corresponding adaptation according to the reset of the display mode by the control equipment is avoided, and then the message pushing server only needs to forward the pushing message sent by the application server to the control equipment, so that the personalized requirement of the user is met while the redundant workload of the APNS server is not increased.
It should be noted that the account status of the target account in the predetermined application includes a logged-in status and a non-logged-in status, and the target account is a user account having a control authority for the smart home device. After the application server receives the notification message sent by the smart home device, the account status of the target account in the predetermined application program of the control device needs to be determined. When a target account in a preset application program is in a logged-in state, the application server generates a push message, and the push message is sent to the control equipment through the APNS server. When the target account in the preset application program is in the non-login state, the application server caches the received notification message. Next, the message display method when the target account in the predetermined application is in the logged-in state is described with the embodiments provided in fig. 4 to 6, and the message display method when the target account in the predetermined application is switched from the unregistered state to the logged-in state is described with the embodiment provided in fig. 7.
Referring to fig. 4, a flowchart of a message display method according to an embodiment of the present invention is shown. This embodiment is illustrated in the manner in which the method may be applied to the implementation environment shown in FIG. 1. The method may include the steps of:
step 401, when a target account in a predetermined application program is in a logged-in state, the control device receives a push message sent by the APNS server, where the push message also carries a silent parameter.
Wherein the silence parameter is used for indicating that the predetermined application program is allowed to directly read the message content in the push message when the push message is received.
Illustratively, the mute parameter is "content-available" 1 ".
Optionally, the silence parameter is further used to indicate that the predetermined application program is operated to directly read the message content in the push message when the push message is received, without performing a triggering operation on the push message and without performing a triggering operation on the predetermined application program, that is, the silence parameter is used to indicate that the predetermined application program has a right to directly read the message content in the push message.
Optionally, the silence parameter is further used to instruct the control device not to display the pop-up box and/or not to play the alert tone when the push message is received.
It should be noted that, when the control device receives a push message sent by the APNS server and does not carry a silence parameter, the silence parameter is used to indicate that a predetermined application is not allowed to directly read message content in the push message when the push message is received. That is, at the time of receiving the push message by the control device, the IOS system of the control device can acquire the message content of the push message, but the predetermined application does not have the right to directly read the message content in the push message. And only when the control equipment triggers the push message and enters a preset application program, the preset application program can acquire the message content of the push message.
Step 402, the control device reads the message content of the push message according to the silence parameter through a predetermined application program.
Optionally, when the control device determines the silence parameter according to the received push message, the control device directly reads the message content of the push message through a predetermined application program to obtain the type identifier carried by the push message.
In step 403, the control device determines whether the type identifier of the push message is in the first type identifier set.
The control device judges whether the type identifier of the push message is in the first type identifier set or not, and determines the display mode according to the judgment result.
Optionally, when the control device determines that the type identifier of the push message is in the first type identifier set, step 404 is executed; when the control device determines that the type identifier of the push message is not in the first type identifier set, i.e. in the second type identifier set, step 405 is executed.
And the first type identification set and the second type identification set do not have intersection.
In step 404, the control device determines that the display mode corresponding to the type identifier is the first display mode.
Optionally, after determining that the display mode is the first display mode, the control device directly performs step 409.
In step 405, the control device determines that the display mode corresponding to the type identifier is the second display mode.
In one possible implementation, the first set of type identifications includes type identification "1", and the first set of type identifications includes type identification "2", type identification "3", and type identification "4". The preset corresponding relationship between the type identifier of the message type and the display mode is shown in table two. When the type identifier in the push message is 1, determining that the type identifier '1' is in a first type identifier set, and thus determining that the display mode of the push message is a first display mode; and when the type identifier in the push message is 2, 3 or 4, determining that the type identifier is in the second type identifier set, so as to determine that the display mode of the push message is the second display mode.
Watch two
Figure BDA0001334072020000151
In step 406, the control device determines whether the running state of the predetermined application program is a foreground running state.
Optionally, when the display mode corresponding to the type identifier is the second display mode, the control device determines an operating state of the predetermined application program, where the operating state includes one of a foreground operating state and a background operating state.
Optionally, when the predetermined application program is in a foreground running state, step 407 is executed; when the predetermined application is in the background running state, step 408 is performed.
Step 407, the control device modifies the display mode from the second display mode to the first display mode.
Since the predetermined application is in the foreground operation state, indicating that the user is using the predetermined application, the second display mode can be modified to the first display mode without the user being disturbed,
the push message is displayed by displaying a pop-up box and/or playing an alert tone.
And step 408, the control device keeps the display mode unchanged as the second display mode.
Since the predetermined application program is in the background running state, which indicates that the user does not use the predetermined application program currently, in order to avoid the user being disturbed, the display mode is kept unchanged as the second display mode, that is, the push message is displayed silently.
And step 409, controlling the equipment to display the push message in a display mode.
In an illustrative example, referring to fig. 5, the push message is "honored [ liu qiang ], [15763932197] exited [ 2017-05-0817: 01:47] your home [ Hi home ], please view in time, the type identifier of the push message is" 2 ", the type identifier" 2 "is in the second type identifier set, and the control device determines that the display mode of the push message is the second display mode. And when the control equipment judges that the preset application program is in a foreground running state, the control equipment modifies the display mode from the second display mode to the first display mode. That is, the control device displays the push message "liu qiang", "15763932197 exit your home [ Hihome ] in [ 2017-05-0817: 01:47] asking for a prompt view" by displaying the prompt box 51 and accompanying the prompt tone.
In an illustrative example, referring to fig. 6, the push message is "new member joins the family", the type identifier of the push message is "3", the type identifier "3" is in the second type identifier set, and the control device determines that the display mode of the push message is the second display mode. And when the control equipment judges that the preset application program is in the background running state, the control equipment keeps the display mode unchanged as the second display mode. The control device displays a custom push message "×" new member joined the household "in the form of a display system notification bar 61 by creating a local notification without the need to display a pop-up box and without the need to play a prompt tone.
In summary, in the embodiment of the present invention, when the type identifier of the push message is in the first type identifier set, it is determined that the display manner is the first display manner; when the type identifier of the push message is in the second type identifier set, determining that the display mode is the second display mode; the display mode of each push message can be set by the user according to the requirement of the user, so that the display mode of the push message on the user interface of the control equipment is personalized and diversified.
Referring to fig. 7, a flowchart of a message display method according to an embodiment of the invention is shown. This embodiment is illustrated in the manner in which the method may be applied to the implementation environment shown in FIG. 1. The method may include the steps of:
step 701, when a target account in a predetermined application program is switched from an unregistered state to a logged state, controlling a device to open an offline message pushing channel.
The offline message pushing channel comprises a message pushing channel between the control device and the application server.
Optionally, the working state of the offline message pushing channel includes an open state and a closed state.
When the offline message pushing channel is opened, the offline message pushing channel is in an open state, and the open state is a state that the control device is kept connected with the application server. When the offline message pushing channel is closed, the offline message pushing channel is in a closed state, and the closed state is a state that the control device is disconnected from the application server.
Step 702, the control device obtains an offline message from the application server through an offline message pushing channel.
It should be noted that, the application server has an offline message cached therein, and the offline message includes at least one notification message cached in a time period when the target account is in the non-login state.
Optionally, the control device sends an offline message acquisition request to the application server through the offline message pushing channel; correspondingly, the application server receives the offline message acquisition request, and sends the offline message to the control device through the offline message pushing channel according to the offline message acquisition request.
Step 703, the control device displays the offline message in the message center of the predetermined application program.
Optionally, when the control device receives the offline message sent by the application server, the offline message is displayed in a message center of a predetermined application program.
Optionally, when the target account in the predetermined application program is switched from the logged-in state to the logged-out state, the control device disconnects the offline message pushing channel, and at this time, the offline message pushing channel is in a closed state.
In summary, in the embodiments of the present invention, when the target account in the predetermined application is switched from the unregistered state to the logged state, the offline message pushing channel is opened, the offline message is acquired from the application server through the offline message pushing channel, and the offline message is displayed in the message center of the predetermined application; the control equipment can acquire the offline message from the application server through the offline message pushing channel, the step that the offline message can be received only by forwarding of the APNS is avoided, the workload in the APNS is saved, and the offline message can be displayed in a short time after the preset application program logs in the target account.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 8, a block diagram of a message display apparatus according to an embodiment of the invention is shown. The device can comprise the following modules: a receiving module 810, a determining module 820 and a first display module 830.
A receiving module 810, configured to receive a push message sent by a message push server, where the push message carries a type identifier, and the type identifier is used to identify a message type of the push message;
a determining module 820, configured to determine a display manner corresponding to the type identifier according to a preset corresponding relationship, where the preset corresponding relationship includes a corresponding relationship between a preset type identifier of the message type and the display manner;
the first display module 830 is configured to display the push message in a display manner.
Optionally, the determining module 820 includes: a first determination unit 822 and a second determination unit 824.
A first determining unit 822, configured to determine, if the type identifier is in the first type identifier set, that a display manner corresponding to the type identifier is a first display manner, where the first display manner includes displaying a pop-up box and/or playing a prompt tone;
a second determining unit 824, configured to determine, if the type identifier is in the second type identifier set, that the display mode corresponding to the type identifier is a second display mode, where the second display mode includes a popup box that does not need to be displayed and a prompt tone that does not need to be played;
and the first type identification set and the second type identification set do not have intersection.
Optionally, when the display mode corresponding to the type identifier is the second display mode, the second determining unit 824 is further configured to determine an operating state of the predetermined application program, where the operating state includes one of a foreground operating state and a background operating state; when the preset application program is in a foreground running state, the display mode is changed from the second display mode to the first display mode; and when the preset application program is in the background running state, keeping the display mode as the second display mode unchanged.
Optionally, the message push server includes an APNS server, and the receiving module 810 includes: a receiving unit 812 and a reading unit 814.
A receiving unit 812, configured to receive a push message sent by the APNS server when a target account in a predetermined application is in a logged-in state, where the push message also carries a silence parameter, and the silence parameter is used to indicate that the predetermined application is allowed to directly read message content in the push message when the push message is received;
a reading unit 814, configured to read, by a predetermined application program, the message content of the push message according to the silence parameter.
Optionally, the message type of the push message includes at least one of a device alarm message, an operation home attribute message, and a device control message.
Optionally, the apparatus is applied to a control device, and the apparatus further includes:
an opening module 840, configured to open an offline message pushing channel when a target account in a predetermined application is switched from an unregistered state to a logged state, where the offline message pushing channel includes a message pushing channel between a control device and an application server, the application server is configured to cache an offline message, the offline message includes at least one notification message cached in a time period when the target account is in the unregistered state, and the notification message is used to indicate a device state and/or an environment state of the smart home device;
an obtaining module 850, configured to obtain an offline message from an application server through an offline message pushing channel;
a second display module 860 for displaying the offline message in the message center of the predetermined application.
Optionally, the device is further configured to disconnect the offline message push channel when the target account in the predetermined application is switched from the logged-in state to the non-logged-in state.
Referring to fig. 9, a block diagram of a message pushing apparatus according to an embodiment of the present invention is shown. The device can comprise the following modules: a first receiving module 910, a deriving module 920 and a first sending module 930.
A first receiving module 910, configured to receive a notification message sent by an intelligent home device, where the notification message is used to indicate a device state and/or an environment state of the intelligent home device;
an obtaining module 920, configured to obtain a push message according to the notification message and a type identifier of the notification message, where the type identifier is used to identify a message type of the push message, and the push message carries the type identifier;
a first sending module 930, configured to send the push message to a message push server, where the message push server is configured to forward the push message to the control device.
Optionally, the apparatus further includes:
an obtaining module 920, configured to execute a step of obtaining a push message according to the notification message and the type identifier of the notification message when it is determined that the target account in the predetermined application program of the control device is in a logged-in state;
and a caching module 940, configured to cache the notification message when it is determined that the target account in the predetermined application of the control device is in a non-logged-in state.
Optionally, the apparatus further includes:
a second receiving module 950, configured to receive an offline message acquisition request sent by a control device through an offline message pushing channel, where the offline message pushing channel includes a message pushing channel between the control device and an application server;
a second sending module 960, configured to send an offline message to the control device through the offline message pushing channel according to the offline message obtaining request, where the offline message includes at least one notification message cached in the application server.
Referring to fig. 10, a block diagram of a server according to an embodiment of the present invention is shown. The server comprises application server 140 in the implementation environment provided in fig. 1. Specifically, the method comprises the following steps: the application server 140 includes a Central Processing Unit (CPU)1001, a system memory 1004 including a Random Access Memory (RAM)1002 and a Read Only Memory (ROM)1003, and a system bus 1005 connecting the system memory 1004 and the central processing unit 1001. The application server 140 also includes a basic input/output system (I/O system) 1006, which facilitates the transfer of information between various devices within the computer, and a mass storage device 1007, which stores an operating system 1013, application programs 1014, and other program modules 1015.
The basic input/output system 1006 includes a display 1008 for displaying information and an input device 1009, such as a mouse, keyboard, etc., for user input of information. Wherein the display 1008 and the input device 1009 are both connected to the central processing unit 1001 via an input-output control device 1010 connected to the system bus 1005. The basic input/output system 1006 may also include an input/output control device 1010 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input/output control device 1010 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1007 is connected to the central processing unit 1001 through a mass storage control device (not shown) connected to the system bus 1005. The mass storage device 1007 and its associated computer-readable media provide non-volatile storage for the application server 140. That is, the mass storage device 1007 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1004 and mass storage device 1007 described above may be collectively referred to as memory.
The application server 140 may also operate as a remote computer connected to a network via a network, such as the internet, according to various embodiments of the present invention. That is, the application server 140 may be coupled to the network 1012 through a network interface unit 1011 coupled to the system bus 1005, or the network interface unit 1011 may be used to connect to another type of network or remote computer system (not shown).
The memory also includes one or more programs, which are stored in the memory, and the one or more programs include steps for performing the steps executed by the application server 140 in the message pushing method provided by the embodiment of the present invention.
Optionally, a computer-readable storage medium is further provided, where at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the message pushing method provided in the foregoing method embodiments.
Referring to fig. 11, a block diagram of a control device according to an embodiment of the present invention is shown. The control device 180 comprises the control device 180 in the implementation environment provided in fig. 1. The control device 180 may include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, and communications component 1116.
The processing component 1102 generally controls overall operation of the control device 180, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1118 to execute instructions to perform all or a portion of the steps performed by the control device 180 in the embodiments described above. Further, the processing component 1102 may include one or more modules that facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
The memory 1104 is configured to store various types of data to support operations at the control device 180. Examples of such data include instructions for any application or method operating on the control device 180, contact data, phonebook data, messages, pictures, videos, etc., the data including a device identification and/or a first device key. The memory 1104 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. Also stored in the memory 1104 are one or more modules configured to be executed by the one or more processors 1120 to perform all or a portion of the steps performed by the control device 180 in the embodiments described above.
The power supply component 1106 provides power to the various components of the control device 180. The power components 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the control device 180.
The multimedia component 1108 includes a front facing camera and/or a rear facing camera, when the control device 180 is in an operational mode, such as a capture mode or a video mode, the front facing camera and/or the rear facing camera may receive external multimedia data, each of the front facing camera and the rear facing camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1110 is configured to output and/or input audio signals. For example, the audio component 1110 includes a Microphone (MIC) configured to receive external audio signals when the control device 180 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1104 or transmitted via the communication component 1116. In some embodiments, the audio assembly 1110 further includes a speaker for outputting audio signals.
The I/O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1114 includes one or more sensors for providing status evaluations of various aspects of the control device 180. For example, the sensor assembly 1114 may detect the open/closed state of the control device 180, the relative positioning of components, such as a display and keypad of the control device 180, the sensor assembly 1114 may also detect a change in the position of the control device 180 or a component of the control device 180, the presence or absence of user contact with the control device 180, the orientation or acceleration/deceleration of the control device 180, and a change in the temperature of the control device 180. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1116 is configured to facilitate wired or wireless communication between the control device 180 and a smart home device or server. The control device 180 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
Alternatively, the control device 180 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), control devices, micro-control devices, microprocessors or other electronic components for performing all or part of the steps performed by the control device 180 in the above-described embodiments.
Optionally, a computer-readable storage medium is further provided, and at least one instruction is stored in the storage medium, and the instruction is loaded and executed by the processor 1118 to implement the message display method provided in the above-described method embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method for displaying messages, the method comprising:
sending a registration channel request to a message push server based on a predetermined application program, wherein the registration channel request is used for requesting registration of an online message push channel between a control device and the message push server, and the registration channel request carries a first control device identifier of the control device and an application program identifier of the predetermined application program; the message push server is used for generating a second control equipment identifier corresponding to the control equipment according to the registration channel request and returning the second control equipment identifier to the control equipment;
sending the received second control equipment identifier to an application server, wherein the application server is used for storing the corresponding relation between the second control equipment identifier and the intelligent home equipment identifier based on the received second control equipment identifier;
receiving a push message sent by the message push server, where the push message carries a type identifier, where the type identifier is used to identify a message type of the push message, the message push server is further used to receive the push message sent by the application server and forward the push message to the control device, the application server is further used to receive a notification message sent by an intelligent home device, obtain the push message according to the notification message and the type identifier of the notification message, and send the push message to the message push server, where the notification message is used to indicate a device state and/or an environment state of the intelligent home device;
determining a display mode corresponding to the type identifier according to a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the type identifier of the preset message type and the display mode, the display mode comprises a first display mode and a second display mode, the first display mode comprises displaying a pop-up box and/or playing a prompt tone, and the second display mode comprises displaying no pop-up box and playing no prompt tone;
and displaying the push message by using the display mode.
2. The method according to claim 1, wherein the determining the display mode corresponding to the type identifier according to a preset corresponding relationship comprises:
if the type identifier is in a first type identifier set, determining that a display mode corresponding to the type identifier is the first display mode;
if the type identifier is in a second type identifier set, determining that the display mode corresponding to the type identifier is the second display mode;
wherein there is no intersection between the first set of type identifiers and the second set of type identifiers.
3. The method according to claim 2, wherein when the display mode corresponding to the type identifier is the second display mode, before displaying the push message using the display mode, the method further includes:
determining the running state of the preset application program, wherein the running state comprises one of a foreground running state and a background running state;
when the preset application program is in the foreground running state, the display mode is changed from the second display mode to the first display mode;
and when the preset application program is in the background running state, keeping the display mode as the second display mode unchanged.
4. A message display apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving a push message sent by a message push server, the push message carries a type identifier, the type identifier is used for identifying the message type of the push message, the message push server is used for receiving the push message sent by an application server and forwarding the push message to a control device, the application server is used for receiving a notification message sent by an intelligent home device, obtaining the push message according to the notification message and the type identifier of the notification message and sending the push message to the message push server, and the notification message is used for indicating the device state and/or the environment state of the intelligent home device;
the determining module is used for determining a display mode corresponding to the type identifier according to a preset corresponding relation, the preset corresponding relation comprises a preset corresponding relation between the type identifier of the message type and the display mode, the display mode comprises a first display mode and a second display mode, the first display mode comprises displaying a pop-up box and/or playing a prompt tone, and the second display mode comprises displaying no pop-up box and playing no prompt tone;
the first display module is used for displaying the push message by using the display mode;
the apparatus also includes means for:
sending a registration channel request to the message push server based on a predetermined application program, wherein the registration channel request is used for requesting registration of an online message push channel between the control device and the message push server, and the registration channel request carries a first control device identifier of the control device and an application program identifier of the predetermined application program; the message push server is used for generating a second control equipment identifier corresponding to the control equipment according to the registration channel request and returning the second control equipment identifier to the control equipment;
and sending the received second control equipment identifier to the application server, wherein the application server is used for storing the corresponding relation between the second control equipment identifier and the intelligent household equipment identifier based on the received second control equipment identifier.
5. The apparatus of claim 4, wherein the determining module comprises:
a first determination unit and a second determination unit;
the first determining unit is configured to determine, if the type identifier is in a first type identifier set, that a display mode corresponding to the type identifier is the first display mode;
the second determining unit is configured to determine, if the type identifier is in a second type identifier set, that the display mode corresponding to the type identifier is the second display mode;
wherein there is no intersection between the first set of type identifiers and the second set of type identifiers.
6. The apparatus according to claim 5, wherein when the display manner corresponding to the type identifier is the second display manner, the second determining unit is further configured to determine an operating state of the predetermined application program, where the operating state includes one of a foreground operating state and a background operating state; when the preset application program is in the foreground running state, the display mode is changed from the second display mode to the first display mode; and when the preset application program is in the background running state, keeping the display mode as the second display mode unchanged.
7. A terminal, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement the message display method according to any one of claims 1 to 3.
8. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor to implement the message display method of any one of claims 1 to 3.
CN201710502804.5A 2017-06-27 2017-06-27 Message display method, message pushing method and device Active CN107391273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710502804.5A CN107391273B (en) 2017-06-27 2017-06-27 Message display method, message pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710502804.5A CN107391273B (en) 2017-06-27 2017-06-27 Message display method, message pushing method and device

Publications (2)

Publication Number Publication Date
CN107391273A CN107391273A (en) 2017-11-24
CN107391273B true CN107391273B (en) 2020-08-04

Family

ID=60332816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710502804.5A Active CN107391273B (en) 2017-06-27 2017-06-27 Message display method, message pushing method and device

Country Status (1)

Country Link
CN (1) CN107391273B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632352A (en) * 2018-03-22 2018-10-09 海尔优家智能科技(北京)有限公司 A kind of information push method, device, server and computer readable storage medium
CN108519922B (en) * 2018-04-12 2022-07-12 珠海市魅族科技有限公司 Information pushing method and device, terminal equipment and computer readable storage medium
CN108632459B (en) * 2018-04-13 2020-11-13 青岛海信移动通信技术股份有限公司 Communication information notification method and device and computer readable storage medium
CN108848142B (en) * 2018-05-31 2022-05-31 康键信息技术(深圳)有限公司 Message pushing method and device, computer equipment and storage medium
CN109165064A (en) * 2018-07-25 2019-01-08 珠海格力电器股份有限公司 A kind of display methods of new information, device, storage medium and terminal
CN109218410B (en) * 2018-08-17 2021-09-17 青岛海信智慧家居系统股份有限公司 Message display method and terminal equipment
CN109067897B (en) * 2018-08-24 2021-11-09 优视科技新加坡有限公司 Message pushing method and device, equipment/terminal/server and computer readable medium thereof
CN110955471B (en) * 2018-09-26 2023-08-22 Oppo广东移动通信有限公司 Notification message display method, notification message display device, terminal and storage medium
CN111246038A (en) * 2018-11-29 2020-06-05 北京京东尚科信息技术有限公司 Message pushing method, device and system for application program
CN110401704B (en) * 2019-07-11 2022-04-29 安克创新科技股份有限公司 Message pushing method, device and system
CN111274054B (en) * 2020-01-21 2024-03-05 维沃移动通信有限公司 Message processing method and electronic equipment
CN112000404A (en) * 2020-07-20 2020-11-27 第四范式(北京)技术有限公司 Message pushing method and device, electronic equipment and storage medium
CN112365905A (en) * 2020-11-17 2021-02-12 深圳Tcl新技术有限公司 Player control method, device, equipment and readable storage medium
CN112866414B (en) * 2021-02-20 2022-08-05 每日互动股份有限公司 Data information pushing method and device, computer equipment and storage medium
CN113852528A (en) * 2021-09-16 2021-12-28 珠海格力电器股份有限公司 Message processing method and device, nonvolatile storage medium and electronic device
CN113965538B (en) * 2021-10-21 2023-04-18 青岛海信智慧生活科技股份有限公司 Equipment state message processing method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468819A (en) * 2014-12-24 2015-03-25 福建江夏学院 Message pushing system and method for internet of things
CN105824645A (en) * 2016-03-30 2016-08-03 联想(北京)有限公司 Information processing method and terminal
CN106651296A (en) * 2016-10-25 2017-05-10 珠海市魅族科技有限公司 Message prompting method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468819A (en) * 2014-12-24 2015-03-25 福建江夏学院 Message pushing system and method for internet of things
CN105824645A (en) * 2016-03-30 2016-08-03 联想(北京)有限公司 Information processing method and terminal
CN106651296A (en) * 2016-10-25 2017-05-10 珠海市魅族科技有限公司 Message prompting method and terminal

Also Published As

Publication number Publication date
CN107391273A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107391273B (en) Message display method, message pushing method and device
EP3136648B1 (en) Method and device for determining control authority on user device
JP2018506865A (en) Multimedia data reproduction method, apparatus and system
US10523494B2 (en) Method and apparatus for processing network failure
CN107526591B (en) Method and device for switching types of live broadcast rooms
CN106919629B (en) Method and device for realizing information screening in group chat
CN105100074A (en) Data operation processing method, device and terminal equipment
CN106453528B (en) The method and device of PUSH message
CN113365153B (en) Data sharing method and device, storage medium and electronic equipment
US20210311699A1 (en) Method and device for playing voice, electronic device, and storage medium
CN103986821A (en) Method, equipment and system for carrying out parameter adjustment
CN104811776A (en) Multimedia playing method and device
CN105337800A (en) Polling frequency adjustment method and polling frequency adjustment device
CN105430715A (en) Method and apparatus for controlling WIFI scanning
CN107393528B (en) Voice control method and device
CN105872573A (en) Video playing method and apparatus
CN105549572A (en) Control method and device for intelligent home equipment and equipment
CN109525966B (en) Intelligent device query method and device and storage medium
US11397596B2 (en) Method and device for controlling pop-up window, electronic device, and storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN104572230A (en) Script file loading method, script file generating method and script file generating device
CN114063963A (en) Volume adjusting method, device and storage medium
CN112616053A (en) Transcoding method and device of live video and electronic equipment
CN104410900A (en) A method and apparatus for controlling an indicator light installed on an intelligent apparatus
CN110908814A (en) Message processing method and device, electronic equipment and storage medium

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
CP01 Change in the name or title of a patent holder

Address after: No.399, Songling Road, Laoshan District, Qingdao City, Shandong Province 266010

Patentee after: Qingdao Hisense Smart Life Technology Co.,Ltd.

Address before: No.399, Songling Road, Laoshan District, Qingdao City, Shandong Province 266010

Patentee before: QINGDAO HISENSE SMART HOME SYSTEMS Co.,Ltd.

CP01 Change in the name or title of a patent holder