Testing our Cordova plugin

Now, it is time to create our test Cordova application, "SmsApp". In order to create our test Cordova application, we can execute the following cordova create command:

> cordova create smsApp com.jsmobile.sms.app SmsApp

Then, we can add Android, iOS, and wp8 from the application directory as follows:

> cordova platform add android
> cordova platform add ios
> cordova platform add wp8

The following code snippet shows the jQuery Mobile page (index.html), which allows the user to enter a phone number and message. The user can then click on the Send button to send an SMS.

<html>
<head>
    <!-- meta data and jQuery mobile includes are omitted for saving space -->
    <script src="jqueryMobile/jquery.validate.min.js"></script> <title>SMS ...

Get JavaScript Mobile Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.