Mobile Application:
Phonegap/Cordova vs
 Native Application
          hakim.asyari@kaskusnetworks.com
Agenda
• The   State of the Mobile Browser

• Native App   and Hybrid App

• Cordova   : an Overview

• Cordova Architecture

• Cordova API

• Cordova App    Project
The State of The Mobile Browser




• rng.io

•   Ring 0 is the intersection of functionality offered by iOS5 and Android
    2.2 Froyo, which represents the majority of the smartphone market
    today
rng.io
NATIVE VS HYBRID
Native Application
Native Application
Hybrid Application
PHONEGAP === CORDOVA

 http://github.com/apache/incubator-cordova-*
Cordova




1. Embed a chromeless browser in a native app
2. Create a “bridge” between the browser and the native code
   providing access to native APIs
3. Write a web app
4. Package the web app with the native code and deploy to devices!
5. Web LAF
6. No Cross-compiling magic
Cordova


                     Native
Js Call    Cordova
                      API
Cordova : Class Diagram
Cordova : API
• Accelerometer               • File

• Camera                      • Geolocation

• Capture   : Image, Audio,   • Media
 Video
                              • Storage
• Compass
                              • Websocket   (Android)
• Contacts
Cordova : API (not
                 available)
• NFC
    (Near Field             • Automated Test
 Communication)
                            • Device API Test   (server:
• Bluetooth                  weinre)

• opengl/webgl              • Native   LAF

• Logging   (Console.log)   • Obfuscation    (debugging
                             problem)
• push   notification
Plugins
Cordova Application
     Project
    Demo via Eclipse
Cordova Application
                  Project
• News

• Medical

• Business
REFERENCES
• www.phonegap.com

• www.github.com/apache/incubator-rodova-*

• doc.phonegap.com

• worklight.com

Phonegap/Cordova vs Native Application

Editor's Notes