Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Javascript Unlocked

You're reading from   Javascript Unlocked Improve your code maintainability, performance, and security through practical expert insights and unlock the full potential of JavaScript

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785881572
Length 182 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (10) Chapters Close

Preface 1. Diving into the JavaScript Core FREE CHAPTER 2. Modular Programming with JavaScript 3. DOM Scripting and AJAX 4. HTML5 APIs 5. Asynchronous JavaScript 6. A Large-Scale JavaScript Application Architecture 7. JavaScript Beyond the Browser 8. Debugging and Profiling Index

Using PhoneGap to make a mobile native app


Well, now we can make desktop applications with JavaScript but what about native mobile applications? There are a number of web-based frameworks available for mobile development (https://en.wikipedia.org/wiki/Multiple_phone_web-based_application_framework). One of the most trending solutions is called Adobe PhoneGap, which is built on top of the Apache Cordova project. By and large, the PhoneGap application consists of a web-stack (HTML5, CSS, and JavaScript). Despite the fact that nowadays, HTML5 provides access to some of the native features (accelerometer, camera, contacts, vibration, GPS, and others), the support across different devices is inconsistent and quirky, and performance is relatively poor. So PhoneGap runs HTML5 inside a native WebView on a device and provides access to device resources and APIs (https://en.wikipedia.org/wiki/Foreign_function_interface). As a result, we can write a mobile application based on HTML5 and build it with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image