A control method and a storage medium

By detecting the display interface status of the application client and sending trigger instructions, the problem that the application client cannot display cloud computer notification messages in time is solved, and the unread messages are timely viewed on electronic devices is realized, improving office efficiency and improving notification friendliness.

CN114327340BActive Publication Date: 2025-05-27LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111655791.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-05-27
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The application client cannot display notification messages from cloud computers in time, which affects office efficiency.

Method used

By detecting the display interface status of the application client, sending a trigger command to cause the cloud computer to respond and transmit an unread message to the electronic device, and generating and displaying a local notification message.

Benefits of technology

It realizes that users timely view unread messages from cloud computers in electronic devices, prevents missing important information, improves office efficiency, and reduces the impact on the use of electronic devices, avoids disturbances from notifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327340B_ABST
    Figure CN114327340B_ABST
Patent Text Reader

Abstract

The present application provides a control method and storage medium. The control method can be applied to an electronic device. The electronic device has an application client for connecting to a cloud computer. The cloud computer is a virtual machine that uses the application client as a remote interface. The method includes: determining that a display interface of the application client is detected to be in a first display state, sending a first trigger instruction so that the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device, the first message being generated based on unread messages of the cloud computer; receiving the first message, and generating a local notification message for the electronic device based on the first message; and displaying the local notification message in the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a control method and a storage medium. Background Art

[0002] Currently, the office environment is installed in a cloud computer, and logging in to the cloud computer from the application client on the local electronic device for office work is a safe and efficient way of working. However, the application client has the problem of not being able to display the notification messages of the cloud computer in a timely manner, which affects the work efficiency. Summary of the Invention

[0003] This application provides the following technical solutions:

[0004] On the one hand, this application provides a control method, which is applied to an electronic device. The electronic device has an application client for connecting to a cloud computer, and the cloud computer is a virtual machine with the application client as a remote interface. The method includes:

[0005] Determine that the display interface of the application client is in a first display state, and send a first trigger instruction, so that the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device. The first message is generated according to the unread messages of the cloud computer;

[0006] Receive the first message, and generate a local notification message of the electronic device based on the first message;

[0007] Display the local notification message on the electronic device.

[0008] The determination that the display interface of the application client is in the first display state includes:

[0009] Determine that a partial area of the display interface of the application client is covered;

[0010] Or, determine that the display interface of the application client is not at the forefront of the display unit of the electronic device;

[0011] Or, determine that the display interface of the application client is in a minimized state.

[0012] The sending of the first trigger instruction includes:

[0013] Determine that a remote connection is established between the electronic device and the cloud computer;

[0014] Send a first trigger instruction to the cloud computer through a first channel established with the cloud computer;

[0015] Wherein, the electronic device confirms the message received from the first channel as the first message;

[0016] Or, determine that no remote connection is established between the electronic device and the cloud computer, and send a first trigger instruction to the cloud server;

[0017] The cloud server is configured to forward the first trigger instruction to the cloud computer and forward the first message sent by the cloud computer to the electronic device.

[0018] The method further includes:

[0019] Determine that the display interface of the application client is detected to be in a second display state;

[0020] Send a second trigger instruction to the cloud computer, so that the cloud computer stops sending the first message in response to the second trigger instruction.

[0021] Generating the local notification message based on the first message includes:

[0022] Parse the first message to obtain unread message data, where the unread message data is data in unread messages in the cloud computer;

[0023] Generate the local notification message based on the unread message data.

[0024] On the other hand, the present application provides a control method applied to a cloud computer. The method includes:

[0025] Receive a first trigger instruction sent by an electronic device, where the first trigger instruction is generated by the electronic device when the display interface of the application client is detected to be in a first display state;

[0026] In response to the first trigger instruction of the electronic device, transmit a first message to the electronic device, where the first message is generated according to unread messages of the cloud computer.

[0027] The transmitting the first message to the electronic device includes:

[0028] Determine that a remote connection is established with the electronic device;

[0029] Transmit the first message to the electronic device through a first channel established with the electronic device;

[0030] Wherein, the electronic device confirms the message received from the first channel as the first message.

[0031] The transmitting the first message to the electronic device includes:

[0032] Determine that no remote connection is established with the electronic device;

[0033] Transmit the first message to the cloud server of the application client, so that the cloud server forwards the first message to the application client.

[0034] The method further includes:

[0035] Determine that a second trigger instruction of the electronic device is received, where the second trigger instruction is generated by the electronic device when detecting that the display interface of the application client is in a second display state;

[0036] In response to the second trigger instruction, enter a first state, and in the first state, stop sending the first message.

[0037] A third aspect of the present application provides a storage medium storing a computer program for implementing the control method as described in any one of the above, and the computer program is executed by a processor to implement the control method as described in any one of the above.

[0038] In the present application, it is determined that the display interface of the application client is in a first display state, and a first trigger instruction is sent, so that the cloud computer transmits a first message to the electronic device in response to the first trigger instruction. The first message is generated according to the unread messages of the cloud computer, and the first message is received. Based on the first message, a local notification message of the electronic device is generated, and the local notification message is displayed on the electronic device, which enables the user to view the unread messages of the cloud computer in time on the electronic device, prevents missing the unread messages of the cloud computer, and improves work efficiency. Moreover, the unread messages of the cloud computer are displayed on the electronic device in the form of local notification messages of the electronic device, which can reduce the impact on the use of the electronic device and will not disturb the surrounding users, improving the friendliness of the notification. Description of the Drawings

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for description in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0040] Figure 1 It is a flowchart of a control method provided in Embodiment 1 of the present application;

[0041] Figure 2 It is a schematic diagram of an overlay scenario of a display interface of an application client provided by the present application;

[0042] Figure 3 It is another schematic diagram of an overlay scenario of a display interface of an application client provided by the present application;

[0043] Figure 4 It is a schematic flowchart of Embodiment 2 of a control method provided by this application;

[0044] Figure 5 It is a schematic diagram of the interaction between an electronic device and a cloud computer provided by this application;

[0045] Figure 6 It is a schematic flowchart of Embodiment 3 of a control method provided by this application;

[0046] Figure 7 It is a schematic diagram of the interaction among an electronic device, a cloud server, and a cloud computer provided by this application;

[0047] Figure 8 It is a schematic flowchart of Embodiment 4 of a control method provided by this application;

[0048] Figure 9 It is a schematic flowchart of a control method provided by Embodiment 5 of this application;

[0049] Figure 10 It is a schematic flowchart of Embodiment 6 of a control method provided by this application;

[0050] Figure 11 It is a schematic structural diagram of a control device provided by this application;

[0051] Figure 12 It is a schematic structural diagram of another control device provided by this application;

[0052] Figure 13 It is a schematic structural diagram of an electronic device provided by this application. Detailed implementation manners

[0053] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the protection scope of this application.

[0054] In the context of the problem that the application client cannot display the notification messages of the cloud computer in a timely manner, those skilled in the art have tried to solve it in the following ways:

[0055] The first one: Keep the display interface of the application client at the forefront of the display interface of the electronic device;

[0056] The second way: Redirect the audio output of the cloud computer to the electronic device where the application client is installed. When the cloud computer receives a notification message, the electronic device emits a sound to notify the user.

[0057] However, the inventor found that the first way would affect the use of the electronic device where the application client is installed, and the second way has the problem of disturbing the surrounding users.

[0058] Therefore, the inventor proposes a brand-new control method, which can ensure the timely display of the notification message of the cloud computer while not affecting the use of the electronic device and improving the user-friendliness.

[0059] To make the above objects, features, and advantages of the present application more obvious and understandable, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0060] Refer to Figure 1 , which is a schematic flowchart of a control method provided in Embodiment 1 of the present application. This method can be applied to an electronic device, and the electronic device has an application client for connecting to a cloud computer. The cloud computer is a virtual machine with the application client as a remote interface. The present application does not limit the product type of the electronic device. As Figure 1 shown, this method can include but is not limited to the following steps:

[0061] Step S101: Determine that the display interface of the application client is in the first display state, and send a first trigger instruction, so that the cloud computer transmits a first message to the electronic device in response to the first trigger instruction. The first message is generated according to the unread messages of the cloud computer.

[0062] In this embodiment, it can be detected whether the display interface of the application client is in the first display state. The first display state of the display interface of the application client will affect the timeliness of viewing the unread messages of the cloud computer in the application client.

[0063] Among them, determining that the display interface of the application client is in the first display state may include:

[0064] S1011: Determine that a partial area of the display interface of the application client is covered.

