CN106201610A - Web application accesses the method and device of the primary function of terminal - Google Patents
Web application accesses the method and device of the primary function of terminal Download PDFInfo
- Publication number
- CN106201610A CN106201610A CN201610529333.2A CN201610529333A CN106201610A CN 106201610 A CN106201610 A CN 106201610A CN 201610529333 A CN201610529333 A CN 201610529333A CN 106201610 A CN106201610 A CN 106201610A
- Authority
- CN
- China
- Prior art keywords
- primary
- feature card
- appointment
- primary function
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of Web application and access the method and device of the primary function of terminal, belong to field of terminal technology.Described method includes: receive the access request specifying primary function that Web application sends;According to this access request, primary function access modules is searched and specifies primary feature card, this primary function access modules accesses the interface of the primary function of terminal to this Web application for providing, and the primary feature card of this appointment accesses the interface of the primary function of this appointment to this Web application for providing;When finding the primary feature card of this appointment in this primary function access modules, access the primary function of this appointment by the primary feature card of this appointment.In the present invention, Web application can be by the primary function all of primary function of access modules random access terminal, and access process and Web apply the browser at place unrelated, are not limited by browser function, thus improve the serviceability that Web applies.
Description
Technical field
The present embodiments relate to field of terminal technology, access the primary merit of terminal particularly to a kind of Web (webpage) application
The method and device of energy.
Background technology
Web application refer to use B/S (Browser/Server, browser/server) framework, on a web browser run and
Carry out the application of data process on the server, owing to Web application is without downloading and updating, and in each operating system
Run, that is to say and can cross-platform run, thus obtained applying widely.Wherein, this Web is used to answer in the terminal as user
Used time, it may be necessary to accessed the primary function of this terminal by this Web application, the primary function of this terminal refers in terminal built-in
Function, and only native applications just can access all of primary function, the primary function of such as terminal can be speaker,
Photographic head, GPS (Global Positioning System, global positioning system), acceleration sensor etc..
At present, browser can provide some application interfaces API (Application Programming
Interface, application programming interface), access utilizing camera interface-getUserMedia etc. as provided.Run in Web application
During, when this Web application needs the primary function of appointment accessing terminal, this terminal firstly the need of searching this browser is
The no interface containing the access primary function of this appointment, if it does, then determine whether whether used browser supports that this connects
Mouthful, once judge that this interface supported by this browser, this Web application just can call this interface, directly to be visited by this interface
Ask this designated equipment primary function;If the browser used not this interface or do not support this interface, then this Web application
Will be unable to access the primary function of this appointment.
During realizing the present invention, inventor finds that prior art at least there is problems in that
The interface accessing primary function that can provide due to browser is not complete, that is to say the primary function supported not
Entirely, therefore Web application by the primary function of part of browser access terminal, and can only cannot access all primary merit of equipment
Energy.And, different browsers supports that the degree of primary function is different, such as uses same Web application to visit in different browsers
When asking same primary function, some browsers can use this primary function, have then cannot, thus limit Web application
Use.
Summary of the invention
In order to solve problem of the prior art, embodiments provide a kind of Web application and access the primary function of terminal
Method and device.Described technical scheme is as follows:
First aspect, it is provided that the method that a kind of Web application accesses the primary function of terminal, described method includes:
Receive the access request specifying primary function that Web application sends;
According to described access request, search in primary function access modules and specify primary feature card, described primary merit
Access modules can provide the interface of the access primary function of terminal for applying to described Web, the primary feature card of described appointment is used
In providing the interface accessing the primary function of described appointment to described Web application;
When finding the primary feature card of described appointment in described primary function access modules, former by described appointment
Raw feature card accesses the primary function of described appointment.
Alternatively, before the access request specifying primary function that described reception described Web application sends, also include:
The multiple primary feature card of storage in the configuration file of described primary function access modules is loaded into described former
In the plugin manager of raw function access modules;
Correspondingly, described when finding the primary feature card of described appointment in described primary function access modules, logical
Cross the primary feature card of described appointment and access the primary function of described appointment, including:
Judge whether the multiple primary feature card loaded in described plugin manager includes the primary function of described appointment
Plug-in unit;
When the multiple primary feature card loaded in described plugin manager includes the primary feature card of described appointment,
The primary function of described appointment is accessed by the primary feature card of described appointment.
Alternatively, before the access request specifying primary function that described reception described Web application sends, also include:
The mark of the multiple primary feature card of storage in the configuration file of described primary function access modules is loaded into
In the plugin manager of described primary function access modules;
Correspondingly, described when finding the primary feature card of described appointment in described primary function access modules, logical
Cross the primary feature card of described appointment and access the primary function of described appointment, including:
Judge whether the mark of the multiple primary feature card loaded in described plugin manager includes that described appointment is former
The mark of raw feature card;
When the mark of the multiple primary feature card loaded in described plugin manager includes the primary function of described appointment
During the mark of plug-in unit, it is judged that whether the primary feature card of described appointment is stored in described plugin manager;
When the primary feature card of described appointment has been stored in described plugin manager, by the primary function of described appointment
Plug-in unit accesses the primary function of described appointment.
Alternatively, described judge whether the primary feature card of described appointment is stored in described plugin manager after, also
Including:
When the primary feature card of described appointment is not stored in described plugin manager, according to the primary function of described appointment
The mark of plug-in unit, is downloaded to primary for described appointment feature card in described plugin manager from server;
The primary function of described appointment is accessed by the primary feature card of described appointment.
Alternatively, described primary function access modules is to be arranged in described terminal the module corresponding with described Web application.
Second aspect, it is provided that a kind of Web application accesses the device of the primary function of terminal, and described device includes:
Receiver module, for receiving the access request specifying primary function that Web application sends;
Search module, for according to described access request, search in primary function access modules and specify primary function to insert
Part, described primary function access modules accesses the interface of the primary function of terminal to described Web application for providing, and described appointment is former
Raw feature card accesses the interface of the primary function of described appointment to described Web application for providing;
Access modules, is used for when finding the primary feature card of described appointment in described primary function access modules,
The primary function of described appointment is accessed by the primary feature card of described appointment.
Alternatively, described device also includes:
First load-on module, for by the multiple primary function of storage in the configuration file of described primary function access modules
Plug-in unit is loaded in the plugin manager of described primary function access modules;
Correspondingly, described access modules includes:
Judging unit, described for judging whether the multiple primary feature card loaded in described plugin manager includes
Specify primary feature card;
First accesses unit, for including described finger when the multiple primary feature card loaded in described plugin manager
During fixed primary feature card, access the primary function of described appointment by the primary feature card of described appointment.
Alternatively, described device also includes:
Second load-on module, for by the multiple primary function of storage in the configuration file of described primary function access modules
The mark of plug-in unit is loaded in the plugin manager of described primary function access modules;
Correspondingly, described access modules includes:
Second judging unit, in the mark judging the multiple primary feature card loaded in described plugin manager be
The no mark including the primary feature card of described appointment;
3rd judging unit, for including when the mark of the multiple primary feature card loaded in described plugin manager
During the mark of the primary feature card of described appointment, it is judged that whether the primary feature card of described appointment is stored in described plugin manager
In;
Second accesses unit, when the primary feature card of described appointment has been stored in described plugin manager, by institute
State the primary feature card of appointment and access the primary function of described appointment.
Alternatively, described access modules also includes:
Download unit, for when the primary feature card of described appointment is not stored in described plugin manager, according to institute
State the mark specifying primary feature card, primary for described appointment feature card is downloaded to described plugin manager from server
In;
3rd accesses unit, for accessing the primary function of described appointment by the primary feature card of described appointment.
Alternatively, described primary function access modules is to be arranged in described terminal the module corresponding with described Web application.
The technical scheme that the embodiment of the present invention provides has the benefit that
In the embodiment of the present invention, terminal can receive Web application send specify primary function access request, and according to
This access request, searches in primary function access modules and specifies primary feature card, when in this primary function access modules
When finding the primary feature card of this appointment, the primary function of this appointment can be accessed by the primary feature card of this appointment, wherein,
This primary function access modules accesses the interface of the primary function of terminal to this Web application for providing, therefore real by the present invention
Execute example provide method, this Web application can by this primary function all of primary function of access modules random access terminal,
And access process is unrelated with the browser at Web application place, is not limited by browser function, thus improves Web application
Serviceability.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the method flow diagram that a kind of Web application that the present invention provides accesses the primary function of terminal;
Fig. 2 is the device block diagram that a kind of Web application that the present invention provides accesses the primary function of terminal;
Fig. 3 is the structural representation of a kind of terminal 300 that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Before the embodiment of the present invention is carried out detailed explanation, first the application scenarios of the embodiment of the present invention is given
Introduce.The embodiment of the present invention provide method be applied in terminal, this terminal can be computer, smart mobile phone, panel computer,
Notebook computer, Ultra-Mobile PC (English: Ultra-mobile Personal Computer, be called for short: UMPC),
(English: Personal Digital Assistant is called for short: PDA) etc., the embodiment of the present invention for net book, personal digital assistant
This is not limited.Further, this terminal can be provided with browser, can run such as social networking application, net in browser
Purchase the Web application of application etc..It addition, during Web application runs, according to the operation of user, Web application can also access
The primary function of terminal.
Fig. 1 is the method flow diagram that a kind of Web application that the embodiment of the present invention provides accesses the primary function of terminal, sees figure
1, the method can include following several step:
Step 101: receive the access request specifying primary function that Web application sends.
In the embodiment of the present invention, terminal can receive, when Web application runs, the primary function of appointment that Web application sends
Access request.
Wherein, this access request can trigger based on the display interface that this Web applies, and can be triggered by user, Yong Huke
To be triggered by assigned operation, this assigned operation can be clicking operation, slide, voice operating etc., the embodiment of the present invention
This is not limited.
Wherein, the access request of the primary function of this appointment can carry the mark of the primary function of this appointment or for indicating
Access the code etc. of the primary function of this appointment, with represent this access request for accessing the primary function of this appointment, the present invention implement
This is not limited by example.Wherein, the primary function of this appointment can be the arbitrary primary function of terminal built-in, such as speaker, Mike
Wind, photographic head, GPS, acceleration sensor, temperature sensor, compass, prompting message, gravity sensing etc., the embodiment of the present invention pair
Do not limit.
Such as, user can trigger the access request of photographic head, this visit by clicking on the imaging icon in the Web application page
The request of asking can be carried camera identification or call the code etc. of photographic head.
It addition, before step 101, also need to start this Web application in a browser.Specifically, this terminal can be at base
When browser receives the enabled instruction of Web application, start this Web application.And when starting Web application, can be by adjusting
This Web application is started, naturally it is also possible to starting this Web by additive method and apply, the present invention implements with start_url () interface
This is not limited by example.
Wherein, this enabled instruction can be triggered by user, and user can be triggered by assigned operation.Such as, user is permissible
The enabled instruction etc. of this Web application is triggered by the Web application icon of display in click browser.
It should be noted is that, the Web application shown in the embodiment of the present invention is Web application operation platform based on exploitation
Web application that is that generate and that can run in a browser.In the embodiment of the present invention, developer can be write with html5
Pure Web application is packaged into the Web that can run on different operating platform and applies, as Android, IOS, Blackberry,
The application etc. run on the operating platforms such as Windows Phone and Firefox OS, it is possible to the Web application after packing is sent out
Cloth is in the operating platform supported.
Need explanation on the other hand, in the embodiment of the present invention, for the ease of the primary merit of Web application free access terminal
Can, primary function access modules can be installed in the terminal, this primary function access modules is for providing access eventually to Web application
Hold the interface of primary function, so that terminal can be logical when receiving the access request of the primary function that Web application sends
Cross this primary function access modules and call the interface accessing primary function, thus realize the access to primary function.
Wherein, this primary function access modules can be cordova, and certainly along with the development of technology, this primary function is visited
Asking the module that module can also can realize above-mentioned functions for other, this is not done the modern times by the embodiment of the present invention.
Wherein, the mounting means of this primary function access modules can include any one in the following manner:
In first kind of way, this primary function access modules can be to be arranged in terminal with each Web application respectively
Corresponding module, that is to say, this terminal can install multiple primary function access modules, and each Web application is former corresponding to one
Raw function access modules, each Web application only accesses the primary function of terminal by corresponding primary function access modules.
It is possible to further Web application is together packed with corresponding primary function access modules, such as can be by Web
Application is packaged into an application program with corresponding primary function access modules, in order to when this Web application runs, can be by right
The primary function of the interface accessing terminal that the primary function access modules answered provides.
In the second way, this primary function access modules can also be for installing in the terminal with all Web application all
Corresponding module, that is to say, this terminal can only install a primary function access modules, this primary function access modules and institute
Having Web application correspondence, each Web application is the primary function being accessed terminal by this primary function access modules.
In the embodiment of the present invention, before utilizing this primary function access modules to access the primary function of terminal, also need to open
This primary function access modules dynamic.Wherein, the Starting mode of this primary function access modules can include appointing in the following manner
A kind of:
In first kind of way, terminal can start primary function access modules after starting Web application immediately, with
Just Web application can call the primary function of terminal at any time by primary function access modules.
In the second way, in order to economize on resources, terminal can also start primary after starting Web application the most immediately
Function access modules, only when receiving the access request of the primary function that Web application sends, just starts primary function and accesses
Module.
Wherein, when starting primary function access modules, LoadUrl () method can be used to start, it would however also be possible to employ
Additive method starts, and this is not limited by the embodiment of the present invention.Wherein, this terminal can be in this primary function access modules
The engineer applied Activitiy (activity class) generated starts LoadUrl () method, it is also possible to starting by other means
LoadUrl () method, this is not limited by the embodiment of the present invention.
It addition, after primary function access modules starts, so that this primary function access modules can be answered to Web
With providing the total interface accessing the primary function of terminal, it is also possible to this primary function access modules is initialized.Wherein, right
Primary function access modules carries out initialized process can include any one in the following manner:
In first kind of way, by the multiple primary feature card of storage in the configuration file of this primary function access modules
It is loaded in the plugin manager of this primary function access modules.
Wherein, each primary feature card in the plurality of primary feature card is corresponding to a primary merit in terminal
Can, for providing the interface accessing corresponding primary function to Web application.This plugin manager is for inserting the primary function loaded
Part is managed, in order in subsequent process, specifies the access request of primary function from this plugin manager according to receive
Call the primary feature card of appointment.
In this kind of mode, configuration file can store the concrete primary function corresponding to all primary functions of terminal and insert
Part, after primary function access modules starts, can load all concrete primary feature card of storage in this configuration file
In plugin manager.
In the second way, by the multiple primary feature card of storage in the configuration file of this primary function access modules
Mark be loaded in the plugin manager of this primary function access modules.
Wherein, the mark of primary feature card can be the title of primary feature card, ID (identification, body
Part identification number), it is also possible to for the class name of this primary feature card, such as class title etc., this is not limited by the embodiment of the present invention
Fixed.
In this kind of mode, in configuration file, storage has the primary feature card for accessing all primary functions of terminal
Mark, primary function access modules is carried out initialized during, in order to save initialization time, improve loading efficiency,
Without loading concrete primary feature card immediately, and can be only the multiple primary feature card that will store in configuration file
Mark is loaded in plugin manager, thus using the mark of primary feature card as searching mark, in order to according to this primary merit
The mark of energy plug-in unit calls the primary feature card of correspondence.
After loading completes, the mark of the plurality of primary feature card can be saved in plug-in unit list by this plugin manager
In, wherein, this plug-in unit list can be hashmap (Hash table), Database Lists etc., and this is not limited by the embodiment of the present invention
Fixed.
It addition, after the mark of the plurality of primary feature card is saved in plug-in unit list, this primary function access modules
Can also be referred to as the key value of corresponding primary feature card by service name, this service title can be corresponding primary merit
The sequence number etc. of energy plug-in unit, in subsequent process, this primary function access modules carries out the key value according to corresponding original function plug-in unit,
Can search the primary feature card of correspondence from this plugin manager, this is not limited by the embodiment of the present invention.
Such as, as a example by this primary function access modules is as cordava, terminal can given birth to when Web application starts
The engineer applied Activitiy become starts LoadUrl () method, thus starts cordava by LoadUrl () method, and
Start cordava is carried out a series of initialization.Wherein, when cordava is initialized, plugin manager
The class title of all plug-in unit plugin loaded from configuration file can be saved in one by pluginManager
In hashmap, and being referred to as the key value of corresponding plug-in unit plugin by service name, this service title can be that correspondence is slotting
The sequence number etc. of part plugin, this is not limited by the embodiment of the present invention.Completing after cordava initializes, this terminal can be with
Time receive the access request specifying primary function that Web application sends, and respond this access request by cordava.
It should be noted that the embodiment of the present invention is only this, primary function access modules includes configuration file and plug-in management
Illustrate as a example by device, and in actual application, when this primary function access modules does not include that configuration file only includes inserter tube
During reason device, this plugin manager can also directly store primary feature card or the mark of primary feature card, thus nothing
Need to load from configuration file, namely without this primary function access modules is initialized, the embodiment of the present invention pair
This does not limits.
Step 102: according to this access request, searches in primary function access modules and specifies primary feature card, and this refers to
Fixed primary feature card accesses the interface of the primary function of this appointment to this Web application for providing.
Wherein, according to the difference of primary function access modules initialization mode, search in primary function access modules and refer to
The process of fixed primary feature card is the most different.Specifically, primary function access modules is searched the primary feature card of appointment
Process can include any one in the following manner:
In first kind of way, when the first kind of way in based on step 101 initializes, that is to say, when should
In the configuration file of primary function access modules, the multiple primary feature card of storage is loaded into this primary function access modules
Time in plugin manager, this terminal can be searched the primary function of this appointment insert according to this access request in this plugin manager
Part.
In the second way, when the second way in based on step 102 initializes, that is to say, when should
In the configuration file of primary function access modules, the mark of the multiple primary feature card of storage is loaded into the access of this primary function
Time in the plugin manager of module, this terminal can search appointment primary first according to this access request in this plugin manager
The mark of feature card, when finding the mark of the primary feature card of this appointment, further according to the primary feature card of this appointment
The primary feature card of appointment that identifier lookup is corresponding.
Step 103: when finding the primary feature card of this appointment in this primary function access modules, by this appointment
Primary feature card accesses the primary function of this appointment.
First kind of way based on step 102, when finding the primary function of this appointment in this primary function access modules
During plug-in unit, the process being accessed the primary function of this appointment by the primary feature card of this appointment be may include that
Judge whether the multiple primary feature card loaded in this plugin manager includes the primary feature card of this appointment;
When the multiple primary feature card loaded in this plugin manager includes the primary feature card of this appointment, former by this appointment
Raw feature card accesses the primary function of this appointment.
In this kind of mode, it is concrete primary feature card due to what initialization procedure loaded in plugin manager,
Therefore, when receiving the access request specifying primary function, can directly search this appointment in this plugin manager primary
Feature card, when the multiple primary feature card loaded in this plugin manager includes the primary feature card of this appointment, also
Mean that when can find the primary feature card of this appointment, now can access this appointment by the primary feature card of this appointment
Primary function.
The second way based on step 102, when finding the primary function of this appointment in this primary function access modules
During plug-in unit, the process being accessed the primary function of this appointment by the primary feature card of this appointment be may include that
Judge whether the mark of the multiple primary feature card loaded in this plugin manager includes the primary merit of this appointment
The mark of energy plug-in unit;When the mark of the multiple primary feature card loaded in this plugin manager includes the primary function of this appointment
During the mark of plug-in unit, it is judged that whether the primary feature card of this appointment is stored in this plugin manager;When the primary function of this appointment
When plug-in unit has been stored in this plugin manager, access the primary function of this appointment by the primary feature card of this appointment.
In this kind of mode, it is not that concrete primary function is inserted due to what initialization procedure loaded in plugin manager
Part, but the mark of primary feature card, therefore, when receiving the access request specifying primary function, need first to insert at this
Part manager is searched the mark of the primary feature card of this appointment, when finding the mark of the primary feature card of this appointment, also
The most whether need to further determine that the corresponding primary feature card of appointment that identifies of feature card primary with this appointment loads the most
Instantiation, when the primary feature card of this appointment is stored in this plugin manager, also means that the primary feature card of this appointment
Load, that is to say instantiation, thus directly can access the primary function of this appointment by the primary feature card of this appointment.
It addition, in the above-mentioned second way, when the mark finding the primary feature card of this appointment in plugin manager
Know, but when the primary feature card of this appointment is not stored in this plugin manager, it is also possible to first insert according to the primary function of this appointment
The mark of part, is downloaded to primary for this appointment feature card in this plugin manager from server, more primary by this appointment
Feature card accesses the primary function of this appointment.
Wherein, this server can be to provide primary function to access the server of service for terminal, permissible in this server
Storage has multiple primary feature card, it is possible to be updated primary feature card.
In the embodiment of the present invention, when the primary feature card of this appointment is uninstantiated, need first this appointment of instantiation primary
Feature card, after instantiation completes, could access the primary function of this appointment by the primary feature card of this appointment.
Specifically, this terminal can utilize java this appointment of reflex mechanism instantiation former based on primary function access modules
Raw feature card, naturally it is also possible to using the additive method instantiation primary feature card of this appointment, the embodiment of the present invention is to this not
Limit.
If it addition, not only storage has the mark of multiple primary feature card, also storage to have multiple primary in this configuration file
Feature card, then when finding the mark of the primary feature card of this appointment in plugin manager, but the primary function of this appointment is inserted
When part is not stored in this plugin manager, it is also possible to load the primary feature card of this appointment from configuration file, the present invention is real
Execute example this is not limited.
In this kind of mode, when this Web application sends the access request specifying primary function for the first time, primary function accesses
In the plugin manager of module, only storage has the mark specifying primary feature card, does not load function primary with this appointment corresponding
The primary feature card of appointment, that is to say, the primary feature card of this appointment has not been yet instantiated, therefore at this time, it may be necessary to first according to should
The mark specifying primary feature card downloads the primary feature card of this appointment from server, then by the primary merit of appointment downloaded
The primary function of this appointment can be accessed by plug-in unit;Afterwards, when this Web application sends the access request of the primary function of this appointment again,
Owing to the primary feature card of this appointment has been loaded in this plugin manager, therefore without downloading or from configuration from server
File loads, directly can access the primary function of this appointment by the primary feature card of appointment stored.
In the embodiment of the present invention, by when primary function access modules is initialized, only by configuration file
The mark of primary feature card is loaded onto in plugin manager, in subsequent process when needs access and specify primary function, then under
Carry and specify primary feature card, save the initialized time, improve initialized efficiency, improve Consumer's Experience.
In prior art, when Web application accesses the primary function of terminal, need first to judge whether used browser props up
Hold the interface accessing primary function, if supporting, this primary function can be accessed, otherwise will be unable to use this primary function so that
Web application primary function accessed limited by browser bigger.And in the present embodiment, when Web application accesses primary function,
Browser is a display platform, and Web application can be by the interface of primary function access modules offer as native applications one
The all primary function of sample random access terminal, without being affected by browser self function so that Web application can be more
Add the primary function accessing terminal flexibly, easily, improve Consumer's Experience.
Further, when the primary feature card of this appointment has been stored in this plugin manager, primary by this appointment
Feature card accesses the process of the primary function of this appointment and can also include: when the primary feature card of this appointment has been stored in this plug-in unit
Time in manager, ask the primary feature card of this appointment, and to the confirmation response of this Web application this access request of transmission, by this
Web application calls this primary function according to this confirmation response.
Wherein, this primary function access modules can pass through specified function or the primary feature card of this appointment of code request,
When asking the primary feature card of this appointment by specified function, this specified function can be exec () function etc., and the present invention implements
This is not limited by example.
Further, the confirmation response of this access request can also include request message id and the confirmation letter of this access request
Breath, correspondingly, the process confirming response sending this access request to this Web application can also include: according to this request message
ID, searches this access request, and this confirmation is returned in this access request.Wherein, this confirmation is used for indicating this
Web application can access the primary function of this appointment.
Specifically, this terminal can utilize to specify search this access request of function lookup according to this request message id, and this refers to
Surely searching function can be callbackID function etc., naturally it is also possible to other search function, and this is not done by the embodiment of the present invention
Limit.
Wherein, during this confirmation is returned to this access request, this confirmation can be returned to this
In the receptance function of access request, this receptance function is for indicating the response results of this access request.Then in subsequent process, should
Web application can call this receptance function, and according to the access result in this receptance function, by the primary feature card of this appointment
The primary function of appointment of this terminal of interface interchange provided.Wherein, this receptance function can be success function etc., the present invention
This is not limited by embodiment.
It addition, the primary feature card of this appointment ought not found, or when the primary feature card of this appointment cannot call, also
The failure response of this access request can be sent to this Web application, be used for indicating this Web application can not access the primary merit of this appointment
Can, this is not limited by the embodiment of the present invention.
Further, may ask to the access of the primary function access modules different primary functions of transmission due to Web application
Asking, the access request of these different primary functions then can be responded by this primary function access modules respectively, thus to this Web
Application returns multiple response results, therefore in a kind of possible implementation, first multiple response results can be pressed response
Time sequencing leaves in a message queue, and this message queue returns to the response results of Web application for management.The most again
From this message queue, read response results by depositing order, and the response results of reading is sent the correspondence applied to this Web
In access request, in order to this access request accesses corresponding primary function according to corresponding response results.
Such as, as a example by this primary function access modules is as cordava, in a kind of possible implementation, cordava
In can include core library file, this core library file runs function, this core library text for storing core conventional for cordava
Part can include following content:
CordavaActivity:Cordova activity class entrance, that is to say and call primary feature card by Cordova
Entrance, after the initial work completing Cordova, can realize concrete primary function by CordovaActivity
Access.
PluginManager: plugin manager, stores for the primary feature card loading Cordova and manages
Reason.
ExposedJsApi: webpage calling interface, calls Native for javascript, that is to say and applies for Web
Page end call the primary function of terminal local, specifically for according to specifying primary function access request in plugin manager
PluginManager searches and calls the primary feature card of appointment.
NativeToJsMessageQueue: message queue, calls javascript for Native, that is to say for managing
The response to the primary function access request that Web application sends that reason terminal returns.
Correspondingly, core library file based on above-mentioned cordava, at the beginning of can carrying out cordava after cordava starts
Beginningization, specifically, cordava is carried out initialized during, can first affiliated partner to cordova
CordovaWebView initializes, and after CordovaWebView has initialized, then carries out plugin manager initially
Change, thus complete the whole initial work of cordava, in order to prepare for follow-up interact with web page contents.
Wherein, CordovaWebView is the affiliated partner of cordava, contains PluginManager,
The member variables such as NativeToJsMessageQueue, ExposedJsApi, and CordovaWebView is initialized also
It is i.e. that the content in above-mentioned variable is initialized.
Specifically, during CordovaWebView is initialized, CordovaWebView object can create a genus
Plugin manager PluginManager object, a message queue in current CordovaWebView object
Webpage in NativeToJsMessageQueue object and a web-page interface JavascriptInterface object is adjusted
With interface ExposedJsApi object, it is possible to ExposedJsApi object is added in CordovaWebView object, and
JavascriptInterface title can be: cordovaNative.
Wherein, create ExposedJsApi time need CordovaWebView PluginManager object and
NativeToJsMessageQueue object, and the code of the primary function of all of Web application and terminal self is alternately
Realized by the exec method of ExposedJsApi object.Such as, Web application can be sent out to Cordova by exec () function
Sending the access request specifying primary function, Cordova can specify primary feature card by exec () function request, and to this
The access request specifying primary function returns response results etc..
After CordovaWebView has initialized, CordovaWebView.loadUrl () can be called and start inserting
The initialization of part manager, that is to say that beginning loads plugin in PluginManager.In a kind of possible implementation
In, PluginManager loading plugin when can not instantiation plugin object immediately, and simply by plugin's
Class name is saved in a hashmap, by service name as key value.When Web application is passed through
During the primary function of the ExposedJsApi object requests terminal of JavascriptInterface interface, that is to say and pass through
Cordova is when terminal sends the access request of primary function, and the PluginManager in Cordova can look into from hashmap
Looking for the plugin of correspondence, and judge this plugin instantiation the most, if having not been yet instantiated, then utilizing java reflex mechanism example
Change this plugin, and by this primary feature card of exec () function request.
It addition, after the access request receiving the primary function that Web application sends, Cordova can be according to plug-in management
The lookup result of device determines the response results of access request, and this response results can be to confirm response or failure response.Due to Web
The access request of the primary function that application sends may have multiple, and corresponding response results also has multiple, and therefore Cordova also may be used
First response results is stored in NativeToJsMessageQueue.In subsequent process, Cordova can read from queue heads
Taking response results, and send response results to Web application, such as Cordova can be from NativeToJsMessageQueue
Queue heads pop head data, recycling callbackID function is reversely searched the access request of correspondence, and is returned data to this visit
Ask in the success function of request, in order to this Web applies the primary feature card according to this success function call terminal, from
And this primary function of interface interchange provided by this primary feature card is provided in the webpage of Web application.
By said method, native applications access modules can provide one group of API to make Web application possess at JavaScript
Webpage accesses the ability of the primary function of terminal, therefore, API Access terminal former using native applications access modules to provide
During beginning function, Web application with terminal without carrying out the mutual of code, as carry out Java or C alternately etc., can visit in webpage
Ask the primary function of terminal.And, in the embodiment of the present invention, Web application can be packaged into system native applications form concurrent
Cloth is in the operating platform supported, and the API that native applications access modules provides is basically identical at multiple operating platforms, because of
This, the method that the embodiment of the present invention provides goes for all operations platform, applied widely, and motility is high.
In sum, in the embodiment of the present invention, terminal can receive the access of the primary function of appointment that Web application sends please
Ask, and according to this access request, search in primary function access modules and specify primary feature card, when visiting in this primary function
Ask time module finds this appointment primary feature card, the primary merit of this appointment can be accessed by the primary feature card of this appointment
Can, wherein, this primary function access modules accesses the interface of the primary function of terminal to this Web application for providing, and therefore passes through
The method that the embodiment of the present invention provides, this Web application can be all of by this primary function access modules random access terminal
Primary function, and access process is unrelated with the browser at Web application place, is not limited by browser function, thus improves
The serviceability of Web application.
Fig. 2 is the device block diagram that a kind of Web application that the embodiment of the present invention provides accesses the primary function of terminal, sees Fig. 2,
This device may include that
Receiver module 201, for receiving the access request specifying primary function that Web application sends;
Search module 202, for according to this access request, search in primary function access modules and specify primary function to insert
Part, this primary function access modules accesses the interface of the primary function of terminal, the primary function of this appointment to this Web application for providing
Plug-in unit accesses the interface of the primary function of this appointment to this Web application for providing;
Access modules 203, for when finding the primary feature card of this appointment in this primary function access modules, logical
Cross the primary feature card of this appointment and access the primary function of this appointment.
Alternatively, this device also includes:
First load-on module, for inserting the multiple primary function of storage in the configuration file of this primary function access modules
Part is loaded in the plugin manager of this primary function access modules;
Correspondingly, this access modules includes:
Judging unit, for judging whether include this appointment in the multiple primary feature card loaded in this plugin manager
Primary feature card;
First accesses unit, for including that this appointment is former when the multiple primary feature card loaded in this plugin manager
During raw feature card, access the primary function of this appointment by the primary feature card of this appointment.
Alternatively, this device also includes:
Second load-on module, for inserting the multiple primary function of storage in the configuration file of this primary function access modules
The mark of part is loaded in the plugin manager of this primary function access modules;
Correspondingly, this access modules includes:
Whether the second judging unit, for judging in the mark of multiple primary feature card loaded in this plugin manager
Mark including the primary feature card of this appointment;
3rd judging unit, for including this when the mark of the multiple primary feature card loaded in this plugin manager
When specifying the mark of primary feature card, it is judged that whether the primary feature card of this appointment is stored in this plugin manager;
Second accesses unit. when the primary feature card of this appointment has been stored in this plugin manager, by this appointment
Primary feature card accesses the primary function of this appointment.
Alternatively, this access modules also includes:
Download unit, for when the primary feature card of this appointment is not stored in this plugin manager, according to this appointment
The mark of primary feature card, is downloaded to primary for this appointment feature card in this plugin manager from server;
3rd accesses unit, for accessing the primary function of this appointment by the primary feature card of this appointment.
Alternatively, this primary function access modules is to install module corresponding with this Web application in the terminal.
In the embodiment of the present invention, terminal can receive Web application send specify primary function access request, and according to
This access request, searches in primary function access modules and specifies primary feature card, when in this primary function access modules
When finding the primary feature card of this appointment, the primary function of this appointment can be accessed by the primary feature card of this appointment, wherein,
This primary function access modules accesses the interface of the primary function of terminal to this Web application for providing, therefore real by the present invention
Execute example provide method, this Web application can by this primary function all of primary function of access modules random access terminal,
And access process is unrelated with the browser at Web application place, is not limited by browser function, thus improves Web application
Serviceability.
It should be understood that the device that the Web application that above-described embodiment provides accesses the primary function of terminal is accessing terminal
Primary function time, be only illustrated with the division of above-mentioned each functional module, in actual application, can as desired by
Above-mentioned functions distribution is completed by different functional modules, the internal structure of equipment will be divided into different functional modules, with complete
Become all or part of function described above.It addition, the Web application that above-described embodiment provides accesses the dress of the primary function of terminal
Putting the embodiment of the method with the Web application access primary function of terminal and belong to same design, it implements process and refers to method in fact
Execute example, repeat no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
Completing, it is also possible to instruct relevant hardware by program and complete, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.
Fig. 3 is the structural representation of a kind of terminal 300 that the embodiment of the present invention provides.Such as, terminal 300 can be mobile
Phone, computer or panel computer etc..
With reference to Fig. 3, terminal 300 can include following one or more assembly: processes assembly 302, memorizer 304, power supply
Assembly 306, multimedia groupware 308, audio-frequency assembly 310, the interface 312 of input/output (I/O), sensor cluster 314, and
Communications component 316.
Process assembly 302 and generally control the integrated operation of terminal 300, such as with display, call, data communication, phase
The operation that machine operation and record operation are associated.Process assembly 302 and can include that one or more processor 320 performs to refer to
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 302 can include one or more module, just
Mutual in process between assembly 302 and other assemblies.Such as, process assembly 302 and can include multi-media module, many to facilitate
Media component 308 and process between assembly 302 mutual.
Memorizer 304 is configured to store various types of data to support the operation in terminal 300.Showing of these data
Example includes any application program for operation in terminal 300 or the instruction of method, contact data, telephone book data, disappears
Breath, picture, video etc..Memorizer 304 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile
Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash
Device, disk or CD.
The various assemblies that power supply module 306 is terminal 300 provide power supply.Power supply module 306 can include power management system
System, one or more power supplys, and other generate, manage and distribute, with for terminal 300, the assembly that power supply is associated.
The screen of one output interface of offer that multimedia groupware 308 is included between described terminal 300 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensing
Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or sliding action
Border, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many matchmakers
Body assembly 308 includes a front-facing camera and/or post-positioned pick-up head.When terminal 300 is in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and
Post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 310 is configured to output and/or input audio signal.Such as, audio-frequency assembly 310 includes a Mike
Wind (MIC), when terminal 300 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is joined
It is set to receive external audio signal.The audio signal received can be further stored at memorizer 304 or via communication set
Part 316 sends.In certain embodiments, audio-frequency assembly 310 also includes a speaker, is used for exporting audio signal.
I/O interface 312 provides interface for processing between assembly 302 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock
Set button.
Sensor cluster 314 includes one or more sensor, for providing the state of various aspects to comment for terminal 300
Estimate.Such as, what sensor cluster 314 can detect terminal 300 opens/closed mode, the relative localization of assembly, such as described
Assembly is display and the keypad of terminal 300, and sensor cluster 314 can also detect terminal 300 or 300 1 assemblies of terminal
Position change, the presence or absence that user contacts with terminal 300, terminal 300 orientation or acceleration/deceleration and terminal 300
Variations in temperature.Sensor cluster 314 can include proximity transducer, is configured to when not having any physical contact detect
The existence of neighbouring object.Sensor cluster 314 can also include optical sensor, such as CMOS or ccd image sensor, is used for becoming
Use as in application.In certain embodiments, this sensor cluster 314 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 316 is configured to facilitate the communication of wired or wireless mode between terminal 300 and other equipment.Terminal
300 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement
In example, communications component 316 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel.
In one exemplary embodiment, described communications component 316 also includes near-field communication (NFC) module, to promote junction service.Example
As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal 300 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided
As included the memorizer 304 of instruction, above-mentioned instruction can have been performed said method by the processor 320 of terminal 300.Such as,
Described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by the process of mobile terminal
When device performs so that mobile terminal is able to carry out the method that a kind of Web application accesses the primary function of terminal, and described method includes:
Receive the access request specifying primary function that Web application sends;
According to described access request, search in primary function access modules and specify primary feature card, described primary merit
Access modules can provide the interface of the access primary function of terminal for applying to described Web, the primary feature card of described appointment is used
In providing the interface accessing the primary function of described appointment to described Web application;
When finding the primary feature card of described appointment in described primary function access modules, former by described appointment
Raw feature card accesses the primary function of described appointment.
Alternatively, before the access request specifying primary function that described reception described Web application sends, also include:
The multiple primary feature card of storage in the configuration file of described primary function access modules is loaded into described former
In the plugin manager of raw function access modules;
Correspondingly, described when finding the primary feature card of described appointment in described primary function access modules, logical
Cross the primary feature card of described appointment and access the primary function of described appointment, including:
Judge whether the multiple primary feature card loaded in described plugin manager includes the primary function of described appointment
Plug-in unit;
When the multiple primary feature card loaded in described plugin manager includes the primary feature card of described appointment,
The primary function of described appointment is accessed by the primary feature card of described appointment.
Alternatively, before the access request specifying primary function that described reception described Web application sends, also include:
The mark of the multiple primary feature card of storage in the configuration file of described primary function access modules is loaded into
In the plugin manager of described primary function access modules;
Correspondingly, described when finding the primary feature card of described appointment in described primary function access modules, logical
Cross the primary feature card of described appointment and access the primary function of described appointment, including:
Judge whether the mark of the multiple primary feature card loaded in described plugin manager includes that described appointment is former
The mark of raw feature card;
When the mark of the multiple primary feature card loaded in described plugin manager includes the primary function of described appointment
During the mark of plug-in unit, it is judged that whether the primary feature card of described appointment is stored in described plugin manager;
When the primary feature card of described appointment has been stored in described plugin manager, by the primary function of described appointment
Plug-in unit accesses the primary function of described appointment.
Alternatively, described judge whether the primary feature card of described appointment is stored in described plugin manager after, also
Including:
When the primary feature card of described appointment is not stored in described plugin manager, according to the primary function of described appointment
The mark of plug-in unit, is downloaded to primary for described appointment feature card in described plugin manager from server;
The primary function of described appointment is accessed by the primary feature card of described appointment.
Alternatively, described primary function access modules is to be arranged in described terminal the module corresponding with described Web application.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;To the greatest extent
The present invention has been described in detail by pipe with reference to foregoing embodiments, it will be understood by those within the art that: it depends on
So the technical scheme described in foregoing embodiments can be modified, or the most some or all of technical characteristic is entered
Row equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. the method that a Web application accesses the primary function of terminal, it is characterised in that described method includes:
Receive the access request specifying primary function that Web application sends;
According to described access request, searching and specify primary feature card in primary function access modules, described primary function is visited
Ask module for described Web application provide access the primary function of terminal interface, the primary feature card of described appointment for
Described Web application provides the interface accessing the primary function of described appointment;
When finding the primary feature card of described appointment in described primary function access modules, by the primary merit of described appointment
The primary function of described appointment can be accessed by plug-in unit.
Method the most according to claim 1, it is characterised in that the primary merit of appointment that described reception described Web application sends
Before the access request of energy, also include:
The multiple primary feature card of storage in the configuration file of described primary function access modules is loaded into described primary merit
In the plugin manager of energy access modules;
Correspondingly, described when finding the primary feature card of described appointment in described primary function access modules, by institute
State the primary feature card of appointment and access the primary function of described appointment, including:
Judge whether the multiple primary feature card loaded in described plugin manager includes the primary feature card of described appointment;
When the multiple primary feature card loaded in described plugin manager includes the primary feature card of described appointment, pass through
The primary feature card of described appointment accesses the primary function of described appointment.
Method the most according to claim 1 and 2, it is characterised in that the appointment that described reception described Web application sends is primary
Before the access request of function, also include:
The mark of the multiple primary feature card of storage in the configuration file of described primary function access modules is loaded into described
In the plugin manager of primary function access modules;
Correspondingly, described when finding the primary feature card of described appointment in described primary function access modules, by institute
State the primary feature card of appointment and access the primary function of described appointment, including:
Judge whether the mark of the multiple primary feature card loaded in described plugin manager includes the primary merit of described appointment
The mark of energy plug-in unit;
When the mark of the multiple primary feature card loaded in described plugin manager includes the primary feature card of described appointment
Mark time, it is judged that whether the primary feature card of described appointment is stored in described plugin manager;
When the primary feature card of described appointment has been stored in described plugin manager, by the primary feature card of described appointment
Access the primary function of described appointment.
Method the most according to claim 3, it is characterised in that described judge whether the primary feature card of described appointment stores
After in described plugin manager, also include:
When the primary feature card of described appointment is not stored in described plugin manager, according to the primary feature card of described appointment
Mark, primary for described appointment feature card is downloaded in described plugin manager from server;
The primary function of described appointment is accessed by the primary feature card of described appointment.
Method the most according to claim 1, it is characterised in that described primary function access modules is for being arranged on described terminal
In with described Web module corresponding to application.
6. the device of the Web application access primary function of terminal, it is characterised in that described device includes:
Receiver module, for receiving the access request specifying primary function that Web application sends;
Search module, for according to described access request, search in primary function access modules and specify primary feature card, institute
State primary function access modules for providing the interface accessing the primary function of terminal, the primary merit of described appointment to described Web application
The interface of the access primary function of described appointment can be provided by plug-in unit for applying to described Web;
Access modules, for when finding the primary feature card of described appointment in described primary function access modules, passes through
The primary feature card of described appointment accesses the primary function of described appointment.
Device the most according to claim 6, it is characterised in that described device also includes:
First load-on module, for by the multiple primary feature card of storage in the configuration file of described primary function access modules
It is loaded in the plugin manager of described primary function access modules;
Correspondingly, described access modules includes:
Judging unit, for judging whether include described appointment in the multiple primary feature card loaded in described plugin manager
Primary feature card;
First accesses unit, for including that described appointment is former when the multiple primary feature card loaded in described plugin manager
During raw feature card, access the primary function of described appointment by the primary feature card of described appointment.
8. according to the device described in claim 6 or 7, it is characterised in that described device also includes:
Second load-on module, for by the multiple primary feature card of storage in the configuration file of described primary function access modules
Mark be loaded in the plugin manager of described primary function access modules;
Correspondingly, described access modules includes:
Whether the second judging unit, wrap in the mark judging the multiple primary feature card loaded in described plugin manager
Include the mark of the primary feature card of described appointment;
3rd judging unit, for including described when the mark of the multiple primary feature card loaded in described plugin manager
When specifying the mark of primary feature card, it is judged that whether the primary feature card of described appointment is stored in described plugin manager;
Second accesses unit, when the primary feature card of described appointment has been stored in described plugin manager, by described finger
Fixed primary feature card accesses the primary function of described appointment.
Device the most according to claim 8, it is characterised in that described access modules also includes:
Download unit, for when the primary feature card of described appointment is not stored in described plugin manager, according to described finger
The mark of fixed primary feature card, is downloaded to primary for described appointment feature card in described plugin manager from server;
3rd accesses unit, for accessing the primary function of described appointment by the primary feature card of described appointment.
Device the most according to claim 6, it is characterised in that described primary function access modules is for being arranged on described end
Module corresponding with described Web application in end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610529333.2A CN106201610A (en) | 2016-07-06 | 2016-07-06 | Web application accesses the method and device of the primary function of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610529333.2A CN106201610A (en) | 2016-07-06 | 2016-07-06 | Web application accesses the method and device of the primary function of terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106201610A true CN106201610A (en) | 2016-12-07 |
Family
ID=57465813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610529333.2A Pending CN106201610A (en) | 2016-07-06 | 2016-07-06 | Web application accesses the method and device of the primary function of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201610A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106843975A (en) * | 2017-01-24 | 2017-06-13 | 深圳创维-Rgb电子有限公司 | Extend the method and device of HTML5 application functions |
CN107329743A (en) * | 2017-06-14 | 2017-11-07 | 北京小米移动软件有限公司 | Methods of exhibiting, device and the storage medium of five application page |
CN109408150A (en) * | 2018-10-30 | 2019-03-01 | 维沃移动通信有限公司 | It is a kind of to apply loading method and mobile terminal fastly |
CN111258683A (en) * | 2020-01-19 | 2020-06-09 | 北京三快在线科技有限公司 | Detection method, detection device, computer equipment and storage medium |
CN111897613A (en) * | 2020-07-31 | 2020-11-06 | 平安普惠企业管理有限公司 | Page access method and related equipment |
CN112860445A (en) * | 2019-11-27 | 2021-05-28 | 华为技术有限公司 | Method and terminal for sharing data between fast application and native application |
CN113608797A (en) * | 2021-08-04 | 2021-11-05 | 南方电网数字电网研究院有限公司 | Native plug-in extension system based on nodejs and cordova |
CN113934467A (en) * | 2021-09-22 | 2022-01-14 | 南方电网深圳数字电网研究院有限公司 | Cordova plug-in-based engineering access method and device |
WO2022213496A1 (en) * | 2021-04-09 | 2022-10-13 | 武汉天喻信息产业股份有限公司 | Method for accessing nfc smart card by using web application program, and middleware |
-
2016
- 2016-07-06 CN CN201610529333.2A patent/CN106201610A/en active Pending
Non-Patent Citations (3)
Title |
---|
夏东翔: "基于优化的Cordova的混合型应用平台开发", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
朱凯南等: "基于 Ionic和 Cordova的跨平台移动 APP的研究与应用", 《电脑知识与技术》 * |
肖敏: "基于Apache Cordova的跨平台智能家居终端应用研发", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106843975B (en) * | 2017-01-24 | 2020-10-20 | 深圳创维-Rgb电子有限公司 | Method and device for extending HTML5 application function |
CN106843975A (en) * | 2017-01-24 | 2017-06-13 | 深圳创维-Rgb电子有限公司 | Extend the method and device of HTML5 application functions |
CN107329743A (en) * | 2017-06-14 | 2017-11-07 | 北京小米移动软件有限公司 | Methods of exhibiting, device and the storage medium of five application page |
US10705780B2 (en) | 2017-06-14 | 2020-07-07 | Beijing Xiaomi Mobile Software Co., Ltd. | Method, device, and storage medium for displaying application page |
CN109408150A (en) * | 2018-10-30 | 2019-03-01 | 维沃移动通信有限公司 | It is a kind of to apply loading method and mobile terminal fastly |
CN112860445B (en) * | 2019-11-27 | 2023-06-20 | 华为技术有限公司 | Method and terminal for sharing data between fast application and native application |
CN112860445A (en) * | 2019-11-27 | 2021-05-28 | 华为技术有限公司 | Method and terminal for sharing data between fast application and native application |
WO2021104259A1 (en) * | 2019-11-27 | 2021-06-03 | 华为技术有限公司 | Method and terminal for data sharing between fast application and native application |
CN111258683A (en) * | 2020-01-19 | 2020-06-09 | 北京三快在线科技有限公司 | Detection method, detection device, computer equipment and storage medium |
CN111897613A (en) * | 2020-07-31 | 2020-11-06 | 平安普惠企业管理有限公司 | Page access method and related equipment |
WO2022213496A1 (en) * | 2021-04-09 | 2022-10-13 | 武汉天喻信息产业股份有限公司 | Method for accessing nfc smart card by using web application program, and middleware |
CN113608797A (en) * | 2021-08-04 | 2021-11-05 | 南方电网数字电网研究院有限公司 | Native plug-in extension system based on nodejs and cordova |
CN113934467A (en) * | 2021-09-22 | 2022-01-14 | 南方电网深圳数字电网研究院有限公司 | Cordova plug-in-based engineering access method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201610A (en) | Web application accesses the method and device of the primary function of terminal | |
CN105847430B (en) | Mix application page data access method and device | |
CN106126685B (en) | Page loading method and device | |
CN104778063A (en) | Method and device for updating resource | |
US20100093396A1 (en) | Systems and methods for storing or performing functions within removable memory, such as a subscriber identity module of a mobile device | |
CN103294335A (en) | Apparatus and method for creating a shortcut menu | |
CN107193441B (en) | Desktop pendant previewing method and device | |
CN111512286A (en) | Method for arranging program and electronic equipment | |
CN105808305A (en) | Static resource loading method and device | |
CN106095455A (en) | A kind of application update method and device | |
CN105183493A (en) | Display method and device of network information | |
CN108600529A (en) | Information interacting method, device and computer readable storage medium | |
CN105094830A (en) | Method and device for executing target functions | |
CN104063424B (en) | Web page picture shows method and demonstration device | |
CN107402756B (en) | Method, device and terminal for drawing page | |
CN107463372B (en) | Data-driven page updating method and device | |
CN106095405A (en) | Icon update method and device | |
CN105468417A (en) | Application software installation method and device | |
CN105488200A (en) | Webpage display method and device | |
CN107911482A (en) | Intended application deployment method and device | |
CN111159615A (en) | Webpage processing method and device | |
CN108108206A (en) | Mobile payment cut-in method and device | |
CN106599231A (en) | Page display method and apparatus | |
CN110989987A (en) | Portal webpage generation method, portal webpage generation device, client, server and storage medium | |
CN109522286A (en) | The treating method and apparatus of file system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
RJ01 | Rejection of invention patent application after publication |