SlideShare uma empresa Scribd logo
1 de 26
•
Introduction to Hybrid
Application
Development
Presented by: Kunjan Thakkar
Who am I?
• Sr. Developer @ Synerzip Softech
• 5+ years of development experience
• Mobile Application development in Android, J2ME,
Blackberry
• Web development using Javascript, HTML5, AngularJS,
Polymer
• Current interests: Hybrid application development
• Contact
• kunj.t.2490@gmail.com
• LinkedIn https://in.linkedin.com/in/kunjan-thakkar-4199b129
What are hybrid applications?
• A hybrid application is basically
a native application with
embedded HTML
• It has all the benefits of native
apps like full access to APIs,
app-store presence, etc.
• Selected portions of the app are
written using web technologies.
Skills needed for hybrid apps
All hybrid applications are based on javascript. They might
be based on some specific javascript technologies like
jquery/angularjs
Are native apps not good
enough?
They bring the best of native
and web apps
Few of the many hybrid app
frameworks
What have we explored so
far?
Phonegap
• Phonegap is a mobile application development framework. It
enables developers to build applications for mobile devices
using Javascript, HTML5 and CSS3 instead of relying on
platform specific APIs in IOS/Android/Windows Phone.
• Although the applications are developed using HTML, CSS
and Javascript, the end product is a binary that can be
distributed through the respective ecosystems.
• Phonegap was created by Nitobi and Adobe acquired it in
2011.
Cordova
• The core engine for Phonegap is 100% open source under the
Apache Cordova project.
• Cordova is the engine that powers Phonegap. It bridges the
gap between Javascript, HTML5 and native.
• The hybrid application would run in a web browser view that
takes up 100% device height and 100% device width.
• The web view used by the application is the same web view
used by the native operating system.
• On iOS, this is the Objective-C UIWebView class
• On Android, this is android.webkit.WebView.
Cordova
• When an application is created using cordova, it creates
a skeleton for the native app
• For eg: For an android application, it would create a
manifest file and a main activity to launch the application.
The main activity would then initialize the WebView class
where your javascript loads
• This means you get access to the generated code base in
native as well. You could add any special permissions that
you want for a particular platform, in case they are
unavailable through config.xml
Jquery Mobile
• Build on popular jquery library and uses cordova
• Easy access to DOM
• Shallower learning curve as compared to other hybrid
frameworks
• Several built-in widgets like page, panel, etc
• You can create your own theme using theme roller.
• AJAX calls are made automatically to load dynamic
content.
• Rich set of third party plugins
• [Demo]
Mobile angular UI
• Based on AngularJS and Bootstrap. Uses cordova
• Several built-in components like switches, overlays,
sidebars, absolute positioned navigation bars.
• Works seamlessly from mobile to desktop and back
• No dependencies on jquery or bootstrap.js
• Internally uses bootstrap to provide responsiveness
• Font awesome ions are included by default in place of
glyphicons
• [Demo]
Ionic
• Built with Sass and optimized for AngularJS. Uses
cordova
• Built-in app templates help you get started in minutes
• Its native focussed - same code but renders differently
on different OS giving the application a more native feel
• Uses templating which reduces code bloat.
• Minimal DOM manipulation
• No dependencies on jquery
• Hardware accelerated transitions
• [Demo]
Introduction to Appery.io
• Appery.io is a cloud-based platform that provides UI
development tools and integrated backend services.
• It uses bootstrap for responsiveness and cordova for
building the application
• It gives you a choice of the UI framework you want to
work with. You could create an application using Jquery
mobile/mobile angular UI/Ionic
• Appery has built in support for backend/databases/push
notifications.
• The created application has some commonly used
cordova plugins like google analytics pre-installed. Also
you can install any other cordova plugin easily.
Appery.io framework
How does the hybrid
application work?
What if I need to access some
native functionality thats not
currently supported?
• A plugin is a bit of add-on code that provides JavaScript
interface to native components.
• It allows the Cordova webview within which the app
renders to communicate with the native platform on
which it runs.
• These are some plugins created by developers -
http://cordova.apache.org/plugins/
Plugin.xml
Why I should I go for a hybrid
application(I)?
• One code runs everywhere - all mobile platforms as well
desktops. Hybrid applications are cross-platform, which saves
you money and time (which saves you even more money ;))
• Time to market is comparatively less
• Consistent UI throughout all platforms which is tricky to
achieve with native apps.
• CSS is powerful! You can customize almost anything right
from headers to switches to transitions. Several UI
frameworks now have built-in transitions which are hardware
accelerated giving your users a smooth experience.
Why I should I go for a hybrid
application(II)?
• Need to access some native APIs? Write a plugin :) Hybrid
apps give you benefits of javascript and native both. You get
access of native and power of javascript.
• You can make use of the powerful javascript libraries that are
at our disposal for eg: gmaps.js which supports geolocation
and several other map features. On native you might have to
implement these by yourself. And the list is endless ..
Some examples of hybrid
applications
So what do I use and when?
Jquery Mobile Mobile angular UI Ionic
Supports all mobile devices and
all desktop browsers
Supports all mobile devices and
all desktop browsers
Supports android and ios. Minimal
windows phone support. No
guaranteed support for browsers
Well suited for simple
applications. Not well suited for
applications having complex
UI/DOM manipulations
Well suited for applications that
require binding and have complex
UI
Well suited for applications that
require binding and have complex
UI
UI appears similar on all devices.
However, can be configured using
device type checks
UI appears similar on all devices.
However, can be configured using
device type checks
Native focussed. Same code
renders differently on different OS
giving the application a more
native feel
Create your own theme using
theme roller
Themes can be created using css Themes can be created using css
No built in responsiveness. Need
to include third party libraries for it.
Uses Bootstrap3 internally for
responsiveness
Offers built in responsive grid
support
Performance can degrade for
complex applications
Performance is better than JQM,
however, not as smooth as ionic
Excellent performance and speed
on native devices.
Limited built in transitions Limited built in transitions Several built in hardware
accelerated transitions
No built in app templates. No built in app templates.
However, the application created
contains a rich bunch of samples.
Built in app templates get you
started in minutes
Executable needs to be
distributed manually if you do not
want to upload it on app store
Executable needs to be
distributed manually if you do not
want to upload it on app store
You can use the Ionic View app to
share your application with
selected users without uploading
it to app store
Questions?
Thank You

Mais conteúdo relacionado

Mais procurados

Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
Chris Morrell
 
Introduction to Mobile Application Development
Introduction to Mobile Application DevelopmentIntroduction to Mobile Application Development
Introduction to Mobile Application Development
shikishiji
 
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Bala Subra
 

Mais procurados (20)

Hybrid mobile app with kendo ui mobile
Hybrid mobile app with kendo ui mobileHybrid mobile app with kendo ui mobile
Hybrid mobile app with kendo ui mobile
 
Mobile App Development
Mobile App DevelopmentMobile App Development
Mobile App Development
 
Native vs. Hybrid Apps
Native vs. Hybrid AppsNative vs. Hybrid Apps
Native vs. Hybrid Apps
 
The Great Mobile Debate: Native vs. Hybrid App Development
The Great Mobile Debate: Native vs. Hybrid App DevelopmentThe Great Mobile Debate: Native vs. Hybrid App Development
The Great Mobile Debate: Native vs. Hybrid App Development
 
Hybrid vs Native Mobile App. Decide in 5 minutes!
Hybrid vs Native Mobile App. Decide in 5 minutes!Hybrid vs Native Mobile App. Decide in 5 minutes!
Hybrid vs Native Mobile App. Decide in 5 minutes!
 
Introduction to Mobile Application Development
Introduction to Mobile Application DevelopmentIntroduction to Mobile Application Development
Introduction to Mobile Application Development
 
Native vs Web vs Hybrid Mobile Application Development
Native vs Web vs Hybrid Mobile Application DevelopmentNative vs Web vs Hybrid Mobile Application Development
Native vs Web vs Hybrid Mobile Application Development
 
Native vs hybrid approach Mobile App Development
Native vs hybrid approach Mobile App DevelopmentNative vs hybrid approach Mobile App Development
Native vs hybrid approach Mobile App Development
 
Cross Platform Mobile App Development
Cross Platform Mobile App DevelopmentCross Platform Mobile App Development
Cross Platform Mobile App Development
 
Introduction to Cross-Platform Hybrid Mobile App Development
Introduction to Cross-Platform Hybrid Mobile App DevelopmentIntroduction to Cross-Platform Hybrid Mobile App Development
Introduction to Cross-Platform Hybrid Mobile App Development
 
Web App VS. Hybrid App VS. Native App?
Web App VS. Hybrid App VS. Native App?Web App VS. Hybrid App VS. Native App?
Web App VS. Hybrid App VS. Native App?
 
Hybrid App Development with PhoneGap
Hybrid App Development with PhoneGapHybrid App Development with PhoneGap
Hybrid App Development with PhoneGap
 
Native vs Hybrid - Options to develop your mobile application
Native vs Hybrid - Options to develop your mobile applicationNative vs Hybrid - Options to develop your mobile application
Native vs Hybrid - Options to develop your mobile application
 
Hybrid vs Native vs Web Apps
Hybrid vs Native vs Web AppsHybrid vs Native vs Web Apps
Hybrid vs Native vs Web Apps
 
Pick Your Poison – Mobile Web, Native or Hybrid?
Pick Your Poison – Mobile Web, Native or Hybrid?Pick Your Poison – Mobile Web, Native or Hybrid?
Pick Your Poison – Mobile Web, Native or Hybrid?
 
Mobile Application Development: Hybrid, Native and Mobile Web Apps
Mobile Application Development: Hybrid, Native and Mobile Web AppsMobile Application Development: Hybrid, Native and Mobile Web Apps
Mobile Application Development: Hybrid, Native and Mobile Web Apps
 
Introduction to Mobile Development
Introduction to Mobile DevelopmentIntroduction to Mobile Development
Introduction to Mobile Development
 
Mobile architecture options
Mobile architecture optionsMobile architecture options
Mobile architecture options
 
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
Mobile Development Architecture Ppt with Slides, Book Notes on using Web Silv...
 
Development of Mobile Application -PPT
Development of Mobile Application -PPTDevelopment of Mobile Application -PPT
Development of Mobile Application -PPT
 

Destaque (7)

These mobile apps will let you totally rethink hybrid app development
These mobile apps will let you totally rethink hybrid app developmentThese mobile apps will let you totally rethink hybrid app development
These mobile apps will let you totally rethink hybrid app development
 
Web components
Web componentsWeb components
Web components
 
Native vs Hybrid vs Web
Native vs Hybrid vs WebNative vs Hybrid vs Web
Native vs Hybrid vs Web
 
Hybrid Mobile Application Framework
Hybrid Mobile Application FrameworkHybrid Mobile Application Framework
Hybrid Mobile Application Framework
 
History Of The Development Of Mobile Applications
History Of The Development Of Mobile ApplicationsHistory Of The Development Of Mobile Applications
History Of The Development Of Mobile Applications
 
Native, Web or Hybrid Mobile App Development?
Native, Web or Hybrid Mobile App Development?Native, Web or Hybrid Mobile App Development?
Native, Web or Hybrid Mobile App Development?
 
Introduction to Ionic framework
Introduction to Ionic frameworkIntroduction to Ionic framework
Introduction to Ionic framework
 

Semelhante a Introduction to hybrid application development

Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Nick Landry
 
Hybrid Mobile Apps - Meetup
Hybrid Mobile Apps - MeetupHybrid Mobile Apps - Meetup
Hybrid Mobile Apps - Meetup
Sanjay Patel
 

Semelhante a Introduction to hybrid application development (20)

Flutter vs Ionic: Which framework is better for cross platform application d...
Flutter vs Ionic: Which framework is better  for cross platform application d...Flutter vs Ionic: Which framework is better  for cross platform application d...
Flutter vs Ionic: Which framework is better for cross platform application d...
 
Cross Platform Mobile Development
Cross Platform Mobile DevelopmentCross Platform Mobile Development
Cross Platform Mobile Development
 
Top 4 Cross Platform tools for Mobile App Development
Top 4 Cross Platform tools for Mobile App DevelopmentTop 4 Cross Platform tools for Mobile App Development
Top 4 Cross Platform tools for Mobile App Development
 
Hybrid Mobile Development with Apache Cordova,AngularJs and ionic
Hybrid Mobile Development with Apache Cordova,AngularJs and ionicHybrid Mobile Development with Apache Cordova,AngularJs and ionic
Hybrid Mobile Development with Apache Cordova,AngularJs and ionic
 
Building Mobile Apps with Cordova , AngularJS and Ionic
Building Mobile Apps with Cordova , AngularJS and IonicBuilding Mobile Apps with Cordova , AngularJS and Ionic
Building Mobile Apps with Cordova , AngularJS and Ionic
 
Consider Starting Small
Consider Starting SmallConsider Starting Small
Consider Starting Small
 
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGapBuilding Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
Building Mobile Cross-Platform Apps with HTML5, jQuery Mobile & PhoneGap
 
10 Useful Frameworks to Build Hybrid Mobile Apps
10 Useful Frameworks to Build Hybrid Mobile Apps10 Useful Frameworks to Build Hybrid Mobile Apps
10 Useful Frameworks to Build Hybrid Mobile Apps
 
Hybrid vs. Native app - Ionic Framework with AngularJS
Hybrid vs. Native app - Ionic Framework with AngularJSHybrid vs. Native app - Ionic Framework with AngularJS
Hybrid vs. Native app - Ionic Framework with AngularJS
 
Popular App Development Frameworks used by App Developers.
Popular App Development Frameworks used by App Developers.Popular App Development Frameworks used by App Developers.
Popular App Development Frameworks used by App Developers.
 
Hybrid Mobile Apps - Meetup
Hybrid Mobile Apps - MeetupHybrid Mobile Apps - Meetup
Hybrid Mobile Apps - Meetup
 
Cross platform mobile application devlopment
Cross platform mobile application devlopmentCross platform mobile application devlopment
Cross platform mobile application devlopment
 
The Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdfThe Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdf
 
Hybrid Apps with Angular & Ionic Framework
Hybrid Apps with Angular & Ionic FrameworkHybrid Apps with Angular & Ionic Framework
Hybrid Apps with Angular & Ionic Framework
 
Cross-platform Mobile Development on Open Source
Cross-platform Mobile Development on Open SourceCross-platform Mobile Development on Open Source
Cross-platform Mobile Development on Open Source
 
Presentation
PresentationPresentation
Presentation
 
Deal with the dilemma of hybrid and native
Deal with the dilemma of hybrid and nativeDeal with the dilemma of hybrid and native
Deal with the dilemma of hybrid and native
 
Mobile JS Frameworks
Mobile JS FrameworksMobile JS Frameworks
Mobile JS Frameworks
 
Mobile Web Apps
Mobile Web AppsMobile Web Apps
Mobile Web Apps
 
Why hybrid-is-important
Why hybrid-is-importantWhy hybrid-is-important
Why hybrid-is-important
 

Último

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Último (20)

The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 

Introduction to hybrid application development

  • 2. Who am I? • Sr. Developer @ Synerzip Softech • 5+ years of development experience • Mobile Application development in Android, J2ME, Blackberry • Web development using Javascript, HTML5, AngularJS, Polymer • Current interests: Hybrid application development • Contact • kunj.t.2490@gmail.com • LinkedIn https://in.linkedin.com/in/kunjan-thakkar-4199b129
  • 3. What are hybrid applications? • A hybrid application is basically a native application with embedded HTML • It has all the benefits of native apps like full access to APIs, app-store presence, etc. • Selected portions of the app are written using web technologies.
  • 4. Skills needed for hybrid apps All hybrid applications are based on javascript. They might be based on some specific javascript technologies like jquery/angularjs
  • 5. Are native apps not good enough?
  • 6. They bring the best of native and web apps
  • 7. Few of the many hybrid app frameworks
  • 8. What have we explored so far?
  • 9. Phonegap • Phonegap is a mobile application development framework. It enables developers to build applications for mobile devices using Javascript, HTML5 and CSS3 instead of relying on platform specific APIs in IOS/Android/Windows Phone. • Although the applications are developed using HTML, CSS and Javascript, the end product is a binary that can be distributed through the respective ecosystems. • Phonegap was created by Nitobi and Adobe acquired it in 2011.
  • 10. Cordova • The core engine for Phonegap is 100% open source under the Apache Cordova project. • Cordova is the engine that powers Phonegap. It bridges the gap between Javascript, HTML5 and native. • The hybrid application would run in a web browser view that takes up 100% device height and 100% device width. • The web view used by the application is the same web view used by the native operating system. • On iOS, this is the Objective-C UIWebView class • On Android, this is android.webkit.WebView.
  • 11. Cordova • When an application is created using cordova, it creates a skeleton for the native app • For eg: For an android application, it would create a manifest file and a main activity to launch the application. The main activity would then initialize the WebView class where your javascript loads • This means you get access to the generated code base in native as well. You could add any special permissions that you want for a particular platform, in case they are unavailable through config.xml
  • 12. Jquery Mobile • Build on popular jquery library and uses cordova • Easy access to DOM • Shallower learning curve as compared to other hybrid frameworks • Several built-in widgets like page, panel, etc • You can create your own theme using theme roller. • AJAX calls are made automatically to load dynamic content. • Rich set of third party plugins • [Demo]
  • 13. Mobile angular UI • Based on AngularJS and Bootstrap. Uses cordova • Several built-in components like switches, overlays, sidebars, absolute positioned navigation bars. • Works seamlessly from mobile to desktop and back • No dependencies on jquery or bootstrap.js • Internally uses bootstrap to provide responsiveness • Font awesome ions are included by default in place of glyphicons • [Demo]
  • 14. Ionic • Built with Sass and optimized for AngularJS. Uses cordova • Built-in app templates help you get started in minutes • Its native focussed - same code but renders differently on different OS giving the application a more native feel • Uses templating which reduces code bloat. • Minimal DOM manipulation • No dependencies on jquery • Hardware accelerated transitions • [Demo]
  • 15. Introduction to Appery.io • Appery.io is a cloud-based platform that provides UI development tools and integrated backend services. • It uses bootstrap for responsiveness and cordova for building the application • It gives you a choice of the UI framework you want to work with. You could create an application using Jquery mobile/mobile angular UI/Ionic • Appery has built in support for backend/databases/push notifications. • The created application has some commonly used cordova plugins like google analytics pre-installed. Also you can install any other cordova plugin easily.
  • 17. How does the hybrid application work?
  • 18. What if I need to access some native functionality thats not currently supported? • A plugin is a bit of add-on code that provides JavaScript interface to native components. • It allows the Cordova webview within which the app renders to communicate with the native platform on which it runs. • These are some plugins created by developers - http://cordova.apache.org/plugins/
  • 20. Why I should I go for a hybrid application(I)? • One code runs everywhere - all mobile platforms as well desktops. Hybrid applications are cross-platform, which saves you money and time (which saves you even more money ;)) • Time to market is comparatively less • Consistent UI throughout all platforms which is tricky to achieve with native apps. • CSS is powerful! You can customize almost anything right from headers to switches to transitions. Several UI frameworks now have built-in transitions which are hardware accelerated giving your users a smooth experience.
  • 21. Why I should I go for a hybrid application(II)? • Need to access some native APIs? Write a plugin :) Hybrid apps give you benefits of javascript and native both. You get access of native and power of javascript. • You can make use of the powerful javascript libraries that are at our disposal for eg: gmaps.js which supports geolocation and several other map features. On native you might have to implement these by yourself. And the list is endless ..
  • 22. Some examples of hybrid applications
  • 23. So what do I use and when? Jquery Mobile Mobile angular UI Ionic Supports all mobile devices and all desktop browsers Supports all mobile devices and all desktop browsers Supports android and ios. Minimal windows phone support. No guaranteed support for browsers Well suited for simple applications. Not well suited for applications having complex UI/DOM manipulations Well suited for applications that require binding and have complex UI Well suited for applications that require binding and have complex UI UI appears similar on all devices. However, can be configured using device type checks UI appears similar on all devices. However, can be configured using device type checks Native focussed. Same code renders differently on different OS giving the application a more native feel Create your own theme using theme roller Themes can be created using css Themes can be created using css
  • 24. No built in responsiveness. Need to include third party libraries for it. Uses Bootstrap3 internally for responsiveness Offers built in responsive grid support Performance can degrade for complex applications Performance is better than JQM, however, not as smooth as ionic Excellent performance and speed on native devices. Limited built in transitions Limited built in transitions Several built in hardware accelerated transitions No built in app templates. No built in app templates. However, the application created contains a rich bunch of samples. Built in app templates get you started in minutes Executable needs to be distributed manually if you do not want to upload it on app store Executable needs to be distributed manually if you do not want to upload it on app store You can use the Ionic View app to share your application with selected users without uploading it to app store