[go: up one dir, main page]

CN110896376B - Message reminding method, message sending method, related device and equipment - Google Patents

Message reminding method, message sending method, related device and equipment Download PDF

Info

Publication number
CN110896376B
CN110896376B CN201911206843.6A CN201911206843A CN110896376B CN 110896376 B CN110896376 B CN 110896376B CN 201911206843 A CN201911206843 A CN 201911206843A CN 110896376 B CN110896376 B CN 110896376B
Authority
CN
China
Prior art keywords
message
reminder
interface
sender
data packet
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
CN201911206843.6A
Other languages
Chinese (zh)
Other versions
CN110896376A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911206843.6A priority Critical patent/CN110896376B/en
Publication of CN110896376A publication Critical patent/CN110896376A/en
Application granted granted Critical
Publication of CN110896376B publication Critical patent/CN110896376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例公开了一种消息提醒方法、消息发送方法及相关装置、设备,其中,消息提醒方法包括:接收到消息数据包后,解析该消息数据包中用于承载消息提醒类型的字段;当该消息提醒类型表征需要对所述消息数据包对应的消息进行强提醒时,获取该消息数据包的发送方的对象特征信息;在前台持续显示包括有该对象特征信息的消息提醒界面,直到该消息提醒界面的显示时长达到预设提醒时间或检测到用户对该消息提醒界面的触控操作。如此,在进行消息提醒的过程中显示消息发送方的用户特征信息,保证消息接收方获知其接收到重要消息时,还能清楚地获知该重要消息的来源,从而保证该重要消息能够及时有效地触达消息接收方。

Figure 201911206843

The embodiment of the present application discloses a message reminder method, a message sending method, and related devices and equipment, wherein the message reminder method includes: after receiving a message data packet, parsing a field in the message data packet for carrying a message reminder type; When the message reminder type indicates that the message corresponding to the message data package needs to be strongly reminded, the object feature information of the sender of the message data package is obtained; the message reminder interface including the object feature information is continuously displayed in the foreground until The display time of the message reminder interface reaches the preset reminder time or a touch operation by the user on the message reminder interface is detected. In this way, the user characteristic information of the message sender is displayed in the process of the message reminder, so as to ensure that the message receiver can clearly know the source of the important message when it is informed that it has received the important message, so as to ensure that the important message can be timely and effectively received. Reach the recipient of the message.

Figure 201911206843

Description

