Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PhoneGap 4 Mobile Application Development Cookbook
  • Table Of Contents Toc
PhoneGap 4 Mobile Application Development Cookbook

PhoneGap 4 Mobile Application Development Cookbook

By : Zainul Setyo Pamungkas
3.8 (4)
close
close
PhoneGap 4 Mobile Application Development Cookbook

PhoneGap 4 Mobile Application Development Cookbook

3.8 (4)
By: Zainul Setyo Pamungkas

Overview of this book

Developing mobile applications often feels intimidating. Especially when building cross-platform application. We have to learn a specific programming language to build an application for each platform. PhoneGap makes cross-platform mobile application development faster and easier by using web technologies such as HTML5, CSS, and JavaScript. This book gives you practical lessons on how to build a world class mobile application using PhoneGap. Whether you are a brand new to mobile application development, a web developer expert, or a seasoned mobile application developer, this book will guide you through creating hybrid mobile applications. Starting with setting up a development environment, the book moves on to utilizing a new PhoneGap command-line tool, installing plugins, and designing your application. It then moves on to concepts such as file system, storage, and local database, the book effectively lays a solid base for advanced topics. By working through the steps in each chapter, you will quickly master the features of PhoneGap. By the end of the book, you will be able to successfully build a highly functional, real-world hybrid mobile application using PhoneGap.
Table of Contents (14 chapters)
close
close
13
Index

Extending your Cordova iOS application with a native plugin


How to do it...

In this recipe, we will create a native iOS plugin for our Cordova application using command-line tools, as suggested by Cordova. We will implement the plugin for Android that we created in the previous recipe to work with iOS:

  1. Change the working project to helloplugin, open plugin.xml, and add information about the new iOS platform:

      <platform name="ios">
    
        <config-file target="config.xml" parent="/widget">
          <feature name="Hello">
            <param name="ios-package" value="HWPHello" />
          </feature>
        </config-file>
    
        <header-file src="src/ios/HWPHello.h" target-dir="HelloPlugin"/>
        <source-file src="src/ios/HWPHello.m" target-dir="HelloPlugin"/>
      </platform>
    
    </plugin>
  2. Then create two blank files, HWPHello.h and HWPHello.m, inside the src/ios directory. Both files will contain our native Objective-C code for the iOS platform.

  3. Open HWPHello...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
PhoneGap 4 Mobile Application Development Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon