mathu.pptx

22
Phonegap

Upload: james-williams

Post on 13-Apr-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 1/22

Phonegap

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 2/22

PhonegapPhonegap is an open-source mobile development

framework.

  produced by Nitobi Software

  purchased by Adobe Systems in 2011.

It enables software programmers to build

applications for mobile devices using JavaScript,HTML5, and CSS3, instead of relying on platform-specific APIs like those in ios or Android.

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 3/22

The software underlying Phonegap is ApacheCordova.

The software was previously called just "Phonegap",then "Apache Call back".

 Apache Cordova is open source software.

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 4/22

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 5/22

Phonegap (Cordova)Original author(s)

 Joe Bowser, Michael Brooks, Rob Ellis, Dave

 Johnson, Anis Kadri, Brian Leroux, JesseMacFadyen, Filip Maj, Eric Oesterle, Brock Whitten, Herman Wong, Shazron Abdullah

Developer(s)

 Adobe systems

 Stable release

3.5.0 / May 23, 2014

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 6/22

Development status

 Active Written in

 JavaScript, HTML5, C SS3, Java, C++, C#and Objective-C

Operating system Android, BlackBerry, Firefox OS, iOS,

Symbian, Ubuntu Touch, webOS, WindowsPhone, Windows 8 Available in

English

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 7/22

TypeMobile development framework

License Apache 2.0 License

 Website www.phonegap.comcordova.apache.org

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 8/22

Phonegap currently supports

development for theoperating systems

  Apple iOS

  BlackBerry  Google Android 

  LG webOS

  Microsoft Windows Phone(7 and 8)

  Nokia Symbian OS

  Tizen(SDK 2.x)

  Bada

  Firefox OS and Ubuntu Touch.

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 9/22

Phonegap Platform Support

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 10/22

Phonegap ApplicationsThe Phonegap applications are hybrid

They are neither truly native nor purely webbased

 All layout rendering is done via the web viewinstead of Objective-C

Much of the functions of HTML5 are

supported A disadvantage is that hybrid applications do not

have full access to the device API

Camera, compass, accelerometer, etc.

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 11/22

How does it work?Build your app once with web-standards

Based on HTML5

 Wrap it up with Phonegap Using the free open source framework or

Phonegap build

 You can access the native APIsDeploy to multiple platforms

Standards-based web technologies to bridge webapplications and mobile devices

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 12/22

What is Phonegap doing?Phonegap generates a out-of-the-browser window that executes the HTML and

 JavaScript

Due to a couple of xml and jar/dll files itenables the usage of native APIs

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 13/22

Where Can we Develop?

Native IDE for the corresponding OS

Eclipse, Xcode, Visual Studio, etc.

 Abode launched a new version of Dreamweaverthat integrates with Phonegap

Build the web site

 Add the mobile SDKs Say it is mobile app

Build and deploy

In both the concrete OS SDK must be present

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 14/22

Means of Phonegap DevelopmentPhonegap is just a library that you must include in

 your app

Couple of JavaScript and xml files

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 15/22

Advantages of phonegap

develop

Economical and affordableSupport different versions for all mobile platforms

Phonegap simulator makes easy to testing

Phonegap provides rich user interface for hybridapps

Support fast development for cross platform apps

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 16/22

Phonegap publications  Apache Cordova API Cookbook

Phonegap 3.x Mobile Application Development

Phonegap Build Starter

Instant Phone Gapiphone and Phonegap development: Building Cross-

Platform Mobile Apps

 Apache Cordova 3 ProgrammingMobile App Manual: The Blueprint

Phonegap 2.x Mobile Application DevelopmentHotshot

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 17/22

Adobe Phonegap Adobe Phonegap is a standards-based, open-

source development framework for building cross-

platform mobile apps with HTML, CSS and JavaScript for iOS, Android™, Windows® Phone, webOS, BlackBerry® and more.

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 18/22

Phonegap documentation 

GuidesOverviewThe Command-line InterfacePlatform GuidesConfiguration ReferenceEmbedding Web ViewsPlugin Development GuidePrivacy Guide Domain Whitelist Guide Keyword Index

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 19/22

API Reference

 AccelerometerCamera

 Capture

Compass

Connection

Contacts

File

Geolocation Globalization

 InAppBrowser

Media

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 20/22

Phonegap Gotchas5 MB HTML 5 local storage limit

Chrome Desktop testing requires local file accesspermission

Inconsistent mobile browser anomalies

Inconsistent performance among devices

Some native application code required - extend a

CordovaWebViewClient and load the URL to the website.

 Web code is not compiled and is accessible

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 21/22

Conclusion

Phonegap is a cross-platform mobile developmentframework

Based on HTML5 and JavaScript

Using web standards

Phonegap is useful

For creation of small apps

 When there is a lack of human resources Need a single app deployed on many OS

Native app developments is always better!

7/27/2019 Mathu.pptx

http://slidepdf.com/reader/full/mathupptx 22/22

 THANK YOU