CN111385265A - Communication method and device in iOS system - Google Patents

Communication method and device in iOS system Download PDF

Info

Publication number
CN111385265A
CN111385265A CN201811639618.7A CN201811639618A CN111385265A CN 111385265 A CN111385265 A CN 111385265A CN 201811639618 A CN201811639618 A CN 201811639618A CN 111385265 A CN111385265 A CN 111385265A
Authority
CN
China
Prior art keywords
app
local port
communication
specified
port
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.)
Pending
Application number
CN201811639618.7A
Other languages
Chinese (zh)
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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811639618.7A priority Critical patent/CN111385265A/en
Publication of CN111385265A publication Critical patent/CN111385265A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

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

Abstract

The invention discloses a communication method and a communication device in an iOS system. According to the communication method in the iOS system, a local port specified by a first APP is determined, socket connection is established with the first APP through the local port specified by the first APP, and communication is carried out based on the socket connection. Socket connects can realize the communication between other independent products and the first APP, and Socket connection reliability through the local port of first APP is established is higher, can realize the communication of a pair of many moreover, and a plurality of independent products communicate with first APP connection promptly, connects both sides and all can send data to the other side, and communication is simple convenient, can improve communication efficiency effectively.

Description

Communication method and device in iOS system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method and apparatus in an iOS system, an electronic device, and a computer-readable storage medium.
Background
In the iOS system, each Application (APP) operates independently, and there is no communication connection with each other, and with other products such as a certain open web page. For example, when shopping at a certain shopping APP, certain discount offers may be enjoyed using a particular payment APP for payment. Since the shopping APPs are independent of each other, when the shopping APP is opened, a message related to the payment APP cannot be obtained. When using the payment APP, messages related to the shopping APP are also not available. The lack of communication interaction among products in the iOS system causes difficulties that the respective application programs cannot share messages and the like. Therefore, a method is needed that can address enabling communication between applications and other products.
Disclosure of Invention
In view of the above, the present invention has been made to provide a communication method, apparatus, electronic device, and computer-readable storage medium in an iOS system that overcome or at least partially solve the above-mentioned problems.
According to an aspect of the present invention, there is provided a communication method in an iOS system, comprising:
determining a local port designated by a first APP;
establishing socket connection with the first APP through the local port designated by the first APP;
communicating based on the socket connection.
Preferably, the determining the local port of the first APP binding includes one or more of:
determining a port number of a local port appointed by the first APP according to preset configuration information;
receiving a port number of a local port designated by the first APP and sent by a server;
extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
Preferably, the establishing of the socket connection with the first APP through the local port specified by the first APP includes:
and sending a request to a local port appointed by the first APP, and if the request is not responded within appointed time, informing the first APP to start local socket service through scheme link.
Preferably, the method further comprises:
and starting a local socket service, and establishing socket connection with the webpage or the second APP through a specified local port to perform communication.
Preferably, the method is applied to a webpage and/or a second APP.
Preferably, when applied to the second APP, the method further comprises:
declaring for the second APP an authority to run a specified function;
after the second APP is started, applying for a background task for running the specified function;
and when the second APP is switched to the background, realizing background resident according to the background task.
Preferably, the right to execute the specified function for the second APP declaration includes:
the right to run the specified function is declared in the attribute list of the second APP.
Preferably, after the second APP is started, applying for a background task running the specified function includes:
and applying for the background task in the AppDelegate of the second APP.
Preferably, the applying for a background task running the specified function includes:
and setting a designated priority for the background task so that the background task does not influence other applications to operate the designated function when operating in the background.
Preferably, the designated function is a music playing function and/or a positioning function.
Preferably, when the second APP is switched to the background, implementing background resident according to the background task includes:
and continuously playing preset silent music through the background task.
Preferably, when the second APP is switched to the background, implementing background resident according to the background task includes:
and refreshing the position according to a preset strategy.
According to another aspect of the present invention, there is provided a communication apparatus in an iOS system, comprising:
a port determination unit adapted to determine a local port specified by the first APP;
the connection establishing unit is suitable for establishing socket connection with the first APP through the local port specified by the first APP;
a communication unit adapted to communicate based on the socket connection.
Preferably, the port determining unit is further adapted to determine the local port specified by the first APP by using one or more of the following manners:
determining a port number of a local port appointed by the first APP according to preset configuration information;
receiving a port number of a local port designated by the first APP and sent by a server;
extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
Preferably, the connection establishing unit is further adapted to send a request to a local port specified by the first APP, and notify the first APP to start a local socket service through a scheme link if the request is not answered within a specified time.
Preferably, the apparatus further comprises:
and the service starting unit is suitable for starting the local socket service and establishing socket connection with the webpage or the second APP through the specified local port so as to carry out communication.
Preferably, the apparatus is applied to a web page and/or a second APP.
Preferably, the apparatus, when applied in the second APP, further comprises:
the background resident unit is suitable for declaring the authority of running the specified function for the second APP; after the second APP is started, applying for a background task for running the specified function; and when the second APP is switched to the background, realizing background resident according to the background task.
Preferably, the background resident unit is further adapted to declare a right to run a specified function in the attribute list of the second APP.
Preferably, the background resident unit is further adapted to apply for the background task in appdelete of the second APP.
Preferably, the background resident unit is further adapted to set a designated priority for the background task, so that the background task does not affect other applications to run the designated function when running in the background.
Preferably, the designated function is a music playing function and/or a positioning function.
Preferably, the background resident unit is further adapted to continuously play preset silent music through the background task.
Preferably, the background resident unit is further adapted to perform location refresh according to a preset policy.
In accordance with still another aspect of the present invention, there is provided an electronic apparatus including: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method as any one of the above.
According to a further aspect of the invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement a method as any one of the above.
According to the technical scheme, the local port specified by the first APP is determined, the socket connection is established with the first APP through the local port specified by the first APP, and communication is carried out based on the socket connection. Socket connects can realize the communication between other independent products and the first APP, and Socket connection reliability through the local port of first APP is established is higher, can realize the communication of a pair of many moreover, and a plurality of independent products are connected communication with first APP, and the both sides of connecting all can send data to the other side, and communication is simple convenient, can improve communication efficiency effectively.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of a method of communication in an iOS system, according to one embodiment of the invention;
fig. 2 is a schematic structural diagram showing a communication apparatus in an iOS system according to an embodiment of the present invention;
FIG. 3 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a flow diagram of a communication method in an iOS system according to an embodiment of the invention. As shown in fig. 1, the method includes:
step S110, determining a local port designated by the first APP.
Communication of the APP needs to be achieved through a port, for example, the APP achieves data communication with a corresponding server through a software port. The present invention needs to solve the problem of communication between different APPs in the iOS system or between an APP and other products, so that a local port of the APP needs to be determined, so that the APP receives or sends a request through the local port to implement communication. The first APP is an APP that needs to communicate, and may be any APP. Taking a music playing APP as an example, determining that a local port designated by the music playing APP is 8001, and the music playing APP sends a request to the outside or receives requests of other APPs through the 8001 port.
And step S120, establishing socket connection with the first APP through the local port specified by the first APP.
Before communication is effected, a connection needs to be established. Establishing a socket connection is establishing a long connection. After the local port of the first APP is determined, the first APP monitors the local port, that is, monitors the network state in real time. And other products send a socket connection request to the local port, and indicate the address and the port of the socket of the first APP. And when monitoring the connection request, the first APP responds to the socket connection request, establishes a new thread, and returns the socket description so as to enable other products to formally establish a socket connection with the first APP. Socket connection established through the local port is higher in reliability, one-to-many communication can be achieved, and communication efficiency can be effectively improved.
Using music playing APP and video playing APP as examples, the local port of music playing APP is 8001, the video playing APP sends the socket connection request to the 8001 port, the music playing APP monitors the socket connection request, a description of the socket is returned to the video playing APP, and after the video playing APP confirms the description, the video playing APP formally establishes socket connection with the music playing APP.
Step S130, communication is carried out based on socket connection.
After the Socket connection is established, the first APP can communicate with other products on the thread established by the Socket connection. For example, after the socket connection is established between the music playing APP and the video playing APP, the music playing APP sends data of a certain music to the video playing APP through a thread established by the socket connection, so as to obtain a related video of the music, such as the music MV or the playing video. Communication is simple and convenient based on socket connection, both sides of connection can send data to each other, and communication efficiency is higher.
According to the communication method in the iOS system, a local port specified by a first APP is determined, socket connection is established with the first APP through the local port specified by the first APP, and communication is carried out based on the socket connection. Socket connects can realize the communication between other independent products and the first APP, and Socket connection reliability through the local port of first APP is established is higher, can realize the communication of a pair of many moreover, and a plurality of independent products are connected communication with first APP, and the both sides of connecting all can send data to the other side, and communication is simple convenient, can improve communication efficiency effectively.
In an embodiment of the present invention, in the method shown in fig. 1, the determining of the local port specified by the first APP in step S110 includes one or more of the following: determining a port number of a local port appointed by a first APP according to preset configuration information; receiving a port number of a local port designated by a first APP issued by a server; and extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
The embodiment provides various specific implementation methods for determining the local port specified by the first APP. Each port needs a port number to realize connection and communication, the port number of the local port of the APP is configuration information of the APP, the port number can be defined and modified in a configuration file of the APP, and when the port number is determined in the configuration file of the APP, a request is directly sent to the port number to realize connection establishment with the APP, communication and the like. For example, in the configuration file of the music playing APP, the port number of the local port is determined to be 8001. When the port number of the local port needs to be modified, the port number needs to be modified in the configuration file. The method for determining the port number in the configuration file of the APP can directly determine a fixed port number, is convenient for other APPs to send connection requests, and is helpful for improving accuracy and working efficiency. The port number of the APP local port is preset, and the phenomenon that the port number is repeated to influence normal communication can be avoided.
If the port number of the local port is not set in the configuration file of the APP, the port number of the local port of the APP can be determined through the server. In particular, the second APP needs to establish connection and communication with the first APP. The first APP and the second APP are both connected to the same server, the server determines the port number of the local port of the first APP, and then the port number is issued to the second APP. And the second APP sends a connection request to the port number to establish connection with the first APP so as to realize communication. The method for issuing the port number by the server is adopted, and the connection is established through the dynamic port number, so that the problem of insufficient port numbers caused by excessive connection can be effectively solved, and the connection communication with the first APP is realized.
in the iOS system, different APPs are also called mutually through scheme links. Referring to this manner, the port number of the local port specified by the first APP may be inserted into the scheme link sent by the first APP. When the second APP is called through the scheme link, the second APP extracts the port number of the local port specified by the first APP from the scheme link, and connection and communication with the first APP are achieved. The reliability of this mode is higher, realizes more easily.
The three manners for determining the port number of the local port specified by the first APP may be one of the manners, or may be multiple manners combined, and the determination is specifically performed according to a use requirement.
In an embodiment of the present invention, in the method shown in fig. 1, the establishing a socket connection with the first APP through the local port specified by the first APP in step S120 includes: and sending a request to a local port appointed by the first APP, and if the request is not responded within appointed time, informing the first APP to start the local socket service through a scheme link.
The embodiment provides a specific way for establishing socket connection with the first APP. Usually, the first APP monitors the local port, and responds to the transmitted socket connection request, so that establishment of the socket connection can be realized. Generally, in order to improve the work efficiency, the first APP is required to respond to the socket connection request within a specified time. If the first APP does not respond to the socket connection request within the specified time, there may be a case where the first APP does not start the local socket service, resulting in a failure to respond in time. At this time, the first APP may be notified through the scheme link to start the local socket service. The Scheme link generally provides a path for jumping or opening the APP, and inserts information for starting the local socket service of the first APP into the Scheme link and sends the information to the user. Clicking on the scheme link by the user can enable the first APP to start a local socket service, so that a socket connection request can be responded.
In one embodiment of the present invention, as in the method shown in fig. 1, the method further comprises: and starting a local socket service, and establishing socket connection with the webpage or the second APP through a specified local port to perform communication.
The above embodiment provides that other independent products send a connection request to the first APP through the local port of the first APP, and the first APP passively establishes a connection. In order to improve the initiative of the first APP, the embodiment provides a specific way that the first APP actively sends the connection request to other independent products. For example, the first APP needs to communicate with the second APP, starts a local socket service, and actively sends a connection request to a local port specified by the second APP, so that the second APP responds and establishes a socket connection for communication. The first APP and the second APP can be any APPs, the first APP and the second APP are only used for distinguishing different APPs, and names of the APPs are not limited. This embodiment can realize that first APP initiatively establishes with other products and is connected, effectively improves the initiative of first APP. That is, the APP may receive a connection request and respond to establishing a connection; or actively sending a connection request outwards to establish connection.
Still take above-mentioned music broadcast APP and video broadcast APP as an example, the local port of video broadcast APP is 8001, and music broadcast APP starts the socket service of self, initiatively sends socket connection request to video broadcast APP's 8001 port, and this socket connection request is monitored to video broadcast APP, returns the socket description to music broadcast APP, and after music broadcast APP confirms this description, formally establishes socket connection with video broadcast APP and communicates.
Of course, the first APP may also implement connection communication with the web page by sending a connection request to the local port of the web page, and the specific implementation method is the same as the implementation method of the second APP. By adopting the mode, the connection communication between any two independent products can be realized, and the problem that the independent products cannot communicate with each other is effectively solved.
In one embodiment of the present invention, as in the method shown in fig. 1, the method is applied to a web page and/or a second APP.
As can be seen from the above, the communication method can be applied to any product in the iOS system. The webpage can specify a local port, and other products send a socket connection request to the local port, for example, the first APP sends the socket connection request to the local port, so that the socket connection with the webpage is established for communication. The webpage can also send a connection request to the outside through the local port to realize communication with other products. The second APP can also designate a local port, the first APP sends a socket connection request to the local port, and the socket connection is established with the second APP for communication.
In an embodiment of the present invention, as in the method shown in fig. 1, when applied to the second APP, the method further includes: declaring for the second APP an authority to run a specified function; after the second APP is started, applying for a background task running a specified function; and when the second APP is switched to the background, the background resident is realized according to the background task.
Known from the above embodiment, after the second APP establishes the socket connection with the first APP, if communication is performed, the second APP needs to keep the running state to receive the communication data sent by the first APP. However, in general, when the second APP exits from the foreground task and is suspended by the system for more than the limit time, the system may end the process of the second APP in the background task. The second APP is therefore not in an operational state and cannot receive communication data of the first APP. The embodiment provides a mode for implementing the second APP to be resident in the background task, so that the second APP can keep a running state in the background task and receive the communication data of the first APP.
The designated function is any function that can be run after the APP is started, and in a general case, the operating system does not end all processes of the APP in the background task when the designated function is running. That is, after the specified function is run, the APP can execute the relevant operation in the background task without time constraint. For example, after the music playing APP starts playing music, even if the device locks the screen or switches to other APPs, the operating system does not forcibly end the music playing APP, so that the music playing APP can always execute the music playing operation, wherein the function of playing music by using multimedia is a specific function. The right to run the specified function is declared in the second APP, i.e. the second APP is given the right to use the specified function.
After the second APP is started, the background task of the specified function is applied to be run, namely, the specified function is run in the background task. When the second APP is finished from the foreground task and is suspended by the operating system, the specified function can still continue to run in the background task. And moreover, the appointed function can reduce occupied resources in background tasks, and other APPs can be ensured to normally run. The second APP is switched to the background, namely the second APP is suspended, at the moment, the specified function is still operated in the background task, so that the operating system cannot forcibly end the specified function, the APP cannot be completely ended, the allowed operation is continuously executed in the background task, and the background resident is realized.
The embodiment declares the authority to run the specified function for the second APP; after the second APP is started, applying for a background task running a specified function; and when the second APP is switched to the background, the background resident is realized according to the background task. The appointed function can realize that under general condition, operating system can not force the operation of automatic end APP, makes APP can be unrestricted time's restraint, and is hung and changes into the backstage operation, realizes that the backstage is resident. The appointed function runs in the background task, so that occupied resources can be reduced, and sufficient resources are ensured to be supplied to other APPs for normal running.
In an embodiment of the present invention, in the method for implementing background resident of the second APP, declaring, for the second APP, a right to run a specified function includes: the right to run the specified function is declared in the attribute list of the second APP.
The attribute list of the APP manages functions which the APP can run, and the declaration of the authority is to define new function authority in the attribute list of the APP. Only the function declared successful in the attribute list can be run by the operating system at APP start-up. Therefore, the authority of the specified function is declared in the attribute list of the APP, the specified function can be automatically operated when the APP is started, and therefore the APP can be ensured to reside in the background.
In an embodiment of the present invention, in the method for implementing background resident of the second APP, after the second APP is started, applying for a background task running a specified function includes: and applying for a background task in an AppDelegate of a second APP.
The embodiment provides a specific implementation method for applying for running a background task with a specified function. AppDelegate is a class file in APP development, and is used for processing events at the APP level, such as OpenURL, handoff, intent and the like of APP. Accordingly, the application of the background task is also implemented in appdelete. That is to say, a background task for running a specified function is written in the APP delete, and when the APP is started, the task in the APP delete is correspondingly run. And the application of the background task with the specified function is carried out in the AppDelegate, and the method is simple and is easier to realize.
In an embodiment of the present invention, in the method for implementing background resident of the second APP, applying for a background task running a specified function includes: and setting the designated priority for the background task so that the background task does not influence the designated functions of other applications when running in the background.
A given function is a function that can be executed, and there may be cases where it can be executed by a plurality of different APPs. For example, the specific function in the above example is a multimedia playing function, the music APP may run the function, and the video APP may also run the function. In order to avoid conflict between different APPs when the same appointed function is operated, the priority of the APP which can operate the same appointed function is set in the background task, and the background task operates the appointed function according to the priority.
Or, taking the above multimedia playing function as an example, the priority of the multimedia playing function of the music APP is set to be the highest, and the priority of the multimedia playing function of the video APP is set to be the next. The user opens music APP at first and plays the music, has switched over to video APP and watches the video for a period of time, and video APP moves in the foreground task this moment, uses the multimedia playing function, and music APP withdraws from to the unable use of backstage task. After a while, the user quits the video APP, at the moment, the video APP and the music APP are in background tasks, and the music APP plays music by using the multimedia playing function due to the fact that the multimedia playing function of the music APP is highest in priority.
In an embodiment of the present invention, in the method for implementing background resident of the second APP, the designated function is a music playing function and/or a positioning function.
The present embodiment provides a specific implementation of the specified function. The designated function is a music playing function or a positioning function, or both functions can be realized. The multimedia of music instant music calling equipment realizes the music broadcast, consequently is hung up when the APP, and the music instant music shifts into background task operation back, and operating system judges this APP still need operate in the background task, can not end the APP by force, makes APP unrestricted time's restraint, and realizes resident in the background task.
The positioning function calls a positioning system of the device, for example, a GPS positioning system is needed to realize positioning. When the APP is suspended, the positioning function used by the APP still runs in the background task, the operating system judges that the APP still needs to perform certain operation, the APP cannot be forcibly ended, the APP is enabled to be resident in the background task without being limited by time.
The music playing function is adopted to realize APP background resident, and the specific realization mode can be as follows: and continuously playing preset silent music through the background task.
The APP can be judged by the operating system to still need to run in the background task only if the APP needs to run music playing. However, the music playing function is to realize that the APP is resident in the background task of the operating system, and does not need to actually play music. By adopting the mode of playing a section of silent music, the method can realize that the APP is resident in background tasks and can also avoid influencing normal use of equipment or other APPs of users. For example, when a game APP is suspended in a background task, the normal music playing function of the music playing APP is not affected because silent music is played. The music playing function needs to be operated all the time, namely, silent music needs to be played continuously, the APP can be made to reside in the background, and a mode of playing a single silent music in a circulating mode can be adopted, namely, after the current silent music playing is finished, timing is started again and then the silent music is played again. Of course, the interval time may also be set, for example, after delaying for 2min after the end of playing the current silent music, the playing is resumed.
When the positioning function is adopted to realize APP background resident, the specific realization method can be as follows: and refreshing the position according to a preset strategy.
The positioning function requires a positioning operation, and can be determined by the operating system to execute a certain operation. Therefore, the positioning function in the APP needs to perform positioning operation at variable time. And refreshing the position by using a preset strategy, namely enabling the positioning function of the APP to perform positioning operation by using the preset strategy. For example, the positioning function performs a positioning operation at an interval of 2min to update the current position of the APP. Or setting a fixed position refreshing time, such as positioning operation by the positioning function at the integral point and the half point.
Fig. 2 is a schematic structural diagram of a communication apparatus in an iOS system according to an embodiment of the present invention. As shown in fig. 2, the apparatus 200 includes:
a port determination unit 210 adapted to determine a local port specified by the first APP.
Communication of the APP needs to be achieved through a port, for example, the APP achieves data communication with a corresponding server through a software port. The present invention needs to solve the problem of communication between different APPs in the iOS system or between an APP and other products, so that a local port of the APP needs to be determined, so that the APP receives or sends a request through the local port to implement communication. The first APP is an APP that needs to communicate, and may be any APP. Taking a music playing APP as an example, determining that a local port designated by the music playing APP is 8001, and the music playing APP sends a request to the outside or receives requests of other APPs through the 8001 port.
The connection establishing unit 220 is adapted to establish a socket connection with the first APP through a local port specified by the first APP.
Before communication is effected, a connection needs to be established. Establishing a socket connection is establishing a long connection. After the local port of the first APP is determined, the first APP monitors the local port, that is, monitors the network state in real time. And other products send a socket connection request to the local port, and indicate the address and the port of the socket of the first APP. And when monitoring the connection request, the first APP responds to the socket connection request, establishes a new thread, and returns the socket description so as to enable other products to formally establish a socket connection with the first APP. Socket connection established through the local port is higher in reliability, one-to-many communication can be achieved, and communication efficiency can be effectively improved.
Using music playing APP and video playing APP as examples, the local port of music playing APP is 8001, the video playing APP sends the socket connection request to the 8001 port, the music playing APP monitors the socket connection request, a description of the socket is returned to the video playing APP, and after the video playing APP confirms the description, the video playing APP formally establishes socket connection with the music playing APP.
A communication unit 230 adapted to communicate based on a socket connection.
After the Socket connection is established, the first APP can communicate with other products on the thread established by the Socket connection. For example, after the socket connection is established between the music playing APP and the video playing APP, the music playing APP sends data of a certain music to the video playing APP through a thread established by the socket connection, so as to obtain a related video of the music, such as the music MV or the playing video. Communication is simple and convenient based on socket connection, both sides of connection can send data to each other, and communication efficiency is higher.
The communication device of this embodiment first determines the local port specified by the first APP, establishes a socket connection with the first APP through the local port specified by the first APP, and performs communication based on the socket connection. Socket connects can realize the communication between other independent products and the first APP, and Socket connection reliability through the local port of first APP is established is higher, can realize the communication of a pair of many moreover, and a plurality of independent products are connected communication with first APP, and the both sides of connecting all can send data to the other side, and communication is simple convenient, can improve communication efficiency effectively.
In an embodiment of the present invention, in the apparatus 200 shown in fig. 2, the port determining unit 210 is further adapted to determine the local port specified by the first APP by using one or more of the following manners: determining a port number of a local port appointed by a first APP according to preset configuration information; receiving a port number of a local port designated by a first APP issued by a server; and extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
The present embodiment provides a specific implementation method for determining, by the port determining unit 210, a local port specified by the first APP. Each port needs a port number to realize connection and communication, the port number of the local port of the APP is configuration information of the APP, the port number can be defined and modified in a configuration file of the APP, and when the port number is determined in the configuration file of the APP, a request is directly sent to the port number to realize connection establishment with the APP, communication and the like. For example, in the configuration file of the music playing APP, the port number of the local port is determined to be 8001. When the port number of the local port needs to be modified, the port number needs to be modified in the configuration file. The method for determining the port number in the configuration file of the APP can directly determine a fixed port number, is convenient for other APPs to send connection requests, and is helpful for improving accuracy and working efficiency. And the port number of the APP local port is preset, so that the phenomenon that the port number is repeated to influence normal communication can be avoided.
If the port number of the local port is not set in the configuration file of the APP, the port number of the local port of the APP can be determined through the server. In particular, the second APP needs to establish connection and communication with the first APP. The first APP and the second APP are both connected to the same server, the server determines the port number of the local port of the first APP, and then the port number is issued to the second APP. And the second APP sends a connection request to the port number to establish connection with the first APP so as to realize communication. The method for issuing the port number by the server is adopted, and the connection is established through the dynamic port number, so that the problem of insufficient port numbers caused by excessive connection can be effectively solved, and the connection communication with the first APP is realized.
in the iOS system, different APPs are also called mutually through scheme links. Referring to this manner, the port number of the local port specified by the first APP may be inserted into the scheme link sent by the first APP. When the second APP is called through the scheme link, the second APP extracts the port number of the local port specified by the first APP from the scheme link, and connection and communication with the first APP are achieved. The reliability of this mode is higher, realizes more easily.
The three manners for determining the port number of the local port specified by the first APP may be one of the manners, or may be multiple manners combined, and the determination is specifically performed according to a use requirement.
In an embodiment of the present invention, as in the apparatus 200 shown in fig. 2, the connection establishing unit 220 is further adapted to send a request to a local port specified by the first APP, and notify the first APP to start the local socket service through a scheme link if the request is not answered within a specified time.
The embodiment provides a specific way for establishing socket connection with the first APP. Usually, the first APP monitors the local port, and responds to the transmitted socket connection request, so that establishment of the socket connection can be realized. Generally, in order to improve the work efficiency, the first APP is required to respond to the socket connection request within a specified time. If the first APP does not respond to the socket connection request within the specified time, there may be a case where the first APP does not start the local socket service, resulting in a failure to respond in time. At this time, the first APP may be notified through the scheme link to start the local socket service. The Scheme link generally provides a path for jumping or opening the APP, and inserts information for starting the local socket service of the first APP into the Scheme link and sends the information to the user. Clicking on the scheme link by the user can enable the first APP to start a local socket service, so that a socket connection request can be responded.
In one embodiment of the present invention, as shown in the apparatus 200 of fig. 2, the apparatus 200 further comprises: and the service starting unit is suitable for starting the local socket service and establishing socket connection with the webpage or the second APP through the specified local port so as to carry out communication.
The above embodiment provides that other independent products send a connection request to the first APP through the local port of the first APP, and the first APP passively establishes a connection. In order to improve the initiative of the first APP, the embodiment provides a specific way that the first APP actively sends the connection request to other independent products. For example, the first APP needs to communicate with the second APP, starts a local socket service, and actively sends a connection request to a local port specified by the second APP, so that the second APP responds and establishes a socket connection for communication. The first APP and the second APP can be any APPs, the first APP and the second APP are only used for distinguishing different APPs, and names of the APPs are not limited. This embodiment can realize that first APP initiatively establishes with other products and is connected, effectively improves the initiative of first APP. That is, the APP may receive a connection request and respond to establishing a connection; or actively sending a connection request outwards to establish connection.
Still take above-mentioned music broadcast APP and video broadcast APP as an example, the local port of video broadcast APP is 8001, and music broadcast APP starts the socket service of self, initiatively sends socket connection request to video broadcast APP's 8001 port, and this socket connection request is monitored to video broadcast APP, returns the socket description to music broadcast APP, and after music broadcast APP confirms this description, formally establishes socket connection with video broadcast APP and communicates.
Of course, the first APP may also implement connection communication with the web page by sending a connection request to the local port of the web page, and the specific implementation method is the same as the implementation method of the second APP. By adopting the mode, the connection communication between any two independent products can be realized, and the problem that the independent products cannot communicate with each other is effectively solved.
In one embodiment of the invention, as in the apparatus 200 shown in fig. 2, the apparatus is applied to a web page and/or a second APP.
As can be seen from the above description, the communication device 200 can be applied to any product in the iOS system to realize connection communication with other independent products. The webpage can specify a local port, and other products send a socket connection request to the local port, for example, the first APP sends the socket connection request to the local port, so that the socket connection with the webpage is established for communication. The webpage can also send a connection request to the outside through the local port to realize communication with other products. The second APP can also designate a local port, the first APP sends a socket connection request to the local port, and the socket connection is established with the second APP for communication.
In an embodiment of the present invention, as in the apparatus 200 shown in fig. 2, when the apparatus 200 is applied in the second APP, the apparatus further includes: the background resident unit is suitable for declaring the authority of running the specified function for the second APP; after the second APP is started, applying for a background task running a specified function; and when the second APP is switched to the background, the background resident is realized according to the background task.
Known from the above embodiment, after the second APP establishes the socket connection with the first APP, if communication is performed, the second APP needs to keep the running state to receive the communication data sent by the first APP. However, in general, when the second APP exits from the foreground task and is suspended by the system for more than the limit time, the system may end the process of the second APP in the background task. The second APP is therefore not in an operational state and cannot receive communication data of the first APP. The embodiment provides a background resident unit, which realizes the resident of the second APP in the background task, so that the second APP can keep a running state in the background task, and receive the communication data of the first APP.
The designated function is any function that can be run after the APP is started, and in a general case, the operating system does not end all processes of the APP in the background task when the designated function is running. That is, after the specified function is run, the APP can execute the relevant operation in the background task without time constraint. For example, after the music playing APP starts playing music, even if the device locks the screen or switches to other APPs, the operating system does not forcibly end the music playing APP, so that the music playing APP can always execute the music playing operation, wherein the function of playing music by using multimedia is a specific function. The right to run the specified function is declared in the second APP, i.e. the second APP is given the right to use the specified function.
After the second APP is started, the background task of the specified function is applied to be run, namely, the specified function is run in the background task. When the second APP is finished from the foreground task and is suspended by the operating system, the specified function can still continue to run in the background task. And moreover, the appointed function can reduce occupied resources in background tasks, and other APPs can be ensured to normally run. The second APP is switched to the background, namely the second APP is suspended, at the moment, the specified function is still operated in the background task, so that the operating system cannot forcibly end the specified function, the second APP cannot be completely ended, the allowed operation is continuously executed in the background task, and the background resident is realized.
The embodiment declares the authority to run the specified function for the second APP; after the second APP is started, applying for a background task running a specified function; and when the second APP is switched to the background, the background resident is realized according to the background task. The appointed function can realize that under general condition, operating system can not force the operation of automatic end APP, makes APP can be unrestricted time's restraint, and is hung and changes into the backstage operation, realizes that the backstage is resident. The appointed function runs in the background task, so that occupied resources can be reduced, and sufficient resources are ensured to be supplied to other APPs for normal running.
In an embodiment of the present invention, in the above apparatus, the background resident unit is further adapted to declare a right to run a specified function in the attribute list of the second APP.
The attribute list of the APP manages functions which the APP can run, and the declaration of the authority is to define new function authority in the attribute list of the APP. Only the function declared successful in the attribute list can be run by the operating system at APP start-up. Therefore, the authority of the specified function is declared in the attribute list of the APP, the specified function can be automatically operated when the APP is started, and therefore the APP can be ensured to reside in the background.
In an embodiment of the present invention, in the above apparatus, the background resident unit is further adapted to apply for a background task in an appdelete of the second APP.
The embodiment provides a specific way for the background resident unit to apply for running the background task with the specified function. AppDelegate is a class file in APP development, and is used for processing events at the APP level, such as OpenURL, handoff, intent and the like of APP. Accordingly, the application of the background task is also implemented in appdelete. That is to say, a background task for running a specified function is written in the APP delete, and when the APP is started, the task in the APP delete is correspondingly run. And the application of the background task with the specified function is carried out in the AppDelegate, and the method is simple and is easier to realize.
In an embodiment of the present invention, in the apparatus, the background resident unit is further adapted to set a designated priority for the background task, so that the background task does not affect other application running designated functions when running in the background.
A given function is a function that can be executed, and there may be cases where it can be executed by a plurality of different APPs. For example, the specific function in the above example is a multimedia playing function, the music APP may run the function, and the video APP may also run the function. In order to avoid conflict between different APPs when the same appointed function is operated, the priority of the APP which can operate the same appointed function is set in the background task, and the background task operates the appointed function according to the priority.
Or, taking the above multimedia playing function as an example, the priority of the multimedia playing function of the music APP is set to be the highest, and the priority of the multimedia playing function of the video APP is set to be the next. The user opens music APP at first and plays the music, has switched over to video APP and watches the video for a period of time, and video APP moves in the foreground task this moment, uses the multimedia playing function, and music APP withdraws from to the unable use of backstage task. After a while, the user quits the video APP, at the moment, the video APP and the music APP are in background tasks, and the music APP plays music by using the multimedia playing function due to the fact that the multimedia playing function of the music APP is highest in priority.
In an embodiment of the present invention, in the above apparatus, the specified function is a music playing function and/or a positioning function.
The present embodiment provides a specific implementation of the specified function. The designated function is a music playing function or a positioning function, or both functions can be realized. The multimedia of music instant music calling equipment realizes the music broadcast, consequently is hung up when the APP, and the music instant music shifts into background task operation back, and operating system judges this APP still need operate in the background task, can not end the APP by force, makes APP unrestricted time's restraint, and realizes resident in the background task.
The positioning function calls a positioning system of the device, for example, a GPS positioning system is needed to realize positioning. When the APP is suspended, the positioning function used by the APP still runs in the background task, the operating system judges that the APP still needs to perform certain operation, the APP cannot be forcibly ended, the APP is enabled to be resident in the background task without being limited by time.
The music playing function is adopted to realize APP background resident, and the specific realization mode can be as follows: and continuously playing preset silent music through the background task.
The APP can be judged by the operating system to still need to run in the background task only if the APP needs to run music playing. However, the music playing function is to realize that the APP is resident in the background task of the operating system, and does not need to actually play music. By adopting the mode of playing a section of silent music, the method can realize that the APP is resident in background tasks and can also avoid influencing normal use of equipment or other APPs of users. For example, when a game APP is suspended in a background task, the normal music playing function of the music playing APP is not affected because silent music is played. The music playing function needs to be operated all the time, namely, silent music needs to be played continuously, the APP can be made to reside in the background, and a mode of playing a single silent music in a circulating mode can be adopted, namely, after the current silent music playing is finished, timing is started again and then the silent music is played again. Of course, the interval time may also be set, for example, after delaying for 2min after the end of playing the current silent music, the playing is resumed.
When the positioning function is adopted to realize APP background resident, the specific realization method can be as follows: and refreshing the position according to a preset strategy.
The positioning function requires a positioning operation, and can be determined by the operating system to execute a certain operation. Therefore, the positioning function in the APP needs to perform positioning operation at variable time. And refreshing the position by using a preset strategy, namely enabling the positioning function of the APP to perform positioning operation by using the preset strategy. For example, the positioning function performs a positioning operation at an interval of 2min to update the current position of the APP. Or setting a fixed position refreshing time, such as positioning operation by the positioning function at the integral point and the half point.
In summary, in the technical solution of the present invention, a local port specified by a first APP is determined, a socket connection is established with the first APP through the local port specified by the first APP, and communication is performed based on the socket connection. Socket connects can realize the communication between other independent products and the first APP, and Socket connection reliability through the local port of first APP is established is higher, can realize the communication of a pair of many moreover, and a plurality of independent products are connected communication with first APP, and the both sides of connecting all can send data to the other side, and communication is simple convenient, can improve communication efficiency effectively.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that microprocessors or Digital Signal Processors (DSPs) may be used in practice to implement some or all of the functions of some or all of the components of a communications apparatus, an electronic device, and a computer-readable storage medium in an iOS system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. The electronic device comprises a processor 310 and a memory 320 arranged to store computer executable instructions (computer readable program code). The memory 320 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 320 has a storage space 330 storing computer readable program code 331 for performing any of the method steps described above. For example, the storage space 330 for storing the computer readable program code may comprise respective computer readable program codes 331 for respectively implementing various steps in the above method. The computer readable program code 331 may be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 4. Fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. The computer readable storage medium 400 has stored thereon a computer readable program code 331 for performing the steps of the method according to the invention, readable by a processor 310 of the electronic device 300, which computer readable program code 331, when executed by the electronic device 300, causes the electronic device 300 to perform the steps of the method described above, in particular the computer readable program code 331 stored on the computer readable storage medium may perform the method shown in any of the embodiments described above. The computer readable program code 331 may be compressed in a suitable form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention provides a1, a communication method in an iOS system, comprising:
determining a local port designated by a first APP;
establishing socket connection with the first APP through the local port designated by the first APP;
communicating based on the socket connection.
A2, the method as in A1, wherein the determining the local port of the first APP binding includes one or more of:
determining a port number of a local port appointed by the first APP according to preset configuration information;
receiving a port number of a local port designated by the first APP and sent by a server;
extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
A3, the method as in a1, wherein the establishing a socket connection with a first APP through a local port specified by the first APP includes:
and sending a request to a local port appointed by the first APP, and if the request is not responded within appointed time, informing the first APP to start local socket service through scheme link.
A4, the method of a1, wherein the method further comprises:
and starting a local socket service, and establishing socket connection with the webpage or the second APP through a specified local port to perform communication.
A5, the method according to A1, wherein the method is applied to a webpage and/or a second APP.
A6, the method as in a5, wherein the method when applied in the second APP further comprises:
declaring for the second APP an authority to run a specified function;
after the second APP is started, applying for a background task for running the specified function;
and when the second APP is switched to the background, realizing background resident according to the background task.
A7, the method as in A6, wherein the declaring for the second APP the right to run the specified function includes:
the right to run the specified function is declared in the attribute list of the second APP.
A8, the method as in a6, wherein applying for a background task running the specified function after the second APP starts includes:
and applying for the background task in the AppDelegate of the second APP.
A9, the method as in a9, wherein the applying for a background task running the specified function includes:
and setting a designated priority for the background task so that the background task does not influence other applications to operate the designated function when operating in the background.
A10, the method of a9, wherein the designated function is a music playing function and/or a positioning function.
A11, the method as in a10, wherein the implementing background resident according to the background task when the second APP switches to background includes:
and continuously playing preset silent music through the background task.
A12, the method as in a10, wherein the implementing background resident according to the background task when the second APP switches to background includes:
and refreshing the position according to a preset strategy.
The present invention also provides B13, a communication apparatus in an iOS system, comprising:
a port determination unit adapted to determine a local port specified by the first APP;
the connection establishing unit is suitable for establishing socket connection with the first APP through the local port specified by the first APP;
a communication unit adapted to communicate based on the socket connection.
B14, the apparatus according to B13, wherein the port determining unit is further adapted to determine the local port specified by the first APP by one or more of:
determining a port number of a local port appointed by the first APP according to preset configuration information;
receiving a port number of a local port designated by the first APP and sent by a server;
extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
B15, the apparatus according to B13, wherein the connection establishing unit is further adapted to send a request to a local port specified by the first APP, and if the request is not answered within a specified time, notify the first APP to start a local socket service through a scheme link.
B16, the apparatus of B13, wherein the apparatus further comprises:
and the service starting unit is suitable for starting the local socket service and establishing socket connection with the webpage or the second APP through the specified local port so as to carry out communication.
B17, the device as B13, wherein the device is applied to the webpage and/or the second APP.
B18, the apparatus as described in B17, wherein the apparatus when applied in the second APP further comprises:
the background resident unit is suitable for declaring the authority of running the specified function for the second APP; after the second APP is started, applying for a background task for running the specified function; and when the second APP is switched to the background, realizing background resident according to the background task.
B19, the apparatus as described in B18, wherein the background resident unit is further adapted to declare the right to run a specified function in the attribute list of the second APP.
B20, the device as in B18, wherein the background resident unit is further adapted to make an application for the background task in appdelete of the second APP.
B21, the apparatus according to B19, wherein the background resident unit is further adapted to set a designated priority for the background task so that the background task does not affect other applications to run the designated function when running in the background.
B22, the apparatus as in B21, wherein the designated function is a music playing function and/or a positioning function.
B23, the apparatus according to B22, wherein the background resident unit is further adapted to continuously play preset silent music through the background task.
B24, the apparatus according to B22, wherein the background resident unit is further adapted to perform location refresh according to a preset policy.
The invention also provides C25, an electronic device, wherein the electronic device comprises: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of a1-a 12.
The invention also provides D26, a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of a1-a 12.

