C3-phonegap's choice of mobile development Strategy (translation)

Source: Internet
Author: User

English Original address: http://phonegap.com/blog/2015/03/12/mobile-choices-post1/

Mobile app development Strategy selection

This article is the first of a series of articles that are considered when choosing a mobile app development strategy in the face of different choices. By comparison, let developers know when and where to use Adobe PhoneGap in their apps.

When we build a native,mobile Web or hybrid mobile app, the most common choices to consider are as follows.

1. Native Mobile App
    • Run on specific devices and systems
    • The app that runs in the local
    • Written in multiple languages, Objective-c/swift (IOS) Java (Android) or C # (Windows)
    • Need to be installed on the device
    • Market audits must be distributed through the app
    • Do not rely on containers (webview or the like)
    • Can still be used offline
Native app Example2, Mobile Web app
    • Mobile browser running on any device
    • Rarely call Device API (Camera)
    • Write-html5/javascript/css using a unified Web technology standard
    • No need to submit, review or publish a process through an app Store
    • Adaptive multiple screen sizes
    • Supported by a Web server
    • Offline Status not Available
Mobile Web app Example3, Hybrid mobile app

When it comes to hybrid, a very important concept to further clarify, the hybrid mobile apps into the Web hybrid and native hybrid two more meaningful, but also the definition of this article in accordance with.

Web Hybrid Mobile Apps

Web Hybrid mobile apps are mainly wrapped in a webview, and a simple native container is used to bridge the native API. The UI control does not need to be native provided, it is just a simple encapsulation of native and webview interactions.

Native Hybrid Mobile Apps

Native Hybrid mobile apps has a mix of Native controls and one or more webview. The common scenario is that native creates navigation and Tabbar, and the main content is placed in the webview of each package.

Hybrid APP Characteristics
    • Run on the device as an app that needs to be installed locally
    • Write-html5/javascript/css using a unified Web technology standard
    • Run on a webview (embedded web browser)
    • In most cases, multiple platforms require only a single set of base code
    • Can call native API (webcam, Contacts, accelerometer, CPS, etc.)
    • Submit, review and release process via app distribution market (IOS App store,google Play)
    • Need to run on a specific device
    • Adaptive multi-size screen
    • Offline status can be used

PhoneGap can be used to create the two types of hybrid apps above, and provides the flexibility to combine native elements to tailor the user experience, while having the benefits of the web and trying to achieve a more native visual effect and experience. It's already clear why more and more companies are choosing to mix native and the Web to get the benefits of both in a hybrid way.

Hybrid Sweet Spot

Many developers choose native to create navigation and Tabbar, placing the main content in each of the wrapped WebView to save a lot of time and money while ensuring a wide range of users can quickly use their apps. This approach also provides the ability to avoid the hassle of App store approvals to quickly update. In this mode, each platform requires only a small portion of the native base code to be maintained, and this small piece of code represents the fixed part of the app, not the main content, making it easier to manage.

The founder of a very popular project management App,basecamp also adopts a hybrid development program. They have written a lot of high-quality articles explaining the architecture of their mobile apps and how it evolves the best native and hybrid hybrid solutions.

    • Hybrid: Small team Development How to make Basecamp adapt to multiple platforms with ease
    • Hybrid Sweet spot:native navigation,web content
    • Drawing the Native/web line on Basecamp for IPhone
Basecamp Multi-device operation

JavaScript SDK Frameworks

Another mobile app, which also uses JavaScript to render views and use native for platform adaptation, should also be discussed as a hybrid. Some of the frameworks are listed below:

    • React Native from Facebook
    • Nativescript from Telerik
    • Titanium from Appcelerator

React native has always been a closed source, and Nativescript has just released a beta version of open source, so it's impossible to provide more information to fully understand how to use their framework in the app.

Stay tuned

Now that you have a way to make effective choices, the next article in the series will focus specifically on how phonegap is used in the hybrid development of embedded webview in native. Update soon and check in time.

C3-phonegap's choice of mobile development Strategy (translation)

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.