Message reminding method, message sending method, related device and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a message reminding method, a message sending method, and related devices and apparatuses.
Background
With the rapid development of internet technology, instant messaging Applications (APPs) have become an indispensable communication tool in people's daily life and work.
In many application scenarios, a message sender wants a message sent by the message sender through an instant messaging APP to be seen by a message receiver in time and respond accordingly, for example, in a mobile office application scenario, a business work order system sends a business work order processing message to a relevant person in charge through the instant messaging APP, and the relevant person in charge is expected to see the business work order processing message in time and process the business work order related to the business work order accordingly. However, in many cases, the message receiver may not be able to timely see the message received by the instant messaging APP due to various reasons (for example, no new message received by the mobile device is sensed), and then the development of the subsequent process related to the message may be affected.
Disclosure of Invention
The embodiment of the application provides a message reminding method, a message sending method, a related device and equipment, which can effectively ensure that a message receiver can see an important message sent by a message sender in time.
In view of this, a first aspect of the present application provides a message reminding method, including:
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.
A second aspect of the present application provides a message sending method, including:
acquiring 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 a preset reminding time period;
and sending a message data packet corresponding to the message to be sent.
A third aspect of the present application provides a message alert device, the device comprising:
the analysis module is used for analyzing a field for bearing the message reminding type in the message data packet after receiving the message data packet;
the acquisition module is used for acquiring object characteristic information of a sender of the message data packet when the message reminding type representation needs to strongly remind the message corresponding to the message data packet;
and the reminding module is used for 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.
A fourth aspect of the present application provides a message transmitting apparatus, including:
the acquisition module is used for acquiring a message to be sent;
the setting module is used for 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 under the condition that the message reminding type of the message to be sent is determined to be strong reminding; 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 the sending module is used for sending the message data packet corresponding to the message to be sent.
A fifth aspect of the present application provides a terminal device, comprising a processor and a memory;
the memory is used for storing a computer program and transmitting the computer program to the processor;
the processor is configured to execute the steps of the message alert method according to the first aspect and/or the message sending method according to the second aspect according to the computer program.
A sixth aspect of the present application provides a computer-readable storage medium, which is used for storing a computer program, where the computer program is used for executing the steps of the message reminding method of the first aspect and/or the message sending method of the second aspect.
A seventh aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the message alert method of the first aspect and/or the message sending method of the second aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a message reminding method, and a more effective message reminding mechanism is developed in the method, so that the important message sent by a message sender can be ensured to reach a message receiver in time based on the message reminding mechanism, namely the message receiver can be ensured to see the important message sent by the message sender in time. Specifically, in the message alert method provided in the embodiment of the present application, after receiving a message data packet, a terminal device analyzes a field for carrying a message alert 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, object characteristic information of a sender of the message data packet is obtained; 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. Therefore, the object characteristic information of the message sender is displayed in the message reminding process, and the message receiver can clearly know the source of the important message when knowing that the message receiver receives the important message, so that the important message can timely and effectively reach the message receiver.
Drawings
Fig. 1 is a schematic view of an operating principle of a message reminding system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a message reminding method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a message reminder interface provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an important message display interface provided in an embodiment of the present application;
fig. 5 is a schematic flowchart of a message sending method according to an embodiment of the present application;
fig. 6 is a signaling diagram of data interaction provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a message reminding apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a message sending apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
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.

Claims (17)

