Jump to content


Photo

Integrating Phonegap plugin to Send SMS

SMS PHONEGAP ANDROID

  • Please log in to reply
1 reply to this topic

#1 COMFIED

COMFIED
  • Members
  • 44 posts

Posted 31 January 2017 - 10:50 PM

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.raymondc...ng-sms-messages

 

 

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


  • two_dog_knight and Darincroft like this

#2 COMFIED

COMFIED
  • Members
  • 44 posts

Posted 01 February 2017 - 08:52 PM

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();
 

  • Nico Wouterse and Igor Savkic like this





Also tagged with one or more of these keywords: SMS, PHONEGAP, ANDROID

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

IPB Skin By Virteq