Android – hybrid application development under the hood (phonegap, Cordova, ionic)

I try to understand how everything works, but I have some questions about the subject

I will explain how I understand these contents

Let's start with Cordova, which is a platform for converting JS, CSS and HTML files into local applications. However, this is not completely correct. In fact, it just puts all HTML and CSS files into the asset folder, and all the platform does is create a custom WebView for the platform and configure it, Bind all necessary plug-ins to the WebView and set the default page to open. Except for the hook method provided by the platform plug-in, all other contents are just web development. This method can help access local functions such as GPS and camera through the Java call of WebView. Therefore, all other contents depend on the specific local web core to process and support functions such as HTML5 and CSS3... For example, If the WebKit implementation of a particular Android version does not support such functions, you cannot do something to make it work properly instead of updating the low-level kernel of Android

So I have the following questions

Invalid Sign

Please tell me I'm wrong and then answer my question. I'd be grateful

resolvent:

1) All the libraries / frameworks you mentioned in the first question are somewhat different

>Ionic provides UI frameworks (i.e. controls) that can be used in hybrid applications and services from the perspective of interacting with the provided UI controls. In essence, it provides you with the whole stack for building hybrid applications. > Onsen UI is another UI framework. Compared with ionic, it is smaller and library independent. Onsen does provide angular binding and services for its UI, But it can also be used with ordinary old-fashioned JS or jQuery. The upcoming version also supports react binding. > I can't say much about Sencha (I haven't used it), but it is also a UI framework. However, snecha uses their own JS framework called extjs

Using the keyword HTML5 is more likely to advertise that the UI framework is using modern web technology( Flex@R_860_2419 @I (if I'm wrong, please correct me) believe that this may be just a marketing strategy

2) Technically, none of them is specific to hybrid. You think it's right that they can be used in desktop browser environment. Nevertheless, UI components are designed for mobile devices and don't look attractive on desktop computers. They are most suitable for mixed applications and mobile web applications. Ionic is even promoting the development of progressive Web applications and plans to expand its application to desktop computers (including electronic equipment) support

3) It is also convenient to install these frameworks through the package manager. You can easily copy files (ionics website says you can do this). And manually compile styles, but more work is needed to make them work properly. Some tools (such as ionic) install cli through NPM, but the framework is usually installed through bower. When a new version is released, It also makes it easy to upgrade. In general, you may ask why package manager is used for any language / platform, depending on organization and convenience

I hope I answered all your questions. If not, please comment

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>