The WebView (CordovaWebView) in PhoneGAP is actually an extension of the WebView that comes with Android, encapsulating and rewriting some functions.
For detailed code, please read CordovaWebView.java
For example, loading local pages is of course the key modification. If there is any improvement in performance, I feel that there is no improvement other than ease of use.
The answers from the people above are wrong. They are asking about the difference between phonegap’s webview and ordinary webview, not about the difference between hybrid APP and native APP.
First of all, let’s talk nonsense: I have never experienced debugging hybrid APP in ordinary webview. It is your happiness, really. There are too many pitfalls in hybrid, but iOS is okay, especially Android, which is full of blood and tears.
The difference between phonegap and ordinary webview is that it has fixed many webview bugs and made up for many poor performance. It will feel closer to the web during development. Moreover, it implements many APIs according to standards and is relatively convenient to use, and is good for development, debugging and transplantation.
Advantages:
If you are familiar with web front-end, phonegap will be faster to get started with. As VS2013, netbeans, etc. successively support cordova, this development process is becoming simpler and simpler. There are also cross-platform front-end frameworks such as jquery mobile, appframework, sencha touch, etc. that can also simplify the page development process.
Disadvantages:
Efficiency is a big problem. Slowness can be alleviated, but it cannot be solved. The effect on low-end Android phones is very unsatisfactory.
The WebView (CordovaWebView) in PhoneGAP is actually an extension of the WebView that comes with Android, encapsulating and rewriting some functions.
For example, loading local pages is of course the key modification.
If there is any improvement in performance, I feel that there is no improvement other than ease of use.
The answers from the people above are wrong. They are asking about the difference between phonegap’s webview and ordinary webview, not about the difference between hybrid APP and native APP.
First of all, let’s talk nonsense: I have never experienced debugging hybrid APP in ordinary webview. It is your happiness, really. There are too many pitfalls in hybrid, but iOS is okay, especially Android, which is full of blood and tears.
The difference between phonegap and ordinary webview is that it has fixed many webview bugs and made up for many poor performance. It will feel closer to the web during development. Moreover, it implements many APIs according to standards and is relatively convenient to use, and is good for development, debugging and transplantation.
Advantages:
If you are familiar with web front-end, phonegap will be faster to get started with. As VS2013, netbeans, etc. successively support cordova, this development process is becoming simpler and simpler. There are also cross-platform front-end frameworks such as jquery mobile, appframework, sencha touch, etc. that can also simplify the page development process.
Disadvantages:
Efficiency is a big problem. Slowness can be alleviated, but it cannot be solved. The effect on low-end Android phones is very unsatisfactory.
It is said that the performance is not good, but I have never actually done it. The author can give feedback after finishing it~~
The performance is not good, unless it is a very simple news blog display, like ONE, which has one article per day, this is more suitable.