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 App</title>
</head>
<body>
<div data-role="page" id="sms">
<div data-role="header">
<h1>Send SMS</h1>
<...