[0065] Determining that a partial area of the display interface of the application client is covered may include:

[0066] Determine that the display interface of the application client is covered, and the size of the covered area does not exceed the size of the display interface of the application client.

[0067] In this embodiment, it is determined that the display interface of the application client is covered, and the covered range does not exceed the size of the display interface of the application client, which can ensure that when any partial area of the display interface of the application client is covered, the first trigger instruction can be sent, ensuring the efficiency of sending the first trigger instruction and ensuring that the cloud computer can send the first message in a timely manner. For example, as Figure 2 shown, when the display interface of the application client is covered by the display interface of the WeChat program in the first partial area, the first partial area is different from the common display area of the unread messages of the cloud computer represented by the dashed rectangular frame, and the electronic device can send the first trigger instruction without further determining whether the detected covered area is related to the common display area of the unread messages of the cloud computer, thereby improving the efficiency of sending the first trigger instruction.

[0068] The common display area of the unread messages of the cloud computer can be obtained based on the historical data of the unread messages of the cloud computer displayed on the display interface of the application client.

[0069] Of course, determining that a partial area of the display interface of the application client is covered may also include:

[0070] Determining that the display interface of the application client is covered, and the size of the covered area does not exceed the size of the display interface of the application client, and the covered area is associated with the common display area of the unread messages of the cloud computer.

[0071] Such as Figure 3 shown, when the display interface of the WeChat program covers the Figure 2 common area of the unread messages of the cloud computer in, when it is determined that the display interface of the application client is covered, and the size of the covered area does not exceed the size of the display interface of the application client, and the covered area is associated with the common display area of the unread messages of the cloud computer, the accuracy of sending the first trigger instruction can be improved, ensuring that when the common display area of the unread messages of the cloud computer is covered, the cloud computer transmits the first message to the electronic device, reducing the operations of the electronic device and the cloud computer.

[0072] Determining that the display interface of the application client is in the first display state may also include:

[0073] S1012. Determine that the display interface of the application client is not at the forefront of the display unit of the electronic device.

[0074] In this embodiment, another implementation manner for determining that the display interface of the application client is in the first display state is further provided, which may specifically include:

[0075] S1013. Determine that the display interface of the application client is in the minimized state.

[0076] It is understandable that the transmission of the first message from the cloud computer to the electronic device and the transmission of other information (such as the full-screen display content of the cloud computer) that is different from the first message by the cloud computer to the electronic device do not affect each other.

[0077] The unread messages of the cloud computer may include but are not limited to: unread messages of the applications on the cloud computer (such as unread messages of the email application, unread messages of the audio / video conferencing application, or unread messages of the instant messaging application) and / or unread messages of the operating system of the cloud computer.

[0078] Among them, the unread messages of the application may include but are not limited to at least one of the icon, title, and at least part of the body content of the application.

[0079] Step S102: Receive the first message and generate a local notification message for the electronic device based on the first message.

[0080] The local notification information of the electronic device is controlled and output by the electronic device.

[0081] In this embodiment, generating a local notification message for the electronic device based on the first message may include but is not limited to:

[0082] S1021: Register the first message in the operating system of the electronic device, and determine the registered first message as the local notification message of the electronic device.

[0083] In this embodiment, generating a local notification message for the electronic device based on the first message may also include but is not limited to:

[0084] S1022: Analyze the first message to obtain unread message data, where the unread message data is the data in the unread messages in the cloud computer.

[0085] S1023: Generate a local notification message based on the unread message data.

[0086] Specifically, the electronic device may call the application programming interface provided by the operating system of the electronic device for customizing notification messages, and the application programming interface for customizing notification messages performs the following process: Generate a local notification message based on the unread message data according to the local notification message generation template of the electronic device.

[0087] By analyzing the first message to obtain unread message data and generating a local notification message based on the unread message data, it is possible to customize the generation of local notification messages and meet the personalized display requirements of local notification messages.

[0088] Step S103: Display the local notification message on the electronic device.

[0089] In this embodiment, local notification messages can be displayed in the common display area of notification messages of the electronic device.

[0090] Of course, it is also possible to select a first area in the display interface of the electronic device and display local notification messages in the first area, and the first area is different from the common display area of notification messages of the electronic device.

[0091] In this embodiment, when it is determined that the display interface of the application client is in the first display state, a first trigger instruction is sent, so that the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device. The first message is generated according to the unread messages of the cloud computer, and then the first message is received. Based on the first message, local notification messages of the electronic device are generated and displayed in the electronic device. This allows users to view the unread messages of the cloud computer in the electronic device in a timely manner, preventing them from missing the unread messages of the cloud computer and improving work efficiency. Moreover, the unread messages of the cloud computer are displayed in the electronic device in the form of local notification messages of the electronic device, which can reduce the impact on the use of the electronic device and will not disturb surrounding users, thus improving the friendliness of notifications.

[0092] As another alternative embodiment of this application, refer to Figure 4 , which is a schematic flowchart of Embodiment 2 of a control method provided by this application. This embodiment is mainly a refinement of the control method described in the above Embodiment 1. As Figure 4 shown, the method may include but is not limited to the following steps:

[0093] Step S201: Determine that it is detected that the display interface of the application client is in the first display state, and determine that a remote connection is established between the electronic device and the cloud computer.

[0094] On the basis that a remote connection is established between the electronic device and the cloud computer, as Figure 5 shown, information can be directly exchanged between the electronic device and the cloud computer.

[0095] It should be noted that Figure 5 the electronic device and the cloud computer shown are only one example and do not limit the electronic device and the cloud computer.

[0096] Step S202: Send a first trigger instruction to the cloud computer through the first channel established with the cloud computer, so that the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device through the first channel. The first message is generated according to the unread messages of the cloud computer.

[0097] In this embodiment, the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device, including: the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device through the first channel.

[0098] Steps S201 - S202 are a specific implementation of step S101 in Embodiment 1.

[0099] Step S203: Confirm the message received from the first channel as the first message, and generate a local notification message for the electronic device based on the first message.

[0100] The electronic device may receive messages from at least one channel, where the at least one channel includes the first channel. The electronic device determines that a message is received from the at least one channel, and confirms the message received from the first channel as the first message, ensuring the accuracy of the received first message.

[0101] Step S203 is a specific implementation of step S102 in Embodiment 1.

[0102] For the detailed process of generating a local notification message for the electronic device based on the first message, reference can be made to the relevant introduction in Embodiment 1, which will not be elaborated here.

[0103] Step S204: Display the local notification message on the electronic device.

[0104] For the detailed process of step S204, reference can be made to the relevant introduction of step S103 in Embodiment 1, which will not be elaborated here.

[0105] In this embodiment, the electronic device sends a first trigger instruction to the cloud computer through the first channel, and the cloud computer transmits the first message to the electronic device through the first channel, ensuring that only the first trigger instruction and the first message can be transmitted between the electronic device and the cloud computer through the first channel, enabling the first trigger instruction and the first message to be transmitted through the dedicated first channel, ensuring the reliability and efficiency of transmitting the first trigger instruction to the cloud computer, as well as the reliability and efficiency of the electronic device receiving the first message, and further ensuring the timeliness and reliability of displaying the unread messages of the cloud computer in the form of local notification messages.

[0106] As another alternative embodiment of the present application, refer to Figure 6 , which is a schematic flowchart of Embodiment 3 of a control method provided by the present application. This embodiment is mainly a refinement of the control method described in the above Embodiment 1. As Figure 6 shown, the method may include but is not limited to the following steps:

[0107] Step S301: Determine that there is no established remote connection between the electronic device and the cloud computer, send a first trigger instruction to the cloud server, so that the cloud server forwards the first trigger instruction to the cloud computer, and the cloud computer transmits a first message to the cloud server in response to the first trigger instruction. The first message is generated based on the unread messages of the cloud computer.

[0108] In this embodiment, it is determined that there is no remote connection between the electronic device and the cloud computer. When the cloud server is connected to the electronic device and the cloud computer, the cloud server can provide data services for the electronic device and the cloud computer. Based on this, as Figure 7 shown, the electronic device can send a first trigger instruction to the cloud server so that the cloud server forwards the first trigger instruction to the cloud computer. In response to the first trigger instruction, the cloud computer transmits a first message to the cloud server, and the cloud server forwards the first message to the electronic device.

[0109] It should be noted that Figure 7 the electronic device, cloud computer, and cloud server shown are only one example and do not limit the electronic device, cloud computer, and cloud server.

[0110] The cloud server can establish a long connection or a short connection with the electronic device. Of course, the cloud server can also establish a long connection or a short connection with the cloud computer. The way the cloud server establishes a connection with the electronic device can be different from the way it establishes a connection with the cloud computer. For example, the cloud server establishes a long connection with the electronic device and a short connection with the cloud computer.

[0111] Among them, when the cloud server establishes a long connection with the electronic device and a long connection with the cloud computer, the response speed of the cloud server, cloud computer, and electronic device can be maximally improved, and the transmission rate of the first trigger instruction and the first message can be increased.

[0112] Step S301 is a specific implementation manner of step S101 in Embodiment 1.

[0113] Step S302: Receive the first message forwarded by the cloud server, and generate a local notification message for the electronic device based on the first message.

[0114] Step S302 is a specific implementation manner of step S102 in Embodiment 1.

[0115] For the detailed process of generating the local notification message for the electronic device based on the first message, refer to the relevant introduction in Embodiment 1 and will not be elaborated here.

[0116] Step S303: Display the local notification message on the electronic device.

[0117] For the detailed process of Step S303, refer to the relevant introduction of Step S103 in Embodiment 1 and will not be elaborated here.

[0118] In this embodiment, it is determined that no remote connection is established between the electronic device and the cloud computer. A first trigger instruction is sent to the cloud server, and the cloud server forwards the first trigger instruction to the cloud computer. In response to the first trigger instruction, the cloud computer transmits a first message to the cloud server, and the cloud server forwards the first message to the electronic device, realizing the reliable transmission of the first trigger instruction and the first message. Furthermore, it is ensured that the electronic device receives the first message. Based on the first message, a local notification message of the electronic device is generated, and the local notification message is displayed on the electronic device, enabling the user to view the unread messages of the cloud computer in a timely manner on the electronic device, preventing the missed unread messages of the cloud computer, and improving the office efficiency.

[0119] As another alternative embodiment of the present application, refer to Figure 8 , which is a schematic flowchart of Embodiment 4 of a control method provided by the present application. This embodiment is mainly an extended solution for the control method described in Embodiment 1 above. As Figure 8 shown, the method may include but is not limited to the following steps:

[0120] Step S401: Determine that the display interface of the application client is in the first display state, and send a first trigger instruction so that the cloud computer transmits a first message to the electronic device in response to the first trigger instruction. The first message is generated according to the unread messages of the cloud computer.

[0121] Step S402: Receive the first message and generate a local notification message of the electronic device based on the first message.

[0122] Step S403: Display the local notification message on the electronic device.

[0123] For the detailed processes of Steps S401 - S403, reference can be made to the relevant descriptions of Steps S101 - S103 in Embodiment 1, which will not be elaborated here.

[0124] Step S404: Determine that the display interface of the application client is in the second display state.

[0125] In this embodiment, after determining that the display interface of the application client is in the first display state, it can start to detect whether the display interface of the application client is in the second display state. The second display state is different from the first display state.

[0126] When the display interface of the application client is in the second display state, it can at least ensure the timeliness of viewing the unread messages of the cloud computer in the application client.

[0127] Determining that the display interface of the application client is in the second display state may include but is not limited to:

[0128] S4041. Determine that the display interface of the application client is detected to be in an uncovered state;

[0129] Or, S4042. Determine that the area associated with the common display area of the unread messages of the cloud computer in the display interface of the application client is detected to be in an uncovered state;

[0130] Or, S4043. Determine that the display interface of the application client is at the forefront of the display unit of the electronic device.

[0131] Step S405. Send a second trigger instruction to the cloud computer so that the cloud computer stops sending the first message in response to the second trigger instruction.

[0132] The second trigger instruction is different from the first trigger instruction.

[0133] Corresponding to the implementation process in which the cloud computer stops sending the first message in response to the second trigger instruction, the electronic device at least does not receive the first message, and when the cloud computer receives an unread message, the electronic device displays the unread message of the cloud computer in the application client.

[0134] In this embodiment, it is determined that the display interface of the application client is in the first display state, and the first trigger instruction is sent so that the cloud computer transmits the first message in response to the first trigger instruction. The first message is generated according to the unread messages of the cloud computer, and the first message is received. Based on the first message, the local notification message of the electronic device is generated, and the local notification message is displayed in the electronic device, which enables the user to view the unread messages of the cloud computer in the electronic device in a timely manner, prevents missing the unread messages of the cloud computer, and improves work efficiency. Moreover, the unread messages of the cloud computer are displayed in the electronic device in the form of the local notification message of the electronic device, which can reduce the impact on the use of the electronic device and does not disturb the surrounding users, improving the friendliness of the notification.

[0135] In addition, when the electronic device determines that the display interface of the application client is in the second display state different from the first display state, the second trigger instruction is sent to the cloud computer so that the cloud computer stops sending the first message in response to the second trigger instruction. The electronic device stops receiving the first message, and when the cloud computer receives an unread message, the electronic device displays the unread message of the cloud computer in the application client, which can avoid wasting the bandwidth resources and computing resources of the electronic device while ensuring that the unread messages of the cloud computer can be viewed in the application client in a timely manner.

[0136] Refer to Figure 9 , which is a schematic flowchart of a control method provided in Embodiment 5 of this application. This method can be applied to a cloud computer, and the cloud computer is a virtual machine that uses the application client of the electronic device as a remote interface, such as Figure 9As shown, the method may include but is not limited to the following steps:

[0137] Step S501: Receive a first trigger instruction sent by an electronic device, where the first trigger instruction is generated by the electronic device when detecting that the display interface of the application client is in a first display state.

[0138] Step S502: In response to the first trigger instruction of the electronic device, transmit a first message to the electronic device, where the first message is generated based on the unread messages of the cloud computer.

[0139] The electronic device receives the first message, and based on the first message, can generate a local notification message of the electronic device and display the local notification message in the electronic device.

[0140] In this application, there is no limitation on the timing of starting to generate the first message. Specifically, the cloud computer can start generating the first message before receiving the first trigger instruction; or, in response to the first trigger instruction of the electronic device, start generating the first message.

[0141] Among them, when the cloud computer starts generating the first message before receiving the first trigger instruction, it can ensure the timeliness of transmitting the first message to the electronic device, and thus ensure that the electronic device can timely display the local notification message generated based on the first message.

[0142] Transmitting the first message to the electronic device may include but is not limited to:

[0143] S5021: Determine that a remote connection is established with the electronic device.

[0144] S5022: Transmit the first message to the electronic device through a first channel established with the electronic device.

[0145] Among them, the electronic device confirms the message received from the first channel as the first message.

[0146] For the detailed process of steps S5021 - S5022, reference can be made to the relevant introduction in Embodiment 2, which will not be elaborated here.

[0147] Another specific implementation manner of transmitting the first message to the electronic device may include:

[0148] S5023: Determine that a remote connection is not established with the electronic device.

[0149] S5024: Transmit the first message to the cloud server of the application client so that the cloud server forwards the first message to the application client.

[0150] For the detailed process of steps S5023 - S5024, reference can be made to the relevant introduction in Embodiment 3, which will not be elaborated here.

[0151] In this embodiment, the cloud computer receives a first trigger instruction from the electronic device, and in response to the first trigger instruction of the electronic device, transmits a first message to the electronic device, so that the electronic device can generate a local notification message of the electronic device based on the first message and display the local notification message in the electronic device. This enables the user to view the unread messages of the cloud computer in the electronic device in a timely manner, preventing the missed unread messages of the cloud computer and improving work efficiency. Moreover, the unread messages of the cloud computer are displayed in the electronic device in the form of the local notification message of the electronic device, which can reduce the impact on the use of the electronic device and will not disturb the surrounding users, thus improving the friendliness of the notification.

[0152] As another optional embodiment of the present application, referring to Figure 10 , which is a schematic flowchart of Embodiment 6 of a control method provided by the present application. This embodiment is mainly an extended solution to the control method described in the above Embodiment 5. As Figure 10 shown, the method may include but is not limited to the following steps:

[0153] Step S601: Receive a first trigger instruction sent by the electronic device. The first trigger instruction is generated when the electronic device detects that the display interface of the application client is in the first display state.

[0154] Step S602: In response to the first trigger instruction of the electronic device, transmit a first message to the electronic device. The first message is generated according to the unread messages of the cloud computer.

[0155] For the detailed processes of Steps S601 - S602, reference can be made to the relevant descriptions of Steps S501 - S502 in Embodiment 5, which will not be elaborated here.

[0156] Step S603: Determine that a second trigger instruction sent by the electronic device is received. The second trigger instruction is generated when the electronic device detects that the display interface of the application client is in the second display state.

[0157] Step S604: In response to the second trigger instruction, enter the first state. In the first state, stop sending the first message.

[0158] In the first state, stop sending the first message and can continue to generate the first message.

[0159] Of course, in the first state, it is possible to notify to send the first message and stop generating the first message.

[0160] When the cloud computer is in the first state, stop sending the first message, and the electronic device will at least not receive the first message.

[0161] In this embodiment, in response to the second trigger instruction, the cloud computer stops sending the first message, and the electronic device at least cannot receive the first message. When the cloud computer receives an unread message, the electronic device displays the unread message of the cloud computer in the application client, ensuring that the unread message of the cloud computer can be viewed in the application client in a timely manner while avoiding wasting the bandwidth resources and computing resources of the cloud computer.

[0162] Next, a control device provided by the present application will be introduced. The control device described below can be correspondingly referred to the control method described above.

[0163] Please refer to Figure 11 , the control device is applied to an electronic device, and the device includes: a first sending module 100, a first receiving module 200, a generating module 300, and a display module 400.

[0164] The first sending module 100 is configured to determine that the display interface of the application client is in the first display state, and send a first trigger instruction, so that the cloud computer, in response to the first trigger instruction, transmits a first message to the electronic device, and the first message is generated according to the unread message of the cloud computer.

[0165] The first receiving module 200 is configured to receive the first message.

[0166] The generating module 300 is configured to generate a local notification message of the electronic device based on the first message.

[0167] The display module 400 is configured to display the local notification message on the electronic device.

[0168] In this embodiment, the first sending module 100 may specifically be configured to:

[0169] Determine that a partial area of the display interface of the application client is covered;

[0170] Or, determine that the display interface of the application client is not at the forefront of the display unit of the electronic device;

[0171] Or, determine that the display interface of the application client is in the minimized state.

[0172] In this embodiment, the first sending module 100 may specifically be configured to:

[0173] Determine that a remote connection is established between the electronic device and the cloud computer;

[0174] Send a first trigger instruction to the cloud computer through the first channel established with the cloud computer;

[0175] Wherein, the electronic device confirms the message received from the first channel as the first message;

[0176] Alternatively, if it is determined that there is no remote connection established between the electronic device and the cloud computer, a first trigger instruction is sent to the cloud server;

[0177] The cloud server is used to forward the first trigger instruction to the cloud computer and forward the first message sent by the cloud computer to the electronic device.

[0178] In this embodiment, the above control device may further include:

[0179] A first determination module, configured to determine that the display interface of the application client is in a second display state;

[0180] A second sending module, configured to send a second trigger instruction to the cloud computer, so that the cloud computer stops sending the first message in response to the second trigger instruction.

[0181] In this embodiment, the generation module 300 may specifically be configured to:

[0182] Parse the first message to obtain unread message data, where the unread message data is the data in the unread messages in the cloud computer;

[0183] Generate a local notification message based on the unread message data.

[0184] Please refer to Figure 12 , the control device is applied to the cloud computer, and the device includes: a second receiving module 500 and a transmission module 600.

[0185] The second receiving module 500 is configured to receive the first trigger instruction sent by the electronic device, where the first trigger instruction is generated by the electronic device when it detects that the display interface of the application client is in a first display state.

[0186] The transmission module 600 is configured to transmit a first message to the electronic device in response to the first trigger instruction of the electronic device, where the first message is generated according to the unread messages of the cloud computer.

[0187] In this embodiment, the transmission module 600 may specifically be configured to:

[0188] Determine that a remote connection is established with the electronic device;

[0189] Transmit the first message to the electronic device through the first channel established with the electronic device;

[0190] Wherein, the electronic device confirms the message received from the first channel as the first message;

[0191] Or,

[0192] Determine that there is no remote connection established with the electronic device;

[0193] Transmit the first message to the cloud server of the application client so that the cloud server forwards the first message to the application client.

[0194] In this embodiment, the above control device further includes:

[0195] A second determination module, configured to determine that a second trigger instruction of the electronic device is received, where the second trigger instruction is generated by the electronic device when it detects that the display interface of the application client is in a second display state;

[0196] A stop module, configured to enter a first state in response to the second trigger instruction, and in the first state, stop sending the first message.

[0197] Corresponding to the control method embodiment provided in the present application, the present application further provides an electronic device embodiment applying the control method.

