Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The message reminding method in the related technology informs a message receiver that the message receiver receives an important message in a telephone dialing mode, and plays a voice corresponding to the important message when the message receiver answers the telephone, thereby realizing the transmission of the important message. However, in practical applications, when the above method is used to transmit important messages, the message receiver may often mistakenly accept incoming calls as harassing calls and refuse to answer the incoming calls, so that the message receiver still cannot timely see the important messages sent by the message sender, i.e., effective access to the important messages cannot be guaranteed.
In order to ensure that an important message sent by a message sender can be timely and effectively touched, the embodiment of the application provides a message reminding method applied to a receiver device.
Specifically, in the message reminding method provided in the embodiment of the present application, after receiving a message data packet, a receiver device analyzes a field for carrying a message reminding type in the message data packet; if the message reminding type representation needs to carry out strong reminding on the message corresponding to the message data packet, acquiring object characteristic information of a sender of the message data packet; and then, continuously displaying a message reminding interface on the foreground, wherein the message reminding interface comprises the object characteristic information until the display duration of the message reminding interface reaches preset reminding time or touch operation of a user on the message reminding interface is detected.
The message reminding method enables the message receiver to know that the message receiver receives the important message in time by simulating the reminding mode of the voice telephone, and displays the object characteristic information of the message sender in the process of message reminding so that the message receiver can know the source of the important message, thereby effectively ensuring that the message receiver can check the received important message in time, namely ensuring that the important message can timely and effectively reach the message receiver.
In addition, the embodiment of the application also provides a message sending method applied to sender equipment, wherein in the method, the sender equipment firstly obtains a message to be sent, and under the condition that the message reminding type of the message to be sent is determined to be strong reminding, the message reminding type is added into a field which is used for bearing the message reminding type and is in a message data packet corresponding to the message to be sent, the strong reminding message type is used for indicating a receiver equipment to create a message reminding interface according to object characteristic information of the sender, and message reminding is continuously carried out on the basis of the message reminding interface in a foreground within preset reminding time; and further, sending a message data packet corresponding to the message to be sent.
Compared with the method for transmitting the important message by dialing the telephone in the related technology, the message transmitting method does not need to perform additional conversion processing on the important message to be transmitted and change a transmission channel of the important message, the normal message transmission channel is directly used for transmitting the important message, and the field for bearing the message reminding type in the message data packet corresponding to the important message is correspondingly set to inform the terminal equipment receiving the message data packet that a strong reminding mode needs to be adopted, so that the transmitting process of the important message is simplified and the transmitting efficiency of the important message is improved on the premise that the important message can timely and effectively reach a message receiver.
It should be understood that the receiver device for executing the message reminding method is typically a terminal device with a communication function, such as a smart phone, a Personal Digital Assistant (PDA), a tablet computer, and the like. The sender device for executing the message sending method may be a terminal device or a server with a communication function, where the terminal device may be a smart phone, a PDA, a tablet computer, or the like, and the server may be an application server or a Web server, and when actually deployed, the server may be an independent server or a cluster server.
In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, a message reminding method and a message reminding system to which the message sending method is applied are introduced below.
Referring to fig. 1, fig. 1 is a schematic view of an operating principle of a message reminding system according to an embodiment of the present application. As shown in fig. 1, the message reminding system includes: a sender device 110, a server 120, and a receiver device 130. The sender device 110 is configured to generate a message to be sent in response to an operation of a message sender, execute the message sending method provided in the embodiment of the present application for the message to be sent, and further send a message data packet corresponding to the message to be sent to the server 120; the server 120 is configured to forward the message packet sent by the sender device 110 to the receiver device 130; the receiver device 130 is configured to receive the message data packet sent by the server 120, and execute the message reminding method provided in the embodiment of the present application for the message data packet to remind the message receiver that the message receiver receives the important message.
Specifically, when the message sender sends a message to the message receiver through the instant messaging APP, the message sender can input the message to be sent on a session interface corresponding to the message receiver and correspondingly touch the message sending control; after detecting that the user touches the message sending control, the sender device 110 further identifies whether the message reminding type of the message to be sent is a strong reminder, for example, identifies whether the message sending control touched by the user when sending the message to be sent is an important message sending control; under the condition that the message reminding type of the message to be sent is determined to be strong reminding, the message reminding type is added to a field for bearing the message reminding type in a message data packet corresponding to the message to be sent; further, a message data packet corresponding to the message to be sent is sent to the server 120.
It should be noted that the message data packet generally includes message header data and message body data. The message body data generally includes body content of the message, such as text content in a text message, picture data in a picture message, voice content in a voice message, video data in a video message, and the like. The message head data comprises a plurality of fields for bearing related attribute information; in the technical solution provided in the embodiment of the present application, a field for carrying a message reminding type is additionally added in the message header data, and the message reminding type can notify the receiving side device 130 of a reminding manner adopted for a message corresponding to a message data packet, such as performing a strong reminding on the message corresponding to the message data packet or performing a normal reminding.
After receiving the message data packet sent by the sender device 110, the server 120 determines a receiver corresponding to the message data packet according to the field for carrying the identity of the receiver, and further sends the message data packet to the corresponding receiver device 130.
After receiving the message data packet, the receiver device 130 analyzes a field for carrying the message reminding type; when the message reminding type representation needs to strongly remind the message corresponding to the message data packet, object characteristic information of a sender (namely the message sender) of the message data packet, such as a head portrait, a user name and the like of the message sender, and a message reminding tone can be obtained; creating a message reminding interface based on the acquired object characteristic information of the sender; and then, in a preset reminding time period, continuously carrying out message reminding on the basis of the created message reminding interface at the self foreground, and simultaneously playing the acquired message reminding tone until detecting that the user triggers related operations aiming at the message corresponding to the message data packet.
The relevant operation triggered by the user for the message of the strong reminder may specifically include a message viewing operation and a closing operation, when the user triggers the message viewing operation for the message of the strong reminder, the receiving-side device 130 stops the current message reminder and correspondingly displays the message body data carried in the message data packet, and when the user triggers the closing operation for the message of the strong reminder, the receiving-side device 130 may stop the current message reminder.
It should be understood that the message alert system shown in fig. 1 is only an example, and in practical applications, the sender device 110 may also be a server, and at this time, the sender device 110 may employ other mechanisms to generate a message to be sent and identify whether the message to be sent meets a target message condition specified by the strong alert service.
The following provides a message reminding method on a receiver device side according to an embodiment.
Referring to fig. 2, fig. 2 is a schematic flowchart of a message reminding method provided in the embodiment of the present application. For convenience of description, the following embodiments are described with a terminal device as an execution subject. As shown in fig. 2, the message reminding method includes the following steps:
step 201: and after receiving the message data packet, analyzing a field for bearing the message reminding type in the message data packet.
After receiving a message data packet sent by a server, the terminal device analyzes a field for bearing a message reminding type in the message data packet so as to determine whether strong reminding needs to be carried out on a message corresponding to the message data packet.
It should be noted that, in practical applications, the message data packet sent through the instant messaging APP generally includes message header data and message body data. The message body data includes the body content of the message, such as text content in a text message, picture data in a picture message, voice content in a voice message, video data in a video message, and so on. The message header data includes several fields for carrying related attribute information, and specifically may include the following fields: a field for carrying a message type, a field for carrying a group session message identification, a field for carrying a sender identity, a field for carrying a sender username, a field for carrying a receiver identity, a field for carrying a receiver username, a field for carrying a message alert type, a field for carrying a message send time, a field for carrying a message body data length, and so forth.
The message type may be determined according to a data format in the message volume data, and may specifically be a text, a picture, a voice, a video, and the like. The group session message identification described above will be set to no in the case of a two-person conversation and to yes in the case of a multi-person conversation (i.e., group chat). The sender identity identification can uniquely represent the identity of the sender, specifically can be an ID distributed by a server for a sender user when the sender user registers an instant messaging APP, and also can be a robot ID or a server ID which is responsible for sending related service messages; similarly, the identity of the receiver can also be uniquely characterized, and in the case of double-person conversation, the identity of the receiver is the user ID of the opposite end of the conversation, and in the case of multi-person conversation, the identity of the receiver is the ID of the conversation group. The user name of the sender can be a user name set by a sender user or a user name set by a server for the sender user, or can be a name set for a robot or a server used for sending related service information, such as a work order system secretary and the like; similarly, the user name of the receiving party may be a user name personally set by the user of the receiving party, or a user name set by the server for the user of the receiving party.
It should be noted that the message reminding type can represent a reminding mode for the message corresponding to the message data packet, and if the message reminding type is strong reminding, the subsequent steps are continuously executed, and the message reminding mode provided by the embodiment of the present application is adopted to remind the message; if the message reminding type is non-strong reminding, a conventional message reminding mode in the related technology is adopted for message reminding, namely whether a foreground interface currently displayed by the terminal equipment is a session interface corresponding to a message sender is judged, if yes, message reminding is not needed, and if not, message reminding is carried out through a system notification bar.
In practical application, in order to ensure that a message receiver can find an important message (i.e. a message needing strong reminding) received by the message receiver in a relevant session interface, after receiving a message data packet, terminal equipment analyzes a field used for bearing an identity of a sender in the message data packet; and further, determining a session interface corresponding to the sender according to the sender identity, and loading and displaying message body data in the message data packet in the session interface.
Specifically, after receiving the message data packet, the terminal device may first analyze a field for bearing an identity of a sender in the message header data to determine the identity of the sender of the message data packet; and then, determining whether the terminal equipment caches a session interface corresponding to the message sender according to the sender identity, if so, directly searching the session interface, correspondingly loading and displaying message body data in the message data packet on the session interface, and if not, creating a new session interface for the message sender, and further correspondingly loading and displaying the message body data in the message data packet on the newly created session interface.
It should be understood that loading display message body data is actually loading display message body content, such as display message text, pictures, voice, video and the like.
Step 202: and when the message reminding type representation needs to carry out strong reminding on the message corresponding to the message data packet, acquiring the object characteristic information of a sender of the message data packet.
And the terminal equipment further acquires the object characteristic information of a sender of the message data packet when the terminal equipment determines that the message reminding type representation needs to strongly remind the message corresponding to the message data packet by analyzing the field for bearing the message reminding type.
Optionally, the terminal device may further obtain a message prompt tone to be used for message reminding.
It should be noted that the object feature information of the sender is information capable of clearly characterizing the identity of the sender, that is, the receiver user can directly determine the source of the received message data packet through the object feature information of the sender; the object feature information may specifically be information such as a user avatar and a user name.
When the terminal device specifically acquires the object feature information of the sender, a first field used for bearing the sender identity identifier and a second field used for bearing the sender user name in the message data packet can be analyzed, then the head portrait data of the sender is searched in a local cache according to the sender identity identifier recorded in the analyzed first field, and further the searched head portrait data of the sender and the sender user name recorded in the analyzed second field are used as the object feature information.
Specifically, the terminal device may determine the identity of the sender by analyzing a first field used for bearing the identity of the sender in the message data packet, and then, in data cached locally in the terminal device by the instant messaging APP, find cache data associated with the identity of the sender according to the identity of the sender recorded in the first field, where the cache data may specifically include personal data information, chat history records, and the like corresponding to the sender; and then extracting the head portrait data of the sender from the searched cache data, and taking the head portrait data and the sender user name obtained by analyzing the first field for bearing the sender user name in the message data packet as the object characteristic information of the sender.
It should be understood that, in practical applications, the terminal device may also extract the user name of the sending party directly from the cache data found according to the identity of the sending party without parsing the second field for carrying the user name of the sending party.
It should be noted that, in some cases, the terminal device may not be able to find the avatar data of the sender from its local cache, and at this time, in order to obtain the avatar data of the sender, the terminal device may request a related server (e.g., a server corresponding to the instant messaging APP) to obtain the avatar data of the sender.
Specifically, the terminal device may analyze a first field for carrying an identity of the sender and a second field for carrying a user name of the sender in the message data packet; then, sending an avatar query request including the sender identity recorded in the first field to the server, so that the server queries avatar data of the sender according to the sender identity; further, the receiving server receives the avatar data of the sender returned in response to the avatar query request, and uses the avatar data of the sender and the sender user name described in the second field as the object feature information.
In more detail, the terminal device analyzes a first field used for bearing the identity of the sender in the message data packet to obtain the identity of the sender; under the condition that the terminal equipment finds the head portrait data of the sender in no local cache according to the identity of the sender, the terminal equipment generates a head portrait query request according to the identity of the sender and sends the head portrait query request to a server corresponding to the instant messaging APP; after receiving the head portrait query request, the server searches head portrait data of a sender in a related database according to the sender identity carried in the head portrait query request, and then returns the searched head portrait data to the terminal equipment; finally, the terminal device may use the received head portrait data of the sender and the sender user name obtained by analyzing the second field for carrying the sender user name in the message data packet as the object feature information of the sender.
It should be understood that, in practical application, after the terminal device obtains the avatar data of the sender returned by the server, the avatar data of the sender may be associated with the identity of the sender, and then the avatar data of the sender is stored in the local cache of the terminal device, so as to facilitate subsequent query.
It should be noted that, in practical applications, besides the head portrait data of the sender and the user name of the sender may be used as the object feature information of the sender, other information capable of characterizing the identity of the sender may also be used as the object feature information, and the content included in the object feature information is not limited at all.
When the terminal equipment specifically acquires the message prompt tone, the system telephone ring data can be read through the operating system interface, and then the sound effect indicated by the telephone ring data is used as the message prompt tone.
Specifically, the instant messaging APP may read, through an operating system interface provided by an operating system of the terminal device, telephone ring data set by a current user, where the telephone ring data may specifically be a ring file address or a resource identifier of a ring file, and the terminal device may call and play a corresponding ring file according to the telephone ring data, where the called and played ring file is a message alert tone.
Most terminal devices usually set a telephone call as an application with the highest priority, and a system telephone ring sounds to cause strong attention of a user correspondingly.
It should be understood that, in practical application, the terminal device may call a voice call alert tone set by default in the instant messaging APP as a strong alert message alert tone, and may also call an alert tone set by personalized in the instant messaging APP as a strong alert message alert tone, where the application does not make any limitation on the message alert tone used when performing the strong alert message.
Step 203: and continuously displaying a message reminding interface on a foreground, wherein the message reminding interface comprises the object characteristic information until the display time of the message reminding interface reaches preset reminding time or touch operation of a user on the message reminding interface is detected.
After the terminal device obtains the object characteristic information, a message reminding interface including the object characteristic information can be correspondingly established according to the obtained object characteristic information. For example, assuming that the object feature information acquired by the terminal device includes a sender user name and avatar data of the sender, the terminal device may accordingly create a message reminding interface including the sender user name and the sender avatar.
After the terminal device completes the creation of the message reminding interface, the message reminding can be continuously performed on the basis of the created message reminding interface on the foreground interface of the terminal device, and the message reminding is stopped until the display duration of the message reminding interface reaches the preset reminding time or the relevant operation of a user for triggering the reminding important message is detected.
Under the condition that the terminal device acquires the message prompt tone through step 202, the terminal device can circularly play the acquired message prompt tone while performing message prompt on the basis of the message prompt interface on the self foreground interface, so as to attract the attention of a receiver user, and simultaneously inform the receiver user that an important message sent by a sender is received and needs to be checked in time, the terminal device stops performing message prompt on the basis of the created message prompt interface on the foreground interface until detecting that the receiver user triggers related operations aiming at the currently prompted important message, and stops playing the message prompt tone.
It should be noted that the preset reminding time period may be set according to actual requirements; for example, a later time point may be selected as a timing starting point from a time point when the object feature information is acquired and a time point when the message alert tone is acquired, and a preset alert time period is set to be two minutes from the timing starting point, that is, within two minutes after the object feature information and the message alert tone are acquired, the message alert is continuously performed based on the acquired object feature information and the acquired message alert tone until the user triggers a related operation for the alert message; it should be understood that, in practical applications, the terminal device may set any time length for the preset reminding time period, and the duration of the preset reminding time period is not limited at all.
In some application scenarios, the terminal device may not need to perform a strong prompt for the important message immediately after receiving the important message, for example, the message sender sends the important message to the message receiver, and only needs to ensure that the message receiver sees the important message within half an hour after receiving the important message; in this case, the terminal device can implement the delayed strong prompt for such important messages by setting the preset prompt time period.
Specifically, the terminal device may select a later time point from the time point of obtaining the object feature information and the time point of obtaining the message alert tone as a reference time point, then start timing from the reference time point until the timing length reaches a time length corresponding to the delay alert time period, if the terminal device does not detect that the user performs the check operation on the important message during the time period, when the timing length reaches the time length corresponding to the delay alert time period, continue to perform message alert based on the obtained object feature information on the foreground interface, and play the obtained message alert tone at the same time until it detects that the user triggers a related operation on the important message, or until the message alert time length reaches a time length corresponding to the actual alert time period.
Therefore, the preset reminding time period is divided into a delay reminding time period and an actual reminding time period, the delay strong reminding for the received important message is realized based on the delay reminding time period, the strong reminding for the important message is realized based on the actual reminding time period, and the condition that a receiver user can check the important message sent by a sender in time in the appointed time is ensured.
When the terminal device performs message reminding on the foreground interface based on the message reminding interface, a specific representation form of the message reminding interface displayed on the foreground interface may be as shown in fig. 3. An interface a in fig. 3 is a message reminding interface when an important message is sent from a related server, and as shown in the interface a, a terminal device may render and display a head portrait of a sender based on head portrait data of the sender in an intermediate area of the interface, display a user name "alarm system secretary" of the sender below the head portrait, and correspondingly prompt the sender to send the important message; in addition, a view control for triggering the view of the important message and a reject control for triggering the reject of the view of the important message can be included in the interface. Interface B in fig. 3 is a message reminding interface when an individual user sends an important message, as shown in interface B, the terminal device may render and display an avatar of the sender based on avatar data of the sender in a central area of the interface, display a user name of the sender "zhang san" below the avatar, and correspondingly prompt the sender to send an important message; in addition, a view control for triggering the view of the important message and a reject control for triggering the reject of the view of the important message may also be included in the interface.
It should be understood that the interface a and the interface B in fig. 3 are only an example of a message reminding interface, and in practical applications, interfaces in other expression forms may also be adopted as the message reminding interface according to actual requirements, where the expression form of the message reminding interface displayed in the foreground of the terminal device when performing message reminding is not specifically limited.
It should be noted that, in practical application, a user may trigger a message viewing operation or may trigger a closing operation for an important message of the terminal device that is currently strongly reminded; when the terminal equipment detects that the user triggers the message viewing operation, the important message of the current reminding is correspondingly displayed to the user; and when the terminal equipment detects that the user triggers the closing operation, closing the currently displayed message reminding interface and simultaneously stopping playing the message reminding tone.
The embodiment of the application specifically provides the following possible implementation modes aiming at the display mode of the important message:
in a first implementation manner, when the terminal device detects that the touch operation of the user on the message reminding interface is a message viewing operation, the message body data in the message data packet is directly displayed on the message reminding interface.
Specifically, the terminal device may determine that the user has triggered the message viewing operation for the currently displayed message reminding interface when detecting that the user touches the viewing control on the message reminding interface displayed on the foreground; at this time, the terminal device may directly display the message body data in the message data packet corresponding to the important message, i.e., display the text content of the important message, on a foreground interface (i.e., a message reminding interface).
Correspondingly, when the terminal device subsequently detects that the touch operation of the user for the message reminding interface is a closing operation, the message reminding interface with the message body data displayed can be correspondingly closed.
If the text content of the important message is text or picture, the terminal equipment can directly display the text or picture. As shown in an interface a in fig. 4, the terminal device directly displays a text corresponding to the important message below the name of the sender user, and after the user finishes viewing the important message, a closing operation may be triggered for the text displayed on the message reminding interface through a closing control below the touch interface, and accordingly, the terminal device closes the message reminding interface on which the text is displayed; as shown in an interface B in fig. 4, the terminal device may directly display a picture corresponding to the important message below the name of the sender user, and after the user finishes viewing the important message, a closing operation may be triggered for the picture displayed on the message reminding interface through a closing control below the touch interface, and accordingly, the terminal device will close the message reminding interface on which the picture is displayed. If the text content of the important message is voice or video, the terminal device can display a playing control corresponding to the voice or video, and the terminal device correspondingly plays the voice or video after detecting the touch control of the user for the playing control.
It should be understood that, in practical applications, a user may process the text content of the message displayed on the message alert interface through a corresponding processing control, for example, translate text, store pictures, convert speech into words, play a mute video, and so on. In addition, the interface a and the interface B shown in fig. 4 are only schematic diagrams of a message reminding interface displaying message volume data, in practical applications, interfaces in other expression forms may also be adopted as the message reminding interface for displaying message volume data according to actual requirements, and the expression form of the message reminding interface for displaying message volume data is not specifically limited herein.
In a second implementation manner, when detecting that the touch operation of the user on the message reminding interface is a message viewing operation, the terminal device skips to display a session interface corresponding to a sender of the message, and locates a focus to message body data in the message data packet displayed on the session interface.
Specifically, as described above in step 201, after receiving the message data packet, the terminal device may first determine a session interface corresponding to the sender of the message data packet, and load and display the message body data in the message data packet on the session interface. Correspondingly, in the process of strongly reminding the important message corresponding to the message data packet, if the terminal device detects that the user touches a viewing control on a message reminding interface displayed on a foreground, the terminal device can directly jump to the determined session interface corresponding to the sender, and the focus is positioned on the position where the important message is displayed in the session interface, so that the receiver user can directly view the important message.
It should be understood that the two implementation manners for presenting the message volume data provided in the embodiment of the present application are only examples, and in practical applications, the terminal device may further present the message volume data in other manners when detecting that the user triggers to view the important message according to actual requirements.
In addition, when the terminal device detects that the touch operation of the user on the message reminding interface is a closing operation, the terminal device can stop carrying out message reminding on the foreground interface and stop playing the message prompt tone; and performing message reminding on the message corresponding to the message data packet in a system notification bar.
Specifically, when the terminal device detects that the touch operation of the user on the message reminding interface displayed on the foreground is a closing operation, the terminal device does not perform strong reminding on the message any more, namely, closes the message reminding interface displayed on the foreground and stops playing the message reminding tone, and performs ordinary reminding on the message, namely, prompts the receiver user that the receiver user receives a new message in the system notification bar.
Of course, in practical applications, the terminal device may also close the message reminding interface displayed in the foreground, stop playing the message reminding tone, and no longer make any reminding for the important message, and this application does not make any limitation on the subsequent operation flow after detecting that the user triggers the closing operation for the message reminding interface.
It should be noted that, the message reminding method provided in the embodiment of the present application is generally oriented to the instant messaging APP carried in the terminal device, and in practical applications, no matter whether the instant messaging APP runs in the system foreground or the system background of the terminal device, the terminal device can strongly remind the received important message based on the message reminding method introduced above.
The message reminding method enables the message receiver to know that the message receiver receives the important message in time by simulating the reminding mode of the voice telephone, and displays the object characteristic information of the message sender in the process of message reminding so that the message receiver can know the source of the important message, thereby effectively ensuring that the message receiver can check the received important message in time, namely ensuring that the important message can timely and effectively reach the message receiver.
The following is a message sending method on a sender device side provided by the present application by an embodiment.
Referring to fig. 5, fig. 5 is a schematic flowchart of a message sending method according to an embodiment of the present application. For convenience of description, the following embodiments are described with a terminal device as an execution subject. As shown in fig. 5, the message transmitting method includes the following steps:
step 501: and acquiring a message to be sent.
Step 502: under the condition that the message reminding type of the message to be sent is determined to be strong reminding, adding the message reminding type to a field for bearing the message reminding type in a message data packet corresponding to the message to be sent; the message reminding type of the strong reminding is used for indicating the receiving party equipment to create a message reminding interface according to the object characteristic information of the sending party, and continuously reminding the message based on the message reminding interface in the foreground within the preset reminding time.
In practical application, a user of a sender can input a message to be sent through a message sending window displayed on a terminal device, and after the input of the message to be sent is completed, the user of the sender can trigger the terminal device to send the message to be sent through a touch message sending control. After detecting the touch message sending control of the sender, the terminal device correspondingly identifies whether the message to be sent meets the target message condition specified by the strong reminding service so as to determine how to set the message reminding type corresponding to the message to be sent.
It should be noted that the message to be sent includes, but is not limited to, text, picture, voice, video and other types of messages.
In a possible implementation manner, the terminal device may detect a sending control that is touched when a sending user triggers sending of the message to be sent, and determine that the message to be sent satisfies a target message condition when the sending control is an important message sending control.
Specifically, the instant messaging APP can provide two different message sending controls for a user, one is a common message sending control, and the other is an important message sending control, when the terminal device identifies whether the message to be sent meets a target message condition specified by the strong reminder service, the touch message sending control triggered by the user to send the message to be sent can be detected, if the touch message sending control is detected to be the important message sending control, it is determined that the message to be sent meets the target message condition, and if the touch message sending control is detected to be the common message sending control, it is determined that the message to be sent does not meet the target message condition.
It should be understood that, in practical applications, the terminal device may also determine whether the message to be sent satisfies the target message condition in other manners, and the manner in which the terminal device determines whether the message to be sent satisfies the target message condition is not specifically limited herein.
It should be noted that the message sending method provided in the embodiment of the present application may also be applied to a server in practical application, for example, a service server responsible for sending a relevant service notification message to a user may send the service notification message to the relevant user by calling a server of an instant messaging APP. When the message sending method provided by the embodiment of the application is applied to a service server, the service server generates a message to be sent according to target information, the target information can be information which is acquired by the server and can trigger the server to send the message to an instant messaging APP, and before the message to be sent is sent to the instant messaging APP, whether the message to be sent meets a target message condition specified by a strong reminding service or not is identified.
In a possible implementation manner, the service server may determine the importance level of the message to be sent according to the attribute information of the message to be sent; and when the importance level of the message to be sent exceeds a preset level, determining that the message to be sent meets a target message condition specified by a strong reminding service.
Taking a service server as a work order message notification server as an example, after the work order message notification server generates a work order notification message to be sent, the importance level of the work order notification message may be determined according to attribute information related to the work order notification message, for example, the importance level corresponding to the work order notification message may be determined according to information such as generation time and processing content of a work order related to the work order notification message; and then, when the important level of the work order notification message is judged to exceed the preset level, determining that the work order notification message to be sent meets the target message condition.
It should be understood that, in practical applications, the server may also determine whether the message to be sent generated by the server meets the target message condition in other manners, and no limitation is made to the manner in which the server determines whether the message to be sent meets the target message condition.
The message reminding type of the strong reminding is used for indicating the receiving party equipment to create a message reminding interface according to the object characteristic information of the sending party, and continuously reminding the message based on the message reminding interface on the foreground interface within a preset time period.
Step 503: and sending a message data packet corresponding to the message to be sent.
When the terminal equipment determines that the message to be sent meets the target message condition, the terminal equipment further sets the message reminding type corresponding to the message to be sent as a strong reminding, and adds the message reminding type to a field for bearing the message reminding type in a message data packet corresponding to the message to be sent; and finally, sending the message data packet corresponding to the message to be sent to a server corresponding to the instant messaging APP.
Specifically, after determining that the message to be sent satisfies the target message condition, the terminal device sets a field for carrying a message reminding type in message header data of a message data packet corresponding to the message to be sent, that is, sets a message reminding type representation that strong reminding needs to be performed on the message corresponding to the message data packet. After the setting of each field in the message data packet is completed, the terminal equipment sends the message data packet to a server corresponding to the instant messaging APP, so that the message data packet is forwarded to a corresponding message receiver through the server corresponding to the instant messaging APP.
It should be understood that, when the method provided in this embodiment of the present application is applied to a server, the server may also set fields for bearing the message reminding type in the message data packet by using the above method, and after the setting of each field in the message data packet is completed, send the message data packet to a server corresponding to the instant messaging APP.
Compared with the method for transmitting the important message by dialing the telephone in the related technology, the method for transmitting the important message by dialing the telephone does not need to perform additional conversion processing on the important message to be transmitted, does not need to change a transmission channel of the important message, and directly transmits the important message by using a normal message transmission channel.
In order to further understand the technical solution provided in the embodiment of the present application, from the perspective of interaction among the sender device, the server, and the receiver device, the following provides a general description of the technical solution provided in the embodiment of the present application with reference to fig. 6.
Referring to fig. 6, fig. 6 is an interactive signaling diagram provided in the embodiment of the present application. As shown in fig. 6, the technical solution provided by the embodiment of the present application includes the following steps:
step 601: the sender device identifies whether the message to be sent meets the target message condition of the strong alert service.
Step 602: when the sender equipment determines that the message to be sent meets the target message condition, the message reminding type of the message to be sent is set to be strong reminding, and the message reminding type is added to a field for bearing the message reminding type in a message data packet of the message to be sent.
Step 603: and sending a message data packet corresponding to the message to be sent to a server.
Step 604: the server sends the message data packet sent by the sender device to the receiver device.
Step 605: and after receiving the message data packet, the receiving party equipment analyzes a field for bearing the message reminding type in the message data packet.
Step 606: and when the message reminding type representation needs to strongly remind the message corresponding to the message data packet, acquiring object characteristic information of a sender of the message data packet and acquiring a message prompt tone.
Step 607: and the receiver equipment creates a message reminding interface according to the object characteristic information of the sender.
Step 608: and in a preset reminding time period, the receiver equipment carries out message reminding on a foreground interface based on a message reminding interface and simultaneously plays a message reminding tone until detecting that a user triggers related operations aiming at the message corresponding to the message data packet.
It should be noted that, steps in the embodiment shown in fig. 6 have been described in detail in both the embodiment shown in fig. 2 and the embodiment shown in fig. 5, and related contents refer to descriptions in the embodiment shown in fig. 2 and the embodiment shown in fig. 5 in detail, which are not described herein again.
Aiming at the message reminding method described above, the application also provides a corresponding message reminding device, so that the message reminding method can be applied and realized in practice.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a message alert device 700 corresponding to the message alert method shown in fig. 2, where the message alert device 700 includes:
the analysis module 701 is configured to, after receiving a message data packet, analyze a field for carrying a message alert type in the message data packet;
an obtaining module 702, configured to obtain object feature information of a sender of the message data packet when the message reminding type representation needs to strongly remind a message corresponding to the message data packet;
the reminding module 703 is configured to continuously display a message reminding interface on a foreground, where the message reminding interface includes the object feature information until a time length displayed on the message reminding interface reaches a preset reminding time or a touch operation of a user on the message reminding interface is detected.
Optionally, the apparatus further comprises:
and the first message display module is used for displaying the message body data in the message data packet on the message reminding interface when detecting that the touch operation of the user on the message reminding interface is a message viewing operation.
Optionally, the apparatus further comprises:
and the first interface closing module is used for detecting that the touch operation of the user on the message reminding interface is closing operation to close the message reminding interface.
Optionally, the apparatus further comprises:
the identity label analysis module is used for analyzing a first field used for bearing the identity label of the sender in the message data packet;
and the second message display module is used for determining a session interface corresponding to the sender according to the sender identity recorded in the first field, and loading and displaying the message body data in the message data packet in the session interface.
Optionally, the apparatus further comprises:
and the third message display module is used for closing the message reminding interface, skipping to display the conversation interface and positioning a focus to the message volume data displayed in the conversation interface when detecting that the touch operation of the user on the message reminding interface is a message viewing operation.
Optionally, the apparatus further comprises:
the second interface closing module is used for closing the message reminding interface when detecting that the touch operation of the user on the message reminding interface is closing operation; and performing message reminding on the message corresponding to the message data packet in a system notification bar.
Optionally, the obtaining module 702 is specifically configured to:
analyzing a first field used for bearing the identity of the sender and a second field used for bearing the user name of the sender in the message data packet;
and searching the head portrait data of the sender in a local cache according to the identity of the sender recorded in the first field, and taking the head portrait data of the sender and the user name of the sender recorded in the second field as the object characteristic information.
Optionally, the obtaining module 702 is specifically configured to:
analyzing a first field used for bearing the identity of the sender and a second field used for bearing the user name of the sender in the message data packet;
sending an avatar query request to a server, wherein the avatar query request carries a sender identity recorded in the first field;
and receiving the head portrait data of the sender returned by the server in response to the head portrait query request, and taking the head portrait data of the sender and the sender user name recorded in the second field as the object characteristic information.
Optionally, the apparatus further comprises:
the prompt tone acquisition module is used for acquiring a message prompt tone when the message prompt type representation needs to strongly prompt the message corresponding to the message data packet;
and the prompt tone playing module is used for playing the message prompt tone while continuously displaying the message prompt interface on the foreground.
Optionally, the prompt tone obtaining module is specifically configured to:
and reading system telephone ring data through an operating system interface, and taking a sound effect indicated by the telephone ring data as the message prompt tone.
The message reminding device enables the message receiver to know that the message receiver receives the important message in time through a reminding mode of simulating a voice telephone, and displays the object characteristic information of the message sender in the process of message reminding so that the message receiver can know the source of the important message, thereby effectively ensuring that the message receiver can check the received important message in time, namely ensuring that the important message can timely and effectively reach the message receiver.
For the above-described message sending method, the present application also provides a corresponding message sending apparatus, so that the above-described message sending method is applied and implemented in practice.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a message sending apparatus 800 corresponding to the message sending method shown in fig. 5, where the message sending apparatus 800 includes:
an obtaining module 801, configured to obtain a message to be sent;
a setting module 802, configured to add the message alert type to a field for carrying a message alert type in a message data packet corresponding to the message to be sent, when it is determined that the message type of the message to be sent is a strong alert; the message reminding type of the strong reminding is used for indicating the receiving party equipment to create a message reminding interface according to the object characteristic information of the sending party, and continuously reminding the message based on the message reminding interface in the foreground within the preset reminding time;
a sending module 803, configured to send a message data packet corresponding to the message to be sent.
Optionally, the obtaining module 801 is specifically configured to:
acquiring a message input by a user in a message sending window as the message to be sent;
or, acquiring a message generated by the server according to the target information, and taking the message as the message to be sent.
Optionally, the setting module 802 is specifically configured to:
detecting a message sending control touched when a user triggers and sends the message to be sent; when the message sending control is a first message sending control, determining that the message type of the message to be sent is strong reminding, wherein the first message sending control is used for indicating strong reminding of the message to be sent;
and/or determining the importance level of the message to be sent according to the attribute information of the message to be sent; and when the importance level of the message to be sent exceeds a preset level, determining that the message type of the message to be sent is a strong prompt.
The message sending device does not need to perform additional conversion processing on important messages to be transmitted or change the transmission channel of the important messages, and can directly transmit the important messages by using the normal message transmission channel.
The embodiment of the present application further provides a terminal device, where the terminal device may be used for prompting a message and/or sending a message, and the terminal device provided in the embodiment of the present application will be introduced from the perspective of hardware materialization.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the specific technology are not disclosed. The terminal may be any terminal device including a computer, a tablet computer, a Personal Digital Assistant (PDA), and the like, taking the terminal as a mobile phone as an example:
fig. 9 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 9, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (WiFi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
In the embodiment of the present application, the processor 980 included in the terminal further has the following functions:
after receiving a message data packet, analyzing a field for bearing a message reminding type in the message data packet; when the message reminding type representation needs to carry out strong reminding on the message corresponding to the message data packet, acquiring object characteristic information of a sender of the message data packet; and continuously displaying a message reminding interface on a foreground, wherein the message reminding interface comprises the object characteristic information until the display time of the message reminding interface reaches preset reminding time or touch operation of a user on the message reminding interface is detected. And/or, obtaining a message to be sent; under the condition that the message reminding type of the message to be sent is determined to be strong reminding, adding the message reminding type to a field for bearing the message reminding type in a message data packet corresponding to the message to be sent; the message reminding type of the strong reminding is used for indicating the receiving party equipment to create a message reminding interface according to the object characteristic information of the sending party, and continuously reminding the message based on the message reminding interface in the foreground within the preset reminding time; and sending a message data packet corresponding to the message to be sent.
Optionally, the processor 980 is further configured to execute the steps of any implementation manner of the message reminding method and/or the message sending method provided in the embodiment of the present application.
The embodiments of the present application further provide a computer-readable storage medium, configured to store a computer program, where the computer program is configured to execute any one implementation manner of the message reminding method and/or the message sending method described in the foregoing embodiments.
The present application further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the implementation manners of the message reminding method and/or the message sending method described in the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing computer programs.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.