SlideShare a Scribd company logo
Built an iOS App Using Cordova
Hybrid  applications are web applications (or web pages) in the native browser, such as
UIWebView in iOS and WebView in Android (not Safari or Chrome). Hybrid Mobile
Applications are Commonly Developed using CSS, HTML & Javascript.
Apache Cordova makes it much more easier, it enables  wrapping  up of CSS, HTML, and
JavaScript code depending upon the platform of the device.
Important Aspects of Apache Cordova:
Single Code Base - Using Cordova Framework, developer can built single mobile app by
targeting multiple platforms.
WebView - User Interface (UI) of Cordova Application uses webview. WebView is being
used in native platforms, Cordova Libraries interact with native framework.
Plug-in - Using Cordova Framework developers can link Javascript code with native code
through robust plug-ins. Developers have an option to choose readymade plug-ins according to
their requirements. Each and every plug-in mapped to Config.xml
Command Line Interface - Developers can use command line interface (CLI) to speed up
mobile app for creating & deploying various platforms. For each targeted platform they must
install SDK before using CLI.
Installing the Cordova CLI (iOS):
Download & Install Node.js, Invoke node & npm in command line. Cordova automatically
downloads npm utility. Open Terminal and type
$ sudo npm install -g cordova
Create the App:
Go to directory where you need to maintain source code & create project
$ cordova create hello com.example.hello HelloWorld
Add Platforms:
Run all sequence of commands inside project directory
$ cd hello
Add platform you want to target your app, for iOS
$ cordova platform add ios
Open project in Xcode
• Navigate to project directory, under platforms there will be ios. Because we added only ios
platform. For android
$ cordova platform add android
• In iOS there will be an Xcode project, open project HelloWorld.xcworkspace. Javascript
code need to be added in WWW folder (WWW/js)
• Images are need to be updated in www folder (WWW/img)
• Project Configurations need to be updated in Config.xml
To call Javascript Function
• Include CDVCommandDelegate in MainViewController.m to use delegate methods & to call
javascript function.
[self.commandDelegate evalJs:@“functionname()”];
Calls Javascript Function, to identify whether function called or not can checked using
console.log() //eg: console.log(“writesomething”)
written in Javascript Function.
Some of Basic Plug-ins
Universal Links:
This plug-in used to open application from browser when user click on the link.
$ cordova plugin add cordova-universal-links-plugin
Facebook Plug-in:
This plug-in uses latest Facebook SDK. Cordova application use native facebook app to
perform single sign in, share app, invite friends etc. If user don’t have facebook app it uses
standard based authentication.
$ cordova  plugin add  cordova-plugin-facebook4 --save --variable APP_ID="Appid" --
variable APP_NAME=“Appname"
Remote Injection Plug-in:
This plug-in Injects cordova and JS into the webview for any remotely browsed page.
Allow to access cordova object and its plug-ins.
$ cordova plugin add cordova-plugin-remote-injection
social sharing Plug-in:
Share text, link, images or other files like pdf, ics. sharing directly to Twitter,
Facebook or other apps.
$ cordova plugin add cordova-plugin-x-socialsharing
By
Ranjith R
iOS Developer
Ad

Recommended

Hybrid Mobile Apps - Meetup
Hybrid Mobile Apps - Meetup
Sanjay Patel
 
Cordova training : Day 1 : Introduction to Cordova
Cordova training : Day 1 : Introduction to Cordova
Binu Paul
 
Cordova training : Day 5 - UI development using Framework7
Cordova training : Day 5 - UI development using Framework7
Binu Paul
 
Cordova training : Cordova plugins
Cordova training : Cordova plugins
Binu Paul
 
Mobile Applications with Angular 4 and Ionic 3
Mobile Applications with Angular 4 and Ionic 3
Oleksandr Tryshchenko
 
Build Consumer Apps Using Mobile SDK and Ionic Framework
Build Consumer Apps Using Mobile SDK and Ionic Framework
Salesforce Developers
 
Introduction to Apache Cordova (Phonegap)
Introduction to Apache Cordova (Phonegap)
ejlp12
 
Introduction to Ionic framework
Introduction to Ionic framework
Shyjal Raazi
 
Hybrid Apps with Angular & Ionic Framework
Hybrid Apps with Angular & Ionic Framework
Cihad Horuzoğlu
 
SPA Editing with Sling to the rescue - adaptTo() 2021
SPA Editing with Sling to the rescue - adaptTo() 2021
Hanish Bansal
 
Ionic 2 intro
Ionic 2 intro
Wojciech Langiewicz
 
AEM Evernote Sync
AEM Evernote Sync
Kevin Nennig
 
Cordova Tutorial
Cordova Tutorial
Jacky Chen
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Apps with Apache Cordova and Phonegap
Apps with Apache Cordova and Phonegap
Christian Grobmeier
 
Microsoft C# programming basics
Microsoft C# programming basics
Prognoz Technologies Pvt. Ltd.
 
React Native
React Native
Heber Silva
 
Ionic framework
Ionic framework
Software Infrastructure
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
Daniel Meixner
 
Creating mobile apps - an introduction to Ionic (Engage 2016)
Creating mobile apps - an introduction to Ionic (Engage 2016)
Mark Leusink
 
Workshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
Prognoz Technologies Pvt. Ltd.
 
Building assets on the fly with Node.js
Building assets on the fly with Node.js
Acquisio
 
Apache Cordova, Hybrid Application Development
Apache Cordova, Hybrid Application Development
thedumbterminal
 
Ionic Framework
Ionic Framework
Thinh VoXuan
 
Gaikan
Gaikan
CocoaHeads France
 
Web development tool
Web development tool
Deep Bhavsar
 
Creating an hybrid app in minutes with Ionic Framework
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 
Cross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual Studio
Mizanur Sarker
 
Talk (2)
Talk (2)
suraj sakhardande
 

More Related Content

What's hot (20)

Hybrid Apps with Angular & Ionic Framework
Hybrid Apps with Angular & Ionic Framework
Cihad Horuzoğlu
 
SPA Editing with Sling to the rescue - adaptTo() 2021
SPA Editing with Sling to the rescue - adaptTo() 2021
Hanish Bansal
 
Ionic 2 intro
Ionic 2 intro
Wojciech Langiewicz
 
AEM Evernote Sync
AEM Evernote Sync
Kevin Nennig
 
Cordova Tutorial
Cordova Tutorial
Jacky Chen
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Apps with Apache Cordova and Phonegap
Apps with Apache Cordova and Phonegap
Christian Grobmeier
 
Microsoft C# programming basics
Microsoft C# programming basics
Prognoz Technologies Pvt. Ltd.
 
React Native
React Native
Heber Silva
 
Ionic framework
Ionic framework
Software Infrastructure
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
Daniel Meixner
 
Creating mobile apps - an introduction to Ionic (Engage 2016)
Creating mobile apps - an introduction to Ionic (Engage 2016)
Mark Leusink
 
Workshop Ionic Framework - CC FE & UX
Workshop Ionic Framework - CC FE & UX
JWORKS powered by Ordina
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
Prognoz Technologies Pvt. Ltd.
 
Building assets on the fly with Node.js
Building assets on the fly with Node.js
Acquisio
 
Apache Cordova, Hybrid Application Development
Apache Cordova, Hybrid Application Development
thedumbterminal
 
Ionic Framework
Ionic Framework
Thinh VoXuan
 
Gaikan
Gaikan
CocoaHeads France
 
Web development tool
Web development tool
Deep Bhavsar
 
Creating an hybrid app in minutes with Ionic Framework
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 
Hybrid Apps with Angular & Ionic Framework
Hybrid Apps with Angular & Ionic Framework
Cihad Horuzoğlu
 
SPA Editing with Sling to the rescue - adaptTo() 2021
SPA Editing with Sling to the rescue - adaptTo() 2021
Hanish Bansal
 
Cordova Tutorial
Cordova Tutorial
Jacky Chen
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Apps with Apache Cordova and Phonegap
Apps with Apache Cordova and Phonegap
Christian Grobmeier
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
Daniel Meixner
 
Creating mobile apps - an introduction to Ionic (Engage 2016)
Creating mobile apps - an introduction to Ionic (Engage 2016)
Mark Leusink
 
Building assets on the fly with Node.js
Building assets on the fly with Node.js
Acquisio
 
Apache Cordova, Hybrid Application Development
Apache Cordova, Hybrid Application Development
thedumbterminal
 
Web development tool
Web development tool
Deep Bhavsar
 
Creating an hybrid app in minutes with Ionic Framework
Creating an hybrid app in minutes with Ionic Framework
Julien Renaux
 

Similar to iOS App Using cordova (20)

Cross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual Studio
Mizanur Sarker
 
Talk (2)
Talk (2)
suraj sakhardande
 
An overview of Ionic
An overview of Ionic
Cynoteck Technology Solutions Private Limited
 
[JavaLand 2015] Developing JavaScript Mobile Apps Using Apache Cordova
[JavaLand 2015] Developing JavaScript Mobile Apps Using Apache Cordova
Hazem Saleh
 
Developing Native Mobile Apps Using JavaScript, ApacheCon NA 2014
Developing Native Mobile Apps Using JavaScript, ApacheCon NA 2014
Hazem Saleh
 
Hybrid app development frameworks
Hybrid app development frameworks
Squash Apps Pvt Ltd
 
[2015/2016] Apache Cordova
[2015/2016] Apache Cordova
Ivano Malavolta
 
[JMaghreb 2014] Developing JavaScript Mobile Apps Using Apache Cordova
[JMaghreb 2014] Developing JavaScript Mobile Apps Using Apache Cordova
Hazem Saleh
 
Apache Cordova 4.x
Apache Cordova 4.x
Ivano Malavolta
 
Ionic best practices
Ionic best practices
Allanki Srinivas
 
Ionic best practices
Ionic best practices
Allanki Srinivas
 
[Devoxx Morocco 2015] Apache Cordova In Action
[Devoxx Morocco 2015] Apache Cordova In Action
Hazem Saleh
 
Enterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility Analysis
Lawrence Nyakiso
 
NCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile Apps
John M. Wargo
 
Apache cordova
Apache cordova
Carlo Bernaschina
 
Apache Cordova phonegap plugins for mobile app development
Apache Cordova phonegap plugins for mobile app development
webprogr.com
 
Android - Anroid Pproject
Android - Anroid Pproject
Vibrant Technologies & Computers
 
Phonegap android
Phonegap android
umesh patil
 
Apache Cordova In Action
Apache Cordova In Action
Hazem Saleh
 
Mobile Vue.js – From PWA to Native
Mobile Vue.js – From PWA to Native
MartinSotirov
 
Cross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual Studio
Mizanur Sarker
 
[JavaLand 2015] Developing JavaScript Mobile Apps Using Apache Cordova
[JavaLand 2015] Developing JavaScript Mobile Apps Using Apache Cordova
Hazem Saleh
 
Developing Native Mobile Apps Using JavaScript, ApacheCon NA 2014
Developing Native Mobile Apps Using JavaScript, ApacheCon NA 2014
Hazem Saleh
 
Hybrid app development frameworks
Hybrid app development frameworks
Squash Apps Pvt Ltd
 
[2015/2016] Apache Cordova
[2015/2016] Apache Cordova
Ivano Malavolta
 
[JMaghreb 2014] Developing JavaScript Mobile Apps Using Apache Cordova
[JMaghreb 2014] Developing JavaScript Mobile Apps Using Apache Cordova
Hazem Saleh
 
[Devoxx Morocco 2015] Apache Cordova In Action
[Devoxx Morocco 2015] Apache Cordova In Action
Hazem Saleh
 
Enterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility Analysis
Lawrence Nyakiso
 
NCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile Apps
John M. Wargo
 
Apache Cordova phonegap plugins for mobile app development
Apache Cordova phonegap plugins for mobile app development
webprogr.com
 
Phonegap android
Phonegap android
umesh patil
 
Apache Cordova In Action
Apache Cordova In Action
Hazem Saleh
 
Mobile Vue.js – From PWA to Native
Mobile Vue.js – From PWA to Native
MartinSotirov
 
Ad

Recently uploaded (20)

Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
Precisely
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Reducing Conflicts and Increasing Safety Along the Cycling Networks of East-F...
Safe Software
 
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
SAP Modernization Strategies for a Successful S/4HANA Journey.pdf
Precisely
 
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
FME for Good: Integrating Multiple Data Sources with APIs to Support Local Ch...
Safe Software
 
Supporting the NextGen 911 Digital Transformation with FME
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
 
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
 
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
Edge-banding-machines-edgeteq-s-200-en-.pdf
Edge-banding-machines-edgeteq-s-200-en-.pdf
AmirStern2
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
Ad

iOS App Using cordova

  • 1. Built an iOS App Using Cordova Hybrid  applications are web applications (or web pages) in the native browser, such as UIWebView in iOS and WebView in Android (not Safari or Chrome). Hybrid Mobile Applications are Commonly Developed using CSS, HTML & Javascript. Apache Cordova makes it much more easier, it enables  wrapping  up of CSS, HTML, and JavaScript code depending upon the platform of the device. Important Aspects of Apache Cordova: Single Code Base - Using Cordova Framework, developer can built single mobile app by targeting multiple platforms. WebView - User Interface (UI) of Cordova Application uses webview. WebView is being used in native platforms, Cordova Libraries interact with native framework. Plug-in - Using Cordova Framework developers can link Javascript code with native code through robust plug-ins. Developers have an option to choose readymade plug-ins according to their requirements. Each and every plug-in mapped to Config.xml Command Line Interface - Developers can use command line interface (CLI) to speed up mobile app for creating & deploying various platforms. For each targeted platform they must install SDK before using CLI. Installing the Cordova CLI (iOS): Download & Install Node.js, Invoke node & npm in command line. Cordova automatically downloads npm utility. Open Terminal and type $ sudo npm install -g cordova Create the App: Go to directory where you need to maintain source code & create project $ cordova create hello com.example.hello HelloWorld Add Platforms: Run all sequence of commands inside project directory $ cd hello Add platform you want to target your app, for iOS
  • 2. $ cordova platform add ios Open project in Xcode • Navigate to project directory, under platforms there will be ios. Because we added only ios platform. For android $ cordova platform add android • In iOS there will be an Xcode project, open project HelloWorld.xcworkspace. Javascript code need to be added in WWW folder (WWW/js) • Images are need to be updated in www folder (WWW/img) • Project Configurations need to be updated in Config.xml To call Javascript Function • Include CDVCommandDelegate in MainViewController.m to use delegate methods & to call javascript function. [self.commandDelegate evalJs:@“functionname()”]; Calls Javascript Function, to identify whether function called or not can checked using console.log() //eg: console.log(“writesomething”) written in Javascript Function. Some of Basic Plug-ins Universal Links: This plug-in used to open application from browser when user click on the link. $ cordova plugin add cordova-universal-links-plugin Facebook Plug-in: This plug-in uses latest Facebook SDK. Cordova application use native facebook app to perform single sign in, share app, invite friends etc. If user don’t have facebook app it uses standard based authentication. $ cordova  plugin add  cordova-plugin-facebook4 --save --variable APP_ID="Appid" -- variable APP_NAME=“Appname"
  • 3. Remote Injection Plug-in: This plug-in Injects cordova and JS into the webview for any remotely browsed page. Allow to access cordova object and its plug-ins. $ cordova plugin add cordova-plugin-remote-injection social sharing Plug-in: Share text, link, images or other files like pdf, ics. sharing directly to Twitter, Facebook or other apps. $ cordova plugin add cordova-plugin-x-socialsharing By Ranjith R iOS Developer