What is the difference between packaging HTML with Cordova and using AppCan, Dcloud, WeX5, and ApiCloud? -

Source: Internet
Author: User
I am a web developer for mobile development. I would like to ask, what is the difference between compiling HTML and packaging with Cordova and using tools such as ApiCloud, AppCan, Dcloud, and WeX5? I have written several simple HTML web pages (projects) by myself: 1) Written in pure HTML + js + jQuery; 2) Written in jQueryMobile; 3) I have written it using Phaser [dot] io. These web pages are packaged and generated using Cordova to generate an apk file. The method is very simple. I am a mobile developer/web developer, I would like to ask, what is the difference between compiling HTML and packaging with Cordova and using tools such as ApiCloud, AppCan, Dcloud, and WeX5?

I have written several simple HTML web pages (projects) myself ):
1) Written in HTML + js + jQuery;
2) written using jQueryMobile;
3) written with Phaser [dot] io;

These web pages are packaged with Cordova to generate the apk file. The method is very simple, that is, to install Android Studio + npm + cordova, because Android Studio automatically provides the Android SDK/JDK, cordova can be automatically detected, and it does not need to be as troublesome as installing it on the internet in previous articles. With Cordova, several commands are very simple. With the keytool-genkey and jarsigner signatures added, You can package an HTML web project into an apk in one minute, and install and run it on your android phone.

I found that the APK generated using jQueryMobile is very slow, and the effect is very uncomfortable. I have not studied why.
I also found that Phaser [dot] io generates APK with very poor performance and compatibility, so I will not touch it any more.
I found that the APK generated with pure HTML + jQuery works very well. It is much faster and feels great than opening the corresponding webpage on a PC or mobile browser.

I want to know if I only need to learn Cordova? Because it is so simple, convenient, and fast, it is generated locally and does not need to be packaged in the cloud (it is really uncomfortable to upload your code to others' clouds, is this the only one for me ?). So, why also need Dclout (HBuilder), ApiCloud, AppCan, WeX5, Egret, Cocos2d-js and so on so many tools? Are these tools just encapsulation of Cordova? Or do they have their own strengths?

In addition, what people say on the Internet is "Hybrid APP" development, does it mean using Cordova for development? Or specifically refers to the use of Dclout (HBuilder), ApiCloud, AppCan, WeX5, Egret, Cocos2d-js development? Reply content: In fact, this type of comparison is available on the DCloud website. This article is detailed: Document-DCloud Q & .
The functions and performance of Cordova are much inferior to those of DCloud products.
DCloud also supports local packaging.
The front-end framework cannot use jQueryMobile. The mui performance of the open-source framework produced by DCloud is the most efficient in the currently known front-end ui framework. I use Cordova to package and those frameworks. They are both mixed-mode development frameworks. Cordova is relatively more open and mainstream.In addition, WeX5 is based on Cordova, and the visual design and packaging wizard are both quite good. It is still free and open-source. It is strongly recommended
The WeX5 packaging tool is suitable for all Cordova projects. You can use WeX5 to package your own pages. I don't need the Cordova command line to package now, but I still have a good tool.
There is no difference. They all do the same thing.

Appcan was used only in early stages. If there is an error, you can correct it.

Cordova is open-source and free of charge. Find the plug-in on github.

Appcan Enterprise Edition requires tens of thousands of pieces, and some plug-ins are also charged.

However, after all, appcan is intended for domestic developers and is packaged on the cloud. It does not have complicated environment configurations and hardware requirements and is in line with national conditions.

Then many cordova plug-ins are written by foreigners. Although they are open-source and free, some plug-ins are not very good in China due to wall reasons, such as positioning and gcm. Subject to the http://phaser.io Isn't it an html5 game engine official website? It is not a packaging tool, but you should still look at your actual usage. If your application is not complex and you still have some native development capabilities, you can simply use Cordova, everything is done by yourself. You don't have to rely on these platforms in China.
However, if the application is complex and requires a lot of functions other than HTML, you must consider using the products of these platforms in China for better experience. In general, these products are not perfect and mature, but there are no better products abroad. These domestic platforms can at least adapt to domestic mobile phones and support domestic services. More practical.
I started Mobile Application Development on 11 and started IOS development. After that, I had been using AppCan for outsourcing and saving costs. Although there were various problems, I was always able to work together, now we are trying to use APICloud as a preschool education product. Here are some of my experiences for your reference:
Advantage: it has been used since 12 years. It has been very early and feels good. Tools, platforms, and services are relatively stable. It seems that many large state-owned enterprises are using them.
Disadvantages: Updates and improvements are not timely. Generally, a version is released in a few months, and some new functions cannot be used in time.
Advantage: Internet companies are very grassroots, but they are very vigorous in promotion, the community is very active, developers of all levels are available, and there are quite a lot of things shared by learners, the application experience is indeed the best among all. It should be a good internal execution engine. The product is integrated with the cloud (but without using their data cloud). The encoding tool is not an integrated tool, and is not provided by each tool. These plug-ins are open-source and can be modified by yourself, as prompted by custom code. For example, if I have been using Sublime, this is very good. These extension plug-ins can be used for real-time synchronization and Log playing.
Disadvantages: The update speed is too fast, the API is not stable, and sometimes the module to be updated has problems. Every time they upgrade, they have to test their own applications. There are problems with optimization on some Android phones, and there is no AppCan stability.
Dclout (HBuilder ):
Advantage: Other Dclout services have not been used, HBuilder has been used, or a good editor. The overall experience is good, and the code prompts are intelligent, eclipse-based secondary development can also make such a great deal. In particular, HTML syntax supports good browser compatibility. There is a front-end framework that is easy to write CSS.
Disadvantages: HBuilder Size is too large and must be used online. The overall experience is still in the Eclipse style. Sublime is recommended for me. The main reason is that the application is the Web page experience, which is not suitable for applications. It's okay to make a WebApp.
WeX5. However, it seems that the promotion is also very fierce, and the company seems to be quite large, but the application experience has not been tested in detail, so I will not comment on it.
Egret, Cocos2d-js: These two should be the engine for web games, not for applications.

I actually think it is quite simple to use it. There are many cases in their publicity. Just tune a few representative installs to several mobile phones and run them to see the experience. Reading their code is also very simple. The webpage code of the application they developed is put in the ipa and apk installation packages. Change the suffix to zip and decompress it directly to view the code. Very simple. Familiar with APICloud, please answer.

Cordova packages webapps into applications that can be installed independently. It is recommended that HTML5, JS, and CSS be used to complete applications. It provides some cross-platform interfaces that cannot be implemented by HTML5 or front-end temporarily.
Due to the influence of mobile browsers, page switching and complex interaction are significantly different from the experience of native applications.

APICloud makes up for the trend of some webapps. Some features with poor front-end performance are implemented using the native language (Object-C, JAVA, for example, the most common page switch is implemented based on the native language of webview, and each page is an independent webview. In addition, there are a large number of native interfaces (Device Access, interface layout, open SDK, etc.), all interfaces are provided in the form of JS, and the front-end is easy to use. This kind of hybrid application is also a reasonable form. The front-end processing is good at page layout, UI display, and simple interaction. The native module is responsible for performance consumption, functions that are not easy to implement are linked to each other to form a complete application with good experience.

At the same time, APICloud also provides cloud database functions. The front-end does not have to understand PHP, Node. js, and other back-end languages. It uses JS interfaces or Restful APIs to add, delete, modify, and query databases.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.