I am considering using Cordova to build a mobile application. The main driver is that I want to be able to port my app to multiple platforms without having to re-write the presentation layer. I like Angular and jQuery Mobile which I feel can produce a good quality presentation with less effort when compared to developing multiple native presentation layers.
The caveat is that one component of the app is slightly more complex. I would like to leverage native SDKs to write this particular component and have it work seamlessly -- as an embedded sub-view -- with the rest of my app. I thought that I could solve this problem elegantly by writing a Cordova plug-in. Reading the documentation, I see how I can write a "headless" plug-in, or one that pops open in front of the web view overriding the display while it is active. But can I display a plug-in with a UI in a <div>
within the web-app?
For example, let's suppose that my native component is the native "address book" view (in iOS, this module has a ViewController which renders its display). I would want to render it somewhere in a <div>
in the page where I can still see my app header -- NOT have it pop open above my entire application until I complete my selection.
I see that it is possible to embed the CordovaWebView in a native app. But I want to know if the other way around is also possible.
I am considering using Cordova to build a mobile application. The main driver is that I want to be able to port my app to multiple platforms without having to re-write the presentation layer. I like Angular and jQuery Mobile which I feel can produce a good quality presentation with less effort when compared to developing multiple native presentation layers.
The caveat is that one component of the app is slightly more complex. I would like to leverage native SDKs to write this particular component and have it work seamlessly -- as an embedded sub-view -- with the rest of my app. I thought that I could solve this problem elegantly by writing a Cordova plug-in. Reading the documentation, I see how I can write a "headless" plug-in, or one that pops open in front of the web view overriding the display while it is active. But can I display a plug-in with a UI in a <div>
within the web-app?
For example, let's suppose that my native component is the native "address book" view (in iOS, this module has a ViewController which renders its display). I would want to render it somewhere in a <div>
in the page where I can still see my app header -- NOT have it pop open above my entire application until I complete my selection.
I see that it is possible to embed the CordovaWebView in a native app. But I want to know if the other way around is also possible.
0 commentaires:
Enregistrer un commentaire