Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The Profound UI Mobile Client makes use of the following plugin:

https://github.com/cordova-sms/cordova-sms-plugin

This plugin allows you to send text messages from your mobile applications. If you are not using the Profound UI Mobile Client, and are packaging your mobile application manually with Cordova PhoneGap, the above plugin must be included.

To send SMS messages, you can use JavaScript code as in the following example:

 
     //'numberTxt' and 'messageTxt' are IDs of fields on your screen
//that contain the number you wish to text and the text message
//you wish to send
var number = get('numberTxt');
var message = get('messageTxt');

 
//CONFIGURATION
var options = {
replaceLineBreaks: false, // set to true to replace \n by a new line, false by default
android: { intent: 'INTENT' // send SMS with the native android SMS messaging
//intent: '' // send SMS without opening any other app
}
};
 
var success = function () {
alert('Message sent successfully');
};
var error = function (e) {
alert('Message Failed:' + e);
};
sms.send(number, message, options, success, error);
}

 

  • No labels