Claims (10)

1. A communication method in an iOS system, comprising:
determining a local port designated by a first APP;
establishing socket connection with the first APP through the local port designated by the first APP;
communicating based on the socket connection.
2. The method of claim 1, wherein said determining a local port for the first APP binding comprises one or more of:
determining a port number of a local port appointed by the first APP according to preset configuration information;
receiving a port number of a local port designated by the first APP and sent by a server;
extracting the port number of the local port specified by the first APP from the scheme link sent by the first APP.
3. The method of claim 1, wherein the establishing a socket connection with a first APP through a local port specified by the first APP comprises:
and sending a request to a local port appointed by the first APP, and if the request is not responded within appointed time, informing the first APP to start local socket service through scheme link.
4. The method of claim 1, wherein the method further comprises:
and starting a local socket service, and establishing socket connection with the webpage or the second APP through a specified local port to perform communication.
5. The method of claim 1, wherein the method is applied to a web page and/or a second APP.
6. The method of claim 5, when applied in a second APP, further comprising:
declaring for the second APP an authority to run a specified function;
after the second APP is started, applying for a background task for running the specified function;
and when the second APP is switched to the background, realizing background resident according to the background task.
7. The method of claim 6, wherein declaring for the second APP the right to run a specified function comprises:
the right to run the specified function is declared in the attribute list of the second APP.
8. A communication apparatus in an iOS system, comprising:
a port determination unit adapted to determine a local port specified by the first APP;
the connection establishing unit is suitable for establishing socket connection with the first APP through the local port specified by the first APP;
a communication unit adapted to communicate based on the socket connection.
9. An electronic device, wherein the electronic device comprises: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN201811639618.7A 2018-12-29 2018-12-29 Communication method and device in iOS system Pending CN111385265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811639618.7A CN111385265A (en) 2018-12-29 2018-12-29 Communication method and device in iOS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811639618.7A CN111385265A (en) 2018-12-29 2018-12-29 Communication method and device in iOS system

Publications (1)

Publication Number Publication Date
CN111385265A true CN111385265A (en) 2020-07-07

Family

ID=71216644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811639618.7A Pending CN111385265A (en) 2018-12-29 2018-12-29 Communication method and device in iOS system

Country Status (1)

Country Link
CN (1) CN111385265A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165531A (en) * 2020-10-13 2021-01-01 广州欢网科技有限责任公司 Communication method, device and storage medium realized based on port of monitoring device
CN114125017A (en) * 2020-08-10 2022-03-01 腾讯科技(深圳)有限公司 Method and device for displaying media information, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
CN103885666A (en) * 2012-12-20 2014-06-25 腾讯科技(深圳)有限公司 Transmission processing method and transmission processing system of shared information
WO2017045276A1 (en) * 2015-09-14 2017-03-23 百度在线网络技术(北京)有限公司 Terminal interconnecting method, device, and storage medium
CN106547634A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of method and device of striding course communication
CN107370775A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and system for starting application
CN107463453A (en) * 2017-08-10 2017-12-12 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium to be communicated between same terminal different application
CN108040091A (en) * 2017-11-27 2018-05-15 腾讯数码(天津)有限公司 Data processing method, device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885666A (en) * 2012-12-20 2014-06-25 腾讯科技(深圳)有限公司 Transmission processing method and transmission processing system of shared information
CN103106102A (en) * 2013-01-14 2013-05-15 百度在线网络技术(北京)有限公司 Running method of Web application program and mobile terminal
WO2017045276A1 (en) * 2015-09-14 2017-03-23 百度在线网络技术(北京)有限公司 Terminal interconnecting method, device, and storage medium
CN107370775A (en) * 2016-05-11 2017-11-21 阿里巴巴集团控股有限公司 A kind of method and system for starting application
CN106547634A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of method and device of striding course communication
CN107463453A (en) * 2017-08-10 2017-12-12 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium to be communicated between same terminal different application
CN108040091A (en) * 2017-11-27 2018-05-15 腾讯数码(天津)有限公司 Data processing method, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125017A (en) * 2020-08-10 2022-03-01 腾讯科技(深圳)有限公司 Method and device for displaying media information, storage medium and electronic equipment
CN114125017B (en) * 2020-08-10 2024-04-09 腾讯科技(深圳)有限公司 Media information display method and device, storage medium and electronic equipment
CN112165531A (en) * 2020-10-13 2021-01-01 广州欢网科技有限责任公司 Communication method, device and storage medium realized based on port of monitoring device

Similar Documents

Publication Publication Date Title
CN107453896B (en) Method and device for processing multiple block chain network data and server
CN111246308B (en) Method and device for accessing live broadcast room, live broadcast server and storage medium
CN108510389A (en) Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
CN110830735B (en) Video generation method and device, computer equipment and storage medium
CN111367659B (en) Resource management method, equipment and medium for nodes in Kubernetes
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
CN106161537A (en) The processing method of remote procedure call, device, system and electronic equipment
CN111506283B (en) Image display method, device and system
AU2019256257B2 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN106713954B (en) Video live broadcast starting reminding method and device
CN109167820A (en) A kind of method for down loading of application program, device, storage medium and terminal
JP7412594B2 (en) Data processing method, data processing device, computer equipment, and computer program
CN110955499B (en) Processor core configuration method, device, terminal and storage medium
CN106775952B (en) Android application process management method and device
US20210136432A1 (en) Method for recharging live streaming account, terminal, and storage medium
CN108268296A (en) Loading method, the client and server of page layout
CN112473144A (en) Game resource data processing method and device
CN102882888A (en) Network application access method and system
CN111385265A (en) Communication method and device in iOS system
KR20220080198A (en) Audio data processing method, server, and storage medium
CN108038010A (en) Android system startup stage broadcast transmission method, apparatus and terminal
CN113672757B (en) Audio playing method and device
CN108307369A (en) Matching method, the transmission method of unpaired message, device and equipment
CN109857963A (en) Local resource access method, device and electronic equipment
CN114780465A (en) Method and device for creating sharable remote direct data access link

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