Jump to content

Integrating Phonegap plugin to Send SMS


Recommended Posts

I'm looking for help in integrating the Cordova plugin for sending SMS via SmartMobileStudio for use in android app.

 

Here is the plugin and code:

https://www.raymondcamden.com/2014/12/11/cordova-example-sending-sms-messages

 

 

Any help/ example with how I can use this code in SmartMobileStudio?

Link to post
Share on other sites

I figured it out.

It's as simple as creating a HTML <form> with variables and then submitting it.

 

For example

 

implementation
function document: variant; external "document" property;
 
 

var

SMS_RECIEPIENT, MESSAGE_STRING: string

 

 

W3LabelREG.Caption:=
'<form name="RegForm" id="RegForm">'+
'<input type="text" id="number" value="+ SMS_RECIEPIENT+ '"/>'+
'<input type="text" id="message" value="'+ MESSAGE_STRING+ '"/>'+
'<input type="submit" value="SEND SMS" id="sendMessage" />'+
'</form>';
 
document.RegForm.submit();
 
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...