CN114553890B - System message processing method, device, computer equipment and storage medium - Google Patents
System message processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114553890B CN114553890B CN202011332344.4A CN202011332344A CN114553890B CN 114553890 B CN114553890 B CN 114553890B CN 202011332344 A CN202011332344 A CN 202011332344A CN 114553890 B CN114553890 B CN 114553890B
- Authority
- CN
- China
- Prior art keywords
- cloud
- terminal
- application
- system message
- sub
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a system message processing method, a device, computer equipment and a storage medium, and relates to the technical field of cloud application. The method is executed by a server of a cloud application, wherein the cloud application comprises a terminal sub-application and a cloud sub-application; the method comprises the following steps: receiving a system message processing request sent by a terminal, wherein the system message processing request is used for indicating a system message and a terminal identifier of the terminal; inquiring cloud equipment corresponding to the terminal based on the terminal identification; the system information is transmitted to a cloud operating system in the cloud device, so that the cloud operating system transmits the system information to a cloud terminal application, and the cloud terminal application processes the system information; the scheme realizes the transmission of the system message between the terminal and the cloud, and the cloud application can respond to the system message transmitted by the operating system in the terminal, thereby expanding the use scene of system message processing.
Description
Technical Field
The present disclosure relates to the field of cloud applications, and in particular, to a method and apparatus for processing a system message, a computer device, and a storage medium.
Background
With the development of computer Application technology, cloud Application (APP) will be widely used in the fields of medical treatment, finance, government affairs, social interaction, game, entertainment, education, internet of things, artificial intelligence, intelligent hardware, industry and the like.
In the related art, many applications have the ability to respond to messages delivered by the operating system of the terminal. For example, an application installed in the terminal has a preset interface for receiving a message transmitted by the operating system; after receiving the message transmitted by the operating system, the application can respond to the message, for example, when the message is identical to the notification terminal and the network state changes, the application displays a prompt related to the network state changes in the interface.
However, in the above solution, the response logic to the message transmitted by the operating system is executed at the terminal side, and is not applicable to the cloud application where the application logic is executed at the cloud.
Disclosure of Invention
The embodiment of the application provides a system message processing method, a device, computer equipment and a storage medium, which can enable a cloud application to respond to a system message transmitted by an operating system in a terminal, and expand the use scene of system message processing, and the technical scheme is as follows:
In one aspect, a system message processing method is provided, the method is executed by a server of a cloud application, and the cloud application comprises a terminal sub-application and a cloud sub-application; the method comprises the following steps:
receiving a system message processing request sent by a terminal, wherein the system message processing request is used for indicating a system message and a terminal identifier of the terminal; the terminal sub-application is operated in the terminal; the system message processing request is sent when the terminal sub-application in the terminal receives the system message; the system message is a message transmitted through an operating system of the terminal;
inquiring cloud equipment corresponding to the terminal based on the terminal identifier; the cloud sub-application corresponding to the terminal and a cloud operating system are operated in the cloud equipment;
transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application;
processing the system message through the cloud sub-application to update an application interface of the cloud application;
and pushing an application interface image obtained by recording the application interface of the cloud application to the terminal so that the terminal sub-application in the terminal displays the application interface image.
In one aspect, a system message processing method is provided, the method is executed by a terminal, and a terminal sub-application with a cloud application runs in the terminal; the cloud application further comprises a cloud sub-application; the method comprises the following steps:
receiving a system message, wherein the system message is transmitted through an operating system of the terminal;
generating a system message processing request corresponding to the system message, wherein the system message processing request is used for indicating the system message and a terminal identifier of the terminal;
sending the system message processing request to a server of the cloud application; the system message processing request is used for instructing the server to perform the following operations: inquiring cloud equipment corresponding to the terminal based on the terminal identifier, wherein the cloud sub-application corresponding to the terminal and a cloud operating system run in the cloud equipment; transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application, and the cloud sub-application processes the system message to update an application interface of the cloud application;
Receiving an application interface image pushed by the server, wherein the application interface image is obtained by recording an application interface of the cloud application;
and displaying the application interface image through the terminal sub-application.
In yet another aspect, a system message processing apparatus is provided, where the apparatus is used in a server of a cloud application, and the cloud application includes a terminal sub-application and a cloud sub-application; the device comprises:
the system comprises a request receiving module, a request processing module and a processing module, wherein the request receiving module is used for receiving a system message processing request sent by a terminal, and the system message processing request is used for indicating a system message and a terminal identifier of the terminal; the terminal sub-application is operated in the terminal; the system message processing request is sent when the terminal sub-application in the terminal receives the system message; the system message is a message transmitted through an operating system of the terminal;
the equipment query module is used for querying cloud equipment corresponding to the terminal based on the terminal identifier; the cloud sub-application corresponding to the terminal and a cloud operating system are operated in the cloud equipment;
the message transmission module is used for transmitting the system message to the cloud operating system in the cloud device so that the cloud operating system can transmit the system message to the cloud sub-application;
The message processing module is used for processing the system message through the cloud sub-application so as to update an application interface of the cloud application;
and the image pushing module is used for pushing the application interface image obtained by recording the application interface of the cloud application to the terminal so that the terminal sub-application in the terminal displays the application interface image.
In a possible implementation manner, the device query module is configured to query, based on the terminal identifier, a correspondence between the terminal identifier and a device identifier of the cloud device, to obtain the device identifier of the cloud device;
the message transfer module is used for transferring the system message to the cloud operating system in the cloud device based on interface information corresponding to the device identifier of the cloud device; the interface information is used for indicating an interface of the cloud operating system in the cloud device.
In one possible implementation, the apparatus further includes:
the identifier distribution module is used for distributing the terminal identifier to the terminal before the request receiving module receives the system message processing request sent by the terminal;
And the relation establishing module is used for establishing a corresponding relation between the terminal identification and the equipment identification of the cloud equipment.
In one possible implementation, the apparatus further includes:
and the identifier sending module is used for sending the terminal identifier to the terminal sub-application in the terminal.
In one possible implementation manner, the device query module is configured to respond to the message type of the system message being a specified message type, and perform the step of querying the cloud device corresponding to the terminal based on the terminal identifier.
In one possible implementation manner, the message passing module is configured to, in response to the message type of the system message being a specified message type, perform a step of passing the system message to the cloud operating system in the cloud device.
In one possible implementation, the apparatus further includes:
the processing information receiving module is used for responding to the system information as an ordered broadcasting instruction, receiving broadcasting processing information forwarded by the cloud operating system in the cloud equipment, and the broadcasting processing information is used for indicating to intercept or forward the ordered broadcasting instruction;
And the forwarding instruction sending module is used for responding to the broadcasting processing information to instruct to forward the ordered broadcasting instruction and sending a forwarding instruction to the terminal, wherein the forwarding instruction is used for instructing the terminal to forward the ordered broadcasting instruction to the next broadcasting receiver in the terminal.
In one possible implementation, the forwarding instruction includes an address of the next broadcast receiver.
In a possible implementation manner, the system message processing request includes a message identifier of the system message, and the data volume of the message identifier is smaller than that of the system message;
the apparatus further comprises:
and the message query module is used for obtaining the system message based on the message identification query before the message transmission module transmits the system message to the cloud operating system in the cloud device.
In yet another aspect, a system message processing apparatus is provided, where the apparatus is used in a terminal, and a terminal sub-application with a cloud application is running in the terminal; the cloud application further comprises a cloud sub-application; the device comprises:
the message receiving module is used for receiving a system message, wherein the system message is a message transmitted through an operating system of the terminal;
The request generation module is used for generating a system message processing request corresponding to the system message, wherein the system message processing request is used for indicating the system message and the terminal identification of the terminal;
a request sending module, configured to send the system message processing request to a server of the cloud application; the system message processing request is used for instructing the server to perform the following operations: inquiring cloud equipment corresponding to the terminal based on the terminal identifier, wherein the cloud sub-application corresponding to the terminal and a cloud operating system run in the cloud equipment; transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application, and the cloud sub-application processes the system message to update an application interface of the cloud application;
the image receiving module is used for receiving an application interface image pushed by the server, wherein the application interface image is obtained by recording an application interface of the cloud application;
and the image display module is used for displaying the application interface image through the terminal sub-application.
In one possible implementation manner, the request generating module is configured to perform, in response to the message type of the system message being a specified message type, a step of generating a system message processing request corresponding to the system message.
In yet another aspect, a computer device is provided, the computer device comprising a processor and a memory, the memory storing at least one computer program, the at least one computer program loaded and executed by the processor to implement the system message processing method described above.
In yet another aspect, a computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the above-described system message processing method is provided.
In yet another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the system message processing method described above.
The technical scheme that this application provided can include following beneficial effect:
for the operation scene of the cloud application, after the cloud sub-application running on the terminal side receives the system message in the operation system of the terminal, the system message and the terminal identification are uploaded to the server of the cloud application, and the server transmits the system message to the cloud terminal application through the cloud operation system in the corresponding cloud device based on the terminal identification, so that the transmission of the system message between the terminal and the cloud is realized, the cloud application can respond to the system message transmitted by the operation system in the terminal, and the use scene of the system message processing is expanded.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a system configuration diagram of a cloud application system according to various embodiments of the present application;
FIG. 2 is a flow diagram illustrating a system message processing method according to an example embodiment;
FIG. 3 is a flow diagram illustrating a system message processing method according to an exemplary embodiment;
FIG. 4 is a diagram illustrating a processing scenario for a system message according to an exemplary embodiment;
FIG. 5 is a flow diagram illustrating a system message processing method according to an example embodiment;
FIG. 6 is a system frame diagram of system message processing involved in the embodiment shown in FIG. 5;
FIG. 7 is a flowchart of a system broadcast instruction process, according to an example embodiment;
FIG. 8 is a block diagram illustrating the architecture of a system message processing apparatus according to an exemplary embodiment;
FIG. 9 is a block diagram illustrating the structure of a system message processing apparatus according to an exemplary embodiment;
fig. 10 is a block diagram of a computer device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
Before describing the various embodiments shown in this application, several concepts related to this application will be described first:
1) System message
In various embodiments subsequent to this application, system messages refer to messages communicated in the terminal through the operating system, including, but not limited to, messages generated by the operating system and communicated to specific or all applications in the terminal, and messages generated by applications in the terminal and communicated to other applications in other terminals.
For example, taking an Android (Android) system as an example of the operating system in the terminal, the system message may be a broadcast instruction transmitted in the operating system.
Broadcast (broadcast) is one of the four major components of the android system. In the android system, an application listens to its interested broadcast instructions in the operating system by creating and registering broadcast receivers, and the broadcast instructions registered for listening may be broadcast instructions of the operating system and other applications, which may also be referred to as global broadcast. These broadcast instructions are sometimes referred to as events or intents.
In the android system, global broadcasting includes system broadcasting, standard broadcasting (or referred to as general broadcasting), ordered broadcasting, and the like.
The system broadcast refers to a broadcast instruction generated and globally issued by the operating system of the terminal. System broadcasting is typically used to synchronize state information of an operating system to an application layer. The android system has many system-level broadcasts built in, and applications can obtain state information of various systems by listening to the broadcasts. For example, after the terminal is started, a system broadcast is sent, the electric quantity of the battery is changed to send a system broadcast, and the time or time zone is changed to send a system broadcast, etc.
The standard broadcast (Normal broadcasts) is a broadcast that is performed entirely asynchronously, and after the broadcast is sent out, all broadcast receivers receive the broadcast at almost the same time, and the order in which the broadcast is received by the broadcast receivers is limited, so that the broadcast is relatively efficient but cannot be intercepted.
An ordered broadcast (Ordered broadcasts) is a broadcast that is executed synchronously, and only one broadcast receiver can receive the broadcast at the same time after the broadcast is sent out, and the broadcast continues to be transmitted after logic in the broadcast receiver is executed. For ordered broadcasting, each broadcasting receiver has a sequential receiving order, and the broadcasting receiver with high priority can receive the broadcasting first, and the broadcasting receiver which receives the broadcasting first can also intercept the ordered broadcasting being delivered, so that the subsequent broadcasting receiver cannot receive the broadcasting.
2) Cloud application
In various embodiments of the present application, a cloud application refers to an application program that is run in the cloud by main application logic. The cloud application is a novel application for changing the use mode of the traditional software of local installation and local operation into the service of instant use, connecting and controlling a remote server cluster through the Internet or a local area network and completing business logic or operation tasks.
Typically, a cloud application includes a terminal sub-application and a cloud sub-application, where the terminal sub-application runs in the terminal and the cloud sub-application runs in the cloud.
The terminal sub-application is mainly used for collecting operation information of a user in an application interface of a terminal side and reporting the operation information to the cloud sub-application; and receiving video pictures of the application interface sent by the cloud terminal application, and displaying the received video pictures in the application interface.
The cloud terminal application is mainly used for receiving user operation reported by the terminal sub-application at the terminal side, executing most application logic of the cloud application, and returning a video picture obtained by screen recording to the terminal sub-application at the terminal side after the server performs screen recording on an application interface at the cloud sub-application side.
Referring to fig. 1, a system configuration diagram of a cloud application system according to various embodiments of the present application is shown. As shown in fig. 1, the system includes a server 120, a database 140, and a number of terminals 160.
The server 120 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a content delivery network (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
In the embodiment of the present application, the server 120 provides a background service for the cloud application.
The database 140 may be a Redis database, or may be another type of database. The database 140 is used to store various data, such as service data of each cloud application, user registration information, and the like.
The terminal 160 may be a terminal device having a network connection function and installed with a terminal portion of the cloud application corresponding to the server 120, for example, the terminal 160 may be a smart phone, a tablet computer, an e-book reader, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, moving picture experts compression standard audio layer 4) player, a notebook computer, a desktop computer, or the like. Alternatively, the terminal 160 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or the like.
In the embodiment of the present application, the cloud application may include any type of application, such as, but not limited to, a video playing application, a video live application, a news class application, a reading class application, a music playing class application, a social class application, a game class application, a communication class application, a browser class application, a storage class application, a computing class application, a security management class application, and so on.
The terminal 160 is connected to the server 120 via a communication network. Optionally, the communication network is a wired network or a wireless network.
Optionally, the system may further include a management device (not shown in fig. 1) connected to the server 120 through a communication network. Optionally, the communication network is a wired network or a wireless network.
Alternatively, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over the network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible Markup Language, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure socket layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet Protocol Security, IPsec), and the like. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
Reference is now made to fig. 2, which is a flow chart illustrating a system message processing method that may be used with a computer device, according to an exemplary embodiment. Wherein the computer device may be a server of a cloud application; for example, the server may be the server 120 in the system shown in fig. 1, and the cloud application includes a terminal sub-application and a cloud sub-application. As shown in fig. 2, the system message processing method may include the steps of:
step 21, receiving a system message processing request sent by a terminal, wherein the system message processing request is used for indicating a system message and a terminal identifier of the terminal; the terminal sub-application is operated in the terminal; the system message processing request is sent when the terminal sub-application in the terminal receives the system message; the system message is a message delivered through the operating system of the terminal.
In the embodiment of the application, a terminal sub-application and a cloud sub-application of the cloud application are respectively run in the terminal and the server, that is, the terminal sub-application in the terminal and one cloud sub-application in the server form a complete cloud application.
After receiving the system message transmitted by the operating system of the terminal, the terminal sub-application in the terminal sends the system message to the server so that the server can carry out subsequent processing.
Step 22, inquiring cloud equipment corresponding to the terminal based on the terminal identifier; the cloud terminal sub-application corresponding to the terminal and a cloud terminal operating system are operated in the cloud terminal equipment.
In this embodiment of the present application, the cloud device is a cloud real machine or a virtualized device object, and the cloud device includes a cloud operating system and a cloud sub-application.
In one possible implementation scheme, for the cloud application, each terminal corresponds to one cloud device in a server, and a cloud sub-application running in the cloud device interacts with a terminal sub-application in the terminal to achieve a function of a complete cloud application.
Because cloud devices corresponding to a plurality of terminals can be uniformly managed in one server, when the server receives a system message processing request sent by one terminal, the server firstly inquires the cloud device where the cloud sub-application corresponding to the terminal is located according to the terminal identification indicated by the request.
Step 23, the system message is transferred to the cloud operating system in the cloud device, so that the cloud operating system transfers the system message to the cloud sub-application.
And step 24, processing the system message through the cloud sub-application to update an application interface of the cloud application.
And step 25, pushing the application interface image obtained by recording the application interface of the cloud application to the terminal so that the terminal sub-application in the terminal displays the application interface image.
In the embodiment of the application, the cloud terminal device comprises a cloud terminal application and a cloud operating system, when the server transmits the system message to the corresponding cloud terminal sub-application, the system message is transmitted to the cloud operating system in the cloud terminal device where the cloud terminal application is located, and the cloud operating system transmits the system message to the cloud terminal application, so that the cloud terminal sub-application processes the system message, and pushes an application interface image corresponding to the application interface which is updated in a processing manner to the terminal, and the terminal sub-application displays the application interface image.
In summary, in the scheme shown in the embodiment of the present application, for the operation scenario of the cloud application, after the cloud sub-application running on the terminal side receives the system message in the operating system of the terminal, the system message and the terminal identifier are uploaded to the server of the cloud application, and the server transfers the system message to the cloud terminal application via the cloud operating system in the corresponding cloud device based on the terminal identifier, so that the transfer of the system message between the terminal and the cloud is realized, and the cloud application can respond to the system message transferred by the operating system in the terminal, thereby expanding the use scenario of system message processing.
In addition, according to the scheme disclosed by the embodiment of the application, the corresponding cloud terminal equipment is queried through the terminal identification, and the system information is transmitted to the cloud sub-application through the cloud terminal operation system, so that the logic of receiving the system information by the cloud sub-application can directly use the logic of receiving the system information in the traditional application, the development flow of the cloud terminal application is simplified, and the development efficiency of the cloud application is improved.
Reference is now made to fig. 3, which is a flowchart illustrating a system message processing method that may be used with a computer device, in accordance with an exemplary embodiment. The computer device may be a terminal of a cloud application; for example, the terminal may be the terminal 160 in the system shown in fig. 1, where a terminal sub-application of a cloud application is running, and the cloud application further includes a cloud terminal application. As shown in fig. 3, the system message processing method may include the steps of:
step 31, a system message is received, the system message being a message delivered through the operating system of the terminal.
And step 32, generating a system message processing request corresponding to the system message, wherein the system message processing request is used for indicating the system message and the terminal identification of the terminal.
Step 33, sending the system message processing request to a server of the cloud application; the system message processing request is for instructing the server to: inquiring cloud equipment corresponding to the terminal based on the terminal identification, wherein the cloud sub-application corresponding to the terminal and a cloud operating system are operated in the cloud equipment; and transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application, and the cloud sub-application processes the system message to update an application interface of the cloud application.
And step 34, receiving an application interface image pushed by the server, wherein the application interface image is obtained by recording an application interface of the cloud application.
And 35, displaying the application interface image through the terminal sub-application.
In summary, in the scheme shown in the embodiment of the present application, for the operation scenario of the cloud application, after the cloud sub-application running on the terminal side receives the system message in the operating system of the terminal, the system message and the terminal identifier are uploaded to the server of the cloud application, and the server transfers the system message to the cloud terminal application via the cloud operating system in the corresponding cloud device based on the terminal identifier, so that the transfer of the system message between the terminal and the cloud is realized, and the cloud application can respond to the system message transferred by the operating system in the terminal, thereby expanding the use scenario of system message processing.
In the scheme shown in the embodiment of the application, the method and the device can be used in any cloud application needing to respond to the system message transmitted in the operating system of the terminal, and the cloud part running on the server side in the cloud application can respond to the system message, so that the use scene of system message processing is expanded. For example, please refer to fig. 4, which is a schematic diagram illustrating a processing scenario of a system message according to an exemplary embodiment. Taking the example that the system message is a system message indicating network state switching, the processing flow of the system message may include the following steps.
S1, an operating system of a terminal sends a system message of 'network state switching' to a terminal sub-application of a cloud application in the terminal.
And S2, the terminal sub-application forwards the system message of 'network state switching' to the cloud sub-application of the cloud application in the server.
And S3, the cloud sub-application updates the application interface according to the system message of 'network state switching', and displays a prompt popup window in the application interface so as to remind a user of paying attention to consumption of network traffic.
And S4, the cloud sub-application outputs the streaming media picture to the terminal sub-application.
S5, the terminal sub-application plays the streaming media picture through the player, wherein the streaming media picture comprises the prompt popup window.
The steps S1 to S3 in the above-mentioned processing flow may be implemented by the system message processing method shown in each embodiment of the present application.
Reference is now made to fig. 5, which is a flowchart illustrating a system message processing method according to an exemplary embodiment. The method may be used with a computer device. The computer equipment can comprise a terminal and a server of a cloud application; for example, the terminal may be the terminal 160 in the system shown in fig. 1, and the server may be the server 120 in the system shown in fig. 1, where a terminal sub-application of a cloud application is running, and where a cloud sub-application of the cloud application is running. As shown in fig. 5, the system message processing method may include the steps of:
in step 501, the server allocates a terminal identifier to the terminal, and establishes a correspondence between the terminal identifier and a device identifier of the cloud device.
The server comprises cloud equipment corresponding to each terminal, wherein the cloud equipment can be real equipment or virtualized equipment objects. And a cloud operating system and a cloud sub-application are operated in each cloud device.
In the embodiment of the present application, when a cloud sub-application in a terminal is started, a server may initialize a cloud device of the terminal, that is, create or allocate a cloud device corresponding to the terminal, and start a corresponding cloud sub-application and a cloud operating system in the corresponding cloud device. And the server also establishes a corresponding relation between the terminal identifier and the device identifier of the cloud device so as to carry out correct transmission of the system message subsequently.
In one possible implementation, the terminal identifier is a terminal identifier allocated by the server to the terminal when the cloud sub-application in the terminal is started for the first time, and the validity period of the terminal identifier is not limited to the local use process of the cloud application, and may be valid for a period of time (such as a month) or permanently valid.
In another possible implementation manner, in order to improve security, the terminal identifier is a terminal identifier allocated to the terminal by the server when the cloud sub-application in the terminal is started each time, that is, the terminal identifier is valid in a local use process of the cloud application, when the cloud sub-application is closed in the terminal, the terminal identifier can be destroyed by the server, and when the cloud sub-application is started next time, the server can allocate a new terminal identifier to the terminal.
In the embodiment of the present application, the server may further establish a correspondence between the device identifier of the cloud device and the interface information.
The interface information is interface information of a cloud operating system in a cloud device corresponding to the terminal, for example, the interface information may include at least one of an interface/address of the corresponding cloud device, an interface/address of the cloud operating system in the cloud device, and an interface/address of a system message control service in the cloud operating system of the cloud device. The implementation form of the interface information is not limited in this embodiment.
Alternatively, in another possible implementation manner, the server may further directly use the interface information as a device identifier of the cloud device.
Step 502, the server sends the terminal identifier to a terminal sub-application in the terminal, and the terminal receives the terminal identifier correspondingly.
In the embodiment of the application, after the server distributes the terminal identifier for the terminal, the terminal identifier is fed back to the terminal, so that the terminal sub-application in the terminal can acquire and store the terminal identifier.
In the above solution, the server is used to assign the terminal identifier to the terminal as an example, and in another possible implementation solution, the terminal identifier may also be an original identifier of the terminal, for example, information that can uniquely identify the terminal in the whole network, such as a medium access control (Media Access Control, MAC) address of the terminal. Taking a terminal identifier as an example of a MAC address, in this case, when a cloud sub-application in the terminal is started, the MAC address of the terminal can be reported to a server, the server initializes the cloud device of the terminal, namely creates or distributes the cloud device corresponding to the terminal, and starts the corresponding cloud sub-application and the cloud operating system in the corresponding cloud device, and meanwhile, the server establishes a corresponding relation between the MAC address of the terminal and interface information of the cloud operating system in the cloud device so as to carry out correct transmission of system information.
In step 503, the terminal receives a system message, which is a message delivered through the operating system of the terminal.
In the embodiment of the application, in the running process of the terminal sub-application in the terminal, video pictures of the application interface are played based on the video stream, the video pictures are rendered, displayed and updated by the corresponding cloud sub-application in the server, recorded by the cloud operating system, and then pushed to the cloud sub-application for display through the streaming media service in the server. In the process, the terminal sub-application also collects the operation of the user in the terminal, the collected operation information is reported to the cloud terminal application, and the cloud sub-application responds to the operation information.
In the embodiment of the application, besides collecting the operation information corresponding to the user operation, the terminal sub-application in the terminal also receives the system information transmitted in the operation system of the terminal, such as a system broadcast instruction in an android system.
In step 504, the terminal generates a system message processing request corresponding to the system message, where the system message processing request is used to indicate the system message and a terminal identifier of the terminal.
In the embodiment of the application, after the terminal sub-application receives the system message, a system message processing request may be generated based on the received system message and the terminal identifier.
In one possible implementation manner, when generating the system message processing request corresponding to the system message, the terminal responds to the message type of the system message as the designated message type to execute the step of generating the system message processing request corresponding to the system message.
In this embodiment of the present application, the system messages may be transmitted in the operating system of the terminal, and the types of the system messages received by the terminal sub-applications may be various, where some types of system messages require the cloud sub-applications to respond, for example, a system message triggering the application interface to change. That is, the specified message type refers to a message type that triggers a change in the application interface.
For example, for a system message for indicating a network state change of a terminal, a piece of prompt information needs to be displayed on an application interface to prompt a user that the network state changes and prompt the user to pay attention to traffic consumption, and the display of the prompt information needs to be processed by a cloud sub-application and update interface content. Therefore, the system message for indicating the network state change of the terminal is a system message for triggering the application interface to change, and the cloud terminal application is required to respond.
In addition, there may be some types of system messages that do not require the cloud terminal application to respond, such as system messages that do not trigger changes in the application interface.
For example, for a system message for indicating to quench a terminal screen, the terminal sub-application needs to be triggered to be closed or to go to a background operation, and at this time, the cloud sub-application needs to be triggered to stop operating, but not trigger a change of an application interface, so the system message for indicating to quench the terminal screen is not a system message for triggering a change of the application interface, and the cloud sub-application needs to respond.
In this embodiment of the present application, a system message forwarding service may be set in a terminal sub-application, and when the terminal sub-application in the terminal receives a system message through the system message forwarding service, it is first determined whether the message type of the system message is a specified message type (for example, the specified message type may be a message type that triggers a change in an application interface), if yes, the terminal sub-application may generate the system message processing request, otherwise, the terminal sub-application may not generate the system message processing request.
For example, when the system message received by the terminal sub-application is a system message for indicating a change in network state of the terminal, the terminal sub-application generates the above-described system message processing request; when the system message received by the terminal sub-application is a system message for indicating to extinguish the terminal screen, the terminal sub-application does not generate the above-described system message processing request.
In another possible implementation, the terminal sub-application may also forward the received system message directly to the server without determining the message type of the system message.
Step 505, the terminal sends the system message processing request to the server of the cloud application; the server receives the system message processing request.
In the embodiment of the application, the terminal sub-application in the terminal sends the generated system message processing request to the server of the cloud application through the system message forwarding service, for example, the system message forwarding service in the terminal sub-application can send the system message processing request to the system message service in the server through the interface address of the server.
In step 506, the server queries the cloud device corresponding to the terminal based on the terminal identifier.
In one possible implementation manner, the system message service in the server queries a corresponding relationship between the terminal identifier and the device identifier of the cloud device based on the terminal identifier, and obtains the device identifier of the cloud device.
In the embodiment of the present application, since the server generally operates a plurality of cloud devices at the same time, in order to accurately forward the system message, the server may preset a correspondence between the terminal identifier and the device identifier of the cloud device. After receiving a system message processing request sent by a terminal, a server firstly inquires the corresponding equipment identifier of the cloud equipment through the corresponding relation between the terminal identifier and the equipment identifier of the cloud equipment.
In a possible implementation scheme, when the cloud device corresponding to the terminal is queried based on the terminal identifier, the server responds to the message type of the system message as the designated message type, and performs the step of querying the cloud device corresponding to the terminal based on the terminal identifier.
In this embodiment of the present application, if the terminal sub-application in the terminal directly sends the received system message to the server through the system message processing request, the server may determine whether the message type of the system message is a specified message type before querying the cloud device corresponding to the terminal, if yes, query the cloud device corresponding to the terminal based on the terminal identifier, otherwise, may not respond to the system message processing request, for example, discard the system message processing request.
In one possible implementation manner, the system message processing request includes a message identifier of the system message, and the data volume of the message identifier is smaller than the data volume of the system message; accordingly, before the system message is transferred to the cloud operating system in the cloud device, the server may obtain the system message based on the message identification query.
In one possible implementation manner of the embodiment of the present application, the server and the terminal sub-application are preset with a correspondence between each system message and the message identifier, when the terminal sub-application generates the system message processing request, the terminal sub-application does not directly add the system message, but adds the message identifier of the system message to the system message processing request, and after receiving the system message processing request, the server obtains the system message based on the message identifier and transmits the system message to the corresponding cloud operating system, so that the data volume of the system message processing request can be reduced, and thus the data interaction between the terminal and the server is saved.
In step 507, the server transmits the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application.
In step 508, the server processes the system message through the cloud sub-application to update the application interface of the cloud application.
Step 509, pushing an application interface image obtained by recording an application interface of the cloud application to a terminal; correspondingly, the terminal receives the application interface image pushed by the server.
In step 510, the terminal displays the application interface image through the terminal application.
In this embodiment of the present application, the system message service in the server may transmit the system message to the cloud operating system in the cloud device based on the interface information corresponding to the device identifier of the cloud device, where the cloud operating system transmits the system message to the cloud terminal application, and after receiving the system message, the cloud sub-application responds to the system message, for example, updates the application interface based on the system message, and so on.
In one possible implementation, when the system message is transmitted to the cloud operating system in the cloud device, the server responds to the message type of the system message as the designated message type, and performs the step of transmitting the system message to the cloud operating system in the cloud device.
In this embodiment of the present application, if the terminal sub-application in the terminal directly sends the received system message to the server through the system message processing request, and the server directly queries the corresponding cloud device through the terminal identifier, before the server transmits the system message to the cloud operating system in the cloud device, it may first determine whether the message type of the system message is a specified message type, if yes, the system message is transmitted to the cloud operating system, otherwise, the system message processing request may not be responded, for example, the system message processing request is discarded.
In one possible implementation, in response to the system message being an ordered broadcast instruction, the server further receives broadcast processing information forwarded by the cloud operating system in the cloud device, where the broadcast processing information is used to instruct to intercept or forward the ordered broadcast instruction; and transmitting a forwarding instruction to the terminal in response to the broadcast processing information instruction to forward the ordered broadcast instruction, wherein the forwarding instruction is used for instructing the terminal to forward the ordered broadcast instruction to a next broadcast receiver in the terminal.
In this application implementation, when the terminal is a terminal based on the android system (i.e., the operating system in the terminal is the android system) and the system message is an ordered broadcast instruction, since the ordered broadcast instruction may be truncated and may also be forwarded to an instruction of a next broadcast receiver, when the cloud sub-application determines that the ordered broadcast instruction is truncated or forwarded, the cloud sub-application feeds back a determination result (i.e., the broadcast processing information) to the system message control service in the cloud operating system, and when the determination result is that the system message is forwarded, the system message control service forwards the determination result to the system message service in the server, and when the determination result is that the system message is forwarded, the system message control service may send a forwarding instruction to the terminal, and after the terminal sub-application in the terminal receives the forwarding instruction, the system message ordered broadcast instruction is forwarded to the next broadcast receiver in the terminal through the system message forwarding service in the terminal sub-application.
In one possible implementation, the forwarding instruction includes an address of the next broadcast receiver.
Referring to fig. 6, a system frame diagram of a system message processing according to an embodiment of the present application is shown. As shown in fig. 6, the system framework for processing the system message includes a plurality of local devices (i.e., the above terminals) and a back-end service device (i.e., the above server). Taking the system message as an example of a system broadcast instruction in the android system, each device and module in the system frame are as follows:
one) a local device 61.
The local equipment runs the cloud application, i.e. does not process logic per se, only transmits the instructions of the system or the user interaction to the cloud (i.e. the back-end service equipment), and receives the streaming media from the cloud for playing. The local device mainly comprises an operating system 61a and a local APP 61 b.
The local APP 61b includes a system instruction forwarding service, which is configured to receive a system broadcast instruction from a local device, and upload instruction information together with an identifier of the device, such as a Serial Number (SN), to a backend service.
For example, taking the example that the system broadcast instruction is an instruction indicating that the network state of the local device is changed, the instruction information structure may be { action } "android.
Two) backend services devices 62.
The back-end service equipment mainly comprises three parts, namely: a system instruction service 62a for receiving a system broadcast instruction from the local device, a streaming service 62b for pushing streaming media data generated by the screen recording service to the local device, and a plurality of cloud devices 62c.
The system instruction service 62a stores an SN list of the cloud device, and when receiving an instruction uplink request from the local device, performs an SN list query operation, and forwards the instruction to the corresponding cloud device.
The streaming media service 62b is configured to receive streaming media generated by the cloud device recording, and push the data to the corresponding local device.
Cloud device 62c is a cloud-enabled or virtualized device object. The cloud OS and cloud APP device comprises a cloud OS and a cloud APP. And the cloud OS runs a system instruction control service, is used for receiving an instruction service schedule sent by a back-end system instruction service, and synchronizes the instruction to the cloud APP. The cloud APP is a real APP running entity, and responds to the received system instruction control service instruction, such as state switching. The screen recording service in the cloud OS is used for recording the screen of the current equipment in real time and converting the screen into streaming media, and pushing the streaming media to the streaming media service.
The system message processing flow based on the above-described fig. 6 may be as follows:
s61, the device instructs uplink.
Taking the local device a as an example, the network of the local device a is changed, and the local OS sends out a system broadcast instruction { action } "android.
After receiving the system broadcast instruction, the local APP obtains the SN number (SN 1) of the equipment, and sends the SN number and the system broadcast instruction I to the system instruction service of the rear end.
S62, back-end instruction processing.
S621, after receiving the instruction, the system instruction service at the back end inquires the SN list and then transmits the network state switching instruction to the corresponding equipment.
S622, after receiving the instruction, the corresponding equipment transmits the system instruction control service. The system instruction control service actively transmits the system broadcast { action } "android.net.conn.connection_change".
S623, after receiving the instruction, the cloud APP responds, such as popping up a dialog box for prompting the user to pay attention to the traffic.
S624, the cloud OS records in real time, and the streaming media generated by the recording screen and the SN information are sent to the streaming media service together.
S625, after receiving the SN and the streaming media data, the streaming media service actively pushes new streaming media to the SN equipment.
S626, the device side receives and plays the new streaming media data, and the local device side pops up a dialog box for prompting the user to pay attention to the flow, and the like.
The scheme shown in fig. 6 is only described by taking the system message as an example of a system broadcast instruction in the android system, and the embodiment of the application does not limit the message form of the system message. For example, in the solution shown in the embodiment of the present application, the operating system may be a system other than the android system, such as a windows system, and the system message may be a message transmitted in a system other than the android system, or may be a message other than a system broadcast instruction in the android system, such as a standard broadcast instruction or an ordered broadcast instruction between applications, etc.
In summary, in the scheme shown in the embodiment of the present application, for the operation scenario of the cloud application, after the cloud sub-application running on the terminal side receives the system message in the operating system of the terminal, the system message and the terminal identifier are uploaded to the server of the cloud application, and the server transfers the system message to the cloud terminal application via the cloud operating system in the corresponding cloud device based on the terminal identifier, so that the transfer of the system message between the terminal and the cloud is realized, and the cloud application can respond to the system message transferred by the operating system in the terminal, thereby expanding the use scenario of system message processing.
Referring to fig. 7, a flow diagram of a system broadcast instruction process is shown according to an exemplary embodiment. Taking a system message as an example, the system message is a system broadcast instruction (network switching instruction) in the android system, as shown in fig. 7, the flow of the system broadcast instruction processing includes the following steps.
S71, the system instruction forwarding service of the terminal sub-application in the terminal receives the network switching instruction sent by the local OS.
S72, the terminal sub-application system instruction forwarding service uploads the network switching instruction and the terminal SN to the system instruction service in the server.
S73, the system instruction service of the server judges whether the network switching instruction belongs to an instruction of a specified type, and if yes, the step S74 is performed.
Accordingly, if the network switch instruction does not belong to the specified type of instruction, the system instruction service of the server may discard the network switch instruction.
S74, the system instruction service queries cloud equipment corresponding to the terminal SN in the SN list.
S75, the system instruction service sends the network switching instruction to the cloud OS in the queried cloud device, and the cloud OS forwards the network switching instruction to the cloud terminal application.
The determining step S73 may be performed by a system instruction forwarding service in the terminal sub-application, where if it is determined that the network switching instruction belongs to an instruction of a specified type, the network switching instruction and the terminal SN are sent to the server; otherwise, not transmitting.
Or, the determining step S73 may be executed by the system instruction service after querying the cloud device corresponding to the terminal SN, where if it is determined that the network switching instruction belongs to the instruction of the specified type, the network switching instruction is sent to the cloud OS in the queried cloud device, otherwise, the network switching instruction is discarded.
S76, the streaming media service in the server receives the streaming media picture updated by the cloud terminal application in response to the network switching instruction.
And S77, pushing the streaming media picture to a cloud sub-application in the terminal by the streaming media service.
S78, the cloud sub-application plays the streaming media picture through the player, wherein the streaming media picture comprises popup window prompts displayed in response to the network switching instruction.
Fig. 8 is a block diagram illustrating a system message processing architecture according to an exemplary embodiment. The system message processing may implement all or part of the steps performed by the server in the methods provided by the embodiments shown in fig. 2 or 5. The system message processing device is used in a server of a cloud application, wherein the cloud application comprises a terminal sub-application and a cloud sub-application; the apparatus may include:
a request receiving module 801, configured to receive a system message processing request sent by a terminal, where the system message processing request is used to indicate a system message and a terminal identifier of the terminal; the terminal sub-application is operated in the terminal; the system message processing request is sent when the terminal sub-application in the terminal receives the system message; the system message is a message transmitted through an operating system of the terminal;
The device query module 802 is configured to query, based on the terminal identifier, a cloud device corresponding to the terminal; the cloud sub-application corresponding to the terminal and a cloud operating system are operated in the cloud equipment;
the message transfer module 803 is configured to transfer the system message to the cloud operating system in the cloud device, so that the cloud operating system transfers the system message to the cloud sub-application;
the message processing module 804 is configured to process the system message through the cloud sub-application, so as to update an application interface of the cloud application;
and the image pushing module 805 is configured to push an application interface image obtained by recording an application interface of the cloud application to the terminal, so that the terminal sub-application in the terminal displays the application interface image.
In a possible implementation manner, the device query module 802 is configured to query, based on the terminal identifier, a correspondence between the terminal identifier and a device identifier of the cloud device, to obtain the device identifier of the cloud device;
the message passing module 803 is configured to pass the system message to the cloud operating system in the cloud device based on interface information corresponding to the device identifier of the cloud device; the interface information is used for indicating an interface of the cloud operating system in the cloud device.
In one possible implementation, the apparatus further includes:
an identifier allocation module, configured to allocate the terminal identifier to the terminal before the request receiving module 801 receives a system message processing request sent by the terminal;
and the relation establishing module is used for establishing a corresponding relation between the terminal identification and the equipment identification of the cloud equipment.
In one possible implementation, the apparatus further includes:
and the identifier sending module is used for sending the terminal identifier to the terminal sub-application in the terminal.
In a possible implementation manner, the device query module 802 is configured to perform, in response to the message type of the system message being a specified message type, a step of querying, based on the terminal identifier, a cloud device corresponding to the terminal.
In one possible implementation, the message passing module 803 is configured to, in response to the message type of the system message being a specified message type, perform a step of passing the system message to the cloud operating system in the cloud device.
In one possible implementation, the apparatus further includes:
the processing information receiving module is used for responding to the system information as an ordered broadcasting instruction, receiving broadcasting processing information forwarded by the cloud operating system in the cloud equipment, and the broadcasting processing information is used for indicating to intercept or forward the ordered broadcasting instruction;
And the forwarding instruction sending module is used for responding to the broadcasting processing information to instruct to forward the ordered broadcasting instruction and sending a forwarding instruction to the terminal, wherein the forwarding instruction is used for instructing the terminal to forward the ordered broadcasting instruction to the next broadcasting receiver in the terminal.
In one possible implementation, the forwarding instruction includes an address of the next broadcast receiver.
In a possible implementation manner, the system message processing request includes a message identifier of the system message, and the data volume of the message identifier is smaller than that of the system message;
the apparatus further comprises:
and the message query module is configured to query and obtain the system message based on the message identifier before the message delivery module 803 delivers the system message to the cloud operating system in the cloud device.
In summary, in the scheme shown in the embodiment of the present application, for the operation scenario of the cloud application, after the cloud sub-application running on the terminal side receives the system message in the operating system of the terminal, the system message and the terminal identifier are uploaded to the server of the cloud application, and the server transfers the system message to the cloud terminal application via the cloud operating system in the corresponding cloud device based on the terminal identifier, so that the transfer of the system message between the terminal and the cloud is realized, and the cloud application can respond to the system message transferred by the operating system in the terminal, thereby expanding the use scenario of system message processing.
Fig. 9 is a block diagram illustrating a system message processing architecture according to an exemplary embodiment. The system message processing may implement all or part of the steps performed by the terminal in the methods provided by the embodiments shown in fig. 3 or fig. 5. The terminal sub-application with cloud application is operated in the terminal; the cloud application also includes a cloud terminal application; the apparatus may include:
a message receiving module 901, configured to receive a system message, where the system message is a message transferred through an operating system of the terminal;
a request generating module 902, configured to generate a system message processing request corresponding to the system message, where the system message processing request is used to indicate the system message and a terminal identifier of the terminal;
a request sending module 903, configured to send the system message processing request to a server of the cloud application; the system message processing request is used for instructing the server to perform the following operations: inquiring cloud equipment corresponding to the terminal based on the terminal identifier, wherein the cloud sub-application corresponding to the terminal and a cloud operating system run in the cloud equipment; transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application, and the cloud sub-application processes the system message to update an application interface of the cloud application;
The image receiving module 904 is configured to receive an application interface image pushed by the server, where the application interface image is obtained by recording an application interface of the cloud application;
and the image display module 905 is configured to display the application interface image through the terminal sub-application.
In one possible implementation manner, the request generating module 902 is configured to perform, in response to the message type of the system message being a specified message type, a step of generating a system message processing request corresponding to the system message.
In summary, in the scheme shown in the embodiment of the present application, for the operation scenario of the cloud application, after the cloud sub-application running on the terminal side receives the system message in the operating system of the terminal, the system message and the terminal identifier are uploaded to the server of the cloud application, and the server transfers the system message to the cloud terminal application via the cloud operating system in the corresponding cloud device based on the terminal identifier, so that the transfer of the system message between the terminal and the cloud is realized, and the cloud application can respond to the system message transferred by the operating system in the terminal, thereby expanding the use scenario of system message processing.
Fig. 10 is a schematic diagram of a computer device, according to an example embodiment. The computer device may be implemented as a server or a terminal in the above-described respective method embodiments. The computer apparatus 1000 includes a central processing unit 1001, a system Memory 1004 including a random access Memory (Random Access Memory, RAM) 1002 and a Read-Only Memory (ROM) 1003, and a system bus 1005 connecting the system Memory 1004 and the central processing unit 1001. The computer device 1000 also includes a basic input/output system 1006, which helps to transfer information between various devices within the computer, and a mass storage device 1007 for storing an operating system 1013, application programs 1014, and other program modules 1015.
The mass storage device 1007 is connected to the central processing unit 1001 through a mass storage controller (not shown) connected to the system bus 1005. The mass storage device 1007 and its associated computer-readable media provide non-volatile storage for the computer device 1000. That is, the mass storage device 1007 may include a computer readable medium (not shown) such as a hard disk or a compact disk-read Only Memory (CD-ROM) drive.
The computer readable medium may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, flash memory or other solid state memory technology, CD-ROM, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the one described above. The system memory 1004 and mass storage devices 1007 described above may be collectively referred to as memory.
The computer device 1000 may be connected to the internet or other network device through a network interface unit 1011 connected to the system bus 1005.
The memory also includes one or more programs stored in the memory, and the central processor 1001 implements all or part of the steps of the methods shown in fig. 2, 3, or 5 by executing the one or more programs.
In exemplary embodiments, a non-transitory computer readable storage medium is also provided, such as a memory, including a computer program (instructions) executable by a processor of a computer device to perform the methods shown in the various embodiments of the present application. For example, the non-transitory computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods shown in the above embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (15)
1. The system message processing method is characterized in that the method is executed by a server of a cloud application, and the cloud application comprises a terminal sub-application and a cloud sub-application; the method comprises the following steps:
receiving a system message processing request sent by a terminal, wherein the system message processing request is used for indicating a system message and a terminal identifier of the terminal; the terminal sub-application is operated in the terminal; the system message processing request is sent when the terminal sub-application in the terminal receives the system message; the system message is a message transmitted through an operating system of the terminal;
inquiring cloud equipment corresponding to the terminal based on the terminal identifier; the cloud sub-application corresponding to the terminal and a cloud operating system are operated in the cloud equipment;
transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application;
Processing the system message through the cloud sub-application to update an application interface of the cloud application;
and pushing an application interface image obtained by recording the application interface of the cloud application to the terminal so that the terminal sub-application in the terminal displays the application interface image.
2. The method of claim 1, wherein the querying, based on the terminal identifier, the cloud device corresponding to the terminal includes:
inquiring the corresponding relation between the terminal identification and the equipment identification of the cloud equipment based on the terminal identification to obtain the equipment identification of the cloud equipment;
the transmitting the system message to the cloud operating system in the cloud device includes:
transmitting the system message to the cloud operating system in the cloud device based on interface information corresponding to the device identifier of the cloud device; the interface information is used for indicating an interface of the cloud operating system in the cloud device.
3. The method of claim 2, wherein prior to the system message processing request sent by the receiving terminal, further comprising:
Distributing the terminal identification to the terminal;
and establishing a corresponding relation between the terminal identification and the equipment identification of the cloud equipment.
4. A method according to claim 3, characterized in that the method further comprises:
and sending the terminal identification to the terminal sub-application in the terminal.
5. The method of claim 1, wherein the querying, based on the terminal identifier, the cloud device corresponding to the terminal includes:
and responding to the message type of the system message as the appointed message type, and executing the step of inquiring cloud equipment corresponding to the terminal based on the terminal identification.
6. The method of claim 1, wherein the communicating the system message to the cloud operating system in the cloud device comprises:
and responding to the message type of the system message as a designated message type, and executing the step of transmitting the system message to the cloud operating system in the cloud device.
7. The method according to claim 1, wherein the method further comprises:
receiving broadcast processing information forwarded by the cloud operating system in the cloud device in response to the system message being an ordered broadcast instruction, wherein the broadcast processing information is used for indicating to intercept or forward the ordered broadcast instruction;
And transmitting a forwarding instruction to the terminal in response to the broadcast processing information instruction, wherein the forwarding instruction is used for instructing the terminal to forward the ordered broadcast instruction to a next broadcast receiver in the terminal.
8. The method of claim 7, wherein the forwarding instruction includes an address of the next broadcast receiver.
9. The method according to any one of claims 1 to 8, wherein the system message processing request includes a message identifier of the system message, and wherein the data size of the message identifier is smaller than the data size of the system message;
before the system message is transmitted to the cloud operating system in the cloud device, the method further comprises:
and obtaining the system message based on the message identification query.
10. A system message processing method, characterized in that the method is executed by a terminal, and a terminal sub-application with a cloud application is run in the terminal; the cloud application further comprises a cloud sub-application; the method comprises the following steps:
receiving a system message, wherein the system message is transmitted through an operating system of the terminal;
Generating a system message processing request corresponding to the system message, wherein the system message processing request is used for indicating the system message and a terminal identifier of the terminal;
sending the system message processing request to a server of the cloud application; the system message processing request is used for instructing the server to perform the following operations: inquiring cloud equipment corresponding to the terminal based on the terminal identifier, wherein the cloud sub-application corresponding to the terminal and a cloud operating system run in the cloud equipment; transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application, and the cloud sub-application processes the system message to update an application interface of the cloud application;
receiving an application interface image pushed by the server, wherein the application interface image is obtained by recording an application interface of the cloud application;
and displaying the application interface image through the terminal sub-application.
11. The method of claim 10, wherein generating the system message processing request corresponding to the system message comprises:
And responding to the message type of the system message as the appointed message type, and executing the step of generating a system message processing request corresponding to the system message.
12. The system message processing device is characterized in that the device is used in a server of a cloud application, and the cloud application comprises a terminal sub-application and a cloud sub-application; the device comprises:
the system comprises a request receiving module, a request processing module and a processing module, wherein the request receiving module is used for receiving a system message processing request sent by a terminal, and the system message processing request is used for indicating a system message and a terminal identifier of the terminal; the terminal sub-application is operated in the terminal; the system message processing request is sent when the terminal sub-application in the terminal receives the system message; the system message is a message transmitted through an operating system of the terminal;
the equipment query module is used for querying cloud equipment corresponding to the terminal based on the terminal identifier; the cloud sub-application corresponding to the terminal and a cloud operating system are operated in the cloud equipment;
the message transmission module is used for transmitting the system message to the cloud operating system in the cloud device so that the cloud operating system can transmit the system message to the cloud sub-application;
The message processing module is used for processing the system message through the cloud sub-application so as to update an application interface of the cloud application;
and the image pushing module is used for pushing the application interface image obtained by recording the application interface of the cloud application to the terminal so that the terminal sub-application in the terminal displays the application interface image.
13. The system message processing device is characterized in that the device is used in a terminal, and a terminal sub-application with a cloud application runs in the terminal; the cloud application further comprises a cloud sub-application; the device comprises:
the message receiving module is used for receiving a system message, wherein the system message is a message transmitted through an operating system of the terminal;
the request generation module is used for generating a system message processing request corresponding to the system message, wherein the system message processing request is used for indicating the system message and the terminal identification of the terminal;
a request sending module, configured to send the system message processing request to a server of the cloud application; the system message processing request is used for instructing the server to perform the following operations: inquiring cloud equipment corresponding to the terminal based on the terminal identifier, wherein the cloud sub-application corresponding to the terminal and a cloud operating system run in the cloud equipment; transmitting the system message to the cloud operating system in the cloud device, so that the cloud operating system transmits the system message to the cloud sub-application, and the cloud sub-application processes the system message to update an application interface of the cloud application;
The image receiving module is used for receiving an application interface image pushed by the server, wherein the application interface image is obtained by recording an application interface of the cloud application;
and the image display module is used for displaying the application interface image through the terminal sub-application.
14. A computer device comprising a processor and a memory, wherein the memory has stored therein at least one computer program that is loaded and executed by the processor to implement the system message processing method of any of claims 1 to 11.
15. A computer readable storage medium, characterized in that at least one computer program is stored in the storage medium, which is loaded and executed by a processor to implement the system message processing method according to any of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011332344.4A CN114553890B (en) | 2020-11-24 | 2020-11-24 | System message processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011332344.4A CN114553890B (en) | 2020-11-24 | 2020-11-24 | System message processing method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114553890A CN114553890A (en) | 2022-05-27 |
CN114553890B true CN114553890B (en) | 2023-08-08 |
Family
ID=81660305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011332344.4A Active CN114553890B (en) | 2020-11-24 | 2020-11-24 | System message processing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114553890B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115421841A (en) * | 2022-09-23 | 2022-12-02 | 阿里巴巴(中国)有限公司 | Notification processing method, terminal device, server and computer storage medium |
CN116389636A (en) * | 2023-04-24 | 2023-07-04 | 蜂助手股份有限公司 | Method, device and system for transmitting cloud mobile phone message notification to mobile phone terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065728A (en) * | 2014-06-27 | 2014-09-24 | 珠海市君天电子科技有限公司 | State information control method, related equipment and related system |
CN106716956A (en) * | 2015-12-31 | 2017-05-24 | 华为技术有限公司 | Cloud end operation interface sharing method, related device and system |
CN110324419A (en) * | 2019-07-01 | 2019-10-11 | 百度在线网络技术(北京)有限公司 | Data processing method and equipment based on cloud service |
CN111010416A (en) * | 2018-10-04 | 2020-04-14 | Sap欧洲公司 | Local thin cloud tenant |
CN111818120A (en) * | 2020-05-20 | 2020-10-23 | 北京元心科技有限公司 | End cloud user interaction method and system, corresponding equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9300610B2 (en) * | 2013-03-14 | 2016-03-29 | Google Inc. | System and method for selecting a file stored on a cloud server |
US9356962B2 (en) * | 2013-09-10 | 2016-05-31 | Vmware, Inc. | Extensible multi-tenant cloud-management system and methods for extending functionalities and services provided by a multi-tenant cloud-managment system |
US11443026B2 (en) * | 2016-10-20 | 2022-09-13 | International Business Machines Corporation | Synchronizing data across multiple instances of an application in a cloud |
US10678612B2 (en) * | 2018-10-22 | 2020-06-09 | Sap Se | Event messaging system for multi-cloud computing environments |
-
2020
- 2020-11-24 CN CN202011332344.4A patent/CN114553890B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065728A (en) * | 2014-06-27 | 2014-09-24 | 珠海市君天电子科技有限公司 | State information control method, related equipment and related system |
CN106716956A (en) * | 2015-12-31 | 2017-05-24 | 华为技术有限公司 | Cloud end operation interface sharing method, related device and system |
CN111010416A (en) * | 2018-10-04 | 2020-04-14 | Sap欧洲公司 | Local thin cloud tenant |
CN110324419A (en) * | 2019-07-01 | 2019-10-11 | 百度在线网络技术(北京)有限公司 | Data processing method and equipment based on cloud service |
CN111818120A (en) * | 2020-05-20 | 2020-10-23 | 北京元心科技有限公司 | End cloud user interaction method and system, corresponding equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114553890A (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9143564B2 (en) | Concert server incorporating front-end and back-end functions to cooperate with an app to provide synchronized messaging to multiple clients | |
EP3621269B1 (en) | Live broadcast method, system and related device | |
CN114553890B (en) | System message processing method, device, computer equipment and storage medium | |
CN110908658A (en) | Micro-service and micro-application system, data processing method and device | |
CN111935536B (en) | Live broadcast room request response method, device, equipment and storage medium | |
CN111831748B (en) | Data synchronization method, device and storage medium | |
US10306300B2 (en) | Method and apparatus for providing information associated with media content | |
WO2021051747A1 (en) | Data update method, system and device, electronic device, and computer storage medium | |
CN110166788A (en) | Synchronizing information playback method, device and storage medium | |
CN111625353B (en) | Virtual resource distribution processing method, device, server and storage medium | |
US8606908B2 (en) | Wake-up server | |
EP3754998B1 (en) | Streaming media quality monitoring method and system | |
CN108415908B (en) | Multimedia data processing method and server | |
CN113747192B (en) | Live broadcast control method and device, electronic equipment and storage medium | |
CN110351577B (en) | Live broadcast information processing method and device, storage medium and electronic equipment | |
CN108966034B (en) | Virtual article display method, device and storage medium | |
CN113810264B (en) | Information transmission method, device, electronic equipment and storage medium | |
CN114363651B (en) | Live stream processing method and device | |
CN113827953B (en) | Game control system | |
CN110620761B (en) | Method and device for realizing multi-person virtual interaction | |
US11490247B2 (en) | Bulk data processing system | |
CN112511884A (en) | Mixed flow control method and system of audio and video stream and storage medium | |
CN103607338A (en) | Target object broadcasting method, device and system based on virtualization technology | |
WO2024131383A1 (en) | Data processing method and related apparatus | |
CN115278278B (en) | Page display method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40071421 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |