App developed in three kinds of ways: native, hybrid and H5 similarities and differences

Native application development is the use of official development language on Android, IOS and other mobile platforms, development libraries, development tools for App developers. For example android using java, eclipse, Android studio, IOS using Objective-C and Xcode development. Since the native application is the use of official languages and tools and is able to directly manipulate hardware devices (such as multi-touch, NFC, read SMS, etc.), in the application performance on and interactive experience should be the best , but the native application the portability is rather poor , especially a native App, Android and IOS have each developed, the same logic, interface to write two sets.

Native app is called a native SDK or suggestion because he is in the development of mobile device manufacturers provide their own development mode to develop; there are usually two types of android and ios development methods, they are based on the Java language and C ++ language, the use of the native language of each type of app development required are not the same.

Advantages:
1: native app because the use of each mobile vendors SDK, is based on a specific operating system for mobile devices are designed, so it's targeted, interaction with the user experience is very good, very stable performance ;
2: closer to the bottom, so his more smooth operation;
3: compared to hybrid applications, he in effect during the transition better, and so does not appear all kinds of black and white, which will increase customer retention;
4: in applications related to the transfer of cell phone cameras and other hardware devices, these operations are web APP can not be achieved;
5: on the web, webapp once broken network can not access, but in a native app even if disconnection You can also access the original downloaded data;
disadvantages:
1: the same project, should be carried out independently developed for different mobile operating systems, such as android and ios, the same software, is targeted to the development of two different operating systems project. This has resulted in a sharp rise in development costs, so there is a piece on quipped: "There are rich flow of resources to do App; poor forced to do H5 -_-".
2: When the test is very troublesome, and each time changes need to re-test once, and need to wait for official approval when the shelves.
3: high cost, slow update, which became the main reason for the native app is gradually being replaced.
(But even in mixed-use development, the effect of many frameworks are not native, in terms of performance on a single, native is best)

HTML5 application development, Web technology is the use of App development, we know that web technology itself needs support in browsers for display and user interaction. The main technology used is HTML5, JavaScript, CSS and so on. Now there are some development framework can be used, such as phoneGap, bootstrap, jquery and so on. H5 can benefit the development of cross-platform , code written can simultaneously run on Android, IOS, Windows. Due to limitations of Web technology itself, H5 mobile application can not directly access the hardware devices and offline storage , so there are significant limitations on experience and performance .

When developing the use of H5 html, css, JavaScript development of a showcase applications, mainly for show some information after clicking the browser, he can not call the bottom of the phone equipment, such as: mobile phone version of millet official website, mobile version Apple's official website.
Specific performance is there will be some applications in the mobile browser icon, click the small icon in loading pages and you download the app open in the browser is the same page, which is represented by small icons web app.

Advantages:
1: easy test, just enter the URL can be tested;
2: If you want to add new functionality directly in the background, without notice to users to upgrade;
3: order of magnitude lower development costs low, and the corresponding he does not need to be installed;
4: is a browser-based, cross-platform;
disadvantages:
1: off network Xiecai;
2: single function, representative, can not be called low-level functionality, such as a camera;
3: and native application relative, his interactive experience is poor;

Mixed application development is bound native and technology H5 development , learning a development model, the native code portion using WebView plug or other framework provides a container for the H5 , the program main business implementation, the interface display using H5 relevant Web technology implementation. Such as the current hybrid development model Jingdong, Taobao, Today's headlines are all available.

Mixed-use development advantages and disadvantages:

The advantage is:

1, development of high efficiency, saving time and IOS Android same basic set of code are available

2, update and deploy more convenient, do not need to be uploaded each upgrade to the App Store for review, and you can only need to upgrade the server side

3, to facilitate code maintenance, version updates fast, reduce product costs

weakness is:

1, because the hardware can not directly control some aspects of performance is not very good

2, another technology is relatively new version of the relatively poor compatibility, there is that is understood and to understand the Native Development H5 development of high-end talent hard to find.

Hybrid App development trend of the future, the development of hybrid technology currently in use are also a lot of major mixed-use development technology has jQuery Mobile, React Native, Cordova, APICloud, AppCan and so on. Although mixed-use development can improve the efficiency of cost savings, but there are a lot of restrictions, in addition to hardware limitations, caching, compatibility between all major platforms is also inadequate. Some also more consumption of resources

Contrast the basic functions of three development model (vary by platform version, for application by reference)

 

Guess you like

Origin www.cnblogs.com/jcxfighting/p/11727858.html