CN109815030B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN109815030B
CN109815030B CN201910024673.3A CN201910024673A CN109815030B CN 109815030 B CN109815030 B CN 109815030B CN 201910024673 A CN201910024673 A CN 201910024673A CN 109815030 B CN109815030 B CN 109815030B
Authority
CN
China
Prior art keywords
message
target
preset
network
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910024673.3A
Other languages
Chinese (zh)
Other versions
CN109815030A (en
Inventor
陈顺
董红光
董俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910024673.3A priority Critical patent/CN109815030B/en
Publication of CN109815030A publication Critical patent/CN109815030A/en
Application granted granted Critical
Publication of CN109815030B publication Critical patent/CN109815030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a communication method and apparatus, wherein the method includes: the webpage end sends a first message to an operating system through network connection; the operating system acquires the first message through a preset network interface and generates a second message according to the first message; the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard; and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message. By adopting the communication method provided by the disclosure, the operation system can be triggered to execute more types of operations through the webpage, the functions of the webpage and the operation system are enhanced, and the user experience of the terminal is effectively improved.

Description

Communication method and device
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a communication method and apparatus.
Background
With the development of electronic technology and touch screen technology, various terminals are widely applied, and the types of application programs on the corresponding terminals are more and more, and the functions are more and more abundant. For example, a browser is a common application.
The user may browse the web pages through the browser and, in some cases (e.g., the web pages may implement a function by calling a system application of the system), the web pages may communicate with the operating system. Currently, a web page can realize communication with an operating system by calling a corresponding interface in a browser.
In carrying out the present disclosure, the inventors found that at least the following problems exist:
based on the above processing method for the communication between the web page and the operating system, if the browser used by the user is not provided with a corresponding interface, the web page cannot communicate with the operating system, and thus, the communication between the web page and the operating system fails.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for communicating between a web page and an operating system, which can overcome the problem of communication failure between the web page and the operating system in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a communication method, the method including:
the webpage end sends a first message to an operating system through network connection;
the operating system acquires the first message through a preset network interface and generates a second message according to the first message;
the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard;
and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message.
According to a second aspect of the embodiments of the present disclosure, there is provided a communication method applied to a web page side, the method including:
when a preset trigger condition is detected, sending a first message carrying a target message to an operating system of a terminal displaying a webpage through network connection, so that the operating system generates a second message according to the first message, converts the second message into a third message in a preset format and sends the third message to a shear plate;
inquiring the message in the clipboard, and identifying the third message in the preset format from the clipboard;
parsing the identified third message into the second message.
According to a third aspect of the embodiments of the present disclosure, there is provided a communication method applied in an operating system of a terminal displaying a web page, the method including:
acquiring a first message sent by a webpage end based on network connection with a network server through a preset network interface;
generating a second message according to the first message;
and converting the second message into a third message in a preset format, and sending the third message to a clipboard so that the webpage end acquires the second message through the clipboard.
According to a fourth aspect of embodiments of the present disclosure, there is provided a communication apparatus, the apparatus comprising:
the first message sending module is configured to send a first message to the operating system through network connection by the webpage end;
the second message generation module is configured to acquire the first message through a preset network interface by the operating system and generate a second message according to the first message;
a third message sending module configured to convert, by the operating system, the second message into a third message in a preset format, and send the third message to a clipboard;
and the message analysis module is configured to identify and analyze the third message from the clipboard by the webpage end to obtain the second message.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a communication apparatus disposed at a web page side, the apparatus including:
the message sending module is configured to send a first message carrying a target message to an operating system of a terminal displaying a webpage through network connection when a preset trigger condition is detected, so that the operating system generates a second message according to the first message, converts the second message into a third message in a preset format and sends the third message to the clipboard;
a message identification module configured to query the message in the clipboard and identify a third message in the preset format from the clipboard;
a message parsing module configured to parse the identified third message into the second message.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a communication apparatus provided in an operating system of a terminal that displays a web page, the apparatus including:
the first message acquisition module is configured to acquire a first message sent by the webpage end based on network connection with the network server through a preset network interface;
a second message generation module configured to generate a second message from the first message;
and the third message sending module is configured to convert the second message into a third message in a preset format and send the third message to a clipboard, so that the webpage end obtains the second message through the clipboard.
According to a seventh aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the method of the second aspect described above.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having a computer program stored thereon, wherein the program is configured to implement the steps of the method according to the third aspect when executed by a processor.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a communication apparatus including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor implements the following method when executing the program:
the webpage end sends a first message to an operating system through network connection;
the operating system acquires the first message through a preset network interface and generates a second message according to the first message;
the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard;
and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the communication method provided by the present disclosure is used for presenting a web page end of a web page, such as a browser, or other network proxy service programs, such as mikeli chat, wechat, and the like, and can bear a target message triggered by the web page end on a target network request without adding an Application Programming Interface (API), or smoothly transmit the target message to an operating system in a target response message returned by a network server, so as to instruct the operating system to extract the target message from the target network request or the target response message and provide a target service in response, such as executing commands of shutdown, restart, and timer, and the like; obtaining a second message according to a response result of the operating system to the target message; and converting the generated second message into virtual clipboard information, so that the webpage end acquires and analyzes the clipboard information in the preset format, namely the third message, and feeds back the analyzed second message to the webpage. The method and the device realize that the operating system is triggered to execute more types of operations through the webpage, enhance the functions of the webpage and the operating system, and effectively improve the user experience of the terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram illustrating an application scenario of a communication method according to an exemplary embodiment of the present disclosure;
2-1-2-4 are schematic diagrams illustrating a communication method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a communication method according to an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 6 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 7 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 8 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 9 is a block diagram of a communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 11 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 12 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 13 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 14 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 15 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 16 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 17 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 18 is a block diagram of a communications device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 19 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 20 is a block diagram of a communication device illustrating the present disclosure according to an exemplary embodiment;
FIG. 21 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 22 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 23 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 24 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 25 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
fig. 26 is a schematic diagram illustrating a structure of a communication device according to an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The related technical background of the present disclosure is first introduced: the operating system is the first layer of software constructed on the terminal hardware, and the access of the application program to the system hardware can be realized only by utilizing the operating system. Any operating system provides an interface to the upper layers through which applications access system resources. The program interface is composed of a set of system call commands. The system call is a unique interface provided by an operating system for an application program to access system resources, and has the functions of transmitting a request of the application program to a system kernel, calling a corresponding kernel function by the system kernel to complete required processing, and finally returning a processing result to the application program.
In the related art, in order to protect system resources from being damaged by the outside world, the number of system call interfaces opened to an application program by an operating system is limited, so that the kernel service of the operating system which can be acquired by the application program is limited.
For such applications as web clients, the pre-established communication protocol allows the operating system to open a limited variety of system call interfaces to the web client. That is, the web client obtains services provided by the operating system kernel through a limited variety of system call interfaces. Accordingly, through the above-mentioned limited kinds of system call interfaces, the operating system may receive a limited number of message types from the web page, which may include, for example: web requests, clipboard information, picture format files, audio format files, etc., thereby rendering web pages with limited functionality, such as by triggering web page scripts to open other web page links, copy and paste information, display picture and/or text information, play audio/video, etc.
Based on this, the present disclosure provides a communication method, aiming at enabling to transmit more types of messages between a web page and an operating system without changing a system call interface between the operating system and a web page client, so that the web page acquires more services provided by an operating system kernel, and web page functions are enriched.
Referring to fig. 1, a scene diagram of a communication method according to an exemplary embodiment is shown, where the user terminal may be a smart phone 100, a Pocket Personal Computer (PPC), a palm top Computer, a Personal Digital Assistant (PDA), a notebook Computer, a tablet Computer, a wearable device, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), an e-book reader, or a vehicle-mounted device. The user terminal is installed with an application APP with a Web page Web display function, which may be called a Web page client. The web page client can be a browser or a network agent service program provided with a browser kernel; the network proxy service program is an instant messaging application such as Michat, WeChat, QQ, etc. or other application that can request access to the network.
The network server 200 may be any server that provides network connectivity and/or network services. In the specific implementation process, the user terminal and the network server are independent and are simultaneously in mutual contact, and the technical scheme provided by the disclosure is jointly implemented. The following describes a schematic diagram of a communication method and each flow diagram according to an exemplary embodiment shown in fig. 2-1 to 2-4 in detail.
Referring to fig. 3, a flow chart of a method of communication is shown according to an example embodiment, which may include the steps of:
in step 11, the webpage end sends a first message to the operating system through network connection;
the web page end in an embodiment of the present disclosure may be understood as the web page client, such as a browser displaying a web page, and after the web page end establishes a network connection with the web server based on a preset network communication protocol, such as a TCP/IP protocol, the web page end may send a network request to the web server and receive various messages sent by the web server. The network connection may be established in advance, or established in real time when the web page detects a preset trigger event.
After the network connection is established, an information transmission channel between the webpage end and the network server is established. The operation system of the user terminal operating the web page end belongs to the necessary part forming the information transmission channel. That is, the operating system serves as a bridge for sending messages to the web server from the web page side, and can acquire messages sent by each application and various messages returned by the remote server.
In an embodiment of the present disclosure, the first message may be a target network request carrying a target message sent by a web page. In an embodiment of the present disclosure, the target network request carrying the target message may be referred to as a first target network request.
In another embodiment of the present disclosure, the first message may also be a target response message returned by the network server after responding to the network request which is sent by the web page and carries the preset indication information, where the target response message carries a target message, and the target message is generated by the network server according to the preset indication information. Namely, the first message is a target response message which is generated by the web page request network server and carries the target message. In an embodiment of the present disclosure, the network request that is sent by the web page and carries the preset indication information may be referred to as a second target network request.
The target message is used for requesting an operating system to provide a target service, and the target service is different from a preset service provided by the operating system for a webpage through a preset system calling interface.
As described above, the preset services that the operating system can provide for the web page in the related art may include: transmitting network requests, displaying picture and/or text information, playing audio/video files, providing clipboard messages, obtaining user input information, and the like.
In an embodiment of the present disclosure, the target service provided by the operating system for the web page may be a service of opening a system application, such as a timer, starting a camera or opening other application programs installed in the terminal, performing shutdown, restarting, or the like.
That is to say, in an embodiment of the present disclosure, the operating system may provide the preset service in the related art for the web page, and may also provide the target service for the web page through the communication method provided by the present disclosure.
Regarding the triggering of the target message, in an embodiment of the present disclosure, a web page designer may design a script when designing a web page, and the script may be displayed as a preset button when the web page is displayed in a web page client. When the webpage end detects a preset trigger event of the preset button, such as a click event, a first target network request carrying the target message can be generated and sent to a network server. Or, when the web page detects a preset trigger event of the preset button, such as a click event, the web page may generate a second target network request carrying preset indication information and send the second target network request to the network server, so that the network server generates a target network response message carrying the target message according to the preset indication information and returns the target network response message to the user terminal.
The target message generated by the web page triggering necessarily passes through the operating system of the user terminal in the transmission process, so that it can be understood that: the webpage end sends a first message to the operating system through network connection.
In step 12, the operating system acquires the first message through a preset network interface, and generates a second message according to the first message;
the network interface is an important component of the operating system, and can be divided into a Send interface and a Receive interface, which are respectively used for sending network messages and receiving network messages. In the embodiment of the disclosure, the target message passing through the operating system may be acquired through a preset network interface having a function of identifying the target message, where the preset network interface may be a network interface added with a Hook function, for example, a Send interface added with a Hook function, that is, a Hooked Send interface; or, a Receive interface of the Hook function, namely a Hooked Receive interface, is added.
Depending on the network interface used to identify the targeted message, the implementation of step 12 may include the following two cases:
in the first case, the operating system obtains the first message through the preset sending interface. Illustratively, as shown in fig. 2-1 and 2-2. In this case, the first message is a target network request carrying the target message. The target network request may include: and presetting feature information and a target message.
In the embodiment of the present disclosure, the preset sending interface has a function of identifying a normal network request and a target network request, where the target network request carries a target message.
Referring to fig. 4, which is a flow chart illustrating another communication method according to an exemplary embodiment, the step 12 may include:
in step 12-11, the operating system obtains the network request sent by the webpage end through a preset sending interface;
taking the preset sending interface as an example, the homed Send interface is used, in the embodiment of the present disclosure, a web page terminal such as a web browser may call the homed Send interface to Send various network requests, such as an HTTP request, an FTP request, an SMTP request, and the like. As shown in step S102 in fig. 2-1 and 2-2, it is assumed that the above-described network request is an HTTP request. The Web browser may send various HTTP requests to the Web server, and the HTTP requests may be, according to different request methods: GET, POST, HEAD, OPTIONS, PUT, DELETE, TARCE, etc.
In step 12-12, determining whether the network request includes preset feature information;
in the embodiment of the disclosure, the Hooked Send interface may determine the target network request by judging whether the network request packet includes the preset feature information. The preset feature information is used to identify that a network request sent by the current application includes a target message, and may be information such as a preset keyword or a preset encoding mode.
Assuming that the predetermined feature information is a predetermined keyword, the keyword may be a predetermined tag, a predetermined character string such as "111", and the like. If the message passing through the operating system is an HTTP request, the Hooked Send interface judges whether the request comprises the preset keyword or not after acquiring the HTTP request; if so, executing step 12-13; on the contrary, if the current request does not include the preset keyword, it is determined that the HTTP request belongs to a normal network request, and the HTTP request is sent to the network server according to a conventional transmission manner, for example, the HTTP request is sent to the remote network server through the Send module and the firewall in the Hooked Send interface in sequence and through the wireless transmission resource, as shown in step S001 in fig. 2-1 and 2-2.
In step 12-13, if the network request includes the preset feature information, it is determined that the network request is a target network request.
As in the above example, if the HTTP request includes the predetermined feature information, such as the character string "111", it is determined that the HTTP request belongs to the target HTTP request, as shown in step S103 in fig. 2-1 and 2-2.
In the second case, the target response message returned by the network server according to the network request is obtained through a preset receiving interface, as shown in fig. 2-3 and fig. 2-4 for example. In this case, the first message is a target response message returned by the network server after responding to a preset network request sent by the web page, where the target response message includes: and presetting feature information and a target message.
In the embodiment of the disclosure, the web page side may call a Send interface, and Send a preset network request to the remote network server through a firewall component of the operating system, so that the network server returns a target response message according to the preset network request, where the target response message at least includes the target message. Illustratively, as shown in step S202 of FIGS. 2-3 and 2-4.
In an embodiment of the present disclosure, the preset network request may include: a target message; so that the network server generates a target response message according to a preset strategy after analyzing the target message.
In another embodiment of the present disclosure, the preset network request may include: presetting indication information; that is, the preset network request does not include the target message, but only includes preset indication information, such as a letter a, for indicating the network server to generate the target response message according to the pre-agreement between the web page terminal and the network server. And the network server generates a target response message carrying the target message according to the preset indication information.
Referring to fig. 5, which is a flow chart illustrating another communication method according to an exemplary embodiment, the step 12 may include:
in steps 12-21, the operating system receives a network response message sent by the network server through a preset receiving interface;
taking the preset receiving interface as the homeked Receive interface as an example, in the embodiment of the present disclosure, the homeked Receive interface in the user terminal operating system may Receive messages sent by various web servers, where the messages include a web response message returned by the web server according to a web request of a web page side, as shown in fig. 2-3 and step S205 in fig. 2-4. The network response message may include: and the network server returns a target response message according to the preset network request.
In step 12-22, determining whether the network response message includes preset feature information;
in the embodiment of the present disclosure, the preset receiving interface has a function of identifying a normal network response message and a target response message. The normal network response message refers to a network response message returned to the request sender, i.e., the upper layer application, according to the normal message receiving channel, for example, a response message returned to the upper layer application through a Receive module and a firewall component (not shown in the figure) in the homeked Receive interface, as shown in step S003 in fig. 2-3 and 2-4.
The target response message may include: and presetting feature information and a target message. The process of identifying the target response message by the homed Receive interface according to the preset feature information is similar to the step 12-12, and the specific process refers to the step 12-12, which is not described herein again.
In steps 12-23, if the network response message includes preset feature information, it is determined that the network response message is a target response message.
Similarly, this step is similar to step 12-13 described above, for example, see step S206 in FIGS. 2-3 and 2-4.
It should be noted here that, although the target response message is generated by being triggered by the web page, the target response message does not necessarily need to be returned to the web page.
And after the operating system identifies the first message through a preset network interface, analyzing a target message from the first message, responding to the target message, and generating a second message to be sent to the webpage end according to a response result.
Since the preset feature information in the first message, such as the target network request or the target response message, is mainly used to identify the target message data packet, and belongs to redundant information in the subsequent process of analyzing the data packet and acquiring the target message, in an embodiment of the present disclosure, the preset feature information may be removed before analyzing the target data, so as to reduce the calculation amount for analyzing the target message data packet.
Referring to fig. 6, which is a flow chart illustrating another communication method according to an exemplary embodiment, the step 12 may include:
in step 1201, removing preset feature information in the first message to obtain a filtered first message;
this step may be performed by a predetermined network interface, as shown in step S104 in fig. 2-1 for example; or by a predetermined messaging service, as shown, for example, in fig. 2-3 at step S208.
In step 1202, a target message is extracted from the filtered first message.
The first message related in the following embodiments of the present disclosure may be an original first message without filtering out the preset feature information, or may be a filtered first message output in step 1201 above.
In an embodiment of the present disclosure, depending on an execution subject of extracting the target message, the target message may be extracted from the target message by any one of the following manners:
in the first mode, a target message in the first message is extracted through a preset network interface.
Specifically, the two cases of determining the first message may include:
in the first embodiment, the target message is extracted from the target network request through the homeked Send interface.
After identifying the target network request, the Hooked Send interface can analyze the request data packet, and then extract the target message from the analyzed request data according to a preset strategy, such as according to a preset key field APP ID. Taking the target network request as the target HTTP request as an example, the above process may refer to step S1070 in fig. 2-2.
For example, assuming that a target HTTP request sent by a Web page end, such as a Web browser, is a GET request, request data parsed by a Hooked Send interface is: and GET:/APP ID ═ efg, the Hooked Send interface can extract the target message from the analyzed request data according to the key field APP ID.
And in the second implementation mode, the target message is extracted from the target response message through the Hooked Receive interface.
Similarly, after the Hooked Receive interface identifies the target response message, the Hooked Receive interface can parse the response data packet, and then extract the target message from the parsed response data according to a preset strategy, for example, according to a preset key field APP ID. Taking the target response message as the target HTTP response, the above process may refer to step S2010 in fig. 2 to 4.
For example, it is assumed that the response data parsed by the homeked Receive interface includes: if the APP ID is efg, the homed Receive interface may extract the identity of the target application from the analyzed response data according to the key field APP ID: and efg, extracting the target message.
In a second manner, a target Message is extracted from the first Message by a preset Message service.
Referring to fig. 7, which is a flowchart illustrating another communication method according to an exemplary embodiment, the generating a second message according to the first message in step 12 may include:
in step 121, the first Message is sent to a preset Message service through a preset network interface;
in an embodiment of the present disclosure, corresponding to the first case, after the homeked Send interface of the operating system identifies the target network request, the homeked Send interface may Send the preset target network request data to the preset Message service. Illustratively, as shown in step S105 of FIG. 2-1.
Corresponding to the second case, after the homeked Receive interface of the operating system recognizes the target response Message, the homeked Receive interface may send the target response Message to the preset Message service. Illustratively, as shown in step S207 of fig. 2-3.
In the embodiment of the present disclosure, according to whether the web page needs to obtain a response of the network server after sending the network request, the preset network interface may send the first Message to the Message service by using at least two sending methods as follows:
if the webpage end does not need to receive a response Message returned by the network server, the preset network interface can intercept the identified first Message and directly forward the intercepted first Message to the Message service;
corresponding to the first situation, if the web page does not need to obtain the response of the web server, the HookedSend interface can intercept the target network request and directly forward the target network request to the Message service.
Corresponding to the second case, if the web page does not need to Receive the response Message of the web server, the homeked Receive interface can intercept the target response Message and directly forward the target response Message to the Message service.
If the webpage end needs to receive a response Message returned by the network server, the preset network interface can copy the identified first Message, namely the target response Message, and directly forwards the copied target response Message to the Message service;
similarly, corresponding to the first case, if the web page needs to receive a response Message returned by the network server, for example, the target network request further includes normal network request data, where the normal network request data is data that requests the virtual server to provide the network service, and in order not to affect transmission of the normal network request data to the network server, the Hooked Send interface may copy the target network request data to one copy after recognizing the target network request data, and directly Send the backup data of the target network request to the Message service through the preset Message channel for subsequent information processing.
The original target network request data is also sent to the remote network server in a normal manner, e.g., via the Send module, the firewall, via the wireless network resource, so that the network server returns a corresponding network response message, as shown in steps S001 and S002 in fig. 2-1 and 2-2, for example.
Similarly, for the second case, if the network response message returned by the network server includes normal response data, for example, response information returned for the normal network request data sent by the web page side. After the Hooked Receive interface identifies the target response Message, the Hooked Receive interface can copy the target response Message, and directly sends the backed-up target response Message to the Message service through a preset Message channel for subsequent information processing.
The original target response message is also returned to the web page end according to the normal message channel, for example, via a Receive module in the homeked Receive interface, as shown in step S003 in fig. 2-3 and fig. 2-4.
In the above embodiment, the analysis of the first Message is processed by the preset Message service, and the identification process and the analysis process of the target network request are decoupled, that is, the preset network interface only identifies the first Message, and does not analyze the first Message, so that the detection efficiency of the preset network interface on the first Message can be improved.
In step 122, the Message service parses the first Message to obtain the target Message;
in the embodiment of the present disclosure, the Message service may parse the first Message packet, and extract the target Message from the parsed information.
In another embodiment of the present disclosure, the Message service may also perform information verification on the first Message packet first before extracting the target Message.
Referring specifically to fig. 8, which is a flow chart illustrating another communication method according to an exemplary embodiment, the step 122 may include:
in step 1221, performing information verification on the first message;
in the embodiment of the present disclosure, it is considered that other HTTP request or network response messages that do not include the target message may also include the preset feature information, such as including a preset keyword. That is, the target message data packet preliminarily determined by the preset network interface according to the preset feature information does not necessarily include the target message.
Based on this, after receiving the first Message, the Message service may further perform information verification on the first Message according to a preset policy, see step S106 in fig. 2-1 or step S208 in fig. 2-3, for example, the Message service may determine whether the parsed target Message data includes a preset field, such as an "APPID:" field, and if so, determine that the target Message passes the information verification and belongs to a valid Message.
Or after the target Message is encoded by the preset encoding mode, the Message service may also perform decoding verification on the target Message by using a preset decoding mode.
Taking the first message as a target HTTP request as an example, backtracking to the generation process of the target network request: the Web browser may encode the request data including the target message according to a preset encoding mode, and generate an HTTP request packet.
If the Message service can successfully decode the target HTTP request data packet by adopting a preset decoding mode, the target HTTP request is an effective HTTP request. The preset encoding and decoding mode can be preset in the Message service.
Similarly, for the case that the first message is the target response message, backtracking to the generation process of the target response message: the network server may encode the response data including the target message according to a preset encoding mode negotiated with the web page terminal in advance, and generate the target response message.
In step 1222, if the first message passes the information verification, the first message is parsed to obtain the target message.
Namely, the Message service extracts the target Message from the valid Message with successful information verification, for example, see step S107 in fig. 2-1 or step S210 in fig. 2-3.
In the embodiment of the present disclosure, after receiving the first Message, the Message service built in the user terminal may further perform information verification on the first Message before analyzing the target Message in order to ensure that the first Message is accurately determined and the subsequent data analysis amount is reduced, so as to ensure that the subsequent analyzed data contains the target Message, and improve the accuracy of obtaining the target Message.
In step 123, in response to the target message, the second message is generated according to the response result.
In the embodiment of the present disclosure, after the operating system identifies the first message through the preset network interface, such as the above mentioned homed Send interface or homed Receive interface, the operating system may Send the first message to a preset message service; analyzing the first message through the preset message service to obtain the target message; and generating a second message according to the target message.
And the operating system responds after analyzing the target message and generates a second message according to a response result. For example, assuming that the target message is used to request the operating system to start a timer, the second message may be: a feedback message indicating that the timer has started.
In step 13, the operating system converts the second message into a third message in a preset format, and sends the third message to a clipboard;
in an embodiment of the present disclosure, after acquiring the second message, the operating system determines whether the second message can be sent to the web page end through a preset system call interface opened to the web page end; if not, the second message can be edited into a third message which can be identified by the system call interface corresponding to the clipboard and is in a preset format, and the third message is sent to the clipboard.
The operating system may convert the second message into a third message in a preset format in at least one of the following manners:
in the first mode, a preset sequence is inserted into the second message to obtain a third message which can be identified by the webpage end and has a preset format.
In an embodiment of the present disclosure, after the operating system acquires the second message, a preset sequence may be inserted into the second message to obtain a third message, into which the preset sequence is inserted, that can be identified by the web page, for example, the preset sequence may be inserted into a header of the second message, where the preset sequence may be 101010.
And secondly, adding preset keywords in the second message to obtain a third message in a preset format which can be identified by the webpage end.
In another embodiment of the present disclosure, the operating system may add a preset keyword to the second message to obtain a third message that can be recognized by the web page, where the keyword may be a preset tag or a preset character string such as "111".
And thirdly, coding the second message based on a preset coding mode to obtain a third message in a preset format which can be identified by the webpage end.
In another embodiment of the present disclosure, the operating system may further encode the second message based on a preset encoding mode (for example, Base 64 encoding) agreed in advance by the system, to obtain a third message in a preset format that can be identified by the web page end, where the third message is encoded by the preset encoding mode.
In step 14, the web page identifies and parses the third message from the clipboard, and obtains the second message.
In the embodiment of the present disclosure, a mechanism for regularly querying the clipboard may be preset in the web page client, such as displaying the current web page, for example, a query period may be set, where the query period may be a relatively small numerical value, so that the web page client can timely read the message sent to the web page by the operating system, and thus the time for processing the message can be shortened.
Specifically, every time a preset query period is reached, the web page end can query the clipboard, and when a message exists in the clipboard, the web page can identify the message in the clipboard and determine whether the current message belongs to a message in a preset format; if yes, determining that the current message is a message sent to the current message by the operating system, and analyzing the current message to obtain a second message. The current message may be a third message in a preset format, or may be a message stored in the clipboard after the operating system receives the copy instruction or the clip instruction.
And the process of identifying the third message in the preset format from the clipboard by the webpage end corresponds to the generation process of the third message.
Corresponding to the first manner, when the web page determines that the current message in the clipboard contains the preset sequence, for example, the preset sequence may be 101010, it may be determined that the current message in the clipboard carries a message sent to the web page by the operating system.
Corresponding to the second manner, when the web page determines that the current message in the clipboard contains the preset keyword, for example, the preset character string "111", it may be determined that the current message in the clipboard carries a message sent to the web page by the operating system.
Corresponding to the third mode, when the webpage side determines that the coding mode of the current message in the clipboard belongs to the preset coding mode, such as Base 64, it may be determined that the current message in the clipboard carries a message sent to the webpage side by the operating system.
In the embodiment of the disclosure, a target network request sent by a webpage end or a target response message sent by a remote network server can be used as a carrier for carrying a target message, so as to instruct an operating system to provide a target service; and converting the generated response message into virtual clipboard information, so that a webpage end such as a browser can acquire and analyze the clipboard information in the preset format, and feed back the analyzed target response message to the webpage end. The method and the device have the advantages that the operation system is triggered to execute more types of operations through the webpage, for example, system applications are opened through the webpage, other applications installed in the terminal are opened under the condition that an API (application programming interface) is not additionally arranged, shutdown and restart commands are triggered in the webpage, functions of the webpage and the operation system are enhanced, and user experience of the terminal is effectively improved.
In another embodiment of the present disclosure, after acquiring the second message, the web page may further send deletion instruction information to the operating system through the preset system call interface, so as to instruct the operating system to delete the third message cached in the clipboard, thereby preventing the third message from occupying system memory resources for a long time.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The above example is a detailed description of the communication method provided by the present disclosure from the perspective of information interaction between the web page side and the operating system. It can be understood that, according to the implementation procedure of the above method, it is easy to know that the implementation procedure of the above communication method is described from the perspective of an operating system or a webpage end on a single side, and the embodiment of the present disclosure is not described from the perspective of a main body executed on a single side.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of an application function implementation device and a corresponding terminal.
Referring to fig. 9, a block diagram of a communication device according to an exemplary embodiment is shown, which may include:
the first message sending module 21 is configured to send a first message to the operating system through a network connection by the web page side;
a second message generating module 22, configured to obtain, by the operating system, the first message through a preset network interface, and generate a second message according to the first message;
a third message sending module 23 configured to convert, by the operating system, the second message into a third message in a preset format, and send the third message to a clipboard;
and a message parsing module 24, configured to identify and parse the third message from the clipboard by the web page, to obtain the second message.
In an embodiment of the present disclosure, the first message is a target network request that is sent by the web page and carries a target message; alternatively, the first and second electrodes may be,
the first message is a target response message which is generated by the web page end request network server and carries the target message; network connection is established between the network server and the webpage end;
the target message is from the webpage end and is used for requesting the operating system to provide a target service, and the target service is different from a preset service provided by the operating system for the webpage through a preset system calling interface.
In another apparatus embodiment of the present disclosure, the first message may be the target network request, and the target network request includes: presetting feature information and the target message;
referring to fig. 10, a block diagram of another communication apparatus according to an exemplary embodiment is shown, on the basis of the apparatus embodiment shown in fig. 9, the second message generating module 22 may include:
a target request obtaining sub-module 221, configured to obtain the target network request through a preset sending interface by the operating system;
a message generation submodule 223 configured to generate the second message from the first message.
Referring to fig. 11, a block diagram of another communication apparatus according to an exemplary embodiment is shown, on the basis of the apparatus embodiment shown in fig. 10, the target request obtaining sub-module 221 may include:
a request obtaining unit 2211 configured to obtain, by the operating system, a network request sent by the web page side through a preset sending interface;
a target request judging unit 2212 configured to determine whether preset feature information is included in the network request;
a target request determining unit 2213 configured to determine that the network request is the target network request in a case that the network request includes the preset feature information.
In another apparatus embodiment of the present disclosure, the first message may be the target response message;
referring to fig. 12, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 9, the second message generating module 22 may include:
a target response obtaining sub-module 222, configured to obtain, by the operating system through a preset receiving interface, a target response message returned by the network server according to the preset network request, where the target response message includes: presetting feature information and the target message; the network server and the webpage end establish the network connection; the preset network request is used for requesting the network server to send the target response message to the user terminal.
A message generation submodule 223 configured to generate the second message from the first message.
Referring to fig. 13, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 12, the target response obtaining sub-module 222 may include:
a response receiving unit 2221 configured to receive, by the operating system, a network response message sent by the network server through a preset receiving interface;
a target response judging unit 2222 configured to determine whether preset feature information is included in the network response message;
a target response determining unit 2223 configured to determine that the network response message is the target response message, if preset feature information is included in the network response message.
Referring to fig. 14, another block diagram of a communication device according to an exemplary embodiment, on the basis of the device embodiment shown in any one of fig. 10 or 12, the message generation sub-module 223 may include:
a transmitting unit 2231 configured to transmit the first message to a preset message service through the preset network interface;
a parsing unit 2232 configured to parse the first message through the preset message service to obtain the target message;
a responding unit 2233 configured to respond to the target message and generate the second message according to a response result.
In another apparatus embodiment of the present disclosure, the transmitting unit 2231 may include at least one of the following sub-units:
a forwarding subunit configured to forward the first message to the message service through the preset network interface;
and the replication sub-unit is configured to replicate the first message through the preset network interface and send the replicated first message to the message service.
Referring to fig. 15, a block diagram of another communication apparatus according to an exemplary embodiment is shown, on the basis of the apparatus embodiment shown in fig. 14, the parsing unit 2232 may include:
a checking subunit 201 configured to perform information verification on the first message;
a parsing subunit 202, configured to, in a case that the first message passes the information verification, parse the first message to obtain the target message.
Referring to fig. 16, a block diagram of another communication apparatus according to an exemplary embodiment, on the basis of the apparatus embodiment shown in fig. 9, the third message sending module 23 may include:
a message type determining submodule 231, configured to determine, after the operating system obtains the second message, whether the second message belongs to a message type that can be transferred by the preset system call interface;
a third message generating sub-module 232, configured to, in a case that the second message does not belong to a message type that can be delivered by the preset system call interface, convert the second message into a third message in the preset format.
In another apparatus embodiment of the present disclosure, the third message generation sub-module 232 may include at least one of the following units:
a first feature setting unit configured to add a preset feature sequence in the second message;
a second feature setting unit configured to add a preset keyword in the second message;
a third feature setting unit configured to encode the second message based on a preset encoding manner.
Referring to fig. 17, a block diagram of another communication device according to an exemplary embodiment is shown, and on the basis of the embodiment of the device shown in fig. 9, the message parsing module 24 may include:
a message query submodule 241 configured to query the message in the clipboard;
and the parsing sub-module 242 is configured to identify the message in the clipboard, and if the third message is identified, parse the third message to obtain the second message.
The above device example is a description of corresponding functional modules, sub-modules and units included when the terminal executes the above communication method, standing at the terminal angle.
The application function implementing device for executing the communication method will be described in detail from the perspective of the web page terminal and the terminal operating system, respectively.
Referring to fig. 18, a block diagram of a communication device according to an exemplary embodiment is shown, which is disposed at a web page side, and the device may include:
the message sending module 31 is configured to send a first message carrying a target message to an operating system of a terminal displaying a webpage through network connection when a preset trigger condition is detected, so that the operating system generates a second message according to the first message, converts the second message into a third message in a preset format, and sends the third message to a clipboard;
a message identification module 32 configured to query the clipboard for messages, and to identify a third message in the preset format from the clipboard;
a message parsing module 33 configured to parse the identified third message into the second message.
In an embodiment of the present disclosure, the first message is a target network request that is sent by the web page end to a network server and carries a target message;
referring to fig. 19, a block diagram of another communication device according to an exemplary embodiment is shown, and on the basis of the embodiment of the device shown in fig. 18, the message sending module 31 may include:
a target message obtaining sub-module 311 configured to generate the target message when a preset trigger condition is detected;
a target request generation submodule 312 configured to generate a first target network request according to the target message;
a first sending submodule 313 configured to send the first target network request to the operating system over a network connection with a network server. The first target network request is a network request which is sent by a webpage end and carries a target message.
In an embodiment of the present disclosure, the first message is a target response message that is returned by the network server according to a second target network request and carries the target message; the second target network request carries preset indication information, and the preset indication information is used for indicating a network server to generate a target network response message carrying the target message.
The message sending module 31 may be configured to send the second target network request to a network server through network connection when a preset trigger condition is detected, where the second target network request carries preset indication information, so that the network server generates the target response message carrying the target message according to the preset indication information and sends the target response message to the operating system.
In another apparatus embodiment of the present disclosure, the message identification module 32 may include at least one of the following sub-modules:
a first identification submodule configured to determine that the message is the third message if the message includes a preset feature sequence;
a second identification submodule configured to determine that the message is the third message if the message includes a preset keyword;
a third identifying submodule configured to determine that the message is the third message if the message is correctly decoded in a preset decoding manner.
Referring to fig. 20, a block diagram of a communication apparatus provided in an operating system of a terminal displaying a web page according to an exemplary embodiment may include:
a first message obtaining module 41, configured to obtain, through a preset network interface, a first message sent by the web page based on a network connection with the web server;
a second message generation module 42 configured to generate a second message from the first message;
a third message sending module 43, configured to convert the second message into a third message in a preset format, and send the third message to a clipboard, so that the web page obtains the second message through the clipboard.
In an embodiment of the present disclosure, the first message is a target network request that is sent by the web page and carries a target message; alternatively, the first and second electrodes may be,
the first message is a target response message which is generated by the web page end requesting the network server and carries the target message;
the target message is from the webpage end and is used for requesting the operating system to provide a target service, and the target service is different from a preset service provided by the operating system for the webpage through a preset system calling interface;
the second message is a target response message corresponding to the target message.
In another embodiment of the present disclosure, if the first message is the target network request, the target network request includes: presetting feature information and the target message;
in another embodiment of the present disclosure, the first message obtaining module 41 may include:
the target request obtaining sub-module 411 is configured to obtain, through a preset sending interface, the target network request sent by the web page based on the network connection with the network server.
Referring to fig. 21, another block diagram of a communication device according to an exemplary embodiment is shown, on the basis of the embodiment of the device shown in fig. 20, the target request obtaining sub-module 411 may include:
a request obtaining unit 4111, configured to obtain, through a preset sending interface, a network request sent by the web page end;
a target request judging unit 4112 configured to determine whether preset feature information is included in the network request;
a target request determining unit 4113, configured to determine that the network request is the target network request if the network request includes the preset feature information.
In another apparatus embodiment of the present disclosure, the first message is the target response message; the first message obtaining module 41 may include:
a target response obtaining submodule 412, configured to obtain, through a preset receiving interface, a target response message returned by the network server according to the preset network request, where the target response message includes: presetting feature information and the target message; the network server and the webpage end establish the network connection; the preset network request is used for requesting the network server to send the target response message to the user terminal.
Referring to fig. 22, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 20, the target response obtaining sub-module 412 may include:
a response receiving unit 4121 configured to receive, through a preset receiving interface, a network response message sent by the network server, where the network response message is a response message returned by the network server according to a network request;
a target response judging unit 4122 configured to determine whether preset feature information is included in the network response message;
a target response determination unit 4123 configured to determine that the network response message is the target response message in a case where preset feature information is included in the network response message.
Referring to fig. 23, which is a block diagram of another communication apparatus according to an exemplary embodiment, on the basis of the apparatus embodiment shown in fig. 20, the second message generating module 42 may include:
a sending submodule 421 configured to send the first message to a preset message service;
a parsing sub-module 422 configured to parse the first message through the message service to obtain the target message;
the response submodule 423 is configured to respond to the target message and generate the second message according to a response result.
In an embodiment of the apparatus of the present disclosure, the sending submodule 421 may include at least one of the following:
a forwarding unit configured to forward the first message to the message service through the preset network interface;
and the copying unit is configured to copy the first message through the preset network interface and send the copied first message to the message service.
Referring to fig. 24, which is another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 23, the parsing sub-module 422 may include:
a checking unit 4221 configured to perform information verification on the first message;
a parsing unit 4222 configured to, if the first message passes the information verification, parse the first message to obtain the target message.
Referring to fig. 25, which is a block diagram of another communication apparatus according to an exemplary embodiment, on the basis of the apparatus embodiment shown in fig. 20, the third message sending module 43 may include:
a message type determining submodule 431 configured to determine, after obtaining the second message, whether the second message belongs to a message type that can be transferred by the preset system call interface;
a third message generating sub-module 432, configured to, in a case that the second message does not belong to a message type that can be passed by the preset system call interface, convert the second message into a third message in the preset format.
In another apparatus embodiment of the present disclosure, the third message generation sub-module 432 may include at least one of the following units:
a first feature setting unit configured to add a preset feature sequence in the second message;
a second feature setting unit configured to add a preset keyword in the second message;
a third feature setting unit configured to encode the second message based on a preset encoding manner.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, in one aspect, the present disclosure provides a communication apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
the webpage end sends a first message to an operating system through network connection;
the operating system acquires the first message through a preset network interface and generates a second message according to the first message;
the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard;
and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message.
Fig. 26 is a schematic diagram illustrating a structure of a communication device 2600 according to an exemplary embodiment. For example, apparatus 2600 may be a user device, which may be embodied as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, a smart running shoe, and the like.
Referring to fig. 26, apparatus 2600 may include one or more of the following components: a processing component 2602, a memory 2604, a power component 2606, a multimedia component 2608, an audio component 2610, an input/output (I/O) interface 2612, a sensor component 2614, and a communication component 2616.
The processing component 2602 generally controls overall operation of the device 2600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 2602 may include one or more processors 2620 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component 2602 may include one or more modules that facilitate interaction between the processing component 2602 and other components. For example, the processing component 2602 may include a multimedia module to facilitate interaction between the multimedia component 2608 and the processing component 2602.
Memory 2604 is configured to store various types of data to support operations at device 2600. Examples of such data include instructions for any application or method operating on device 2600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 2604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 2606 provides power to various components of the device 2600. The power components 2606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 2600.
The multimedia components 2608 include screens that provide an output interface between the device 2600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia assembly 2608 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the back-facing camera may receive external multimedia data when device 2600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 2610 is configured to output and/or input audio signals. For example, the audio component 2610 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 2600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 2604 or transmitted via the communication component 2616. In some embodiments, the audio component 2610 also includes a speaker for outputting audio signals.
The I/O interface 2612 provides an interface between the processing component 2602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 2614 includes one or more sensors for providing various aspects of status assessment for device 2600. For example, sensor assembly 2614 can detect an open/closed state of device 2600, the relative positioning of the components, such as a display and keypad of device 2600, a change in position of device 2600 or one component of device 2600, the presence or absence of user contact with device 2600, orientation or acceleration/deceleration of device 2600, and a change in temperature of device 2600. Sensor assembly 2614 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 2614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 2616 is configured to facilitate wired or wireless communication between the apparatus 2600 and other devices. Device 2600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 2616 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2616 described above further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 2600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 2604, comprising instructions that, when executed by the processor 2620 of the apparatus 2600, enable the apparatus 2600 to perform a method of communication, the method comprising:
the webpage end sends a first message to an operating system through network connection;
the operating system acquires the first message through a preset network interface and generates a second message according to the first message;
the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard;
and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message.
The non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (57)

