1. mike S
  2. PowerServer Mobile (Obsolete)
  3. Thursday, 8 November 2018 15:13 PM UTC

I don't see anything about how to send an SMS from a PS Mobile app.

I am looking for a way for the app to send a text without any additional interaction from the user.  This does mean the application would require permissions to send text.

This works:

ls_texturl = "sms:" + ls_phonenumber + '?body=' + ls_message
l_inet.hyperlinktourl ( ls_texturl )

 

but is NOT what i am looking for since it requires  the user to complete the sending manually.

 

i found this cordova plug-in: 

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

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Friday, 9 November 2018 02:43 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Hi Mike,

Please the script like below:

//SMS:
inet l_inet
string ls_code = "1340000000?body=test SMS". ls_protocol="sms:"
int rc

l_inet = create inet
l_inet.hyperlinktourl( ls_protocol+ls_code )

Destroy l_inet

//Tel:
inet l_inet
string ls_code = "800-555-1212". ls_protocol="tel:"
int rc

rc = messagebox(ls_code~r~n, 'Dial it?', question!, yesno!, 1)

if rc = 1 then

l_inet = create inet
l_inet.hyperlinktourl( ls_protocol+ls_code )
Destroy l_inet

end if


Regards,
ZhaoKai

Comment
  1. mike S
  2. Friday, 9 November 2018 17:23 PM UTC
this is the same code i put in above. it does not send the sms, it just prepares it - sets up the phone number and message. the user has to click send in the sms application.



i think a cordova plugin is required.
  1. Helpful
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 12 November 2018 00:51 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Hi Mike,

We don't have a feasible workaround for this currently. But we will record it as a requirement in our CR pool, I will get back to you once we have a plan to support this feature.

Regards,
ZhaoKai

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.