1.一种消息提醒方法,其特征在于,所述方法包括:1. a message reminding method, is characterized in that, described method comprises: 接收到消息数据包后,解析所述消息数据包中用于承载消息提醒类型的字段;After receiving the message data packet, parse the field used to carry the message reminder type in the message data packet; 当所述消息提醒类型表征需要对所述消息数据包对应的消息进行强提醒时,获取所述消息数据包的发送方的对象特征信息;When the message reminder type indicates that a strong reminder needs to be performed on the message corresponding to the message data packet, acquire the object feature information of the sender of the message data packet; 根据所述对象特征信息创建消息提醒界面;Create a message reminder interface according to the object feature information; 在前台持续显示所述消息提醒界面,所述消息提醒界面中包括所述对象特征信息,直到所述消息提醒界面显示的时长达到预设提醒时间或者检测到用户对所述消息提醒界面的触控操作;The message reminder interface is continuously displayed in the foreground, and the message reminder interface includes the object feature information until the display time of the message reminder interface reaches the preset reminder time or the user's touch on the message reminder interface is detected. operate; 所述在前台持续显示所述消息提醒界面,所述消息提醒界面中包括所述对象特征信息,直到所述消息提醒界面显示的时长达到预设提醒时间或者检测到用户对所述消息提醒界面的触控操作,包括:The message reminder interface is continuously displayed in the foreground, and the message reminder interface includes the object feature information, until the display time of the message reminder interface reaches the preset reminder time or the user's response to the message reminder interface is detected. Touch operations, including: 自参考时间点开始计时;所述参考时间点为获取到所述对象特征信息的时间点与获取到消息提示音的时间点中较靠后的时间点;Start timing from a reference time point; the reference time point is the later time point in the time point when the object feature information is obtained and the time point when the message prompt tone is obtained; 若在计时长度达到延迟提醒时间段对应的时间长度前,未检测到用户针对所述消息数据包对应的消息触发查看操作,则在所述计时长度达到所述延迟提醒时间段对应的时间长度时,在前台持续显示所述消息提醒界面,直到所述消息提醒界面显示的时长达到实际提醒时间段对应的时长,或者检测到用户对所述消息提醒界面的触控操作。If it is not detected that the user triggers the viewing operation for the message corresponding to the message data packet before the timing length reaches the time length corresponding to the delay reminder period, then when the timing length reaches the time length corresponding to the delay reminder period , the message reminder interface is continuously displayed in the foreground until the display duration of the message reminder interface reaches the duration corresponding to the actual reminder time period, or the user's touch operation on the message reminder interface is detected. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 检测到用户对所述消息提醒界面的触控操作为消息查看操作时,在所述消息提醒界面显示所述消息数据包中的消息体数据。When it is detected that the user's touch operation on the message reminder interface is a message viewing operation, the message body data in the message data package is displayed on the message reminder interface. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 检测到用户对所述消息提醒界面的触控操作为关闭操作时,关闭所述消息提醒界面。When it is detected that the user's touch operation on the message reminder interface is a closing operation, the message reminder interface is closed. 4.根据权利要求1所述的方法,其特征在于,接收到所述消息数据包后,所述方法还包括:4. The method according to claim 1, wherein after receiving the message data packet, the method further comprises: 解析所述消息数据包中用于承载发送方身份标识的第一字段;Parsing the first field in the message data packet for carrying the sender's identity; 根据所述第一字段中记载的发送方身份标识确定所述发送方对应的会话界面,在所述会话界面中加载显示所述消息数据包中的消息体数据。The session interface corresponding to the sender is determined according to the sender identity recorded in the first field, and the message body data in the message data packet is loaded and displayed in the session interface. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 检测到用户对所述消息提醒界面的触控操作为消息查看操作时,关闭所述消息提醒界面,跳转显示会话界面,并将焦点定位至所述会话界面中显示的所述消息体数据。When it is detected that the user's touch operation on the message reminder interface is a message viewing operation, the message reminder interface is closed, the conversation interface is jumped to display, and the focus is positioned on the message body data displayed in the conversation interface. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method of claim 1, wherein the method further comprises: 检测到用户对所述消息提醒界面的触控操作为关闭操作时,关闭所述消息提醒界面;在系统通知栏中对所述消息数据包对应的消息进行消息提醒。When it is detected that the user's touch operation on the message reminder interface is a closing operation, the message reminder interface is closed; a message reminder is performed on the message corresponding to the message data package in the system notification bar. 7.根据权利要求1所述的方法,其特征在于,所述获取所述消息数据包的发送方的对象特征信息包括:7. The method according to claim 1, wherein the acquiring the object characteristic information of the sender of the message data packet comprises: 解析所述消息数据包中用于承载发送方身份标识的第一字段以及用于承载发送方用户名的第二字段;Parse the first field used to carry the sender's identity and the second field used to carry the sender's username in the message data packet; 根据所述第一字段中记载的发送方身份标识在本地缓存中查找所述发送方的头像数据,将所述发送方的头像数据和所述第二字段中记载的发送方用户名作为所述对象特征信息。Search the sender's avatar data in the local cache according to the sender's identity recorded in the first field, and use the sender's avatar data and the sender's username recorded in the second field as the sender's avatar data. Object feature information. 8.根据权利要求1所述的方法,其特征在于,所述获取所述消息数据包的发送方的对象特征信息包括:8. The method according to claim 1, wherein the acquiring the object characteristic information of the sender of the message data packet comprises: 解析所述消息数据包中用于承载发送方身份标识的第一字段以及用于承载发送方用户名的第二字段;Parse the first field used to carry the sender's identity and the second field used to carry the sender's username in the message data packet; 向服务器发送头像查询请求,所述头像查询请求中携带有所述第一字段中记载的发送方身份标识;sending an avatar query request to the server, where the avatar query request carries the sender identity identified in the first field; 接收所述服务器响应所述头像查询请求返回的发送方的头像数据,将所述发送方的头像数据以及所述第二字段中记载的发送方用户名作为所述对象特征信息。Receive the avatar data of the sender returned by the server in response to the avatar query request, and use the avatar data of the sender and the username of the sender recorded in the second field as the object feature information. 9.根据权利要求1所述的方法,其特征在于,在接收到消息数据包之后,所述方法还包括:9. The method according to claim 1, wherein after receiving the message data packet, the method further comprises: 当所述消息提醒类型表征需要对所述消息数据包对应的消息进行强提醒时,获取消息提示音;When the message alert type indicates that a strong alert needs to be performed on the message corresponding to the message data packet, acquiring a message alert tone; 在前台持续显示所述消息提醒界面的同时,播放所述消息提示音。While the message reminder interface is continuously displayed in the foreground, the message reminder sound is played. 10.根据权利要求9所述的方法,其特征在于,所述获取消息提示音包括:10. The method according to claim 9, wherein the obtaining a message prompt tone comprises: 通过操作系统接口读取系统电话铃声数据,将所述电话铃声数据指示的音效作为所述消息提示音。The system telephone ringtone data is read through the operating system interface, and the sound effect indicated by the telephone ringtone data is used as the message prompt tone. 11.一种消息发送方法,其特征在于,所述方法包括:11. A message sending method, characterized in that the method comprises: 获取待发送消息;Get the message to be sent; 在确定所述待发送消息的消息提醒类型为强提醒的情况下,将所述消息提醒类型添加至所述待发送消息对应的消息数据包中用于承载消息提醒类型的字段;其中,强提醒的消息提醒类型用于指示接收方设备根据发送方的对象特征信息创建消息提醒界面,并在预设提醒时间内在前台持续基于所述消息提醒界面进行消息提醒;In the case where it is determined that the message reminder type of the message to be sent is a strong reminder, the message reminder type is added to the field in the message data packet corresponding to the to-be-sent message for carrying the message reminder type; wherein, the strong reminder The message reminder type is used to instruct the recipient device to create a message reminder interface according to the sender's object feature information, and continue to perform message reminders based on the message reminder interface in the foreground within the preset reminder time; 发送所述待发送消息对应的消息数据包;sending a message data packet corresponding to the to-be-sent message; 所述强提醒的消息提醒类型,具体用于指示所述接收方设备自参考时间点开始计时;所述参考时间点为获取到所述对象特征信息的时间点与获取到消息提示音的时间点中较靠后的时间点;以及,若在计时长度达到延迟提醒时间段对应的时间长度前,未检测到用户针对所述消息数据包对应的消息触发查看操作,则在所述计时长度达到所述延迟提醒时间段对应的时间长度时,在前台持续显示所述消息提醒界面,直到所述消息提醒界面显示的时长达到实际提醒时间段对应的时长,或者检测到用户对所述消息提醒界面的触控操作。The message reminder type of the strong reminder is specifically used to instruct the recipient device to start timing from a reference time point; the reference time point is the time point when the object feature information is obtained and the time point when the message prompt tone is obtained. and, if it is not detected that the user triggers the viewing operation for the message corresponding to the message data packet before the timing length reaches the time length corresponding to the delay reminder period, then the timing length reaches the specified time period. When the length of time corresponding to the delay reminder time period, the message reminder interface is continuously displayed in the foreground until the displayed time length of the message reminder interface reaches the time length corresponding to the actual reminder time period, or the user's response to the message reminder interface is detected. Touch operation. 12.根据权利要求11所述的方法,其特征在于,所述获取待发送消息,包括:12. The method according to claim 11, wherein the acquiring the message to be sent comprises: 获取用户在消息发送窗口输入的消息,作为所述待发送消息;Obtain the message input by the user in the message sending window as the message to be sent; 或者,获取服务器根据目标信息生成的消息,作为所述待发送消息。Or, the message generated by the server according to the target information is obtained as the message to be sent. 13.根据权利要求11所述的方法,其特征在于,通过以下方式确定所述待发送消息的消息提醒类型是否为强提醒:13. The method according to claim 11, wherein, whether the message reminder type of the message to be sent is determined as a strong reminder in the following manner: 检测用户触发发送所述待发送消息时触控的消息发送控件;当所述消息发送控件为第一消息发送控件时,确定所述待发送消息的消息提醒类型为强提醒,所述第一消息发送控件用于指示对所述待发送消息进行强提醒;Detecting a message sending control that is touched when the user triggers sending the message to be sent; when the message sending control is the first message sending control, it is determined that the message reminder type of the message to be sent is a strong reminder, and the first message The sending control is used to indicate a strong reminder for the message to be sent; 和/或,根据所述待发送消息的属性信息,确定所述待发送消息的重要级别;当所述待发送消息的重要级别超过预设级别时,确定所述待发送消息的消息提醒类型为强提醒。And/or, according to the attribute information of the to-be-sent message, determine the importance level of the to-be-sent message; when the importance level of the to-be-sent message exceeds a preset level, determine that the message reminder type of the to-be-sent message is: Strong reminder. 14.一种消息提醒装置,其特征在于,所述装置包括:14. A message reminder device, wherein the device comprises: 解析模块,用于在接收到消息数据包后,解析所述消息数据包中用于承载消息提醒类型的字段;a parsing module, configured to parse a field in the message data packet for carrying a message reminder type after receiving the message data packet; 获取模块,用于当所述消息提醒类型表征需要对所述消息数据包对应的消息进行强提醒时,获取所述消息数据包的发送方的对象特征信息;an obtaining module, configured to obtain the object feature information of the sender of the message data packet when the message reminder type indicates that a strong reminder needs to be performed on the message corresponding to the message data packet; 提醒模块,用于根据所述对象特征信息创建消息提醒界面,在前台持续显示所述消息提醒界面,所述消息提醒界面中包括所述对象特征信息,直到所述消息提醒界面显示的时长达到预设提醒时间或者检测到用户对所述消息提醒界面的触控操作;A reminder module, configured to create a message reminder interface according to the object feature information, continuously display the message reminder interface in the foreground, and the message reminder interface includes the object feature information until the display time of the message reminder interface reaches a predetermined time. Setting a reminder time or detecting a user's touch operation on the message reminder interface; 所述提醒模块具体用于:The reminder module is specifically used for: 自参考时间点开始计时;所述参考时间点为获取到所述对象特征信息的时间点与获取到消息提示音的时间点中较靠后的时间点;Start timing from a reference time point; the reference time point is the later time point in the time point when the object feature information is obtained and the time point when the message prompt tone is obtained; 若在计时长度达到延迟提醒时间段对应的时间长度前,未检测到用户针对所述消息数据包对应的消息触发查看操作,则在所述计时长度达到所述延迟提醒时间段对应的时间长度时,在前台持续显示所述消息提醒界面,直到所述消息提醒界面显示的时长达到实际提醒时间段对应的时长,或者检测到用户对所述消息提醒界面的触控操作。If it is not detected that the user triggers the viewing operation for the message corresponding to the message data packet before the timing length reaches the time length corresponding to the delay reminder period, then when the timing length reaches the time length corresponding to the delay reminder period , the message reminder interface is continuously displayed in the foreground until the display duration of the message reminder interface reaches the duration corresponding to the actual reminder time period, or the user's touch operation on the message reminder interface is detected. 15.一种消息发送装置,其特征在于,所述装置包括:15. A message sending device, characterized in that the device comprises: 获取模块,用于获取待发送消息;The acquisition module is used to acquire the message to be sent; 设置模块,用于在确定所述待发送消息的消息提醒类型为强提醒的情况下,将所述消息提醒类型添加至所述待发送消息对应的消息数据包中用于承载消息提醒类型的字段;其中,强提醒的消息提醒类型用于指示接收方设备根据发送方的对象特征信息创建消息提醒界面,并在预设提醒时间内在前台持续基于所述消息提醒界面进行消息提醒;A setting module, configured to add the message reminder type to the field for carrying the message reminder type in the message data packet corresponding to the to-be-sent message when it is determined that the message reminder type of the message to be sent is a strong reminder Wherein, the message reminder type of strong reminder is used to instruct the recipient device to create a message reminder interface according to the sender's object feature information, and continue to perform message reminders based on the message reminder interface in the foreground within the preset reminder time; 发送模块,用于发送所述待发送消息对应的消息数据包;a sending module, configured to send a message data packet corresponding to the to-be-sent message; 所述强提醒的消息提醒类型,具体用于指示所述接收方设备自参考时间点开始计时;所述参考时间点为获取到所述对象特征信息的时间点与获取到消息提示音的时间点中较靠后的时间点;以及,若在计时长度达到延迟提醒时间段对应的时间长度前,未检测到用户针对所述消息数据包对应的消息触发查看操作,则在所述计时长度达到所述延迟提醒时间段对应的时间长度时,在前台持续显示所述消息提醒界面,直到所述消息提醒界面显示的时长达到实际提醒时间段对应的时长,或者检测到用户对所述消息提醒界面的触控操作。The message reminder type of the strong reminder is specifically used to instruct the recipient device to start timing from a reference time point; the reference time point is the time point when the object feature information is obtained and the time point when the message prompt tone is obtained. and, if it is not detected that the user triggers the viewing operation for the message corresponding to the message data packet before the timing length reaches the time length corresponding to the delay reminder period, then the timing length reaches the specified time period. When the length of time corresponding to the delay reminder time period, the message reminder interface is continuously displayed in the foreground until the displayed time length of the message reminder interface reaches the time length corresponding to the actual reminder time period, or the user's response to the message reminder interface is detected. Touch operation. 16.一种设备,其特征在于,所述设备包括:处理器以及存储器:16. A device, characterized in that the device comprises: a processor and a memory: 所述存储器用于存储计算机程序,并将所述计算机程序传输给所述处理器;the memory is used to store a computer program and transmit the computer program to the processor; 所述处理器用于根据所述计算机程序,执行权利要求1至10任一项所述的消息提醒方法,或者执行权利要求11至13任一项所述的消息发送方法。The processor is configured to execute the message reminding method according to any one of claims 1 to 10, or execute the message sending method according to any one of claims 11 to 13, according to the computer program. 17.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序用于执行权利要求1至10任一项所述的消息提醒方法,或者执行权利要求11至13任一项所述的消息发送方法。17. A computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the message reminder method according to any one of claims 1 to 10, or The message sending method described in any one of claims 11 to 13 is executed.
CN201911206843.6A 2019-11-29 2019-11-29 Message reminding method, message sending method, related device and equipment Active CN110896376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911206843.6A CN110896376B (en) 2019-11-29 2019-11-29 Message reminding method, message sending method, related device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911206843.6A CN110896376B (en) 2019-11-29 2019-11-29 Message reminding method, message sending method, related device and equipment

Publications (2)

Publication Number Publication Date
CN110896376A CN110896376A (en) 2020-03-20
CN110896376B true CN110896376B (en) 2022-03-11

Family

ID=69788306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911206843.6A Active CN110896376B (en) 2019-11-29 2019-11-29 Message reminding method, message sending method, related device and equipment

Country Status (1)

Country Link
CN (1) CN110896376B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953847A (en) * 2020-08-12 2020-11-17 中国工商银行股份有限公司 Client message risk reminding method, device and system
CN112291136B (en) * 2020-10-28 2023-01-10 广州博冠信息科技有限公司 Method and device for processing session message
CN113938453A (en) * 2021-12-17 2022-01-14 中航金网(北京)电子商务有限公司 Instant messaging system and method
CN114697284B (en) * 2022-03-30 2023-09-12 中国联合网络通信集团有限公司 Information reminding method, server and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929537A (en) * 2014-04-03 2014-07-16 北京深思数盾科技有限公司 Real-time reminding method based on messages of different levels
CN106470271A (en) * 2015-08-21 2017-03-01 阿里巴巴集团控股有限公司 A kind of method of message notifying and process, device and client
CN106487635A (en) * 2015-08-24 2017-03-08 腾讯科技(深圳)有限公司 A kind of message prompt method and instantaneous communication system
CN106651296A (en) * 2016-10-25 2017-05-10 珠海市魅族科技有限公司 Message prompting method and terminal
CN107257417A (en) * 2017-07-21 2017-10-17 珠海市魅族科技有限公司 Message prompt method and terminal, computer installation and computer-readable recording medium
CN109039862A (en) * 2018-07-27 2018-12-18 努比亚技术有限公司 Message prompt method, terminal and computer readable storage medium
US10171400B2 (en) * 2014-04-28 2019-01-01 International Business Machines Corporation Using organizational rank to facilitate electronic communication

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9378487B2 (en) * 2010-10-08 2016-06-28 Mark Meister Outbound blacklist and alert for preventing inadvertent transmission of email to an unintended recipient
CN106302101B (en) * 2015-06-25 2020-07-07 腾讯科技(深圳)有限公司 Message reminding method, terminal and server
CN105554280B (en) * 2015-12-18 2019-04-05 北京金山安全软件有限公司 Message reminding method and terminal
CN105812246B (en) * 2016-03-17 2019-11-22 上海云睦网络科技有限公司 Instant communication method, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929537A (en) * 2014-04-03 2014-07-16 北京深思数盾科技有限公司 Real-time reminding method based on messages of different levels
US10171400B2 (en) * 2014-04-28 2019-01-01 International Business Machines Corporation Using organizational rank to facilitate electronic communication
CN106470271A (en) * 2015-08-21 2017-03-01 阿里巴巴集团控股有限公司 A kind of method of message notifying and process, device and client
CN106487635A (en) * 2015-08-24 2017-03-08 腾讯科技(深圳)有限公司 A kind of message prompt method and instantaneous communication system
CN106651296A (en) * 2016-10-25 2017-05-10 珠海市魅族科技有限公司 Message prompting method and terminal
CN107257417A (en) * 2017-07-21 2017-10-17 珠海市魅族科技有限公司 Message prompt method and terminal, computer installation and computer-readable recording medium
CN109039862A (en) * 2018-07-27 2018-12-18 努比亚技术有限公司 Message prompt method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN110896376A (en) 2020-03-20

Similar Documents

Publication Publication Date Title
CN110896376B (en) Message reminding method, message sending method, related device and equipment
US10313516B2 (en) Dynamic user interface to reduce impact of unwanted calls
US8942767B2 (en) Communications convergence and user interface systems, apparatuses, and methods
CN103916829B (en) A kind of desktop Notification Method of message and device
CN111316624B (en) Personalized audio/video invitation for telephone calls
US9654621B2 (en) Methods and devices for prompting calling request
WO2016134630A1 (en) Method and device for recognizing malicious call
CN105100445A (en) Message reminding method and device, and terminal
CN108449491A (en) Information processing method and device, mobile terminal and computer readable storage medium
CN110945467B (en) Disturbance-free method and terminal
CN105100513B (en) Method for processing message of incoming call and device, incoming call service server
CN111510556B (en) Call information processing method and device and computer storage medium
CN107864297A (en) Group's adding method, device, terminal and storage medium
WO2017128653A1 (en) Incoming call processing method and apparatus
RU2615683C2 (en) Method and device for communication identification performance
CN104333641B (en) Call method and device
CN105939424B (en) Application switching method and device
CN105245705A (en) Telephone prompting method and device
CN105100352B (en) Obtain the method and device of associated person information
CN109274825B (en) Message reminding method and device
CN114124866A (en) Session processing method, device, electronic equipment and storage medium
CN106506808B (en) Method and device for prompting communication message
CN114666175B (en) Message processing method, device, electronic equipment and storage medium
CN105577653B (en) Establish the method and device of video calling
US20170187872A1 (en) System and method for device availability signaling

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