1. A method of communication, the method comprising:
the webpage end sends a first message to an operating system through network connection;
the operating system acquires the first message through a preset network interface, and generates a second message according to the first message, wherein the second message is generated after the operating system determines that the first message comprises preset characteristic information, the preset characteristic information is used for identifying that a network request sent by a current application comprises a target message, the target message is used for requesting the operating system to provide a target service, the target service is different from the preset service provided by the operating system for a webpage through a preset system calling interface, a response result obtained after the target message is responded is used for generating the second message, and the second message cannot be sent through the preset system calling interface;
the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard;
and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message.
2. The method according to claim 1, wherein the first message is a target network request carrying a target message and sent by the web page terminal; alternatively, the first and second electrodes may be,
the first message is a target response message which is generated by the web page end request network server and carries the target message; network connection is established between the network server and the webpage end;
the target message is from the webpage end and is used for requesting the operating system to provide a target service, and the target service is different from a preset service provided by the operating system for the webpage through a preset system calling interface.
3. The method of claim 2, wherein the first message is the target network request, and wherein the target network request comprises: presetting feature information and the target message;
the operating system acquires the first message through a preset network interface, and the method comprises the following steps:
and the operating system acquires the target network request through a preset sending interface.
4. The method of claim 3, wherein the operating system obtaining the target network request through a preset sending interface comprises:
the operating system acquires the network request sent by the webpage end through a preset sending interface;
determining whether the network request comprises preset characteristic information or not;
and if the network request comprises the preset characteristic information, determining that the network request is the target network request.
5. The method of claim 2, wherein the first message is the target response message;
the operating system acquires the first message through a preset network interface, and the method comprises the following steps:
the operating system acquires a target response message returned by the network server according to a preset network request through a preset receiving interface, wherein the target response message comprises: presetting feature information and the target message; the network server and the webpage end establish the network connection; the preset network request is used for requesting the network server to send the target response message to the user terminal.
6. The method of claim 5, wherein the step of acquiring, by the operating system through a preset receiving interface, the target response message returned by the network server according to the network request includes:
the operating system receives a network response message sent by the network server through a preset receiving interface;
determining whether the network response message includes preset characteristic information;
and if the network response message comprises preset characteristic information, determining that the network response message is the target response message.
7. The method of claim 2, wherein generating the second message from the first message comprises:
sending the first message to a preset message service through the preset network interface;
analyzing the first message through the preset message service to obtain the target message;
and responding to the target message, and generating the second message according to a response result.
8. The method of claim 7, wherein the first message is sent to the predetermined message service in at least one of:
forwarding the first message to the message service through the preset network interface;
and copying the first message through the preset network interface, and sending the copied first message to the message service.
9. The method of claim 7, wherein parsing the first message to obtain the target message through the message service comprises:
performing information verification on the first message;
and if the first message passes the information verification, analyzing the first message to obtain the target message.
10. The method of claim 2, wherein the operating system converts the second message into a third message in a preset format, comprising:
after the operating system obtains the second message, determining whether the second message belongs to a message type which can be transmitted by the preset system calling interface;
and if the second message does not belong to the message type which can be transmitted by the preset system calling interface, converting the second message into a third message with the preset format.
11. The method of claim 10, wherein the operating system converts the second message into a third message in a preset format in at least one of the following manners, including:
adding a preset characteristic sequence in the second message;
adding preset keywords in the second message;
and coding the second message based on a preset coding mode.
12. The method of claim 1, wherein the web page identifies and parses the third message from the clipboard to obtain the second message, and comprises:
querying messages in the clipboard;
and identifying the message in the clipboard, and if the third message is identified, analyzing the third message to obtain the second message.
13. A communication method is applied to a webpage end, and the method comprises the following steps:
when a preset trigger condition is detected, a first message carrying a target message is sent to an operating system of a terminal displaying a webpage through network connection, so that the operating system generates a second message according to the first message, converts the second message into a third message with a preset format and sends the third message to the clipboard, the second message is a message generated by the operating system after determining that the first message includes preset feature information, the preset characteristic information is used for identifying that the network request sent by the current application contains the target message, the target message is used for requesting an operating system to provide a target service, the target service is different from a preset service provided by the operating system for a webpage through a preset system calling interface, a response result obtained after the target message is responded is used for generating a second message, and the second message cannot be sent through the preset system calling interface;
inquiring the message in the clipboard, and identifying the third message in the preset format from the clipboard;
parsing the identified third message into the second message.
14. The method according to claim 13, wherein the first message is a target network request carrying a target message sent from the web server;
when the preset trigger condition is detected, sending a first message carrying a target message to an operating system of a terminal displaying a webpage through network connection, comprising:
generating the target message when a preset trigger condition is detected;
generating a first target network request according to the target message;
sending the first target network request to the operating system over a network connection with a network server.
15. The method according to claim 13, wherein the first message is a target response message carrying the target message, which is returned by the network server according to a second target network request;
when a preset trigger condition is detected, a first message carrying a target message is sent to an operating system of a terminal displaying a webpage through network connection, and the method comprises the following steps:
and when a preset trigger condition is detected, sending the second target network request to a network server through network connection, wherein the second target network request carries preset indication information, so that the network server generates the target response message carrying the target message according to the preset indication information and sends the target response message to the operating system.
16. The method of claim 13, wherein the identifying the third message in the preset format from the clipboard comprises at least one of:
if the message comprises a preset characteristic sequence, determining the message as the third message;
if the message comprises preset keywords, determining that the message is the third message;
and if the message is correctly decoded according to a preset decoding mode, determining the message as the third message.
17. A communication method is applied to an operating system of a terminal for displaying a webpage, and the method comprises the following steps:
acquiring a first message sent by a webpage end based on network connection with a network server through a preset network interface;
generating a second message according to the first message, wherein the second message is generated after the operating system determines that the first message includes preset feature information, the preset feature information is used for identifying that a network request sent by a current application includes a target message, the target message is used for requesting the operating system to provide a target service, the target service is different from a preset service provided by the operating system for a webpage through a preset system calling interface, a response result obtained after the target message is responded is used for generating the second message, and the second message cannot be sent through the preset system calling interface;
and converting the second message into a third message in a preset format, and sending the third message to a clipboard so that the webpage end acquires the second message through the clipboard.
18. The method of claim 17, wherein the first message is a target network request carrying a target message and sent by the web page; alternatively, the first and second electrodes may be,
the first message is a target response message which is generated by the web page end requesting the network server and carries the target message;
the target message is from the webpage end and is used for requesting the operating system to provide a target service, and the target service is different from a preset service provided by the operating system for the webpage through a preset system calling interface;
the second message is a target response message corresponding to the target message.
19. The method of claim 18, wherein the first message is the target network request, and wherein the target network request comprises: presetting feature information and the target message;
the acquiring, through a preset network interface, a first message sent by a web page based on a network connection with a network server includes:
and acquiring the target network request sent by the webpage end based on the network connection with the network server through a preset sending interface.
20. The method of claim 19, wherein the obtaining, through a preset sending interface, the target network request sent by the web page based on a network connection with a network server comprises:
acquiring a network request sent by the webpage end through a preset sending interface;
determining whether the network request comprises preset characteristic information or not;
and if the network request comprises the preset characteristic information, determining that the network request is the target network request.
21. The method of claim 18, wherein the first message is the target response message;
the acquiring, through a preset network interface, a first message sent by a web page based on a network connection with a network server includes:
acquiring a target response message returned by the network server according to a preset network request through a preset receiving interface, wherein the target response message comprises: presetting feature information and the target message; the network server and the webpage end establish the network connection; the preset network request is used for requesting the network server to send the target response message to the user terminal.
22. The method according to claim 21, wherein the obtaining, through the preset receiving interface, the target response message returned by the network server according to the network request includes:
receiving a network response message sent by the network server through a preset receiving interface, wherein the network response message is a response message returned by the network server according to a network request;
determining whether the network response message includes preset characteristic information;
and if the network response message comprises preset characteristic information, determining that the network response message is the target response message.
23. The method of claim 18, wherein generating a second message from the first message comprises:
sending the first message to a preset message service;
analyzing the first message through the message service to obtain the target message;
and responding to the target message, and generating the second message according to a response result.
24. The method of claim 23, wherein the first message is sent to the predetermined messaging service in at least one of:
forwarding the first message to the message service through the preset network interface;
and copying the first message through the preset network interface, and sending the copied first message to the message service.
25. The method of claim 23, wherein parsing the first message to obtain the target message via the message service comprises:
performing information verification on the first message;
and if the first message passes the information verification, analyzing the first message to obtain the target message.
26. The method of claim 18, wherein converting the second message into a third message in a preset format comprises:
after obtaining the second message, determining whether the second message belongs to a message type which can be transmitted by the preset system calling interface;
and if the second message does not belong to the message type which can be transmitted by the preset system calling interface, converting the second message into a third message with the preset format.
27. The method of claim 26, wherein converting the second message into a third message in a predetermined format comprises at least one of:
adding a preset characteristic sequence in the second message;
adding preset keywords in the second message;
and coding the second message based on a preset coding mode.
28. A communications apparatus, the apparatus comprising:
the first message sending module is configured to send a first message to the operating system through network connection by the webpage end;
a second message generation module, configured to obtain, by the operating system through a preset network interface, the first message, and generate a second message according to the first message, where the second message is a message generated by the operating system after determining that the first message includes preset feature information, the preset feature information is used to identify that a network request sent by a current application includes a target message, the target message is used to request the operating system to provide a target service, the target service is different from a preset service provided by the operating system for a web page through a preset system call interface, a response result obtained after the target message is responded is used to generate the second message, and the second message cannot be sent through the preset system call interface;
a third message sending module configured to convert, by the operating system, the second message into a third message in a preset format, and send the third message to a clipboard;
and the message analysis module is configured to identify and analyze the third message from the clipboard by the webpage end to obtain the second message.
29. The apparatus according to claim 28, wherein the first message is a target network request carrying a target message sent by the web page; alternatively, the first and second electrodes may be,
the first message is a target response message which is generated by the web page end request network server and carries the target message; network connection is established between the network server and the webpage end;
the target message is from the webpage end and is used for requesting the operating system to provide a target service, and the target service is different from a preset service provided by the operating system for the webpage through a preset system calling interface.
30. The apparatus of claim 29, wherein the first message is the target network request, and wherein the target network request comprises: presetting feature information and the target message;
the second message generation module includes:
and the target request acquisition submodule is configured to acquire the target network request through a preset sending interface by the operating system.
31. The apparatus of claim 30, wherein the target request obtaining sub-module comprises:
the request acquisition unit is configured to acquire the network request sent by the webpage end through a preset sending interface by the operating system;
a target request judging unit configured to determine whether preset feature information is included in the network request;
a target request determining unit configured to determine that the network request is the target network request if the network request includes the preset feature information.
32. The apparatus of claim 29, wherein the first message is the target response message;
the second message generation module includes:
the target response obtaining submodule is configured to obtain, by the operating system through a preset receiving interface, a target response message returned by the network server according to a preset network request, where the target response message includes: presetting feature information and the target message; the network server and the webpage end establish the network connection; the preset network request is used for requesting the network server to send the target response message to the user terminal.
33. The apparatus of claim 32, wherein the target response obtaining sub-module comprises:
the response receiving unit is configured to receive a network response message sent by the network server through a preset receiving interface by the operating system;
a target response judging unit configured to determine whether preset feature information is included in the network response message;
a target response determining unit configured to determine that the network response message is the target response message if preset feature information is included in the network response message.
34. The apparatus of claim 30 or 32, wherein the second message generating module further comprises: a message generation submodule;
the message generation submodule includes:
a transmitting unit configured to transmit the first message to a preset message service through the preset network interface;
the analysis unit is configured to analyze the first message through the preset message service to obtain the target message;
and the response unit is configured to respond to the target message and generate the second message according to a response result.
35. The apparatus of claim 34, wherein the sending unit comprises at least one of the following sub-units:
a forwarding subunit configured to forward the first message to the message service through the preset network interface;
and the replication sub-unit is configured to replicate the first message through the preset network interface and send the replicated first message to the message service.
36. The apparatus of claim 34, wherein the parsing unit comprises:
a checking subunit configured to perform information verification on the first message;
and the analysis subunit is configured to analyze the first message to obtain the target message when the first message passes the information verification.
37. The apparatus of claim 29, wherein the third message sending module comprises:
the message type judgment sub-module is configured to determine whether the second message belongs to a message type which can be transmitted by the preset system calling interface after the operating system obtains the second message;
a third message generation sub-module configured to convert the second message into a third message in the preset format if the second message does not belong to a message type that can be passed by the preset system call interface.
38. The apparatus of claim 37, wherein the third message generation submodule comprises at least one of:
a first feature setting unit configured to add a preset feature sequence in the second message;
a second feature setting unit configured to add a preset keyword in the second message;
a third feature setting unit configured to encode the second message based on a preset encoding manner.
39. The apparatus of claim 28, wherein the message parsing module comprises:
a message query submodule configured to query the clipboard for messages;
and the analysis submodule is configured to identify the message in the clipboard, and if the third message is identified, analyze the third message to obtain the second message.
40. A communication apparatus, provided at a web page side, the apparatus comprising:
a message sending module configured to send a first message carrying a target message to an operating system of a terminal displaying a web page through network connection when a preset trigger condition is detected, so that the operating system generates a second message according to the first message, and converts the second message into a third message in a preset format and sends the third message to a clipboard, the second message is generated after the operating system determines that the first message includes preset feature information, the preset feature information is used for identifying that a network request sent by a current application includes the target message, the target message is used for requesting the operating system to provide a target service, the target service is different from a preset service provided by the operating system for the web page through a preset system call interface, and a response result obtained after the target message is responded is used for generating the second message, the second message cannot be sent through the preset system calling interface;
a message identification module configured to query the message in the clipboard and identify a third message in the preset format from the clipboard;
a message parsing module configured to parse the identified third message into the second message.
41. The apparatus according to claim 40, wherein the first message is a target network request carrying a target message sent from the web server;
the message sending module comprises:
the target message acquisition sub-module is configured to generate the target message when a preset trigger condition is detected;
a target request generation submodule configured to generate a first target network request according to the target message;
a first sending submodule configured to send the first target network request to the operating system over a network connection with a network server.
42. The apparatus according to claim 40, wherein the first message is a target response message carrying the target message, which is returned by the network server according to a second target network request;
the message sending module is configured to send the second target network request to a network server through network connection when a preset trigger condition is detected, where the second target network request carries preset indication information, so that the network server generates the target response message carrying the target message according to the preset indication information and sends the target response message to the operating system.
43. The apparatus of claim 40, wherein the message identification module comprises at least one of the following sub-modules:
a first identification submodule configured to determine that the message is the third message if the message includes a preset feature sequence;
a second identification submodule configured to determine that the message is the third message if the message includes a preset keyword;
a third identifying submodule configured to determine that the message is the third message if the message is correctly decoded in a preset decoding manner.
44. A communication apparatus provided in an operating system of a terminal that displays a web page, the apparatus comprising:
the first message acquisition module is configured to acquire a first message sent by the webpage end based on network connection with the network server through a preset network interface;
a second message generation module, configured to generate a second message according to the first message, where the second message is a message generated by the operating system after determining that the first message includes preset feature information, where the preset feature information is used to identify that a network request sent by a current application includes a target message, the target message is used to request the operating system to provide a target service, the target service is different from a preset service provided by the operating system for a web page through a preset system call interface, a response result obtained after the target message is responded is used to generate the second message, and the second message cannot be sent through the preset system call interface;
and the third message sending module is configured to convert the second message into a third message in a preset format and send the third message to a clipboard, so that the webpage end obtains the second message through the clipboard.
45. The apparatus according to claim 44, wherein the first message is a target network request carrying a target message sent by the web page; alternatively, the first and second electrodes may be,
the first message is a target response message which is generated by the web page end requesting the network server and carries the target message;
the target message is from the webpage end and is used for requesting the operating system to provide a target service, and the target service is different from a preset service provided by the operating system for the webpage through a preset system calling interface;
the second message is a target response message corresponding to the target message.
46. The apparatus of claim 45, wherein the first message is the target network request, and wherein the target network request comprises: presetting feature information and the target message;
the first message acquisition module includes:
and the target request acquisition submodule is configured to acquire the target network request transmitted by the webpage end based on the network connection with the network server through a preset transmission interface.
47. The apparatus of claim 46, wherein the target request obtaining sub-module comprises:
the request acquisition unit is configured to acquire the network request sent by the webpage end through a preset sending interface;
a target request judging unit configured to determine whether preset feature information is included in the network request;
a target request determining unit configured to determine that the network request is the target network request if the network request includes the preset feature information.
48. The apparatus of claim 45, wherein the first message is the target response message;
the first message acquisition module includes:
the target response obtaining submodule is configured to obtain, through a preset receiving interface, a target response message returned by the network server according to the preset network request, where the target response message includes: presetting feature information and the target message; the network server and the webpage end establish the network connection; the preset network request is used for requesting the network server to send the target response message to the user terminal.
49. The apparatus of claim 48, wherein the target response obtaining sub-module comprises:
the response receiving unit is configured to receive a network response message sent by the network server through a preset receiving interface, wherein the network response message is a response message returned by the network server according to a network request;
a target response judging unit configured to determine whether preset feature information is included in the network response message;
a target response determining unit configured to determine that the network response message is the target response message if preset feature information is included in the network response message.
50. The apparatus of claim 45, wherein the second message generation module comprises:
a transmission submodule configured to transmit the first message to a preset message service;
the analysis submodule is configured to analyze the first message through the message service to obtain the target message;
and the response submodule is configured to respond to the target message and generate the second message according to a response result.
51. The apparatus of claim 50, wherein the sending submodule comprises at least one of:
a forwarding unit configured to forward the first message to the message service through the preset network interface;
and the copying unit is configured to copy the first message through the preset network interface and send the copied first message to the message service.
52. The apparatus of claim 50, wherein the parsing submodule comprises:
a verification unit configured to perform information verification on the first message;
and the analysis unit is configured to analyze the first message to obtain the target message when the first message passes the information verification.
53. The apparatus of claim 45, wherein the third message sending module comprises:
the message type judgment sub-module is configured to determine whether the second message belongs to a message type which can be transmitted by the preset system calling interface after the second message is obtained;
a third message generation sub-module configured to convert the second message into a third message in the preset format if the second message does not belong to a message type that can be passed by the preset system call interface.
54. The apparatus of claim 53, wherein the third message generation submodule comprises at least one of:
a first feature setting unit configured to add a preset feature sequence in the second message;
a second feature setting unit configured to add a preset keyword in the second message;
a third feature setting unit configured to encode the second message based on a preset encoding manner.
55. A non-transitory computer readable storage medium having stored thereon a computer program, when executed by a processor, for performing the steps of the method of any of claims 13 to 16.
56. A non-transitory computer readable storage medium having stored thereon a computer program, when executed by a processor, for performing the steps of the method of any of claims 17 to 27.
57. A communications apparatus, comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor implements the following method when executing the program:
the webpage end sends a first message to an operating system through network connection;
the operating system acquires the first message through a preset network interface, and generates a second message according to the first message, wherein the second message is generated after the operating system determines that the first message comprises preset characteristic information, the preset characteristic information is used for identifying that a network request sent by a current application comprises a target message, the target message is used for requesting the operating system to provide a target service, the target service is different from the preset service provided by the operating system for a webpage through a preset system calling interface, a response result obtained after the target message is responded is used for generating the second message, and the second message cannot be sent through the preset system calling interface;
the operating system converts the second message into a third message in a preset format and sends the third message to a clipboard;
and the webpage end identifies and analyzes the third message from the clipboard to obtain the second message.
CN201910024673.3A 2019-01-10 2019-01-10 Communication method and device Active CN109815030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910024673.3A CN109815030B (en) 2019-01-10 2019-01-10 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910024673.3A CN109815030B (en) 2019-01-10 2019-01-10 Communication method and device

