Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For terminals with dual systems, one of the dual systems operates in the foreground of the terminal and the other operates in the background of the terminal. Taking the example of the user 1 and the user 2 using the terminal with the dual system, it is assumed that the system a and the system B are installed in the terminal, wherein the instant messaging application Z is installed in the system a, and then the communication between the user 1 and the user 2 can be performed by using the instant messaging application on the terminal.
However, when the user 1 calls the user 2 through the instant messaging application installed in the system a, if the system B is currently running in the foreground on the terminal of the user 2 and the system a is running in the background, the system B currently running in the foreground cannot perceive the call request, so that the user 2 may miss the call request.
In view of the above problems in the prior art, the present invention proposes a message prompting method for the terminal with dual systems, so that the terminal can control the system running in the foreground to prompt the message received by the system running in the background.
It is understood that the above-mentioned terminal may refer to, for example, a cellular phone, a cordless phone, a personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication function, a computing device, an in-vehicle device, a wearable device, etc.
The technical scheme of the invention is described in detail below with reference to specific examples. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a flow chart of a message prompting method provided by the invention. As shown in fig. 1, the method comprises the steps of:
s101, receiving a message from a server of a target application through a first system running in the background.
Wherein the target application is an application installed on the first system. The target application may be various applications installed in the first system, such as an audio-video conference application, an email application, or the instant messaging application.
The message from the server of the target application may be a message (for example, a notification message) sent by the server itself, or may be a message forwarded by another terminal through the server.
Fig. 2 is a schematic diagram of an application scenario of a message prompting method provided by the present invention. As shown in fig. 2, communication between the user 1 using the terminal 1 and the user 2 using the terminal 2 can be performed through a target application installed on the first system. Assuming that the user 1 transmits a message to the terminal 2 using the first system currently running in the foreground on the terminal 1, the terminal 2 may receive a message from the terminal 1 forwarded by the server of the target application through the first system installed on its own.
S102, controlling a second system running in the foreground to display prompt information of the received message.
After receiving a message from a server of a target application through a first system running in the background, the terminal can transmit the message to a second system running in the foreground and then control the second system to display prompt information of the message.
For example, the terminal may set a cross-domain notification interface in the first system, for broadcasting the message received by the first system to the second system. Alternatively, the cross-domain notification interface may be provided in the first system in advance (e.g., in a first system development stage), for example. At this time, the cross-domain notification interface may be set, for example, within source code of a service (e.g., a device management background service) for managing an application running in the background in the first system.
Or, the logic for configuring the cross-domain notification interface is preset in the terminal, and after the first system installs the target application, the terminal can use the configuration logic to configure the cross-domain notification interface for the first system. The cross-domain notification interface may correspond to an application on the first system or may correspond to multiple applications on the first system (i.e., messages for the multiple applications are forwarded through the interface).
For how the terminal controls the second system to receive the above message, the terminal may configure broadcast receiving logic in the second system, for receiving the message transmitted from the first system, and parse the message to obtain the prompt information of the message. Alternatively, the broadcast receiving logic may be provided in the second system in advance (e.g., in the second system development stage), for example. At this time, the broadcast receiving logic may be provided in, for example, source codes for telephone services in the second system.
Alternatively, the terminal is preset with logic for configuring the broadcast receiving logic, and after the first system installs the target application, the terminal may configure the broadcast receiving logic for the second system using the configuration logic. The broadcast receiving logic may correspond to one application on the first system or may correspond to a plurality of applications on the first system (i.e., messages for a plurality of applications may be received by the broadcast receiving logic).
It should be understood that the present invention is not limited to how a terminal communicates a message from a server of a target application from a first system to a second system. In particular implementations, for example, the terminal may communicate a message from a server of the target application from the first system to the second system in a manner that transmits cross-domain broadcasts.
After the terminal transmits the message to the second system, the second system can be controlled to analyze the message so as to acquire the prompt information of the message. The terminal may then control the second system to display a reminder for the message. For example, after the terminal controls the second system to parse the prompt information of the message, for example, a dialog box may be established in a user interface of the second system, and the prompt information of the message is displayed in the dialog box, so as to display the prompt information of the received message in the second system.
It should be understood that the terminal may further control the first system to parse the message from the server of the target application after receiving the message from the server of the target application, so as to obtain the prompt information of the message. Then the terminal can control the first system to transmit the prompt information of the message to the second system, and then control the second system to display the prompt information of the received message.
For example, the prompt information of the message may be: "you receive a message from the first system", or "you receive a message from the XX application of the first system", etc. information prompting receipt of the message.
For example, the prompt information of the message may be: and prompting information comprising the description information of the message. Taking the audio/video conference application as an example, the prompt information of the message may include at least one information such as conference initiator identity information, conference number, conference start time, etc. If the target application is an email application, the prompting information of the message may include at least one piece of information such as sender identity information, sender email address, email subject, etc. If the target application is an instant messaging application, the prompt information of the message may include at least one piece of information such as a head portrait of a communication initiator, identity information of the initiator, and a type of initiating communication (voice call, video call, etc.). It should be understood that the content of the prompt information displayed by the terminal control second system is not limited in the present invention.
The present invention is not limited to the manner of displaying the presentation information. For example, if the current terminal is in the screen locking state, the prompt information may be displayed on the screen locking interface. If the current terminal is in the user interface of the first system (for example, the main interface of the first system, or an interface of a certain application running on the front end on the first system), the prompt information may be displayed in the dialog box in a pop-up dialog box mode. The dialog box may be located in the middle of the screen, or may be located above the screen, for example, which is not limited in the present invention.
It should be noted that, although the foregoing examples are described and described in a manner of displaying the prompt information, those skilled in the art will understand that the prompt information may be output in other manners, for example, by voice broadcasting, or output to other devices connected to the terminal (for example, a smart wearable device (for example, a bluetooth headset, a smart watch, etc.), a smart home device, etc.), and these devices output and prompt the user.
The above examples are all described in the context of the first system running in the background and the second system running in the foreground, and the scheme provided by the invention is illustrated. It should be understood that, as shown in fig. 2, if the foreground of the terminal 2 is operated by the first system, the terminal 2 may directly control the first system to display a prompt message of a message after receiving the message of the server of the target application through the first system operated in the foreground. The invention is not limited to its specific implementation.
In this embodiment, after the terminal receives the message from the server of the target application through the first system running in the background, the second system running in the foreground may be controlled to display the prompt information of the message received by the first system running in the background. By the method, the effect that the terminal can control the system running in the foreground and prompt the message received by the system running in the background is achieved, so that the situation that a user cannot timely learn the message received by the system running in the rear end due to system switching can be avoided.
Further, after controlling the second system to display the prompt information of the received message, the terminal may also receive the operation of the user for the prompt information. If the operation for prompting information meets the system switching condition, the terminal can switch the first system to the foreground operation and switch the second system to the background operation. By the mode, a user does not need to manually switch the system, the efficiency of the switching system can be improved, the operation steps of the switching system are reduced, and further the user experience is improved.
For example, the above-mentioned switching conditions of the system may be: and the user views the prompt information of the message, and when the terminal receives the viewing operation of the user for the prompt information, the second system can be switched to background operation. The viewing operation may be determined according to a viewing manner set by the system for the message, which is not limited by the present invention. In this example, if the terminal receives the operation of clearing or ignoring the prompt message, no processing may be performed.
For another example, the switching conditions of the system described above may be determined based on the corresponding target application. That is, the switching conditions are different for different applications.
If the target application is an audio-video conference application, optionally, the prompt information corresponding to the audio-video conference application may further include a view control, a close control, and a conference entering control, for example, so that the user may operate the prompt information. Correspondingly, the operation of the user received by the terminal for the prompt information may include, for example: the user clicks on the view control, the user clicks on the close control, and the user clicks on one of the enter meeting controls. At this time, the system switching condition may be, for example, an operation in which the user clicks the view control and/or an operation in which the user clicks the enter conference control, or the like.
For example, if the target application is an email application or an instant messaging application, optionally, the prompt information corresponding to the email application or the instant messaging application may further include a view control and a close control, so that the user may operate the prompt information. Correspondingly, the operation of the user received by the terminal for the prompt information may include, for example: the user clicks on the view control and the user clicks on one of the close controls. At this time, the system switching condition may be, for example, an operation in which the user clicks the view control.
Optionally, when the terminal receives the operation of the user for the prompt information and the operation meets the system switching condition, the terminal may switch the first system to the foreground operation, and then may display the main interface of the first system, or may display the above message directly on the user interface of the terminal. The mode of directly displaying the message after switching can reduce the operation steps of users for checking the message, thereby improving the user experience.
For example, if the target application is an audio/video conference application, the terminal may display specific information of the conference, for example, on the user interface. If the target application is an email application, the terminal may display information such as email content on a user interface. If the target application is an instant messaging application, the terminal may display information such as video call content on a user interface.
As a possible implementation manner, the terminal may switch the first system to the foreground operation by calling the target application in the first system. Optionally, the terminal may, for example, control the second system to transfer the operation information of the user for the prompt information to the first system, and then call the target application to switch the first system to the foreground operation.
Specifically, the terminal may, for example, set another cross-domain notification interface in the second system, where the cross-domain notification interface is configured to transmit operation information of the user in the second system for the prompt information to the first system. Alternatively, the cross-domain notification interface may be provided in the second system in advance (e.g., in a second system development stage), for example. At this time, the cross-domain notification interface may be set, for example, within source code of a service (e.g., a device management background service) for managing an application running in the background in the second system. Or after the first system installs the target application, the terminal may configure the cross-domain notification interface for the second system using the logic for configuring the cross-domain notification interface preset in the terminal.
Correspondingly, the terminal can also configure broadcast receiving logic in the first system, and the broadcast receiving logic is used for receiving the operation information of the user aiming at the prompt information, which is transmitted by the second system. Alternatively, the broadcast receiving logic may be provided in the first system in advance (for example, in the first system development stage), for example. At this time, the broadcast receiving logic may be set in, for example, source code of a service (e.g., a device-managed background service) for managing an application running in the background in the first system. Alternatively, after the first system installs the target application, the terminal may configure the broadcast receiving logic for the first system using the logic for configuring the cross-domain notification interface preset in the terminal.
After the terminal transmits the operation information of the user aiming at the prompt information to the first system, the terminal can call the target application in the first system to switch the first system to the foreground operation. The terminal may, for example, invoke a system switch (switch) interface of the terminal through the target application to enable switching of the first system to a foreground operation of the terminal and switching of the second system to a background operation of the terminal.
In another implementation manner, after the terminal transmits the operation information of the user aiming at the prompt information to the first system, the first system is switched to the foreground operation by calling the first system.
It should be understood that the present invention is not limited to how the terminal switches the first system to the foreground operation and the second system to the background operation of the terminal. In specific implementation, the terminal may also implement system switching in other manners.
As a possible implementation manner, assuming that the target application is a video call application, the message received by the terminal from the server of the target application may be a video call request. The prompt information of the message may include description information of the video call request.
For example, taking the terminal as a mobile phone or a tablet pc as an example, fig. 3 is an interface schematic diagram of displaying prompt information by a second system provided by the present invention. As shown in fig. 3, the description information of the video call request may include information such as "xx department", "li xx", "shanghai", etc., so that the user may obtain information of the person initiating the video call request, thereby enhancing flexibility of terminal use.
It should be understood that fig. 3 is only an exemplary interface for displaying the prompt information by the second system, and in a specific implementation, the present invention is not limited to the location, the content and the display form of the prompt information displayed in the terminal interface. For example, the prompt information may not display information such as an avatar, an address, etc. of the user initiating the video call shown in fig. 3.
Further, as shown in fig. 3, the description information of the video call request may further include: a listening control 220 for listening to the video call request, and a hanging-up control 210 for hanging up the video call request, so that a user can perform a selection operation with respect to the prompt information. It should be understood that the present invention is not limited in what form the terminal displays the answer control 220 and the hang-up control 210. In particular, the terminal may display the answer control 220 and the hang-up control 210 in any manner that enables the user to operate the prompt information, for example, the terminal may use words such as "answer", "reject", etc. to indicate the answer control 220 and the hang-up control 210.
If the terminal receives the operation of clicking the answer control 220 by the user, which indicates that the user accepts the video call request, the terminal may switch the first system to the foreground operation, switch the second system to the background operation, and display the video call content on the user interface of the terminal, so that the user may perform the video call through the terminal. Specifically, for how the terminal switches the first system to the foreground operation and switches the second system to the background operation, the method described in the foregoing embodiment may be referred to, and will not be described herein again.
If the terminal receives the operation that the user clicks the hang-up control 210, which indicates that the user refuses the video call request, the terminal may ignore the video call request. Specifically, after receiving the operation of clicking the hang-up control 210 by the user, the terminal may control the second system to stop displaying the prompt information. Or, after receiving the operation of clicking the hang-up control 210 by the user, the terminal may control the second system to transfer the operation information of clicking the hang-up control 210 by the user to the first system. Then, the terminal can control the first system to directly hang up the video call request, and send the information of rejecting the video call to the server of the target application through the target application in the first system. Specifically, the terminal may send the operation information of the user clicking the hang-up control 210 to the first system in a cross-domain broadcasting manner through a cross-domain notification interface in the second system, for example.
For example, taking the above-mentioned target application as a video call application, the first system running in the background of the terminal, and the second system running in the foreground of the terminal as examples, fig. 4 is a flow chart of another message prompting method provided by the present invention.
As shown in fig. 4, the terminal may receive a message from a server of the video call application through a first system running in the background. The terminal may then send the received video call request to the second system by way of cross-domain broadcasting.
And then the terminal can analyze the video call request through a broadcast receiving logic module in the second system so as to acquire the prompt information of the video call request. After obtaining the prompt information of the video call request, the terminal can control the second system to display the prompt information. The prompt information may include descriptive information of the video call request, and an answer control and a hang-up control.
After the terminal realizes the video call request prompt, if the terminal receives that the operation of the user on the prompt information is to click the answer control, the terminal can control the second system to send the operation information of the user to the first system in a cross-domain broadcasting mode. The terminal may then receive the operation information of the user through a broadcast receiving logic module in the first system. And then the terminal can switch the first system to the foreground operation and switch the second system to the background operation by calling the target application in the first system, so that the user can use the terminal to carry out video call in the first system.
If the terminal receives that the operation of the user on the prompt information is to click the hang-up control, the terminal can ignore the video call request.
It should be understood that, although the above examples take the video call application as an example to describe how the terminal uses the system running on the front end to prompt, and how to implement system switching and processing of messages, those skilled in the art will understand that messages corresponding to other applications on the system may also be implemented in the above similar manner based on the processing logic of these messages, and the implementation principle is similar and will not be repeated.
Fig. 5 is a schematic structural diagram of a message prompting apparatus provided by the present invention. As shown in fig. 5, the apparatus includes:
a receiving module 301, configured to receive, by a first system running in the background, a message from a server of a target application; wherein the target application is an application installed on the first system;
and the control module 302 is used for controlling the second system running in the foreground to display the prompt information of the received message.
Optionally, when an operation of the user for the prompt information is received and the operation meets a system switching condition, the control module 302 is further configured to switch the first system to a foreground operation and switch the second system to a background operation.
Optionally, the control module 302 is specifically configured to switch the first system to a foreground operation, and display the message on a user interface of the terminal.
Optionally, the control module 302 is specifically configured to switch the first system to a foreground operation by calling the target application.
Optionally, the target application is a video call application, and the message is a video call request; the prompt message comprises: and the description information of the video call request.
Optionally, the prompt information further includes: and answering the answering control of the video call request, and hanging up the hanging up control of the video call request, wherein the system switching condition is the operation of clicking the answering control by a user.
Optionally, when receiving the operation that the user clicks the hang-up control, the control module 302 is further configured to ignore the video call request.
The message prompting device provided by the invention is used for executing the message prompting method embodiment, the implementation principle and the technical effect are similar, and the description is omitted.
Fig. 6 is a schematic diagram of a terminal structure according to the present invention. As shown in fig. 6, the terminal 400 may include: at least one processor 401 and a memory 402.
A memory 402 for storing a program. In particular, the program may include program code including computer-operating instructions.
Memory 402 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 401 is configured to execute computer-executable instructions stored in the memory 402 to implement the message prompting method described in the foregoing method embodiment. The processor 401 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
Optionally, the terminal 400 may further comprise a communication interface 403. In a specific implementation, if the communication interface 403, the memory 402, and the processor 401 are implemented independently, the communication interface 403, the memory 402, and the processor 401 may be connected to each other by a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the communication interface 403, the memory 402, and the processor 401 are integrated on a chip, the communication interface 403, the memory 402, and the processor 401 may complete communication through internal interfaces.
The present invention also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc., in which program codes may be stored, and in particular, the computer-readable storage medium stores program instructions for the methods in the above embodiments.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the terminal may read the execution instructions from the readable storage medium, and execution of the execution instructions by the at least one processor causes the terminal to implement the message prompting methods provided by the various embodiments described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.