JavaScript Mobile Application Development

Create neat cross-platform mobile apps using Apache Cordova and jQuery Mobile

JavaScript Mobile Application Development

Learning
Hazem Saleh

Create neat cross-platform mobile apps using Apache Cordova and jQuery Mobile
$10.00
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781783554171
Paperback332 pages

About This Book

  • Configure your Android, iOS, and Window Phone 8 development environments.
  • Extend the power of Apache Cordova by creating your own Apache Cordova cross-platform mobile plugins.
  • Enhance the quality and the robustness of your Apache Cordova mobile application by unit testing its logic using Jasmine.

Who This Book Is For

If you are a native mobile developer, with some familiarity with the common web technologies of JavaScript, CSS, and HTML, or if you are a web developer, then this learning guide will add great value and impact to your work. Learning how to develop mobile applications using Apache Cordova is of particular importance if you are looking to develop applications on a variety of different platforms efficiently.

Table of Contents

Chapter 1: An Introduction to Apache Cordova
What is Apache Cordova?
The differences between mobile web, hybrid mobile, and native mobile applications
Why you should use Cordova
Cordova architecture
Overview of Cordova APIs
Summary
Chapter 2: Developing Your First Cordova Application
An introduction to Cordova CLI
Developing Sound Recorder application
Building and running Sound Recorder application
Summary
Chapter 3: Apache Cordova Development Tools
Configuring Android development environment
Configuring iOS development environment
Configuring the Windows Phone development environment
Summary
Chapter 4: Cordova API in Action
Exploring the Cordova Exhibition app
The Cordova Exhibition app structure
Accelerometer
Camera
Compass
Connection
Contacts
Device
Geolocation
Globalization
InAppBrowser
Summary
Chapter 5: Diving Deeper into the Cordova API
Media, file, and capture
Notification
Storage
Finalizing the Cordova Exhibition app
Cordova events
Summary
Chapter 6: Developing Custom Cordova Plugins
Developing a custom Cordova plugin
Developing Android code
Developing iOS code
Developing Windows Phone 8 code
Publishing our plugin to Cordova Registry
Testing our Cordova plugin
Summary
Chapter 7: Unit Testing the Cordova App's Logic
What is Jasmine
Configuring Jasmine
Writing your first Jasmine test
Jasmine Matchers
Jasmine in action – developing Cordova app tests
Automating tests using Karma
Summary
Chapter 8: Applying it All – the Mega App
Mega App specification/wireframes
Preparing for the Mega App
The Mega App architecture
The Mega App model and API
The Mega App user interface
Finalizing Mega App
Deploying and running Mega App
Start contributing to Mega App
Summary

What You Will Learn

  • Develop, build, run, and deploy great cross-platform mobile applications using Apache Cordova
  • Create complete mobile apps using Apache Cordova that run on Apple iOS, Google Android, and Windows Phone
  • Access the device's native functions by utilizing the Apache Cordova APIs
  • Create a neat user interface for your mobile application using jQuery Mobile
  • Increase the quality and robustness of your mobile applications by developing unit tests for their logic
  • Design, develop, and automate tests for your mobile application using Jasmine, Karma, and Jenkins CI
  • Extend the power of Apache Cordova by creating your own Apache Cordova cross-platform mobile plugins
  • Explore some of the differences between the mobile platforms and learn how to handle these differences in a maintainable way

In Detail

Whether you are developing a mobile app for iPad or on a Windows Phone, you need to learn the specific languages and technologies for that device. This is where Apache Cordova shines.

This book is the learning resource to use when you want to efficiently develop your own mobile applications using Apache Cordova as the platform for your HTML, CSS, and JavaScript. In order to develop good-looking mobile applications, this book also utilizes jQuery Mobile. jQuery Mobile is one of the best available frameworks for developing mobile-friendly web applications.

After finishing this book, you should be able to develop your very own mobile application on different mobile platforms using only JavaScript, without having to learn the native programming languages of every mobile platform.

Authors

Table of Contents

Chapter 1: An Introduction to Apache Cordova
What is Apache Cordova?
The differences between mobile web, hybrid mobile, and native mobile applications
Why you should use Cordova
Cordova architecture
Overview of Cordova APIs
Summary
Chapter 2: Developing Your First Cordova Application
An introduction to Cordova CLI
Developing Sound Recorder application
Building and running Sound Recorder application
Summary
Chapter 3: Apache Cordova Development Tools
Configuring Android development environment
Configuring iOS development environment
Configuring the Windows Phone development environment
Summary
Chapter 4: Cordova API in Action
Exploring the Cordova Exhibition app
The Cordova Exhibition app structure
Accelerometer
Camera
Compass
Connection
Contacts
Device
Geolocation
Globalization
InAppBrowser
Summary
Chapter 5: Diving Deeper into the Cordova API
Media, file, and capture
Notification
Storage
Finalizing the Cordova Exhibition app
Cordova events
Summary
Chapter 6: Developing Custom Cordova Plugins
Developing a custom Cordova plugin
Developing Android code
Developing iOS code
Developing Windows Phone 8 code
Publishing our plugin to Cordova Registry
Testing our Cordova plugin
Summary
Chapter 7: Unit Testing the Cordova App's Logic
What is Jasmine
Configuring Jasmine
Writing your first Jasmine test
Jasmine Matchers
Jasmine in action – developing Cordova app tests
Automating tests using Karma
Summary
Chapter 8: Applying it All – the Mega App
Mega App specification/wireframes
Preparing for the Mega App
The Mega App architecture
The Mega App model and API
The Mega App user interface
Finalizing Mega App
Deploying and running Mega App
Start contributing to Mega App
Summary

Book Details

ISBN 139781783554171
Paperback332 pages
Read More