Hybird app (mixed-mode mobile app) development first experience

Source: Internet
Author: User

Recently 1, 2 months have been trying to develop a Hybird app, encountered a lot of problems. Talk about your own experience.



The Hybird app (mixed-mode mobile app) uses mobile apps developed in a hybrid way, such as the Android-side WebView component +HTML5 embedded.
The advantages are obvious. Because the embedded is HTML5, so cross-platform. Scalability, development costs are very good advantages.

Hybird app has a lot of solutions from development tools to packaging announcements, the more famous is from Adobe's PhoneGap, domestic appcan, these 2 kinds of solutions have a better tool platform. This time I use the appcan, it is necessary to note that the development of Appcan tools only the Windows platform, but also have to spit groove is. Program inside the integrated JS plugin script, a lot of bugs.



The technical architecture I used,

In the use of Appcan as a packaging platform for applications, through its built-in JS components for data requests, the requested data using JS to do some business logic processing, using angular for binding rendering, UI components of the Gmu.js, and GMU built-in zepto.js and scroll.js and so on, the page is H5+CSS3.

Can see is compared with the traditional web, more than a lot of JS framework and library applications, after all, the data call and business processing are moved to the JS side. So here to remind you, can consider adding JS module management framework, such as SEAJS. Data binding This feeling angular really very good, write good binding, only need to focus on the backend JS data business processing can, improve a lot of development efficiency.



There are a number of problems in the coding phase, such as not being able to use URLs as usual to pass the parameters. Find the number of references after a page jump is not fetched.

To reduce the number of requests, also try to use Localstorage cache json.

Improve the response speed of the interface by manifest cache html,css,js files. by CSS3 instead of JS to do animation effect, but the effect is not ideal, feel or no JS to smooth. Page Jump white screen. Data loading delays and so on, loading the animation experience need to do better, and try to reduce the page jump, some of the functions to focus on a single HTML file.



All in all, there are a lot of optimization methods, but obviously the Hybird app has a lot of problems with the performance experience. But for example, some interactive simple app, with such a solution can still be considered.

Original address: http://imziv.com/blog/article/read.htm?id=54

Hybird app (mixed-mode mobile app) development first experience

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.