CN107102904A - Exchange method and device based on mixed application - Google Patents
Exchange method and device based on mixed application Download PDFInfo
- Publication number
- CN107102904A CN107102904A CN201710198199.7A CN201710198199A CN107102904A CN 107102904 A CN107102904 A CN 107102904A CN 201710198199 A CN201710198199 A CN 201710198199A CN 107102904 A CN107102904 A CN 107102904A
- Authority
- CN
- China
- Prior art keywords
- api
- web page
- primary layer
- specified
- message
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
- G06F9/548—Object oriented; Remote method invocation [RMI]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of exchange method and device based on mixed application, belong to field of computer technology.Mixed application includes primary layer and WWW Web page, and method includes:Web page obtains request data, and request data at least includes first and specifies API, and first specifies the API that API is primary layer to be called;The first specified protocol that Web page is supported according to primary layer is encoded to request data, obtains call request message, and sends call request message, and call request message carries request data;When primary layer receives call request message, call request message is decoded according to the first specified protocol, request data is obtained;Primary layer is according to request data, and reflection calls first to specify API, and meet with a response result.The present invention realizes the interaction between Web page and primary layer, has broken the barrier between Web page and primary layer, has improved flexibility.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of exchange method and dress based on mixed application
Put.
Background technology
Application program generally includes native applications program, Web (WWW) application programs and mixed application, therein
Mixed application is integrated with the function of both native applications program and web application.With the continuous extension of development platform
And the gradually complication of business function, mixed application is widely applied with its cross-platform exploitation advantages.
Referring to Fig. 1, primary layer is included in mixed application, primary layer can run the primary page, primary layer can be with
System layer API (Application Programming Interface, application programming interface) is directly invoked, so that real
The corresponding function that existing operating system is provided.Web page is also included in mixed application, Web page can not directly invoke system
Layer API, can only call the API of browser kernel, the API of browser kernel to can be used for calling system layer API, therefore, work as Web
During the API of page invocation browser kernel, can indirectly calling system layer API so that realize operating system provide corresponding work(
Energy.
During the present invention is realized, inventor has found that correlation technique at least has problems with:In mixing application journey
In sequence, it can not be interacted between primary layer and Web page, there is limitation.
The content of the invention
The problem of in order to solve correlation technique, the embodiments of the invention provide a kind of interaction side based on mixed application
Method and device.The technical scheme is as follows:
First aspect includes original there is provided a kind of exchange method based on mixed application, the mixed application
Generating layer and WWW Web page, methods described include:
Idsplay order is obtained, the idsplay order is used to indicate the display Web page;
By the interacting message between the Web page and the primary layer, obtained by the Web page by described primary
The target data that layer is provided, the target data is the data needed for showing during the Web page;
Shown based on the target data that the Web page is got;
Wherein, the message that wherein one lateral offside in the Web page and the primary layer is sent uses the offside
The agreement of support is packaged.
Second aspect includes original there is provided a kind of exchange method based on mixed application, the mixed application
Generating layer and WWW Web page, methods described include:
The Web page obtains request data, and the request data at least includes first and specifies API, and described first specifies
API is the API of the primary layer to be called;
The first specified protocol that the Web page is supported using the primary layer is encoded to the request data, is obtained
To call request message, and the call request message is sent, the call request message carries the request data;
The primary layer obtains the call request message, using first specified protocol to the call request message
Decoded, obtain the request data;
The primary layer is according to the request data, and reflection calls described first to specify API, and meet with a response result.
The third aspect includes original there is provided a kind of interactive device based on mixed application, the mixed application
Generating layer and WWW Web page, described device include:
Acquisition module, for obtaining idsplay order, the idsplay order is used to indicate the display Web page;
Interactive module, for by the interacting message between the Web page and the primary layer, by the Web page
The target data provided by the primary layer is obtained, the target data is the data needed for showing during the Web page;
Display module, for being shown based on the target data that the Web page is got;
Wherein, the message that wherein one lateral offside in the Web page and the primary layer is sent uses the offside
The agreement of support is packaged.
Fourth aspect includes original there is provided a kind of interactive device based on mixed application, the mixed application
Generating layer and WWW Web page, described device include:Interactive module, the interactive module is included at primary processing unit and Web
Unit is managed, the primary processing unit runs the primary layer, and the Web processing units run the Web page;
The Web processing units, for obtaining request data, the request data at least includes first and specifies API, described
First specifies the API that API is the primary layer to be called;
The Web processing units, are additionally operable to the first specified protocol supported using the primary layer to the request data
Encoded, obtain call request message, and send the call request message, the call request message carries the request
Data;
The primary processing unit, for obtaining the call request message, using first specified protocol to described
Call request message is decoded, and obtains the request data;
The primary processing unit, is additionally operable to according to the request data, reflection calls described first to specify API, obtains
Response results.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Method and device provided in an embodiment of the present invention, the first specified protocol supported by Web page according to primary layer
Request data is encoded, call request message is obtained, and sends call request message, primary layer receives call request and disappeared
During breath, call request message decode according to the first specified protocol to obtain request data, and according to request data, reflection is adjusted
API is specified with first, meet with a response result, so that Web page can call the API of primary layer, realizes Web page and original
Interaction between generating layer, has broken the barrier between Web page and primary layer, has improved flexibility.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the structural representation for the mixed application that a kind of correlation technique provided in an embodiment of the present invention is provided;
Fig. 2A is a kind of structural representation of mixed application provided in an embodiment of the present invention;
Fig. 2 B are a kind of schematic diagrames of exchange method based on mixed application provided in an embodiment of the present invention;
Fig. 3 A are a kind of schematic diagrames of first specified protocol provided in an embodiment of the present invention;
Fig. 3 B are a kind of schematic diagrames for intercepting call request message provided in an embodiment of the present invention;
Fig. 3 C are a kind of schematic diagrames of matched character string provided in an embodiment of the present invention;
Fig. 3 D are a kind of schematic diagrames of decoding process provided in an embodiment of the present invention;
Fig. 3 E are that a kind of reflect provided in an embodiment of the present invention calls the first schematic diagram for specifying API;
Fig. 3 F are a kind of schematic diagrames of second specified protocol provided in an embodiment of the present invention;
Fig. 3 G are a kind of schematic diagrames for encoding flow provided in an embodiment of the present invention;
Fig. 3 H are a kind of schematic diagrames of Web page provided in an embodiment of the present invention;
Fig. 4 A are a kind of structural representations of interactive device based on mixed application provided in an embodiment of the present invention;
Fig. 4 B are a kind of structural representations of interactive device based on mixed application provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Before the present invention is described in detail, description below is carried out to concept of the present invention first:
1st, mixed application:
Application program includes native applications program, weblication and mixed application, and wherein native applications program is
The application program of operating system is directly run on, weblication is operate in the application program in browser, and mixes application
Program employs a part of native applications program and a part of weblication, so a part for mixed application is in behaviour
Make to run in system, a part is run on web.
2nd, mixed application includes primary layer and Web page, and primary layer can run the primary page, the primary page
Data storage is among equipment, without connecting network.And Web page is run in browser kernel, it is necessary to which equipment is connected
Downloaded after network from network.
3rd, call request message:The request message that Web page is sent towards primary layer, first supported using primary layer is specified
Agreement is obtained after being encoded, the API provided for request call primary layer.
4th, response message is called:Primary layer returns to the sound of Web page based on the call request message that Web page is sent
Message is answered, the second specified protocol supported using Web page is obtained after being encoded, can represent that primary layer calls API knot
Really.
5th, the API of primary layer includes following three types:
The first is can be directly realized by the API of certain function, is realized in primary layer after the API, and primary layer reflection is adjusted
Corresponding function can be realized during with the API.And Web page can by interacting to call the API with primary layer so that
Corresponding function can also be realized.
It is for second the API for calling system layer API, is realized in primary layer after the API, primary layer reflection calls this
During API, system layer API corresponding with the API can be called indirectly, so as to realize the corresponding functions of system layer API.And Web
The page can be by interacting to call the API, so as to call system layer API corresponding with the API indirectly, in fact with primary layer
Existing corresponding functions of system layer API.
The third is the API for calling primary page API, after primary layer realizes the API, and primary layer reflection calls this
During API, the API of the primary page corresponding with the API can be called indirectly, so as to realize the corresponding work(of API of the primary page
Energy.And Web page can be by interacting to call the API, so as to call indirectly corresponding with the API primary with primary layer
The API of the page, realizes interacting for Web page and the primary page.
6th, system layer API:API in operating system, can realize the function that operating system is provided, such as obtain behaviour when calling
Make the type of system, obtain screen size, obtain network connection situation, the memory space for obtaining equipment etc..
The API of the primary page:The function relevant with the primary page can be realized when calling, such as in primary page-downloading number
During, the API for obtaining data download progress.
Fig. 2A is a kind of structural representation of mixed application provided in an embodiment of the present invention, referring to Fig. 2A, the mixing
Application program includes Web page, the primary page, primary layer, browser kernel and system layer.Wherein, primary layer can be direct
Calling system layer API or the primary page API, Web page can call the API of browser kernel, indirectly calling system
Layer API.
In the embodiment of the present invention, it can be interacted between Web page and primary layer, then Web page can be called primary
The API of layer, can also be by the API of the API of primary layer calling system layer API or the primary page indirectly.
Because the API of browser kernel is only capable of calling section system layer API, Web page is caused to pass through browser kernel
Can only calling section system layer API, application is narrow.And in the present embodiment, Web page passes through primary layer calling system layer
During API, the limitation of browser kernel can be broken away from, more system layer API is called, extends application.
Moreover, when Web page calls the API of the primary page by primary layer, it is possible to achieve with interacting for the primary page, enter
And realize the function of the primary page.Further, because Web page can realize the function of primary layer, and Web page can be with
Dynamically it is updated, instantaneity is strong, therefore the primary page can be replaced using Web page when developing the page, not only page
Face does not result in any influence functionally, additionally it is possible to improve the instantaneity of the page.
Fig. 2 B are a kind of schematic diagrames of exchange method based on mixed application provided in an embodiment of the present invention, are applied to
In mixed application, the mixed application can be installed in the various electronics such as mobile phone, computer, tablet personal computer,
The interaction agent of the embodiment of the present invention is the primary layer and Web page in mixed application.Referring to Fig. 2 B, this method includes:
200th, Web page obtains request data.
In the embodiment of the present invention, primary layer includes one or more API, and by calling, different API can be realized not
Same function.When Web page needs a certain API for calling primary layer to provide, request data can be obtained, in the request data
At least include first and specify API, can also include to be entered to the parameter of the first specified API, the second specified API and specified sequence
Row number.
Wherein, the first specified API provides for primary layer, API that Web page is to be called, typically can be character string lattice
Formula or extended formatting;Second specified API is called for primary layer after the first specified API, is sent to Web page and is called response to disappear
The API that need to be called during breath, or string format or extended formatting;Assigned serial number is call request message to be generated
Sequence number.
In practical application, Web page can set configuration information, and the configuration information, which can include Web page, to be needed to realize
A variety of functions, and need when realizing a certain or a variety of functions the API of primary layer that calls, Web page is matched somebody with somebody according to this
When confidence breath determination will call the first specified API, step 201 can be performed and obtain the request data.
201st, the first specified protocol that Web page is supported using primary layer is encoded to request data, is obtained calling and is asked
Message is sought, and sends the call request message.
Wherein, the first specified protocol refers to the agreement that primary layer is supported, can be jsb agreements or other agreements etc., base
In first specified protocol, Web page can be interacted with primary layer.
In a kind of possible implementation, the first specified protocol includes specifying tactic multiple portions according to first
Point, and between the plurality of part by first specify mark separate, this first specify mark can for "://”、“/”、“”、
First at a variety of marks, and diverse location such as " (", ") " specifies mark can be the same or different, for example, some
First used between middle Part I and Part II specifies mark and to use between Part II and Part III
First specify mark be”.
Wherein, some includes the first designated character string, request API, extremely request API to be entered parameter, response API
And message SN;Wherein the first designated character string is used to indicate that corresponding call request message supports the first specified protocol, example
Such as " jsb ", " jsb:// " etc., request API is the API of Web page primary layer to be called, and response API is that primary layer return is adjusted
With the API for the Web page that need to be called during response message, message SN is used to determine unique corresponding call request message, no
Different with the message SN of call request message, message SN could be arranged to different digital or different character strings
Deng.
For example, first specified protocol (jsb agreements) can as shown in Figure 3A, including following some:
1st, agreement character string:Fixed character string, for identifying whether for jsb agreements, to be commonly defined as " jsb ".
2nd, API is asked:Need the API of primary layer called, generally character string;
3rd, API is responded:The API that Web page is provided, can be by calling the second specified API to lead to after the completion of primary layer processing
Know Web page;
4th, message SN:It is generally digital for the uniqueness of identification request message;
5th, message body:Can be Json (JavaScript Object comprising to be entered to the parameter for asking specified API
Notation, JavaScript object mark) form or extended formatting.Such as the message body includes:
Parameter 1:XXX,
Parameter 2:XXX,
Parameter 3:XXX,
Parameter 4:XXX,
……
Based on the regulation of above-mentioned first specified protocol, Web page can specify API as request API using first, by second
Specify API as response API, using assigned serial number as message SN, order and the first specified mark are specified according to first
Note, specifies API by the first designated character string, first, to be entered specifies API parameter, second to specify API and specified sequence to first
Row number constitutes call request message, to be sent to primary layer.
API is specified to be getMobileInfo based on the first specified protocol shown in Fig. 3 A, first, assigned serial number is 1,
Second specifies API to be getMobileInfo_callback, and the parameter to be entered to the first specified API includes two " param1
=xxx ", " param2=yyy ", then use first specified protocol encoded obtained by call request message can be for:
jsb://getMobileInfo/1/getMobileInfo_callbackParam1=xxx&param2=yyy.
202nd, primary layer obtains call request message, and call request message is decoded using the first specified protocol, obtained
To request data.
Mixed application includes browser kernel, when Web page sends any request message, is actually to browsing
Device kernel sends the request message, and browser kernel obtains the request message, and the request message can be responded.
And in embodiments of the present invention, in order to ensure that primary layer can obtain the call request message of Web page transmission, when
When Web page sends call request message, primary layer can intercept the call request message, judge whether the call request message props up
Hold the first specified protocol.If the call request message supports the first specified protocol, represent that the call request message is destined to
Primary layer, then primary layer can be responded to the call request message, clear without the call request message is sent to
Look at device kernel.And if the call request message does not support the first specified protocol, represent that the call request message is not destined to
Primary layer, then primary layer is not responded to the call request message, and the call request message is sent into browser kernel
.
As shown in Figure 3 B, primary layer, can be by rewriteeing when intercepting the call request message
ShouldOverrideUrlLoading mode is carried out.
Wherein, primary layer judges whether the call request message supports the first specified protocol, can include:Judgement is called please
Whether include first designated character string, if call request message includes the first designated character string, it is determined that calling if asking in message
Request message supports the first specified protocol.
As shown in Figure 3 C, because the shouldOverrideUrlLoading request messages intercepted are all character string property
Request message, therefore when being judged, the method that can use string matching matches first 6 in call request message
Whether character is " jsb:// ", if it is, intercept this call request message, if it is not, then by the call request message
It is sent to browser kernel.
Primary layer is intercepted after the call request message, call request message can be decoded using the first specified protocol,
Request data is obtained, to carry out response processing according to the request data.Further, refer to based on step 201 is provided first
Determine agreement, primary layer can specify first in order and call request message to specify mark according to first, by call request
Message be decomposed into the first designated character string, first specify API, it is to be entered to first specify API parameter, second specify API and
Assigned serial number.
As shown in Figure 3 D, primary layer uses protocol decoder, and the call request message of jsb agreements is converted into clear in structure
List.
203rd, primary layer is according to request data, and reflection calls first to specify API, and meet with a response result.
When request data include first specify API and it is to be entered to first specify API parameter when, primary layer reflection calls
During the first specified API, parameter is inputted to first and specified in API, meet with a response result.
As shown in FIGURE 3 E, primary layer utilizes albedo, the first specified API is searched in the API of primary layer, and call
The first specified API, response results are generated during the first specified API is performed.
The API of primary layer includes three types:The API of certain function can be directly realized by, for calling system layer API's
The API and API for calling primary page API.
In the first possible implementation, the first specified API is original when can be directly realized by the API of certain function
The first specified API is called in generating layer reflection, can directly obtain response results after the first specified API is performed.
In second of possible implementation, the first specified API is the API for invocation target system layer API, primary
Layer reflection is called after the first specified API, and the first specified API starts to perform, can invocation target system layer in implementation procedure
API, now goal systems layer API, which is performed, meets with a response result, returns to primary layer.
In the third possible implementation, the first specified API is to refer to for the 3rd of the primary page of invocation target
Determine API API, primary layer reflection is called after the first specified API, and the first specified API starts to perform, and can be adjusted in implementation procedure
API is specified with the 3rd of the primary page of target the, the 3rd specifies API to perform the result that meets with a response, and returns to primary layer.
204th, the second specified protocol that primary layer is supported using Web page is encoded to response results, obtains calling sound
Answer message.
In a kind of possible implementation, the second specified protocol includes specifying tactic multiple portions according to second
Point, and between some by second specify mark separate, this second specify mark can for "://”、“/”、“”、
Second at a variety of marks, and diverse location such as " (", ") " specifies mark can be the same or different, for example, some
Used between middle Part I and Part II second specify mark for:", and used between Part II and Part III
Second specify mark be (", used between Part III and Part IV second specify mark for) ".
Wherein, some includes the second designated character string, request API, response API, response results and message SN;
Wherein the second designated character string be used for indicate it is corresponding call response message support the second specified protocol;Request API is Web page
The API of the primary layer called;Response API is that primary layer returns to the API for calling the Web page that need to be called during response message;Response
The result obtained when being as a result primary layer call request API, response results can include response data and responsive state, number of responses
The response data generated during according to for primary layer call request API, responsive state be used for represent primary layer call request API whether into
Work(;Message SN is used to determine unique corresponding call request message, with the message sequence in the call request message that is responded
Row number is identical;
For example, second specified protocol (javascript agreements) can as illustrated in Figure 3 F, including following some:
1st, agreement character string:Fixed character string, for identifying whether for javascript agreements, to be commonly defined as
“javascript”。
2nd, API is responded:The response API stated in the call request message of transmission, calls the API to notify Web page
Face;
3rd, message body:Response results are carried, response results are included:
Message SN:XXX,
Response results:XXX,
Ask API:XXX,
……
Correspondingly, primary layer first can specify API as request API, by the when generating this and calling response message using first
Two specify API as response API, using the assigned serial number in call request message as message SN, are specified according to second
Order and the second specified mark, specify API, the second specified API, response results by the second designated character string, first and specify
Set of serial numbers second specifies API to send this to Web page to call response message into calling response message, and then by calling this.
As shown in Figure 3 G, primary layer uses protocol encoder, after being encoded to response results, is specified by calling second
API sends call request message.
205th, primary layer sends to Web page and calls response message.
206th, Web page obtains and calls response message, using the second specified protocol to calling response message to decode, obtains
To response results.
When primary layer calls the second specified API, it can be sent by the second specified API and call response message, so that
Web page obtains this by the second specified API and calls response message.
Web page by this second specify API to obtain this and call response message when, can be provided according to the second specified protocol
Second specify order and second specify mark, response message will be called to be decomposed into the second designated character string, first specify
API, second specify API, response results and assigned serial number.
Method provided in an embodiment of the present invention, the first specified protocol supported by Web page using primary layer is to request
Data are encoded, and obtain call request message, and send call request message, when primary layer obtains call request message, are adopted
Call request message decode with the first specified protocol and obtains request data, and according to request data, reflection calls first
Specify API, meet with a response result so that Web page can call the API of primary layer, realize Web page and primary layer it
Between interaction, broken the barrier between Web page and primary layer, improved flexibility.
Further, realized in primary layer for calling system layer API API or for calling primary page API
API, then Web page when calling the API of primary layer can indirectly calling system layer API or the primary page API, without
Be limited in by the API Calls system layer API of browser kernel, extend the mode for calling API, so extend Web can be real
Existing function.And the system layer API that the API of browser kernel can not be called is directed to, it can be called, expanded by primary layer
The scope for the system layer API that Web page can be called is opened up.
Further, the primary page can be used with off line, and the speed of service is fast, and bandwagon effect is good.Web page can be dynamic
Ground is updated, and instantaneity is strong.But, because Web page can not be run in an operating system, many API can not be called, and be caused
Web page receives many restrictions.And in the present embodiment, because Web page can realize the function of the primary page, and Web
The page can be dynamically updated, and instantaneity is strong, therefore can be using Web page come instead of primary page when developing the page
Face, does not result in any influence functionally not only, additionally it is possible to improve the instantaneity of the page.
The method interacted between Web page and primary layer that above-described embodiment is provided can apply to show Web page
Primary layer is needed to provide under the scene of target data during face.Under this scene, this method may comprise steps of:
210th, idsplay order is obtained, the idsplay order is used to indicate to show Web page.
Wherein, the idsplay order can operate triggering by user to the confirmation of Web page, or in mixed application
The operation triggering of Web page is opened, or can also be triggered by other modes.
220th, by the interacting message between Web page and primary layer, the target provided by primary layer is obtained by Web page
Data, the data needed for when target data is display Web page.Wherein, wherein one lateral offside in Web page and primary layer
The agreement that the message of transmission is supported using offside is packaged.
Web page needs to obtain target data, the number that the target data need to be shown when can be for display Web page when showing
According to, or the data that backstage need to be applied during display Web page.Because the target data is provided by primary layer, because
This, it is necessary to carry out interacting message with primary layer when Web page will obtain the target data.
The method provided based on above-mentioned Fig. 2 B illustrated embodiments, in step 200, the first specified API that Web page is obtained
For obtaining target data, when performing above-mentioned steps 201-203 afterwards, primary layer, which can reflect, calls the first specified API, obtains
To the target data, when performing above-mentioned steps 204 afterwards, primary layer can be encoded using target data as response results
After obtain calling response message, then when performing above-mentioned steps 206, Web page is to calling after response message decodes, you can
Obtain the target data.
Wherein, when the first specified API is used to directly obtain target data, the first specified API is called in primary layer reflection, i.e.,
The target data can be directly obtained;
Or, first specifies API to be used for invocation target system layer API, and goal systems layer API is used to obtain target data
When, primary layer is according to request data, and reflection calls first to specify API, when performing the first specified API, invocation target system layer
API, obtains target data;
Or, first, which specifies API to be used for the 3rd of the primary page of invocation target, specifies API, and the 3rd specifies API to be used to obtain
During target data, primary layer is according to request data, and reflection calls first to specify API, when performing the first specified API, calls mesh
Mark the primary page the 3rd specifies API, obtains target data.
230th, shown based on the target data that Web page is got.
Referring to Fig. 3 H, Fig. 3 H are provided to contain in a kind of Web page for being used to recommend application, the Web page and recommended
Multiple applications of user.During primary page-downloading application A, Web page with the primary page by carrying out message friendship
Mutually, download progress " 60% " and current download state " paused " of the primary page to application A can be got, this is shown in
In Web page.
In addition to above-mentioned primary layer provides the scene of target data for Web page, above-described embodiment provide Web page with
The method interacted between primary layer can also be applied under several scenes, and for example Web page controls the primary page to perform certain
Scene operated a bit etc..
Referring to Fig. 3 H, the primary page is paused to be downloaded using in the case of A, and Web page can be according to current download shape
State " paused " " clicks on and continued " button showing, when getting the triggering command to " click on and continue " button, Web page may be used also
To carry out interacting message with primary layer, and then the primary page is controlled to continue download application A.
Fig. 4 A are a kind of structural representations of interactive device based on mixed application provided in an embodiment of the present invention.Ginseng
See Fig. 4 A, mixed application includes primary layer and WWW Web page, and the device includes:
Acquisition module 401, for obtaining idsplay order, idsplay order is used to indicate to show Web page;
Interactive module 402, for by the interacting message between Web page and primary layer, being obtained by Web page by primary
The target data that layer is provided, the data needed for when target data is display Web page;
Display module 403, for being shown based on the target data that Web page is got;
Wherein, the agreement that the message that wherein one lateral offside in Web page and primary layer is sent is supported using offside is entered
Row encapsulation.
Wherein, interactive module 402 is used to perform the step of Web page is interacted with primary layer in above-described embodiment.
Fig. 4 B are a kind of structural representations of interactive device based on mixed application provided in an embodiment of the present invention.Ginseng
See Fig. 4 B, mixed application includes primary layer and WWW Web page, and the device includes:Interactive module 402, interactive module
402 include primary processing unit 4021 and Web processing units 4022, and primary processing unit 4021 runs primary layer, and Web processing is single
Member 4022 runs Web page;
Primary processing unit 4021 is used to perform the operation that primary layer is performed in above-described embodiment;
Web processing units 4022 are used to perform the operation that Web page is performed in above-described embodiment.
It should be noted that:Above-described embodiment provide the interactive device based on mixed application when interacting,
Only with the division progress of above-mentioned each functional module for example, in practical application, as needed can distribute above-mentioned functions
Completed by different functional modules, the internal structure that will run the equipment of mixed application is divided into different function moulds
Block, to complete all or part of function described above.In addition, the friendship based on mixed application that above-described embodiment is provided
Mutual device belongs to same design with the exchange method embodiment based on mixed application, and it implements process and refers to method reality
Example is applied, is repeated no more here.
Fig. 5 is a kind of structural representation of terminal provided in an embodiment of the present invention.The terminal can run above-described embodiment
Shown mixed application, and implement above-mentioned primary layer and the function performed by Web page.Specifically:
Terminal 500 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters
The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, biography
Defeated module 170, include the part such as one or the processor 180 and power supply 190 of more than one processing core.This area
Technical staff is appreciated that the restriction of the terminal structure shown in Fig. 5 not structure paired terminal, can include than illustrate it is more or
Less part, either combines some parts or different parts arrangement.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station
After downlink information is received, transfer to one or more than one processor 180 is handled;In addition, being sent to up data are related to
Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other-end.The radio communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short
Messaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, the terminal institute as shown by above-mentioned exemplary embodiment
Corresponding software program and module, processor 180 are stored in the software program and module of memory 120 by operation, from
And various function application and data processing are performed, such as realize the interaction based on video.Memory 120 can mainly include storage
Program area and storage data field, wherein, the application program that storing program area can be needed for storage program area, at least one function
(such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses what is created according to terminal 500
Data (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, can be with
Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states
Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 pairs of storages
The access of device 120.
Input block 130 can be used for the numeral or character information for receiving input, and generation to be set with user and function
The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch
Sensitive surfaces 131 and other input terminals 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use
(such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table for touch operation of the family on or near it
Operation on face 131 or near touch sensitive surface 131), and corresponding linked set is driven according to formula set in advance.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180
The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input terminals 132.Specifically,
Other input terminals 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for the information that is inputted by user of display or the information for being supplied to user and terminal 500
Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.
Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal
Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it
Touch after operation, send processor 180 to determine the type of touch event, with type of the preprocessor 180 according to touch event
Corresponding visual output is provided on display panel 141.Although in Figure 5, touch sensitive surface 131 and display panel 141 are conducts
Two independent parts are inputted and input function to realize, but in some embodiments it is possible to by touch sensitive surface 131 with showing
Panel 141 is integrated and realizes input and output function.
Terminal 500 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 500 is moved in one's ear
Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
The other sensors such as the gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that can also configure in terminal 500, herein
Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 500.Audio
Electric signal after the voice data received conversion can be transferred to loudspeaker 161, sound is converted to by loudspeaker 161 by circuit 160
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after voicefrequency circuit 160 is received
Voice data is converted to, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to such as another end
End, or voice data is exported to memory 120 so as to further processing.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone and terminal 500.
Terminal 500 can help user to send and receive e-mail, browse webpage and access streaming video by transport module 170
Deng it has provided the user broadband internet wirelessly or non-wirelessly and accessed., can be with although Fig. 5 shows transport module 170
Understand, it is simultaneously not belonging to must be configured into for terminal 500, can not change the essential scope of invention as needed completely
It is interior and omit.
Processor 180 is the control centre of terminal 500, and each portion of whole mobile phone is linked using various interfaces and circuit
Point, by operation or perform and be stored in software program and/or module in memory 120, and call and be stored in memory 120
Interior data, perform the various functions and processing data of terminal 500, so as to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;It is preferred that, processor 180 can integrated application processor and modem processor,
Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing
Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 500 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event
The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal 500 can also include camera, bluetooth module etc., will not be repeated here.Specifically in this reality
Apply in example, the display unit of terminal 500 is touch-screen display, and terminal 500 also includes memory, and one or one
More than program, one of them or more than one program storage in memory, and be configured to by one or one with
Upper computing device said one or more than one program bag, which contain, to be used to implement primary layer and Web page institute in above-described embodiment
Perform the instruction of operation.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.
Claims (15)
1. a kind of exchange method based on mixed application, it is characterised in that the mixed application include primary layer and
WWW Web page, methods described includes:
Idsplay order is obtained, the idsplay order is used to indicate the display Web page;
By the interacting message between the Web page and the primary layer, obtained and carried by the primary layer by the Web page
The target data of confession, the target data is the data needed for showing during the Web page;
Shown based on the target data that the Web page is got;
Wherein, the message that wherein one lateral offside in the Web page and the primary layer is sent is supported using the offside
Agreement be packaged.
2. according to the method described in claim 1, it is characterised in that described by between the Web page and the primary layer
Interacting message, the target data that is provided by the primary layer is obtained by the Web page, including:
The Web page obtains request data, and the request data at least includes the first specified API, and the described first specified API is
The API of the primary layer to be called, and the described first specified API is for obtaining the target data;
The Web page uses the first specified protocol that the primary layer is supported, the request data is encoded, adjusted
With request message, the call request message is sent to the primary layer;
The primary layer obtains the call request message, and the call request message is carried out using first specified protocol
Decoding, obtains the request data, and according to the request data, reflection calls described first to specify API, obtains the target
Data;
The primary layer uses the second specified protocol that the Web page is supported, the target data is encoded, adjusted
With response message, and to the Web page send described in call response message;
The Web page calls response message described in obtaining, and calls response message to enter to described using second specified protocol
Row decoding, obtains the target data.
3. method according to claim 2, it is characterised in that first specified protocol includes specifying order according to first
Mark is specified to separate by first between some of arrangement, and the multiple part;
The multiple part includes the first designated character string, request API, the parameter of the request API, response API
And message SN;Wherein described first designated character string is used to indicate that corresponding call request message supports described first to specify
Agreement, the request API is the API of the Web page primary layer to be called, and the response API is the primary layer
The API for calling the Web page that need to be called during response message is returned to, the message SN is used to determine unique corresponding tune
Use request message;
The request data includes described first and specifies API, to be entered to described first to specify API parameter, second to specify API
And assigned serial number, described second specifies API to be called for the primary layer to Web page return need to call during response message
The Web page API, the assigned serial number be call request message to be generated sequence number;
The Web page uses the first specified protocol that the primary layer is supported, the request data is encoded, adjusted
With request message, including:
Specify API as the request API using described first, API is specified as the response API using described second, will be described
Assigned serial number is used as the message SN;
Order and the first specified mark are specified according to described first, the first designated character string, described first are referred to
Determine API, the to be entered to described first specified API parameter, the described second specified API and the assigned serial number composition tune
Use request message.
4. method according to claim 3, it is characterised in that the primary layer obtains the call request message, is used
First specified protocol is decoded to the call request message, obtains the request data, including:
The primary layer obtains the call request message, and order and the first specified mark are specified according to described first,
The call request message is decomposed into the first designated character string, the described first specified API, first finger
Determine API parameter, the described second specified API and the assigned serial number.
5. method according to claim 2, it is characterised in that the primary layer obtains the call request message, is used
First specified protocol is decoded to the call request message, obtains the request data, including:
The primary layer obtains the call request message, judges whether include the first designated character in the call request message
String, the first designated character string is used to indicate that corresponding call request message supports first specified protocol;
When it is determined that the call request message includes the first designated character string, using first specified protocol to institute
State call request message to be decoded, obtain the request data.
6. method according to claim 2, it is characterised in that described according to the request data, reflection calls described the
One specifies API, obtains the target data, including:
Described first specifies API to be used for invocation target system layer API, and the goal systems layer API is for obtaining the number of targets
According to the primary layer is according to the request data, and reflection calls described first to specify API, and API is specified performing described first
When, the goal systems layer API is called, the target data is obtained;Or,
Described first, which specifies API to be used for the 3rd of the primary page of invocation target, specifies API, and the described 3rd specifies API to be used to obtain
The target data, the primary layer is according to the request data, and reflection calls described first to specify API, is performing described the
During one specified API, call the described 3rd of the primary page of the target to specify API, obtain the target data.
7. method according to claim 2, it is characterised in that second specified protocol includes specifying order according to second
Mark is specified to separate by second between some of arrangement, and the multiple part;
The multiple part includes the second designated character string, request API, response API, response results and message SN;Wherein
The second designated character string is used to indicating corresponding to call response message to support second specified protocol, the request API
When the API of the primary layer called for the Web page, the response API are that response message is called in primary layer return
The API for the Web page that need to be called, the response results are that the primary layer calls the result obtained during the request API,
The message SN is used to determine unique corresponding call request message;
The primary layer uses the second specified protocol that the Web page is supported, the target data is encoded, institute is obtained
State and call response message, including:
Specify API as the request API using described first, API is specified as the response API using described second, will be described
Target data regard the assigned serial number in the call request message as the message sequence as the response results
Number;
Order and the second specified mark are specified according to described second, the second designated character string, described first are referred to
Determine to call response message described in API, the described second specified API, the target data and assigned serial number composition.
8. method according to claim 7, it is characterised in that call response message described in the Web page acquisition, use
Second specified protocol calls response message to decode to described, obtains the target data, including:
The Web page calls response message described in obtaining, and order and the second specified mark are specified according to described second,
Response message is called to be decomposed into the second designated character string, the described first specified API, the described second specified API, institute by described
State target data and the assigned serial number.
9. a kind of exchange method based on mixed application, it is characterised in that the mixed application include primary layer and
WWW Web page, methods described includes:
The Web page obtains request data, and the request data at least includes the first specified API, and the described first specified API is
The API of the primary layer to be called;
The first specified protocol that the Web page is supported using the primary layer is encoded to the request data, is adjusted
With request message, and the call request message is sent, the call request message carries the request data;
The primary layer obtains the call request message, and the call request message is carried out using first specified protocol
Decoding, obtains the request data;
The primary layer is according to the request data, and reflection calls described first to specify API, and meet with a response result.
10. method according to claim 9, it is characterised in that first specified protocol includes specifying suitable according to first
The some of sequence arrangement, and specify mark to separate by first between the multiple part;
The multiple part includes the first designated character string, request API, the parameter of the request API, response API
And message SN;Wherein described first designated character string is used to indicate that corresponding call request message supports described first to specify
Agreement, the request API is the API of the Web page primary layer to be called, and the response API is the primary layer
The API for calling the Web page that need to be called during response message is returned to, the message SN is used to determine unique corresponding tune
Use request message;
The request data includes described first and specifies API, to be entered to described first to specify API parameter, second to specify API
And assigned serial number, described second specifies API to be called for the primary layer to Web page return need to call during response message
The Web page API, the assigned serial number be call request message to be generated sequence number;
The first specified protocol that the Web page is supported using the primary layer is encoded to the request data, is adjusted
With request message, including:
Specify API as the request API using described first, API is specified as the response API using described second, will be described
Assigned serial number is used as the message SN;
Order and the first specified mark are specified according to described first, the first designated character string, described first are referred to
Determine API, the to be entered to described first specified API parameter, the described second specified API and the assigned serial number composition tune
Use request message.
11. method according to claim 9, it is characterised in that the primary layer is called according to the request data, reflection
Described first specifies API, and meet with a response result, including:
Described first specifies API to be used for invocation target system layer API, and the primary layer is called according to the request data, reflection
Described first specifies API, when performing the described first specified API, calls the goal systems layer API, obtains the response knot
Really;Or,
Described first, which specifies API to be used for the 3rd of the primary page of invocation target, specifies API, and the primary layer is according to the number of request
According to reflection calls described first to specify API, when performing the described first specified API, calls the described of the primary page of the target
3rd specifies API, obtains the response results.
12. method according to claim 9, it is characterised in that the primary layer is called according to the request data, reflection
After described first specified API, the result that meets with a response, methods described also includes:
The second specified protocol that the primary layer is supported using the Web page is encoded to the response results, is adjusted
Use response message;
Response message is called described in the primary layer to Web page transmission;
The Web page calls response message described in obtaining, and calls response message to enter to described using second specified protocol
Row decoding, obtains the response results.
13. method according to claim 12, it is characterised in that second specified protocol includes specifying suitable according to second
The some of sequence arrangement, and specify mark to separate by second between the multiple part;
The multiple part includes the second designated character string, request API, response API, response results and message SN;Wherein
The second designated character string is used to indicating corresponding to call response message to support second specified protocol, the request API
When the API of the primary layer called for the Web page, the response API are that response message is called in primary layer return
The API for the Web page that need to be called, the response results are that the primary layer calls the result obtained during the request API,
The message SN is used to determine unique corresponding call request message;
The second specified protocol that the primary layer is supported using the Web page is encoded to the response results, is adjusted
With response message, including:
Specify API as the request API using described first, API is specified as the response API using described second, will be described
The assigned serial number in call request message is used as the message SN;
Order and the second specified mark are specified according to described second, the second designated character string, described first are referred to
Determine to call response message described in API, the described second specified API, the response results and assigned serial number composition.
14. a kind of interactive device based on mixed application, it is characterised in that the mixed application include primary layer and
WWW Web page, described device includes:
Acquisition module, for obtaining idsplay order, the idsplay order is used to indicate the display Web page;
Interactive module, for by the interacting message between the Web page and the primary layer, being obtained by the Web page
The target data provided by the primary layer, the target data is the data needed for showing during the Web page;
Display module, for being shown based on the target data that the Web page is got;
Wherein, the message that wherein one lateral offside in the Web page and the primary layer is sent is supported using the offside
Agreement be packaged.
15. a kind of interactive device based on mixed application, it is characterised in that the mixed application include primary layer and
WWW Web page, described device includes:Interactive module, the interactive module includes primary processing unit and Web processing is single
Member, the primary processing unit runs the primary layer, and the Web processing units run the Web page;
The Web processing units, for obtaining request data, the request data at least includes first and specifies API, described first
Specify the API that API is the primary layer to be called;
The Web processing units, the first specified protocol for being additionally operable to be supported using the primary layer is carried out to the request data
Coding, obtains call request message, and sends the call request message, and the call request message carries the number of request
According to;
The primary processing unit, for obtaining the call request message, is called using first specified protocol to described
Request message is decoded, and obtains the request data;
The primary processing unit, is additionally operable to according to the request data, reflection calls described first to specify API, meets with a response
As a result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710198199.7A CN107102904B (en) | 2017-03-29 | 2017-03-29 | Interaction method and device based on hybrid application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710198199.7A CN107102904B (en) | 2017-03-29 | 2017-03-29 | Interaction method and device based on hybrid application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107102904A true CN107102904A (en) | 2017-08-29 |
CN107102904B CN107102904B (en) | 2022-05-17 |
Family
ID=59676122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710198199.7A Active CN107102904B (en) | 2017-03-29 | 2017-03-29 | Interaction method and device based on hybrid application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107102904B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107678805A (en) * | 2017-09-08 | 2018-02-09 | 阿里巴巴集团控股有限公司 | The call method and device of a kind of application programming interfaces |
CN109327530A (en) * | 2018-10-31 | 2019-02-12 | 网易(杭州)网络有限公司 | A kind of information processing method, device, electronic equipment and storage medium |
CN109471739A (en) * | 2018-10-24 | 2019-03-15 | 百度在线网络技术(北京)有限公司 | Data transmission method and device between local application and webpage kernel |
CN109471614A (en) * | 2018-11-01 | 2019-03-15 | 上海找钢网信息科技股份有限公司 | The method and device of application program mixed developing |
CN109684156A (en) * | 2018-08-27 | 2019-04-26 | 平安科技(深圳)有限公司 | Monitoring method, device, terminal and storage medium based on mixed mode applications |
WO2020019458A1 (en) * | 2018-07-27 | 2020-01-30 | 平安科技(深圳)有限公司 | Page switching method of hybrid application, framework, computer device and storage medium |
CN110795154A (en) * | 2019-10-10 | 2020-02-14 | 深圳市证通电子股份有限公司 | Cross-platform device driving method, device, equipment and computer readable storage medium |
CN111722936A (en) * | 2019-03-20 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Communication method and device of page end and native end, electronic equipment and readable medium |
CN111768666A (en) * | 2019-04-01 | 2020-10-13 | 小船出海教育科技(北京)有限公司 | Method and terminal for interacting online classroom |
CN112818265A (en) * | 2021-02-22 | 2021-05-18 | 北京拉勾网络技术有限公司 | Interaction method and mobile terminal |
CN113448654A (en) * | 2020-12-07 | 2021-09-28 | 北京新氧科技有限公司 | Interaction method and device for web application program and native application program |
CN111722936B (en) * | 2019-03-20 | 2024-05-31 | 阿里巴巴集团控股有限公司 | Page end and original end communication method and device, electronic equipment and readable medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657118A (en) * | 2013-11-18 | 2015-05-27 | ***通信集团公司 | Native + Web mixed mobile application achieving method and device |
CN104750487A (en) * | 2015-03-25 | 2015-07-01 | 广州市悦智计算机有限公司 | Development method and starting method for mobile terminal APP |
CN104808971A (en) * | 2014-01-24 | 2015-07-29 | 北京三星通信技术研究有限公司 | Network application program manager, method, device and mobile terminal |
CN105450731A (en) * | 2015-11-05 | 2016-03-30 | 珠海多玩信息技术有限公司 | Method and apparatus for realizing communication between web layer and native layer |
CN106020845A (en) * | 2016-05-31 | 2016-10-12 | 广东能龙教育股份有限公司 | Client hybrid rapid development method |
CN106095598A (en) * | 2016-05-31 | 2016-11-09 | 腾讯科技(深圳)有限公司 | A kind of data processing method and client |
CN106445583A (en) * | 2016-08-31 | 2017-02-22 | 广州品唯软件有限公司 | Page display method, equipment and system |
-
2017
- 2017-03-29 CN CN201710198199.7A patent/CN107102904B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657118A (en) * | 2013-11-18 | 2015-05-27 | ***通信集团公司 | Native + Web mixed mobile application achieving method and device |
CN104808971A (en) * | 2014-01-24 | 2015-07-29 | 北京三星通信技术研究有限公司 | Network application program manager, method, device and mobile terminal |
CN104750487A (en) * | 2015-03-25 | 2015-07-01 | 广州市悦智计算机有限公司 | Development method and starting method for mobile terminal APP |
CN105450731A (en) * | 2015-11-05 | 2016-03-30 | 珠海多玩信息技术有限公司 | Method and apparatus for realizing communication between web layer and native layer |
CN106020845A (en) * | 2016-05-31 | 2016-10-12 | 广东能龙教育股份有限公司 | Client hybrid rapid development method |
CN106095598A (en) * | 2016-05-31 | 2016-11-09 | 腾讯科技(深圳)有限公司 | A kind of data processing method and client |
CN106445583A (en) * | 2016-08-31 | 2017-02-22 | 广州品唯软件有限公司 | Page display method, equipment and system |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107678805A (en) * | 2017-09-08 | 2018-02-09 | 阿里巴巴集团控股有限公司 | The call method and device of a kind of application programming interfaces |
WO2020019458A1 (en) * | 2018-07-27 | 2020-01-30 | 平安科技(深圳)有限公司 | Page switching method of hybrid application, framework, computer device and storage medium |
CN109684156B (en) * | 2018-08-27 | 2022-05-17 | 平安科技(深圳)有限公司 | Monitoring method, device, terminal and storage medium based on mixed mode application |
CN109684156A (en) * | 2018-08-27 | 2019-04-26 | 平安科技(深圳)有限公司 | Monitoring method, device, terminal and storage medium based on mixed mode applications |
CN109471739A (en) * | 2018-10-24 | 2019-03-15 | 百度在线网络技术(北京)有限公司 | Data transmission method and device between local application and webpage kernel |
CN109327530A (en) * | 2018-10-31 | 2019-02-12 | 网易(杭州)网络有限公司 | A kind of information processing method, device, electronic equipment and storage medium |
CN109471614A (en) * | 2018-11-01 | 2019-03-15 | 上海找钢网信息科技股份有限公司 | The method and device of application program mixed developing |
CN111722936B (en) * | 2019-03-20 | 2024-05-31 | 阿里巴巴集团控股有限公司 | Page end and original end communication method and device, electronic equipment and readable medium |
CN111722936A (en) * | 2019-03-20 | 2020-09-29 | 阿里巴巴集团控股有限公司 | Communication method and device of page end and native end, electronic equipment and readable medium |
CN111768666A (en) * | 2019-04-01 | 2020-10-13 | 小船出海教育科技(北京)有限公司 | Method and terminal for interacting online classroom |
CN110795154B (en) * | 2019-10-10 | 2024-02-06 | 深圳市证通电子股份有限公司 | Cross-platform device driving method, device and computer readable storage medium |
CN110795154A (en) * | 2019-10-10 | 2020-02-14 | 深圳市证通电子股份有限公司 | Cross-platform device driving method, device, equipment and computer readable storage medium |
CN113448654A (en) * | 2020-12-07 | 2021-09-28 | 北京新氧科技有限公司 | Interaction method and device for web application program and native application program |
CN113448654B (en) * | 2020-12-07 | 2024-03-01 | 北京新氧科技有限公司 | Interaction method and device for web application program and native application program |
CN112818265A (en) * | 2021-02-22 | 2021-05-18 | 北京拉勾网络技术有限公司 | Interaction method and mobile terminal |
CN112818265B (en) * | 2021-02-22 | 2023-11-10 | 北京拉勾网络技术有限公司 | Interaction method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107102904B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107102904A (en) | Exchange method and device based on mixed application | |
CN104618440B (en) | Smart machine control method and device | |
CN104639672B (en) | The method and apparatus for carrying out domain name mapping | |
CN104519485B (en) | Communication means, device and system between a kind of terminal | |
CN104618217B (en) | Share method, terminal, server and the system of resource | |
CN104683456B (en) | Method for processing business, server and terminal | |
CN106933525B (en) | A kind of method and apparatus showing image | |
CN104850406B (en) | A kind of method and apparatus for switching the page | |
CN107943489A (en) | Data sharing method and mobile terminal | |
CN105491135B (en) | Establish the method and device of data connection | |
CN106973330A (en) | A kind of screen live broadcasting method, device and system | |
CN106502906A (en) | A kind of method and apparatus of test application program | |
CN107168609A (en) | status bar display method, device and terminal | |
CN104699501B (en) | A kind of method and device for running application program | |
CN106371749A (en) | Method and device for terminal control | |
CN107590397A (en) | A kind of method and apparatus for showing embedded webpage | |
WO2015010466A1 (en) | Information display method and apparatus, and mobile terminal | |
CN105530222B (en) | Connection method for building up between multiple terminals, device and system | |
CN104660769B (en) | A kind of methods, devices and systems for adding associated person information | |
CN104820546B (en) | Function information methods of exhibiting and device | |
CN104869465A (en) | Video playing control method and device | |
CN108320148A (en) | A kind of resource transfers method and relevant device | |
CN109491670A (en) | A kind of page display method and terminal device | |
CN107957914A (en) | A kind of information processing method and mobile terminal | |
CN107577795A (en) | A kind of methods, devices and systems for recommending song |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |