CN103269396B - The method and system that a kind of pair of mobile terminal is managed - Google Patents
The method and system that a kind of pair of mobile terminal is managed Download PDFInfo
- Publication number
- CN103269396B CN103269396B CN201310157711.5A CN201310157711A CN103269396B CN 103269396 B CN103269396 B CN 103269396B CN 201310157711 A CN201310157711 A CN 201310157711A CN 103269396 B CN103269396 B CN 103269396B
- Authority
- CN
- China
- Prior art keywords
- sdk
- mobile terminal
- api
- webpage
- communication channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention provides the method and systems that a kind of pair of mobile terminal is managed, wherein method includes: that the related administrative information to destination mobile terminal is sent to the SDK by the communication channel established between the JS API and the Software Development Kit (SDK) of the end PC installation after the script applications interface (JS API) being embedded in webpage is toggled;The SDK executes the management to the destination mobile terminal connecting with the SDK according to the related administrative information received.The management on webpage to the mobile terminal for being connected to SDK can be realized by the communication between the SDK for the end the JS API and PC installation being embedded in webpage in the present invention, gets rid of the limitation of client, the operation is more convenient.
Description
[technical field]
The method that is managed the present invention relates to computer application technology, in particular to a kind of pair of mobile terminal and it is
System.
[background technique]
Smart phone, plate electricity with the rapid development of computer and network technologies, such as with a variety of application functions
The mobile terminals such as brain are more more and more universal and at essential information acquisition instrument in for people's lives, and people can use movement
Terminal carries out the installation and use, browsing pictures, viewing video, broadcasting music etc. of a variety of applications.In view of mobile terminal inconvenience
In the limitation of operation and screen size, be operable to realize the management to mobile terminal on mobile terminals, such as downloading and
Application, download pictures, foradownloaded video and music etc. are installed, there are various inconvenience, therefore user still wants to passage capacity
It is powerful, convenient for operating and computer (PC) with larger screen realizes the management to mobile terminal.
When realizing the management to mobile terminal by PC, existing mode mainly installs special client on PC
End indirectly imports mobile terminal by the resource that the client wants user, such as the mobile terminal of apple, needs
Itunes client to be installed to realize on PC to the management of mobile terminal on PC.Shifting for Android (android) system
Dynamic terminal needs to install the clients such as pea pods on PC and realizes on PC to the management of mobile terminal.This client
Limitation it is on the one hand operationally comparatively laborious, it is inconvenient to realize.
[summary of the invention]
In view of this, getting rid of client the present invention provides the method and system that a kind of pair of mobile terminal is managed
Limitation.
Specific technical solution is as follows:
The method that a kind of pair of mobile terminal is managed, this method comprises:
After the script applications interface JS API being embedded in S1, webpage is toggled, by the relevant tube to destination mobile terminal
The communication channel established between the Software Development Kit SDK that reason information is installed by the JS API and the end PC is sent to described
SDK;
S2, the SDK execute mobile to the target connecting with the SDK whole according to the related administrative information received
The management at end.
A preferred embodiment according to the present invention, before the step S1 further include:
S02, communication channel between the JS API and the SDK is established.
A preferred embodiment according to the present invention, the communication channel established between the JS API and the SDK include:
Using SDK as hypertext transfer protocol server HTTP Server, built between the JS API and the SDK
Vertical JSONP communication channel;Alternatively,
Browser plug-in is installed at the end PC, JS API is opened to SDK by the browser plug-in, in the JS API
The communication channel using the browser plug-in as middleware is established between the SDK;Alternatively,
The communication established between the JS API and the SDK using independent HTTP Server as forwarding device is logical
Road.
A preferred embodiment according to the present invention, before the step S02 further include:
S01, when the webpage for being embedded in the JS API is opened, whether the JS API detection end PC is mounted with SDK,
If it is not, then prompt user installation SDK, and after detecting that the end PC is mounted with SDK, step S02 is executed, if it is,
Execute step S02.
A preferred embodiment according to the present invention, before the step S1 further include:
S03, the JS API obtain current mobile terminal connection from the SDK by the communication channel, if
Existing mobile terminal connects the SDK, then executes the step S1;If connecting the SDK without mobile terminal, prompt to use
Family connects mobile terminal, after existing mobile terminal connects the SDK, executes the step S1.
A preferred embodiment according to the present invention, if knowing only one movement according to current mobile terminal connection
Terminal is connected to the SDK, then defaulting a mobile terminal is destination mobile terminal, alternatively, the JS API is further mentioned
Show that user is confirmed whether using a mobile terminal as destination mobile terminal;
If knowing that there are more than one mobile terminals to be connected to the SDK according to current mobile terminal connection,
Then the JS API prompts user's therefrom selection target mobile terminal, and in the step S1 by the information of destination mobile terminal
The SDK is sent to together with the related administrative information.
A preferred embodiment according to the present invention, the related administrative information include: obtain information of mobile terminal instruction,
The instruction that resource data on webpage is imported the instruction of mobile terminal or operated to the data in mobile terminal.
A preferred embodiment according to the present invention, when the user clicks when related administrative information button on the webpage, net
The JS API being embedded in page is toggled, and determines the corresponding related administrative information of the clicked button of user.
A preferred embodiment according to the present invention, when the related administrative information is to obtain the instruction of information of mobile terminal
When, the management to the destination mobile terminal that is executed in the step S2 are as follows: the SDK is according to the acquisition mobile terminal
The instruction of information obtains the corresponding informance in destination mobile terminal and returns to the JS API by the communication channel, for institute
The corresponding informance stated in the destination mobile terminal that JS API will acquire is presented on webpage;
When the related administrative information is that the resource data on webpage is imported the instruction of mobile terminal, in the step
The management to the destination mobile terminal executed in S2 are as follows: the resource data on the webpage is imported target and moved by the SDK
Under the target directory that default directory or user in dynamic terminal are specified;
When the related administrative information is the instruction operated to the data in mobile terminal, in the step S2
The management to the destination mobile terminal executed are as follows: the SDK obtains the information list of destination mobile terminal and by described
Communication channel returns to the JS API;JS API shows the information list on webpage for user's therefrom selection target number
It is believed that breath, and the target data information is sent to the SDK by the communication channel;The SDK is mobile to target eventually
Target data in end executes the operation of the related administrative information instruction.
A preferred embodiment according to the present invention, when the related administrative information is to import the resource data on webpage to move
When the instruction of dynamic terminal, the related administrative information further include: resource data or resource data to be imported to be imported
url;
To the end PC, then the SDK downloads corresponding resource data according to the url of the resource data to be imported
The resource data of downloading is imported into destination mobile terminal or the SDK, resource data to be imported is directly imported into target shifting
Dynamic terminal.
A preferred embodiment according to the present invention, the step S2 further include: the SDK is by implementation progress and/or execution
As a result the JS API is returned to by the communication channel, for the JS API by the implementation progress and/or implementing result
It shows on webpage.
The system that a kind of pair of mobile terminal is managed, the system include: the end the JS API and PC installation being embedded in webpage
SDK;
The JS API will pass through the JS to the related administrative information of destination mobile terminal after being toggled
The communication channel established between API and the SDK is sent to the SDK;
The SDK, it is mobile to the target being connect with the SDK for being executed according to the related administrative information received
The management of terminal.
A preferred embodiment according to the present invention, the JS API and the SDK, are also used to establish the JSAPI and institute
State the communication channel between SDK.
A preferred embodiment according to the present invention, the communication channel are as follows:
Using SDK as hypertext transfer protocol server HTTP Server, built between the JS API and the SDK
Vertical JSONP communication channel;Alternatively,
The communication channel using browser plug-in as middleware established between the JS API and the SDK, it is described
Browser plug-in is mounted on the end PC and develops JS API to SDK;Alternatively,
The communication using independent HTTP Server as forwarding device established between the JS API and the SDK
Channel.
A preferred embodiment according to the present invention, the JS API are also used to when the webpage quilt for being embedded in the JS API
When opening, whether the detection end PC is mounted with SDK, if it is not, then prompt user installation SDK, and detecting the end the PC installation
After SDK, the operation for the communication channel established between the JS API and the SDK is executed, if it is, described in executing and establishing
The operation of communication channel between JS API and the SDK.
A preferred embodiment according to the present invention, the JS API are also used to obtain by the communication channel from the SDK
Take current mobile terminal connection, if existing mobile terminal connects the SDK, execute it is described will be to destination mobile terminal
Related administrative information pass through the communication channel established between the JS API and the SDK and be sent to the SDK;If no
Mobile terminal connects the SDK, then user is prompted to connect mobile terminal, after existing mobile terminal connects the SDK, executes institute
The communication channel established between the JS API and the SDK will be passed through to the related administrative information of destination mobile terminal by, which stating, sends
To the SDK.
A preferred embodiment according to the present invention, if knowing only one movement according to current mobile terminal connection
Terminal is connected to the SDK, then it is destination mobile terminal that the JS API, which defaults a mobile terminal, alternatively, the JS
API further prompts user to be confirmed whether using a mobile terminal as destination mobile terminal;
If knowing that there are more than one mobile terminals to be connected to the SDK according to current mobile terminal connection,
Then the JS API is also used to prompt user's therefrom selection target mobile terminal, and by the information of destination mobile terminal together with described
Related administrative information is sent to the SDK.
A preferred embodiment according to the present invention, the related administrative information include: obtain information of mobile terminal instruction,
The instruction that resource data on webpage is imported the instruction of mobile terminal or operated to the data in mobile terminal.
A preferred embodiment according to the present invention, when the user clicks when related administrative information button on the webpage, institute
It states JS API to be toggled when the related administrative information button on the webpage of its insertion is clicked, and determines that user clicks and press
The corresponding related administrative information of button.
A preferred embodiment according to the present invention, when the related administrative information is to obtain the instruction of information of mobile terminal
When, the SDK is when executing the management to the destination mobile terminal, with specific reference to the instruction for obtaining information of mobile terminal
It obtains the corresponding informance in destination mobile terminal and the JS API is returned to by the communication channel;The JS API is also used
Corresponding informance in the destination mobile terminal that will acquire is presented on webpage;
When the related administrative information is that the resource data on webpage is imported the instruction of mobile terminal, the SDK exists
When executing the management to the destination mobile terminal, specifically the resource data on the webpage is imported in destination mobile terminal
Under the target directory that default directory or user specify;
When the related administrative information is the instruction operated to the data in mobile terminal, the SDK is being executed
When to the management of the destination mobile terminal, the specific information list for obtaining destination mobile terminal is simultaneously returned by the communication channel
Back to the JS API;JS API is also used to show the information list that therefrom selection target data are believed for user on webpage
Breath, and the target data information is sent to the SDK by the communication channel, for the SDK to destination mobile terminal
In target data execute operation indicated by the related administrative information.
A preferred embodiment according to the present invention, when the related administrative information is to import the resource data on webpage to move
When the instruction of dynamic terminal, the JS API is also used to pass through the url of resource data or resource data to be imported to be imported
The communication channel is sent to the SDK;
The SDK is also used to download corresponding resource data to the end PC sheet according to the url of the resource data to be imported
Then the resource data of downloading is imported destination mobile terminal, or resource data to be imported is directly imported target and is moved by ground
Dynamic terminal.
A preferred embodiment according to the present invention, the SDK are also used to implementation progress and/or implementing result passing through institute
It states communication channel and returns to the JS API;
The JS API is also used to show the implementation progress and/or implementing result on webpage.
As can be seen from the above technical solutions, the SDK that the present invention is installed by the end JS API and PC being embedded in webpage
Between communication the management on webpage to the mobile terminal for being connected to SDK can be realized, get rid of the limitation of client, operate
It is easier.
[Detailed description of the invention]
Fig. 1 is system construction drawing provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram provided in an embodiment of the present invention being managed to mobile terminal;
Fig. 3 is the first webpage instance graph provided in an embodiment of the present invention;
Fig. 4 is one of example shown in Fig. 3 prompt pop-up window schematic diagram;
Fig. 5 is another prompt pop-up window schematic diagram in example shown in Fig. 3;
Fig. 6 is second of webpage instance graph provided in an embodiment of the present invention;
Fig. 7 is the third webpage instance graph provided in an embodiment of the present invention.
[specific embodiment]
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
Present system structure is as shown in Figure 1, the system specifically includes that the script applications interface (JS being embedded in webpage
) and the Software Development Kit at the end PC (SDK) API.After JS API is used to be toggled, by the correlation to destination mobile terminal
Management information passes through the communication channel established between JS API and SDK and is sent to SDK.SDK is used for according to the relevant tube received
Manage management of the information execution to the destination mobile terminal of SDK connection.
Wherein on the one hand SDK establishes communication connection with JS API, on the other hand connection and realization of the monitoring with mobile terminal
Communication between mobile terminal.The background service that SDK can be used as booting self-starting operates on PC, monitors the company of mobile phone
It connects, while being communicated with the JS API of webpage, this is the function of the SDK assigned in embodiments of the present invention.Usual SDK has
Basic function further include: the identification and driven management of mobile terminal, the connection of mobile terminal, the acquisition of information of mobile terminal,
The resource management of mobile terminal, the task schedule etc. of mobile terminal, can be specifically related in subsequent embodiment.
Specifically, since the script in security requirement webpage does not support cross-domain access, i.e., webpage and PC can not be carried out
Local communication is held, therefore when establishing the communication channel between SDK and API, can use but be not limited to following several sides
Formula:
First way: SDK is provided in a manner of hypertext transfer protocol server (HTTP Server) for JS API
JSONP(JSON with Padding) service, so that the JS API in webpage has the ability with SDK communication.That is,
JSONP communication channel is established between JS API and SDK.
Wherein JSONP is a unofficial agreement, allows in server end (to be exactly as HTTP in the embodiment of the present invention
The SDK at the end PC of Sever) integrated script tag (Script tags) be back to client, pass through javascript call back function
(callback) mode realizes cross-domain access.
The mode that JS API and SDK is communicated on JSONP communication channel is usually the mode of long poll, detailed process
Are as follows: JS API sends JSONP request to the SDK as HTTP Server;SDK as HTTP Server receives JSONP
Data are checked whether there is after request and return to JS API, if so, then returning data to JS API immediately, otherwise wait for setting
Duration returns data to JS API if there is data to return to JS API within the set duration, if reach setting duration still without
Data return to JS API, then return to time-out response to JS API;After JS API receives data or time-out response, again to work
JSONP request is sent for the SDK of HTTP Server, recycles the above process.As long as being deposited in this way as the SDK mono- of HTTP Server
Returning to JS API in data can be got by webpage immediately.
The second way: setting browser plug-in opens JS API to SDK by browser plug-in, that is to say, that JS
Browser plug-in is established communication channel as a middleware by API and SDK.
JS API and SDK when being communicated on the communication channel, in advance with browser plug-in rendezvous protocol format, JS
API sends to SDK via browser plug-in according to the protocol format of agreement and requests, and SDK is inserted after receiving request by browser
Part is to JS API returned data or response.
The third mode: JS API and SDK establishes communication channel by independent HTTP Server, i.e. JS API and
When being communicated on the communication channel, HTTP Server is asked as forwarding device, JS API to HTTP Server transmission SDK
It asks, is equally returned via HTTP Server to JS API after forwarding the request, SDK to receive request to SDK from HTTP Server
Return data or response.
The management to mobile terminal realized in webpage includes but is not limited to the following aspects: one is will be mobile whole
The information at end is sent to webpage;The second is the resource data in webpage is imported mobile terminal;The third is to the number in mobile terminal
According to being operated.The present invention will be described in detail combined with specific embodiments below.
Fig. 2 is the method flow diagram provided in an embodiment of the present invention being managed to mobile terminal, as shown in Fig. 2, the party
Method can specifically include following steps:
Step 201: when the webpage for being embedded in JS API is opened by user, whether the JS API detection end user PC is mounted with
SDK, if it is not, then prompt user installation SDK, and step 202 is executed after detecting that the end user PC is mounted with SDK;If so,
Then follow the steps 202.
It can include SDK sniff functional interface in JS API, once the webpage for being embedded in the JS API is opened by user, then SDK
Sniff functional interface, which is just triggered, detects whether the end user PC is mounted with SDK, can be by such as in webpage if be fitted without
Upper pop-up window or on webpage flashing mark etc. modes prompt user installation SDK.While prompting user installation SDK,
The link that can also further provide for installation SDK facilitates user to install SDK at the end PC.
Certainly, if defaulting all ends PC is fitted with SDK, without executing above-mentioned steps 201, step is directly executed
202.
Step 202: the JSONP communication channel between JS API and SDK is established in a manner of using SDK as HTTP Server.
No matter the mode for establishing communication connection can use any side using any one in three kinds of above-mentioned modes
Formula purpose is provided to establish the communication channel of a real-time duplex between JS API and SDK, realizes cross-domain access.In this hair
It is described for establishing JSONP communication channel in bright embodiment.
Step 203:JS API obtains current mobile terminal connection from SDK by JSONP communication channel.
In this step, JS API is sent to SDK by JSONP communication channel and obtains current mobile terminal connection
JSONP request;After SDK receives JSONP request, determines the mobile terminal connection currently connecting with the SDK, will move
Terminal connection returns to JSAPI according to the format of agreement.What the process used is exactly above-mentioned JSONP long poll mode.
If the mode for establishing communication connection between JS API and SDK is other communication channels, supported according to other communication channels
Agreement sends request and returned data or response, is in this way, repeating no more in subsequent embodiment.
Step 204: if existing mobile terminal connects SDK, thening follow the steps 205;If connecting SDK without mobile terminal,
It then prompts user to connect mobile terminal, after JS API gets existing mobile terminal connection SDK, executes step 205.
JS API can know whether existing mobile terminal connection SDK from the current mobile terminal connection of acquisition,
If there has been no mobile terminals to connect SDK at present, JS API can be using the pop-up window such as on webpage or on webpage
The modes such as flashing mark prompt user to connect mobile terminal.
If user connects mobile terminal to SDK, due to the mechanism of JSAON long poll, mobile terminal can be connected feelings by SDK
Condition is sent to JS API, and JS API can know existing mobile terminal connection SDK immediately.
If knowing that only one mobile terminal is connected to SDK according to current mobile terminal connection, can default
The mobile terminal is destination mobile terminal, and JS API further can also prompt user to confirm.In addition, if according to current mobile
Terminal connection knows that there are more than one mobile terminals to be connected to SDK, then JS API can further prompt user from
Middle selection target mobile terminal, and will be sent in destination mobile terminal step 205 below together with related administrative information
SDK。
Step 205:JS API sends carrying pair to SDK by JSONP communication channel according to operation of the user on webpage
The JSONP request of the related administrative information and destination mobile terminal information of mobile terminal.
The JSONP request that step 206:SDK parsing receives, and target is moved according to the related administrative information that parsing obtains
Dynamic terminal executes corresponding processing, and implementing result is returned to JS API by JSONP communication channel.
Wherein related administrative information can be following several situations:
The first situation: related administrative information is to obtain the instruction of information of mobile terminal, and such case can correspond to use
Want the case where showing the information of mobile terminal on webpage at family.What SDK was executed at this time is to the management of destination mobile terminal: root
The corresponding informance in destination mobile terminal is obtained according to the instruction for obtaining information of mobile terminal and JS is returned to by communication channel
API, the corresponding informance in destination mobile terminal that will acquire for JS API are presented on webpage.
Such as when user wants for the picture in mobile phone to be uploaded on webpage to carry out such as picture searching, picture than equity
Operation can then be embedded in the button of " uploading picture of mobile telephone ", when the user clicks when the button, the JS of embedded web page on webpage
The destination mobile terminal information that API can will acquire instruction and the user's selection of mobile terminal picture data carries
SDK is sent in JSONP request.After SDK receives JSONP request, it will be able to obtain corresponding shifting from destination mobile terminal
Dynamic terminal image data simultaneously returns to JS API for showing on webpage.Further, SDK can after receiving JSONP request
To obtain the image data list in destination mobile terminal first and return to JS API, JS API is by the image data list exhibition
It is selected on present webpage for user, after user's selection target picture, Target Photo information is carried request in JSONP again by JS API
In be sent to SDK, SDK obtains Target Photo data from destination mobile terminal again and returns to JS API, and JS API is by target
Picture is presented on webpage.
For another example if user wants for information of mobile terminal to be presented on webpage merely, it can be embedding on administration web page
Enter the button for such as " showing mobile phone list of application ", when the user clicks after the button, the JS API of embedded web page can will be obtained
It takes the destination mobile terminal information of instruction and the user's selection of mobile terminal list of application to carry to be sent in JSONP request
SDK.SDK obtains the list of application in destination mobile terminal after receiving JSONP request and returns to JS API, and JS API is in pipe
Show the list of application on reason webpage.
Second situation: related administrative information is that the resource data on webpage is imported to the instruction of mobile terminal, this feelings
Condition would correspond to the application that user wants to import the resource data on webpage on mobile terminal, such as webpage and be easily selected by a user
Downloading is installed the multi-medium datas such as video, picture or audio to mobile terminal, on webpage and is easily selected by a user and is downloaded to movement
Terminal.The management to destination mobile terminal that SDK is executed at this time are as follows: import the resource data on webpage in destination mobile terminal
Default directory or the target directory specified of user under.
In this case JS API can carry resource data to be imported, lead-in mode and destination mobile terminal information
SDK is sent to by JSONP communication channel in JSONP request, wherein resource data to be imported can be to be downloaded or peace
The url of the application of dress, the url of video to be downloaded, picture or audio are also possible to be downloaded or installation application data, to
These resources such as text data, video data, image data or the audio data of downloading itself.
After SDK receives JSONP request, JSONP request is parsed, it will be to be imported according to the lead-in mode carried in request
Resource data imports destination mobile terminal.For example, resource data to be imported is that certain is answered if lead-in mode is to download and install
Url, then SDK according to the url downloading it is corresponding be applied to the end PC, then by downloading application installation to target move
Terminal.For another example resource data to be imported is the url of certain video, then SDK is according under the url if lead-in mode is downloading
Corresponding video is carried to the end PC, the video of downloading is then imported into mobile terminal.For another example if lead-in mode is downloading,
Resource to be imported is text data, then this article notebook data is directly imported mobile terminal by SDK.
Further, implementing result can be returned to JS API by JSONP communication channel by SDK, such as under
Carry or installation success or not as a result, the result etc. of video download success or not.In addition, SDK can also will be in implementation procedure
The event of middle generation returns to JS API by JSONP communication channel, such as in the case where downloading some application, SDK is responsible for
It downloads the data of the application and the data of the application is imported into mobile terminal, SDK can generate downloading in real time in the process of implementation
Progress simultaneously returns to JSAPI, and such user can be seen by way of such as pop-up window under the application on webpage
Degree of being loaded into, the path that can also locally save SDK return to JS API, and user can pass through such as pop-out on webpage
The mode of mouth, which is seen, to be applied in the path that PC is saved.
More specifically, it is mobile resource data can be imported target when resource data is imported destination mobile terminal by SDK
Under the catalogue defaulted in terminal, user can also be prompted to input target directory on webpage, JS API is carried in JSONP request
The information of the target directory, SDK import resource data under the target directory of destination mobile terminal.
The third situation: related administrative information is the instruction operated to the data in mobile terminal, and such case can
The case where operation to data in mobile terminal is realized by webpage is wanted to correspond to user.At this time SDK execute to target
The management of mobile terminal may is that the information list for obtaining destination mobile terminal and be sent to JS API, JS by communication channel
The information list is presented on webpage for user's therefrom selection target data information by API, and the target data information is passed through
Communication channel is sent to SDK, executes indicated by above-mentioned related administrative information for SDK to the target data in destination mobile terminal
Operation.
For example, user wants that certain data in mobile terminal will be deleted, then it can be embedded on webpage and " delete mobile phone figure
The button of piece ", when the user clicks when the button, the JS API of embedded web page can by the instruction for deleting mobile terminal picture with
And the destination mobile terminal information of user's selection carries and is sent to SDK in JSONP request.After SDK receives JSONP request,
The picture list of available destination mobile terminal simultaneously returns to JS API, which is presented to by JS API on webpage
User, after user's therefrom selection target picture, Target Photo information is carried and is sent to SDK in JSONP request by JS API,
SDK can from destination mobile terminal delete target picture.Further, SDK can be by the execution knot of delete target picture
Fruit returns to JS API, shows implementing result on webpage for JS API.Meanwhile SDK is in the execution of delete target picture
Implementation progress can also be returned to JS API in journey, show implementation progress on webpage for JS API.
In this kind of situation, the data in above-mentioned mobile terminal can install application in the terminal, that is,
It says, the application in mobile terminal can be operated by the third situation.Such as user wants to pass through web page operation hand
Machine sends short message, then the button of such as " operating handset application " can be embedded on webpage, when the user clicks the button, is embedded in
Destination mobile terminal information (i.e. hand of instruction and user's selection that the JS API of webpage can apply operating handset
Machine) carry JSONP request in be sent to SDK.After SDK receives JSONP request, the application of available destination mobile terminal
List simultaneously returns to JS API, which is presented to user by JS API on webpage, when user therefrom answer by selection target
After (short message application), target application information is carried and is sent to SDK in JSONP request by JS API, and SDK can be from mobile phone
Middle opening short message application.And the specific behaviour to short message application is interacted by the communication between further JS API and SDK
The concrete operations to short message application are executed as information.
In addition in some cases, two kinds may be related to simultaneously in three cases above very to the management of mobile terminal
To three kinds of combination, for example, user found during browsing webpage one section it is interesting if, want by this section it is interesting if make
It is sent to friend for short message content, then if being embedded in JSAPI in the webpage, user, which clicks this section and talks about and trigger JS API, leads to
It crosses process described in above-mentioned second situation and imports mobile phone, in addition it can by clicking the certain tube-carriers provided on webpage
Function is managed, triggering JS API carries out short message transmission by process operating handset described in the third above-mentioned situation.
For another example user sees the telephone number for including in first merchant information, Yong Hudian during browsing webpage
It selects the telephone number and triggers JS API and mobile phone is imported by process described in above-mentioned second situation, in addition it can pass through
The certain additional management functions of being provided on webpage, triggering JS API by process operating handset described in the third above-mentioned situation into
The row telephone number is dialed.
It can know from the description of given example in three cases above, in embodiments of the present invention, SDK can will be held
Traveling degree and/or implementing result return to JS API by the communication channel between JS API and SDK, for JS API will execute into
Degree and/or implementing result are shown on webpage.
PC involved in the above embodiment of the present invention can include but is not limited to desktop computer, laptop etc., involved
And mobile terminal can include but is not limited to mobile phone, tablet computer etc..Above-mentioned mobile terminal and the connection at the end PC can use
The mode of the wired connections such as USB data line, can also be by the way of the wireless connections such as wifi.
Naming a specific example, it is assumed that user carries out the search of " baidu browser " on the browser at the end PC,
Search result web page can be as shown in figure 3, due to " Android baidu browser official version downloading _ hundred in embodiments of the present invention
This search result of degree mobile application " is the application resource suitable for mobile phone, therefore can be embedded in the search result web page
JS API, and " free download to mobile phone " this button is provided and selects to carry out application resource importing mobile phone for user to realize this
Application resource downloads to mobile phone.
When the browser of user jumps to the search result web page, whether JS API can detect the PC of user automatically
Prompt user installation SDK as shown in Figure 4 can be popped up, preferably if being fitted without SDK to user by installing SDK
Ground, can be embedded in the link of installation SDK in the window of the pop-up, and user clicks the link and (" please first downloads Baidu in figure
SDK ") it can directly carry out the installation of SDK.
If having installed SDK or after prompting user, user is mounted with SDK at the end PC, it will be able to establish webpage
JSONP communication channel between the SDK at the end JS API and PC.Then JS API is worked as by the JSONP communication channel from SDK acquisition
Preceding mobile terminal connection can be prompted if there has been no mobile terminals to be connected to SDK at this time in a manner of pop-up window
User connects mobile phone.As shown in Figure 5.
If user clicks the button of " free download to mobile phone ", JS API can browse hundred degree of android
The url of organ side's version is sent to SDK by JSONP request, after SDK receives JSONP request, is downloaded using the url corresponding
Using data to the end PC, mobile phone will be imported using data after the completion of downloading.Under SDK can be reported at any time in downloading process
Degree of being loaded into gives JS API, so that download progress is shown to user in the form of pop-up window on webpage, it can be with after the completion of downloading
The information completed will be downloaded and be stored in local path as implementing result and showed in the form of pop-up window on webpage
User.
Other than the application scenarios shown in the examples detailed above, JS API can also be embedded on the webpage of common website for leading
Multiple applications for mobile phone installation can be integrated by entering in the application of mobile phone, such as webpage shown in fig. 6, and provide " installation " button
For importing mobile phone.When the user clicks when the installation of certain application, the method that can be provided through the embodiment of the present invention pacifies the application
It is filled to user mobile phone, detailed process no longer describes.
One is provided again and includes the example of plurality of application scenes, as shown in fig. 7, working as user in the search box of search engine
When inputting " Han Han ", due to including the resource data of diversified forms, such as encyclopaedia data, microblog number in corresponding search results pages
According to, image data, video data, audio data etc., can all provide and lead for these different types of resource datas respectively
Enter the button of resource data to mobile phone, such as " installation Baidupedia to mobile phone " button shown in fig. 7, " installation Sina weibo
To mobile phone " button, " being downloaded to mobile phone " button in picture, " foradownloaded video to mobile phone " button, it is downloaded to mobile phone in music
Icon etc., the resource data of selection is imported into mobile phone for user.
Method and system provided in an embodiment of the present invention has following advantages it can be seen from above description:
1) present invention can be realized by the communication between the SDK for the end the JS API and PC installation being embedded in webpage in net
Management on page to the mobile terminal for being connected to SDK, gets rid of the limitation of client, the operation is more convenient.
2) resource that displaying live view arrives on webpage for user in the prior art, such as browsed on the browser of PC
Certain picture or certain application, it is desirable to it downloads or is installed in mobile phone, be difficult to realize, and the present invention then can easily exist user
The resource that displaying live view arrives on webpage imports mobile terminal.
In several embodiments provided by the present invention, it should be understood that disclosed system and method can pass through it
Its mode is realized.Execution unit in above system can store in a computer readable storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) or processor
(processor) part steps of each embodiment the method for the present invention are executed.And storage medium above-mentioned includes: USB flash disk, moves
Dynamic hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), the various media that can store program code such as magnetic or disk.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (22)
1. the method that a kind of pair of mobile terminal is managed, which is characterized in that this method comprises:
After the script applications interface JS API being embedded in S1, webpage is toggled, the related management of destination mobile terminal will be believed
The communication channel established between the Software Development Kit SDK that breath is installed by the JS API and the end PC is sent to the SDK;
S2, the SDK are executed according to the related administrative information received to the destination mobile terminal connecting with the SDK
Management.
2. the method according to claim 1, wherein before the step S1 further include:
S02, communication channel between the JS API and the SDK is established.
3. according to the method described in claim 2, it is characterized in that, the communication established between the JS API and the SDK is logical
Road includes:
Using SDK as hypertext transfer protocol server HTTP Server, established between the JS API and the SDK
JSONP communication channel;Alternatively,
Browser plug-in is installed at the end PC, JS API is opened to SDK by the browser plug-in, in the JS API and institute
State the communication channel established between SDK using the browser plug-in as middleware;Alternatively,
The communication channel using independent HTTP Server as forwarding device is established between the JS API and the SDK.
4. according to the method described in claim 2, it is characterized in that, before the step S02 further include:
S01, when the webpage for being embedded in the JS API is opened, whether the JS API detection end PC is mounted with SDK, if
It is no, then user installation SDK is prompted, and after detecting that the end PC is mounted with SDK, execute step S02, if it is, executing
Step S02.
5. the method according to claim 1, wherein before the step S1 further include:
S03, the JS API obtain current mobile terminal connection from the SDK by the communication channel, if existing
Mobile terminal connects the SDK, then executes the step S1;If connecting the SDK without mobile terminal, user is prompted to connect
Mobile terminal is connect, after existing mobile terminal connects the SDK, executes the step S1.
6. according to the method described in claim 5, it is characterized in that, if being known only according to current mobile terminal connection
One mobile terminal is connected to the SDK, then defaulting a mobile terminal is destination mobile terminal, alternatively, the JS API
Further prompt user is confirmed whether using a mobile terminal as destination mobile terminal;
If knowing that there are more than one mobile terminals to be connected to the SDK, institute according to current mobile terminal connection
State JS API prompt user therefrom selection target mobile terminal, and in the step S1 by the information of destination mobile terminal together with
The related administrative information is sent to the SDK.
7. according to claim 1 to method described in 6 any claims, which is characterized in that the related administrative information includes: to obtain
Resource data on webpage is imported the instruction of mobile terminal or to the data in mobile terminal by the instruction of information of mobile terminal
The instruction operated.
8. the method according to the description of claim 7 is characterized in that the related administrative information on the webpage is pressed when the user clicks
When button, the JS API being embedded in webpage is toggled, and determines the corresponding related administrative information of the clicked button of user.
9. the method according to the description of claim 7 is characterized in that when the related administrative information is to obtain information of mobile terminal
Instruction when, the management to the destination mobile terminal that is executed in the step S2 are as follows: the SDK is moved according to the acquisition
The instruction of dynamic end message obtains the corresponding informance in destination mobile terminal and returns to the JS by the communication channel
API, the corresponding informance in destination mobile terminal that will acquire for the JS API are presented on webpage;
When the related administrative information is that the resource data on webpage is imported the instruction of mobile terminal, in the step S2
The management to the destination mobile terminal executed are as follows: the resource data on the webpage is imported target movement eventually by the SDK
Under the target directory that default directory or user in end are specified;
When the related administrative information is the instruction operated to the data in mobile terminal, executed in the step S2
The management to the destination mobile terminal are as follows: the information list that the SDK obtains destination mobile terminal simultaneously passes through the communication
Channel returns to the JS API;The information list is shown that therefrom selection target data are believed for user on webpage by JS API
Breath, and the target data information is sent to the SDK by the communication channel;The SDK is in destination mobile terminal
Target data execute the operation of related administrative information instruction.
10. according to the method described in claim 9, it is characterized in that, when the related administrative information is by the resource on webpage
When data import the instruction of mobile terminal, the related administrative information further include: resource data to be imported or money to be imported
The url of source data;
The SDK downloads corresponding resource data to the end PC according to the url of the resource data to be imported, then will under
The resource data of load imports destination mobile terminal or the SDK and resource data to be imported is directly imported target movement eventually
End.
11. according to claim 1 to method described in 6 any claims, which is characterized in that the step S2 further include: the SDK
Implementation progress and/or implementing result are returned into the JSAPI by the communication channel, for the JS API by the execution
Progress and/or implementing result are shown on webpage.
12. the system that a kind of pair of mobile terminal is managed, which is characterized in that the system includes: the JS API being embedded in webpage
With the SDK of the end PC installation;
The JS API, after being toggled, by the related administrative information of destination mobile terminal by the JS API with
The communication channel established between the SDK is sent to the SDK;
The SDK, for executing according to the related administrative information received to the destination mobile terminal being connect with the SDK
Management.
13. system according to claim 12, which is characterized in that the JS API and SDK is also used to establish described
Communication channel between JS API and the SDK.
14. system according to claim 12, which is characterized in that the communication channel are as follows:
Using SDK as hypertext transfer protocol server HTTP Server, established between the JS API and the SDK
JSONP communication channel;Alternatively,
The communication channel using browser plug-in as middleware established between the JS API and the SDK, the browsing
Device plug-in unit is mounted on the end PC and develops JS API to SDK;Alternatively,
The communication channel using independent HTTP Server as forwarding device established between the JS API and the SDK.
15. system according to claim 13, which is characterized in that the JS API is also used to that the JS ought be embedded in
When the webpage of API is opened, whether the detection end PC is mounted with SDK, if it is not, then prompt user installation SDK, and detecting
It states after the end PC is mounted with SDK, the operation for the communication channel established between the JS API and the SDK is executed, if it is, holding
Row establishes the operation of the communication channel between the JS API and the SDK.
16. system according to claim 12, which is characterized in that the JS API is also used to through the communication channel
Obtain current mobile terminal connection from the SDK, if existing mobile terminal connects the SDK, execute it is described will be right
The related administrative information of destination mobile terminal is sent to described by the communication channel established between the JS API and the SDK
SDK;If connecting the SDK without mobile terminal, user is prompted to connect mobile terminal, described in mobile terminal have connects
After SDK, executes described will pass through to the related administrative information of destination mobile terminal and establish between the JS API and the SDK
Communication channel is sent to the SDK.
17. system according to claim 16, which is characterized in that if known only according to current mobile terminal connection
There is a mobile terminal to be connected to the SDK, then it is destination mobile terminal that the JS API, which defaults a mobile terminal, or
Person, the JS API further prompt user to be confirmed whether using a mobile terminal as destination mobile terminal;
If knowing that there are more than one mobile terminals to be connected to the SDK, institute according to current mobile terminal connection
It states JS API to be also used to prompt user's therefrom selection target mobile terminal, and by the information of destination mobile terminal together with the correlation
Management information is sent to the SDK.
18. system described in 2 to 17 any claims according to claim 1, which is characterized in that the related administrative information includes:
It obtains the instruction of information of mobile terminal, the resource data on webpage imported to the instruction of mobile terminal or in mobile terminal
The instruction that data are operated.
19. system according to claim 18, which is characterized in that the related administrative information on the webpage when the user clicks
When button, the JS API is toggled when the related administrative information button on the webpage of its insertion is clicked, and is determined and used
The corresponding related administrative information of the clicked button in family.
20. system according to claim 18, which is characterized in that when the related administrative information is to obtain mobile terminal letter
When the instruction of breath, the SDK believes when executing the management to the destination mobile terminal with specific reference to the acquisition mobile terminal
The instruction of breath obtains the corresponding informance in destination mobile terminal and returns to the JS API by the communication channel;The JS
The corresponding informance in destination mobile terminal that API is also used to will acquire is presented on webpage;
When the related administrative information is that the resource data on webpage is imported the instruction of mobile terminal, the SDK is being executed
When to the management of the destination mobile terminal, the resource data on the webpage is specifically imported to the default in destination mobile terminal
Under the target directory that catalogue or user specify;
When the related administrative information is the instruction operated to the data in mobile terminal, the SDK is being executed to institute
When stating the management of destination mobile terminal, the specific information list for obtaining destination mobile terminal is simultaneously returned to by the communication channel
The JS API;JS API is also used to show the information list on webpage for user's therefrom selection target data information,
And the target data information is sent to the SDK by the communication channel, for the SDK in destination mobile terminal
Target data executes operation indicated by the related administrative information.
21. system according to claim 20, which is characterized in that when the related administrative information is by the resource on webpage
When data import the instruction of mobile terminal, the JS API is also used to resource data to be imported or resource data to be imported
Url the SDK is sent to by the communication channel;
The SDK, is also used to download corresponding resource data according to the url of the resource data to be imported to the end PC,
Then the resource data of downloading is imported into destination mobile terminal, or resource data to be imported is directly imported into target movement eventually
End.
22. system described in 2 to 17 any claims according to claim 1, which is characterized in that the SDK, be also used to execute into
Degree and/or implementing result by the communication channel return to the JS API;
The JS API is also used to show the implementation progress and/or implementing result on webpage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310157711.5A CN103269396B (en) | 2013-05-02 | 2013-05-02 | The method and system that a kind of pair of mobile terminal is managed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310157711.5A CN103269396B (en) | 2013-05-02 | 2013-05-02 | The method and system that a kind of pair of mobile terminal is managed |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103269396A CN103269396A (en) | 2013-08-28 |
CN103269396B true CN103269396B (en) | 2019-02-05 |
Family
ID=49013005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310157711.5A Active CN103269396B (en) | 2013-05-02 | 2013-05-02 | The method and system that a kind of pair of mobile terminal is managed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103269396B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104571936A (en) * | 2013-10-28 | 2015-04-29 | 贝壳网际(北京)安全技术有限公司 | Management method and device for mobile terminal, and mobile terminal |
WO2015062494A1 (en) * | 2013-10-29 | 2015-05-07 | 北京奇虎科技有限公司 | Method and device for sdk uploading and downloading of a file |
CN103685472A (en) * | 2013-11-20 | 2014-03-26 | 卓易畅游(北京)科技有限公司 | Method and equipment used for providing resource information corresponding to mobile equipment |
CN103677925B (en) * | 2013-12-16 | 2017-09-26 | 百度在线网络技术(北京)有限公司 | The method and apparatus that a kind of resource imports intelligent terminal from PC |
CN103957234B (en) * | 2014-03-31 | 2018-05-04 | 北京奇虎科技有限公司 | The sending method and browser device of file are downloaded in browser |
CN104202390A (en) * | 2014-08-27 | 2014-12-10 | 百度在线网络技术(北京)有限公司 | Method and device for downloading online resources and pushing to mobile terminal |
CN104394237B (en) * | 2014-12-19 | 2018-07-13 | 北京奇虎科技有限公司 | The method and browser device communicated between browser and mobile terminal |
US10193737B2 (en) | 2014-12-19 | 2019-01-29 | Beijing Qihoo Technology Company Limited | Method for performing communication between browser and mobile terminal, and browser apparatus |
CN104796774A (en) * | 2015-03-23 | 2015-07-22 | 四川长虹电器股份有限公司 | Across-device application integrating method and system |
CN105653270A (en) * | 2015-12-29 | 2016-06-08 | 深圳市泰比特科技有限公司 | Development method of mobile phone client side application program |
CN107370775B (en) | 2016-05-11 | 2020-04-28 | 阿里巴巴集团控股有限公司 | Method and system for starting application |
CN107450909B (en) * | 2017-06-30 | 2020-09-08 | 武汉斗鱼网络科技有限公司 | Processing method and device for software development kit integration validity check |
CN109802999B (en) * | 2018-12-28 | 2021-07-13 | 北京指掌易科技有限公司 | Method for realizing mobile application function at PC end through VSA technology |
CN110198478B (en) * | 2019-05-10 | 2022-04-15 | 广州视源电子科技股份有限公司 | Interactive recording and broadcasting method, system, client, device, equipment and storage medium |
CN110300332B (en) * | 2019-06-18 | 2020-05-08 | 南京科源信息技术有限公司 | Game loading method and system based on IPTV |
CN111106983B (en) * | 2019-12-27 | 2021-09-21 | 杭州迪普科技股份有限公司 | Method and device for detecting network connectivity |
CN113923107B (en) * | 2021-10-14 | 2024-02-23 | 海南车智易通信息技术有限公司 | Method, device, equipment and medium for automatically switching multiple channels of instant messaging |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202841288U (en) * | 2012-03-27 | 2013-03-27 | 沈新莉 | Electronic starting system |
CN103049405A (en) * | 2013-01-16 | 2013-04-17 | 珠海市君天电子科技有限公司 | Management method and system of android device files |
-
2013
- 2013-05-02 CN CN201310157711.5A patent/CN103269396B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202841288U (en) * | 2012-03-27 | 2013-03-27 | 沈新莉 | Electronic starting system |
CN103049405A (en) * | 2013-01-16 | 2013-04-17 | 珠海市君天电子科技有限公司 | Management method and system of android device files |
Also Published As
Publication number | Publication date |
---|---|
CN103269396A (en) | 2013-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103269396B (en) | The method and system that a kind of pair of mobile terminal is managed | |
US11921996B2 (en) | Information processing terminal and control method | |
CN107515764B (en) | Application page opening method, terminal and computer readable storage medium | |
TWI685228B (en) | Information transmission method and device | |
TWI528282B (en) | Method for customizing launching of applications | |
US20150074548A1 (en) | Information Sharing Method and Apparatus | |
US20140047322A1 (en) | Method and system for browsing things of internet of things on ip using web platform | |
CN107070870A (en) | A kind of data capture method and device | |
US20230252043A1 (en) | Method, terminal and system for transmitting file between multiple terminals | |
CN104965848A (en) | Front-end resource loading method and apparatus | |
TW201737681A (en) | Method and apparatus for implementing instant messaging | |
CN105867714A (en) | Application downloading method, apparatus and system | |
EP2928143A1 (en) | Page operation processing method, device and terminal | |
WO2015112518A1 (en) | Actionable notifications | |
CN106911666B (en) | Wearable intelligent device and message processing method and system thereof | |
CN103023870A (en) | Method, device and equipment for outputting data in message | |
CN104376090A (en) | Screen synchronization equipment of browser in computing equipment and mobile terminal | |
CN108334516A (en) | Information-pushing method and device | |
EP2897053B1 (en) | Device management method and apparatus | |
CN103607454A (en) | Method for setting private proxy server for Android system browser | |
CN108667915B (en) | Information pushing system, method and device | |
CN109697129A (en) | A kind of information sharing method, equipment and computer readable storage medium | |
CN106209584B (en) | User information processing method, client and server Internet-based | |
CN104375831A (en) | Method, device and system realizing communication between webpage and applications on terminal equipment | |
CN108549586B (en) | Information processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |