SlideShare a Scribd company logo
Developing Downloadable
Mobile Apps Using HTML5 and
PhoneGap “Apache Callback”
Ron Perry, CTO, Worklight Inc.
Agenda
 Downloadable (native) apps vs. Web apps
 • HTML5 web apps vs. Downloadable apps
 Using HTML5 in downloadable apps: the hybrid model
 • How hybrid apps work
 • Advantages and disadvantages
 Writing an app with PhoneGap
 • The concept
 • Accessing device APIs
 Our experience with PhoneGap
Critical HTML5 features are supported on mobile




           iOS5                    Android 2.2, 2.3              WinPhone 7.5
•   Canvas               •   SVG
•   Audio                •   Elements                 Desktop:
•   Local Storage        •   CSS3 position:fixed
•   Geolocation          •   Drag & Drop
•   Video                •   Files
•   CSS3 borders, anim   •   WebGL
•   Web Applications     •   IndexedDB, WebSQL
HTML5 makes mobile web apps possible
Native apps can still do much more




   VoIP                 Access Camera               Audio Processing




     Video Processing                   App-Store Presence
Downloadable (Native) Apps

              File System              Native App
              (on Mobile            (Java/Obj-C/C#)
                Device)




                            Mobile OS
Web Apps
             Mobile Browser

                Web App
             (HTML, CSS, JS)
Web Server




                Mobile OS
Hybrid to the rescue

    Combine HTML/CSS/JS with native code
                                                       Special functions
    User interface in         Logic and interaction
                                                      written in platform-
      HTML/CSS                        in JS
                                                      specific native code




                              Advantages
                          Reuse of           Access to        App-store
    Portability
                        existing skills     device APIs       presence
Hybrid Apps
                                        Native Container

              File System
              (on Mobile                 HTML, CSS, JS
                Device)




                            Mobile OS
App Development Comparison
         Device                Development               Approval
                     Speed                   App Store
         Access                    Cost                  Process




Native    Full     Very Fast    Expensive    Available   Mandatory



                    Native
                                                           Low
Hybrid    Full     Speed as    Reasonable    Available
                                                         Overhead
                   Necessary



                                               Not
 Web     Partial     Fast      Reasonable
                                             Available
                                                           None
Architecture of a hybrid app
 Native container:
 •   Creates instance of UIWebView / android.webkit.WebView / etc.
 •   Navigates to main html file
 •   Implements listener/handler for requests coming from JS code
 •   Activates JS code when necessary


 HTML5/CSS3/JS code:
 • Implements UI and app logic
 • Activates native handlers through OS-specific mechanism (custom URL
   scheme)
 • Receives responses through JS handlers

 HTML resources can be packaged into downloadable app for
 performance boost
PhoneGap – Open Source Framework
 The de-facto standard for hybrid app development
 Now in transition into becoming “Apache Callback”
 Provides:
 • A template implementation for the native container
 • Implementation of the JS<->Native bridge for 6 mobile OSs
 • OS-independent JS APIs for activating device functions
PhoneGap provides JS access to device APIs
PhoneGap run-time (native+JS) is part of the app
Example: raising a native alert from JS code
Example: getting device info
Example: accessing the camera
Worklight Platform: PhoneGap-based client-side

 The Worklight Platform provides an enterprise-grade
 infrastructure for mobile apps

 Includes features such as security, authentication,
 data-integration, push notifications, diagnostics, direct update
 and more

 We chose PhoneGap as the basis for our client-side technology,
 (while exposing the PhoneGap APIs) and are very happy with the
 result!
A couple of Worklight-based apps




Lotte Card (Korean credit card company):   RealNews (for iPad):
• Combines 150 HTML5 screens with a        • Developed by RealCommerce, Worklight’s
   native augmented reality screen           distributors in Israel
• Developed very quickly for iPhone and    • Lists “hot” Israeli news articles by # of likes
   Android                                 • Freely available on the app store
For More Information


Resource              Location
PhoneGap Site         http://www.phonegap.com
Apache Project Page   http://incubator.apache.org/projects/callback.html
Worklight Webinars    http://www.worklight.com/resources/webinars-and-tools




                       Thank You!

More Related Content

PPT
Salesforce touch
PPTX
Mobile architecture options
PPTX
Introducing ADF Mobile - and Luc Bors(AMIS SIG, 12th November 2012)
PPTX
Introduction to ICS
PDF
Enterprise apps using ruby droid con berlin 2012
PPTX
Introduction to Hybrid Application Development
KEY
Mobile Drupal
PDF
An Intro to Mobile HTML5
Salesforce touch
Mobile architecture options
Introducing ADF Mobile - and Luc Bors(AMIS SIG, 12th November 2012)
Introduction to ICS
Enterprise apps using ruby droid con berlin 2012
Introduction to Hybrid Application Development
Mobile Drupal
An Intro to Mobile HTML5

What's hot (20)

PPTX
Creating personalized cross platform mobile apps with the Sitecore Mobile SDK
PPTX
Essential API Facade Patterns - Composition (Episode 1)
PPTX
Hybrid App Development with PhoneGap
PPTX
Xamarin.Forms
PPTX
Case study: integrating azure with google app engine
PDF
IBM Worklight
PDF
Creating a Global E-Commerce Website With E-Business Suite and Fusion Middleware
PDF
Introduction to Phonegap
PDF
IBM MobileFirst - Hybrid App Development
PPTX
Da 0 all'AI conversazionale usando Microsoft Azure
ODP
Synapse india reviews on asp.net mobile application
PPTX
Мобильная разработка. Между Сциллой и Харибдой. Native, hybrid or cross platf...
PPT
Integrating ADF Mobile with WebCenter
KEY
FatWire Tutorial For Site Studio Developers
PDF
Doag wysiwyg
PPT
Usability In Mobile Applications
PPTX
Cucumber_Capybara
PDF
My Ionic Adventure
KEY
Open Source World : Using Web Technologies to build native iPhone and Android...
PDF
What’s behind a high quality web API? Ensure your APIs are more than just a ...
Creating personalized cross platform mobile apps with the Sitecore Mobile SDK
Essential API Facade Patterns - Composition (Episode 1)
Hybrid App Development with PhoneGap
Xamarin.Forms
Case study: integrating azure with google app engine
IBM Worklight
Creating a Global E-Commerce Website With E-Business Suite and Fusion Middleware
Introduction to Phonegap
IBM MobileFirst - Hybrid App Development
Da 0 all'AI conversazionale usando Microsoft Azure
Synapse india reviews on asp.net mobile application
Мобильная разработка. Между Сциллой и Харибдой. Native, hybrid or cross platf...
Integrating ADF Mobile with WebCenter
FatWire Tutorial For Site Studio Developers
Doag wysiwyg
Usability In Mobile Applications
Cucumber_Capybara
My Ionic Adventure
Open Source World : Using Web Technologies to build native iPhone and Android...
What’s behind a high quality web API? Ensure your APIs are more than just a ...
Ad

Viewers also liked (18)

PDF
Navegadores de internet
PDF
Bingo sinfones fr_3x3_3_cartones
PDF
Melhores práticas no uso de redes sociais para o mercado imobiliário
PPTX
Deber primero derecho a
PPTX
The Business Benefits of Threat Intelligence Webinar
PPTX
Proposal for a new park
PDF
ALMSecret layoutsRAG
PPTX
PPT
Advances in Breast Tumor Biomarker Discovery Methods
PDF
Bulletproof conf 2014 dominic d agostino ketones final
PDF
Asynchronous Programming in Android
PPTX
Operational Security Intelligence
PPTX
WIHP: Meta Search Advertising
PPTX
Electric Vehicles for Corporate Commute with Electrifying Branding.
PPT
Introducción a UML
PDF
RxSwift x Realm
PDF
Securing Microservices using Play and Akka HTTP
PDF
130910 kihare
Navegadores de internet
Bingo sinfones fr_3x3_3_cartones
Melhores práticas no uso de redes sociais para o mercado imobiliário
Deber primero derecho a
The Business Benefits of Threat Intelligence Webinar
Proposal for a new park
ALMSecret layoutsRAG
Advances in Breast Tumor Biomarker Discovery Methods
Bulletproof conf 2014 dominic d agostino ketones final
Asynchronous Programming in Android
Operational Security Intelligence
WIHP: Meta Search Advertising
Electric Vehicles for Corporate Commute with Electrifying Branding.
Introducción a UML
RxSwift x Realm
Securing Microservices using Play and Akka HTTP
130910 kihare
Ad

Similar to Developing Downloadable Mobile Apps Using HTML5 and PhoneGap (20)

PPTX
HTML5: The Apps, the Frameworks, the Controversy
PDF
The Enterprise Dilemma: Native vs. Web
PDF
Building Cross Platform Mobile Web Apps
PDF
Building cross platform mobile web apps
PDF
HTML5 and the dawn of rich mobile web applications
PDF
Hybrid mobile apps
PDF
Mobile web or native app
PPTX
Mobile Web Apps
PPT
Web Apps vs. Native Apps: The Low Down
PDF
HTML5 and the dawn of rich mobile web applications pt 1
PDF
Building Native Mobile Applications with PhoneGap
PDF
A Snapshot of the Mobile HTML5 Revolution
PPTX
Magic mobile webinar_Jan2013
KEY
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
KEY
Selecting a Front-End Mobile Solution
PPSX
Cross platform mobile application architecture for enterprise
PDF
Native vs Hybrid vs Web
KEY
Mobile ECM with JavaScript - JSE 2011
PDF
Mobile App Development
KEY
Building Mobile Apps with HTML, CSS, and JavaScript
HTML5: The Apps, the Frameworks, the Controversy
The Enterprise Dilemma: Native vs. Web
Building Cross Platform Mobile Web Apps
Building cross platform mobile web apps
HTML5 and the dawn of rich mobile web applications
Hybrid mobile apps
Mobile web or native app
Mobile Web Apps
Web Apps vs. Native Apps: The Low Down
HTML5 and the dawn of rich mobile web applications pt 1
Building Native Mobile Applications with PhoneGap
A Snapshot of the Mobile HTML5 Revolution
Magic mobile webinar_Jan2013
HTML5 is the Future of Mobile, PhoneGap Takes You There Today
Selecting a Front-End Mobile Solution
Cross platform mobile application architecture for enterprise
Native vs Hybrid vs Web
Mobile ECM with JavaScript - JSE 2011
Mobile App Development
Building Mobile Apps with HTML, CSS, and JavaScript

Recently uploaded (20)

PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
Modernizing your data center with Dell and AMD
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
Chapter 2 Digital Image Fundamentals.pdf
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
Sensors and Actuators in IoT Systems using pdf
Modernizing your data center with Dell and AMD
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
GamePlan Trading System Review: Professional Trader's Honest Take
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
“AI and Expert System Decision Support & Business Intelligence Systems”
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
Spectral efficient network and resource selection model in 5G networks

Developing Downloadable Mobile Apps Using HTML5 and PhoneGap

  • 1. Developing Downloadable Mobile Apps Using HTML5 and PhoneGap “Apache Callback” Ron Perry, CTO, Worklight Inc.
  • 2. Agenda Downloadable (native) apps vs. Web apps • HTML5 web apps vs. Downloadable apps Using HTML5 in downloadable apps: the hybrid model • How hybrid apps work • Advantages and disadvantages Writing an app with PhoneGap • The concept • Accessing device APIs Our experience with PhoneGap
  • 3. Critical HTML5 features are supported on mobile iOS5 Android 2.2, 2.3 WinPhone 7.5 • Canvas • SVG • Audio • Elements Desktop: • Local Storage • CSS3 position:fixed • Geolocation • Drag & Drop • Video • Files • CSS3 borders, anim • WebGL • Web Applications • IndexedDB, WebSQL
  • 4. HTML5 makes mobile web apps possible
  • 5. Native apps can still do much more VoIP Access Camera Audio Processing Video Processing App-Store Presence
  • 6. Downloadable (Native) Apps File System Native App (on Mobile (Java/Obj-C/C#) Device) Mobile OS
  • 7. Web Apps Mobile Browser Web App (HTML, CSS, JS) Web Server Mobile OS
  • 8. Hybrid to the rescue Combine HTML/CSS/JS with native code Special functions User interface in Logic and interaction written in platform- HTML/CSS in JS specific native code Advantages Reuse of Access to App-store Portability existing skills device APIs presence
  • 9. Hybrid Apps Native Container File System (on Mobile HTML, CSS, JS Device) Mobile OS
  • 10. App Development Comparison Device Development Approval Speed App Store Access Cost Process Native Full Very Fast Expensive Available Mandatory Native Low Hybrid Full Speed as Reasonable Available Overhead Necessary Not Web Partial Fast Reasonable Available None
  • 11. Architecture of a hybrid app Native container: • Creates instance of UIWebView / android.webkit.WebView / etc. • Navigates to main html file • Implements listener/handler for requests coming from JS code • Activates JS code when necessary HTML5/CSS3/JS code: • Implements UI and app logic • Activates native handlers through OS-specific mechanism (custom URL scheme) • Receives responses through JS handlers HTML resources can be packaged into downloadable app for performance boost
  • 12. PhoneGap – Open Source Framework The de-facto standard for hybrid app development Now in transition into becoming “Apache Callback” Provides: • A template implementation for the native container • Implementation of the JS<->Native bridge for 6 mobile OSs • OS-independent JS APIs for activating device functions
  • 13. PhoneGap provides JS access to device APIs
  • 14. PhoneGap run-time (native+JS) is part of the app
  • 15. Example: raising a native alert from JS code
  • 18. Worklight Platform: PhoneGap-based client-side The Worklight Platform provides an enterprise-grade infrastructure for mobile apps Includes features such as security, authentication, data-integration, push notifications, diagnostics, direct update and more We chose PhoneGap as the basis for our client-side technology, (while exposing the PhoneGap APIs) and are very happy with the result!
  • 19. A couple of Worklight-based apps Lotte Card (Korean credit card company): RealNews (for iPad): • Combines 150 HTML5 screens with a • Developed by RealCommerce, Worklight’s native augmented reality screen distributors in Israel • Developed very quickly for iPhone and • Lists “hot” Israeli news articles by # of likes Android • Freely available on the app store
  • 20. For More Information Resource Location PhoneGap Site http://www.phonegap.com Apache Project Page http://incubator.apache.org/projects/callback.html Worklight Webinars http://www.worklight.com/resources/webinars-and-tools Thank You!

Editor's Notes

  • #11: So to summarize, let’s look at all 3 development approaches compared to each other.Native excels in performance and device access, but suffers in cost and updates.Web is much simpler, less expensive, easier to update, but is currently more limited.Hybrid provides a middle ground, which in many situations is the best of both worlds – especially if you’re targeting multiple operating systems.Which should you choose? That really depends on your specific needs. There isn’t a single approach that works for everyone.So to provide you with a few more tips that will help you decide, I’d like to transfer the microphone over to Jonathan - who will examine the approaches from a business perspective, and discuss how they fit into the bigger picture of defining the mobile strategy of your organization.