[0198] As Figure 13 shown is a schematic structural diagram of an electronic device provided in the present application, and the electronic device may include the following structure:

[0199] A memory 10 and a processor 20.

[0200] The memory 10 is configured to store at least one set of instruction sets;

[0201] The processor 20 is configured to call and execute the instruction sets in the memory 10, and execute the control method introduced in any one of the method embodiments 1-4 as described above by executing the instruction sets.

[0202] Corresponding to the control method embodiment provided in the present application, the present application further provides an embodiment of a storage medium.

[0203] In this embodiment, the storage medium stores a computer program for implementing the control method introduced in any one of the method embodiments 1-6, and the computer program is executed by the processor to implement the control method introduced in any one of the embodiments 1-6.

[0204] It should be noted that each embodiment focuses on the differences from other embodiments, and the same or similar parts among the embodiments can be referred to each other. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0205] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0206] For the convenience of description, when describing the above device, various modules are described separately according to their functions. Of course, when implementing the present application, the functions of each module can be implemented in one or more software and / or hardware.

[0207] From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present application.

[0208] The above provides a detailed introduction to a control method and a storage medium provided by the present application. Specific examples are used in this text to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A control method is applied to an electronic device. An application client for connecting to a cloud computer is provided on the electronic device. The cloud computer is a virtual machine that uses the application client as a remote interface. This method includes: Determine that the display interface of the application client is in a first display state, and send a first trigger instruction, so that the cloud computer responds to the first trigger instruction and transmits a first message to the electronic device. The first message is generated based on the unread messages of the cloud computer; Receive the first message, and generate a local notification message of the electronic device based on the first message; Display the local notification message on the electronic device; Among them, the determination that the display interface of the application client is in the first display state includes: Determine that a partial area of the display interface of the application client is covered; Or, determine that the display interface of the application client is not at the forefront of the display unit of the electronic device; Or, determine that the display interface of the application client is in a minimized state.

2. The method according to claim 1, for the sending of the first trigger instruction, includes: Determine that a remote connection is established between the electronic device and the cloud computer; Send a first trigger instruction to the cloud computer through a first channel established with the cloud computer; Among them, the electronic device confirms the message received from the first channel as the first message; Or, determine that a remote connection is not established between the electronic device and the cloud computer, and send a first trigger instruction to the cloud server; The cloud server is used to forward the first trigger instruction to the cloud computer and forward the first message sent by the cloud computer to the electronic device.

3. The method according to claim 1, the method further includes: Determine that the display interface of the application client is in a second display state; Send a second trigger instruction to the cloud computer, so that the cloud computer responds to the second trigger instruction and stops sending the first message.

4. The method according to claim 1, for generating the local notification message of the electronic device based on the first message, includes: Parse the first message to obtain unread message data, and the unread message data is the data in the unread messages in the cloud computer; Generate the local notification message based on the unread message data.

5. A control method is applied to a cloud computer. This method includes: Receive a first trigger instruction sent by an electronic device. The first trigger instruction is generated by the electronic device when it detects that the display interface of the application client is in a first display state; The display interface of the application client being in the first display state includes: a partial area of the display interface of the application client is covered; or, the display interface of the application client is not at the forefront of the display unit of the electronic device; or, the display interface of the application client is in a minimized state; Respond to the first trigger instruction of the electronic device and transmit a first message to the electronic device. The first message is generated based on the unread messages of the cloud computer.

6. The method according to claim 5, wherein the transmitting the first message to the electronic device comprises: determining that a remote connection is established with the electronic device; transmitting the first message to the electronic device through a first channel established between the electronic device; wherein the electronic device confirms the message received from the first channel as the first message.

7. The method according to claim 5, wherein the transmitting the first message to the electronic device comprises: determining that a remote connection is not established with the electronic device; transmitting the first message to the cloud server of the application client so that the cloud server forwards the first message to the application client.

8. The method according to claim 5, the method further comprises: determining that a second trigger instruction of the electronic device is received, where the second trigger instruction is generated when the electronic device detects that the display interface of the application client is in a second display state; responding to the second trigger instruction, entering a first state, and in the first state, stopping sending the first message.

9. A storage medium stores a computer program for implementing the control method according to any one of claims 1-8, and the computer program is executed by a processor to implement the control method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Unified application notification framework

    CN113711184A