Publications (2)

Publication Number Publication Date
CN109815030A CN109815030A (en) 2019-05-28
CN109815030B true CN109815030B (en) 2021-07-23

Family

ID=66604134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910024673.3A Active CN109815030B (en) 2019-01-10 2019-01-10 Communication method and device

Country Status (1)

Country Link
CN (1) CN109815030B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965413A (en) * 2018-07-03 2018-12-07 北京小米移动软件有限公司 Information interacting method, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005096B (en) * 2017-06-14 2021-03-30 北京小米移动软件有限公司 Application interaction method and device
CN108491282A (en) * 2018-03-28 2018-09-04 北京小米移动软件有限公司 The method and apparatus that webpage and operating system are communicated
CN108833585B (en) * 2018-07-03 2021-06-29 北京小米移动软件有限公司 Information interaction method and device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965413A (en) * 2018-07-03 2018-12-07 北京小米移动软件有限公司 Information interacting method, device and storage medium

Also Published As

Publication number Publication date
CN109815030A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
TWI677225B (en) Instant messaging implementation method and device
CN109005096B (en) Application interaction method and device
CN108063804B (en) Communication method and device
KR102282963B1 (en) Mobile, server and operating method thereof
CN106713127B (en) Method and device for acquiring and processing instant chat records
EP3051772B1 (en) Method and apparatus for accessing network
KR20180004093A (en) Transmitting media content during instant messaging
CN110896376B (en) Message reminding method, message sending method, related device and equipment
CN112134788B (en) Event processing method, device, storage medium, mobile terminal and computer
CN111368232A (en) Password sharing reflux method and device, electronic equipment and storage medium
US20070232286A1 (en) Apparatus and method for storing/calling telephone number in mobile terminal
CN110619097A (en) Two-dimensional code generation method and device, electronic equipment and storage medium
US11218556B2 (en) Method, apparatus, user device and server for displaying personal homepage
EP3174244B1 (en) Video communication ending method and apparatus, computer program and recording medium
CN109218375B (en) Application interaction method and device
US10924529B2 (en) System and method of transmitting data by using widget window
EP3647970A1 (en) Method and apparatus for sharing information
US11163827B2 (en) Video processing method, device, terminal and storage medium
CN109714425A (en) Communication means and device
CN109815030B (en) Communication method and device
CN109218275B (en) Application interaction method and device
CN110007982B (en) Communication method and device
CN109218374B (en) Application interaction method and device
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN109086143B (en) Application interaction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant