SlideShare a Scribd company logo
Developing Ionic Apps for Android and iOS
Introduction
Apache Cordova is an open-source mobile development framework. It allows you to use standard
web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding
each mobile platforms’ native development language. Applications execute within wrappers targeted
to each platform, and rely on standards-compliant API bindings to access each device’s sensors, data,
and network status. Currently there are 1300 apps in app store.
What You Will Learn:
• How to create and build (compile and package) a ionic project using the CLI (Command Line
Interface). Using Chrome Developer tools
• How to use different data storage strategies.
• How to use several Cordova APIs such as Geolocation, Contacts, and Camera.
• How to handle specific mobile challenges such as touch events, scrolling, styling, page transitions,
etc.
• How to build an application using a single-page architecture and HTML templates. Use AngularJS,
HTML and CSS for making Rich, Faster and responsive UIs
Requirements
• To complete this workshop, all you need is a code editor, a modern browser, and a connection to the
Internet.
• A working knowledge of HTML and JavaScript is assumed, but you don’t need to be a JavaScript
guru.
Course Contents
1. Ionic – Powered by AngularJS
Understanding the separation of concerns
AngularJS components
AngularJS directives
AngularJS services
AngularJS resources
2. Welcome to Ionic
Mobile Hybrid Architecture
What is Apache Cordova?
What is Ionic?
Software setup
Install Node.js
Install Git
Install Bower
Install Gulp
Install Sublime Text
Install Cordova and Ionic CLI
The platform guide
Hello Ionic
The browser developer tools setup
Google Chrome
Mozilla Firefox
The Ionic project structure
The config.xml file
The www folder
Scaffolding the tabs template
Scaffolding the side menu template
generator-ionic
Installing generator-ionic
3. Ionic CSS Components and Navigation
Ionic CSS components
The Ionic grid system
The page structure
Buttons
Lists
Cards
Ionicons
Form elements
Integrating Ionic CSS components with AngularJS
The Ionic router
A simple two-page app
4. Ionic and SCSS
What is Sass?
Setting up SCSS in our Ionic project
The manual setup
The Ionic CLI task
Working with Ionic SCSS
Basic swatch
Understanding the Ionic SCSS setup
Using variables and mixins
The SCSS workflow
Building a swatch
5. Ionic Directives and Services
Ionic directives and services
The Ionic Platform service
registerBackButtonAction
The on method
Headers and footers
Content
ion-content
ion-scroll
ion-refresher
ion-infinite-scroll
$ionicScrollDelegate
Navigation
ion-view
Ionic view events
ion-nav-bar
ion-nav-buttons
$ionicNavBarDelegate
$ionicHistory
Tabs and side menu
Ionic loading
The Action Sheet service
Popover and Popup services
$ionicPopup
The ion-list and ion-item directives
Gesture directives and services
Utilities
6. Building a sample App
An introduction to the sample application
The architecture of the app
The server architecture
The server-side API documentation
The client architecture
Code on GitHub
A demo of the sample app
The development flow
Setting up the server
Building the application
Step 1 – Scaffolding the side menu template
Step 2 – Refactoring the template
Refactoring the menu
Refactoring the module name
Adding a run method and modifying routes
Refactoring templates
Step 3 – Building authentication, localStorage, and
the REST API factory
The Ionic loading factory
The localStorage factory
The Authentication factory
The REST API factory
Step 4 – Creating controllers for each route and
integrating with the factory
The application controller
The browse controller
The book controller
The cart controller
The purchase controller
Step 5 – Creating templates and integrating with
the controller data
The Login template
The Browse template
The Product item template
The Shopping Cart template
The Purchase template
7. Cordova and ngCordova
Setting up a platform-specific SDK
The Android setup
The iOS setup
Testing the setup
Testing for Android
Testing for iOS
Getting started with Cordova plugins
The Ionic plugin API
Add a plugin
Remove a plugin
List added plugins
Search plugins
The Cordova whitelist plugin
ngCordova
Setting up ngCordova
Legend
$cordovaToast
$cordovaDialogs
$cordovaFlashlight
$cordovaLocalNotification
$cordovaGeolocation
8. Releasing the Ionic App
Preparing the app for distribution
Setting up icons and splash screens
Updating the config.xml file
The PhoneGap service
Generating installers using the Cordova CLI
Android installer
iOS installer
The Ionic package
Uploading the project to Ionic cloud
Generating the required keys

More Related Content

What's hot (20)

PPTX
Hybrid vs. Native app - Ionic Framework with AngularJS
Zvika Epstein
 
PPT
Ionic Framework
Thinh VoXuan
 
PPTX
Building iOS app using meteor
Entrepreneur / Startup
 
PDF
AEM responsive
Damien Antipa
 
PDF
Cross Platform Mobile Development
Software Infrastructure
 
PDF
Building Mobile Apps with Cordova , AngularJS and Ionic
Kadhem Soltani
 
PPTX
Asp.net mvc - Better User Experience with Kendo UI
Lohith Goudagere Nagaraj
 
PDF
Hybrid Apps with Angular & Ionic Framework
Cihad Horuzoğlu
 
PPTX
Building mobile apps using meteorJS
Entrepreneur / Startup
 
PDF
Building data driven mobile apps with phone gap and webapi
Derek Smith
 
PPTX
ASP.NEt MVC and Angular What a couple
Alexandre Marreiros
 
PPTX
Building Cross Platform Mobile Apps
Shailendra Chauhan
 
PDF
Ionic framework one day training
Troy Miles
 
PPTX
Hybrid Mobile Development with Apache Cordova,AngularJs and ionic
Ermias Bayu
 
PDF
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
PPTX
Developing Hybrid Applications with IONIC
Fuat Buğra AYDIN
 
PPTX
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
PPTX
Hybrid App Development with PhoneGap
Dotitude
 
ODP
Use Ionic Framework to develop mobile application
Lucio Grenzi
 
Hybrid vs. Native app - Ionic Framework with AngularJS
Zvika Epstein
 
Ionic Framework
Thinh VoXuan
 
Building iOS app using meteor
Entrepreneur / Startup
 
AEM responsive
Damien Antipa
 
Cross Platform Mobile Development
Software Infrastructure
 
Building Mobile Apps with Cordova , AngularJS and Ionic
Kadhem Soltani
 
Asp.net mvc - Better User Experience with Kendo UI
Lohith Goudagere Nagaraj
 
Hybrid Apps with Angular & Ionic Framework
Cihad Horuzoğlu
 
Building mobile apps using meteorJS
Entrepreneur / Startup
 
Building data driven mobile apps with phone gap and webapi
Derek Smith
 
ASP.NEt MVC and Angular What a couple
Alexandre Marreiros
 
Building Cross Platform Mobile Apps
Shailendra Chauhan
 
Ionic framework one day training
Troy Miles
 
Hybrid Mobile Development with Apache Cordova,AngularJs and ionic
Ermias Bayu
 
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
Developing Hybrid Applications with IONIC
Fuat Buğra AYDIN
 
OCTO BOF - How to build Netvibes with AngularJS
Jonathan Meiss
 
Hybrid App Development with PhoneGap
Dotitude
 
Use Ionic Framework to develop mobile application
Lucio Grenzi
 

Similar to Developing ionic apps for android and ios (20)

PPTX
Intro to Ionic for Building Hybrid Mobile Applications
Sasha dos Santos
 
PPTX
Workshop on Hybrid App Development with Ionic Framework
Aayush Shrestha
 
PDF
Mobile App Development With Ionic Crossplatform Apps With Ionic Angular And C...
zhuhaigally
 
PDF
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
PDF
Hybrid app development with ionic
Wan Muzaffar Wan Hashim
 
PDF
Mobile app development with Ionic cross platform apps with Ionic Angular and ...
sestayobstk2
 
PDF
Ionic2 First Lesson of Four
Ahmed Mahmoud Kesha
 
PDF
Ionic - Revolutionizing Hybrid Mobile Application Development
Justin James
 
PPTX
Ionic Mobile Applications - Hybrid Mobile Applications Without Compromises
Jacob Friesen
 
PDF
Ionic in Action Hybrid Mobile Apps with Ionic and AngularJS 1st Edition Jerem...
becksverrecs
 
PPTX
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
PDF
Ionic in Action Hybrid Mobile Apps with Ionic and AngularJS 1st Edition Jerem...
gaozaparrow
 
PDF
Ionic Hybrid Mobile Application
Al Sayed Gamal
 
PDF
Crash Course in AngularJS + Ionic (Deep dive)
ColdFusionConference
 
PDF
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 
PPTX
Building mobile app with Ionic Framework
Huy Trần
 
PPTX
Introduction to Ionic framework
Shyjal Raazi
 
PPTX
Introduction To Ionic3
Knoldus Inc.
 
PDF
Building Cross-Platform Mobile Apps
Troy Miles
 
Intro to Ionic for Building Hybrid Mobile Applications
Sasha dos Santos
 
Workshop on Hybrid App Development with Ionic Framework
Aayush Shrestha
 
Mobile App Development With Ionic Crossplatform Apps With Ionic Angular And C...
zhuhaigally
 
Cross Platform Mobile Apps with the Ionic Framework
Troy Miles
 
Hybrid app development with ionic
Wan Muzaffar Wan Hashim
 
Mobile app development with Ionic cross platform apps with Ionic Angular and ...
sestayobstk2
 
Ionic2 First Lesson of Four
Ahmed Mahmoud Kesha
 
Ionic - Revolutionizing Hybrid Mobile Application Development
Justin James
 
Ionic Mobile Applications - Hybrid Mobile Applications Without Compromises
Jacob Friesen
 
Ionic in Action Hybrid Mobile Apps with Ionic and AngularJS 1st Edition Jerem...
becksverrecs
 
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Ionic in Action Hybrid Mobile Apps with Ionic and AngularJS 1st Edition Jerem...
gaozaparrow
 
Ionic Hybrid Mobile Application
Al Sayed Gamal
 
Crash Course in AngularJS + Ionic (Deep dive)
ColdFusionConference
 
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 
Building mobile app with Ionic Framework
Huy Trần
 
Introduction to Ionic framework
Shyjal Raazi
 
Introduction To Ionic3
Knoldus Inc.
 
Building Cross-Platform Mobile Apps
Troy Miles
 
Ad

Recently uploaded (20)

PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Ad

Developing ionic apps for android and ios

  • 1. Developing Ionic Apps for Android and iOS Introduction Apache Cordova is an open-source mobile development framework. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development, avoiding each mobile platforms’ native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device’s sensors, data, and network status. Currently there are 1300 apps in app store. What You Will Learn: • How to create and build (compile and package) a ionic project using the CLI (Command Line Interface). Using Chrome Developer tools • How to use different data storage strategies. • How to use several Cordova APIs such as Geolocation, Contacts, and Camera. • How to handle specific mobile challenges such as touch events, scrolling, styling, page transitions, etc. • How to build an application using a single-page architecture and HTML templates. Use AngularJS, HTML and CSS for making Rich, Faster and responsive UIs Requirements • To complete this workshop, all you need is a code editor, a modern browser, and a connection to the Internet. • A working knowledge of HTML and JavaScript is assumed, but you don’t need to be a JavaScript guru. Course Contents 1. Ionic – Powered by AngularJS Understanding the separation of concerns AngularJS components AngularJS directives AngularJS services AngularJS resources 2. Welcome to Ionic Mobile Hybrid Architecture What is Apache Cordova? What is Ionic? Software setup Install Node.js Install Git Install Bower Install Gulp Install Sublime Text Install Cordova and Ionic CLI The platform guide Hello Ionic The browser developer tools setup Google Chrome Mozilla Firefox The Ionic project structure The config.xml file The www folder Scaffolding the tabs template Scaffolding the side menu template generator-ionic Installing generator-ionic 3. Ionic CSS Components and Navigation Ionic CSS components The Ionic grid system The page structure Buttons Lists Cards Ionicons Form elements Integrating Ionic CSS components with AngularJS The Ionic router A simple two-page app 4. Ionic and SCSS What is Sass? Setting up SCSS in our Ionic project The manual setup The Ionic CLI task Working with Ionic SCSS Basic swatch
  • 2. Understanding the Ionic SCSS setup Using variables and mixins The SCSS workflow Building a swatch 5. Ionic Directives and Services Ionic directives and services The Ionic Platform service registerBackButtonAction The on method Headers and footers Content ion-content ion-scroll ion-refresher ion-infinite-scroll $ionicScrollDelegate Navigation ion-view Ionic view events ion-nav-bar ion-nav-buttons $ionicNavBarDelegate $ionicHistory Tabs and side menu Ionic loading The Action Sheet service Popover and Popup services $ionicPopup The ion-list and ion-item directives Gesture directives and services Utilities 6. Building a sample App An introduction to the sample application The architecture of the app The server architecture The server-side API documentation The client architecture Code on GitHub A demo of the sample app The development flow Setting up the server Building the application Step 1 – Scaffolding the side menu template Step 2 – Refactoring the template Refactoring the menu Refactoring the module name Adding a run method and modifying routes Refactoring templates Step 3 – Building authentication, localStorage, and the REST API factory The Ionic loading factory The localStorage factory The Authentication factory The REST API factory Step 4 – Creating controllers for each route and integrating with the factory The application controller The browse controller The book controller The cart controller The purchase controller Step 5 – Creating templates and integrating with the controller data The Login template The Browse template The Product item template The Shopping Cart template The Purchase template 7. Cordova and ngCordova Setting up a platform-specific SDK The Android setup The iOS setup Testing the setup Testing for Android Testing for iOS Getting started with Cordova plugins The Ionic plugin API Add a plugin Remove a plugin List added plugins Search plugins The Cordova whitelist plugin ngCordova Setting up ngCordova Legend $cordovaToast $cordovaDialogs $cordovaFlashlight $cordovaLocalNotification $cordovaGeolocation 8. Releasing the Ionic App Preparing the app for distribution Setting up icons and splash screens Updating the config.xml file The PhoneGap service Generating installers using the Cordova CLI Android installer iOS installer The Ionic package Uploading the project to Ionic cloud Generating the required keys