Automatic SMS sending.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Gazzafish
Posts: 16
Joined: Tue Aug 12, 2014 4:16 am

Automatic SMS sending.

Post by Gazzafish » Sun Apr 19, 2015 8:06 am

I have been using mobileComposeTextMessage to create and send an SMS (on Android) but I require the SMS to be sent without any user intervention. I.e. If an elderly user is not responding to an alert from the phone, i'd like my app to alert someone via SMS. Is there any method that i might be able to achieve this. I've thought about third party SMS providers but then it would require each user to setup an account which would deter people using the app. I'd rather the user send the SMS from their own device. It would be maximum 1 SMS a week. Are there any third party plugin's that may help?

I have done condierable searching but have yet not been able to find a solution.

Thanks in advance..

Gary

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Automatic SMS sending.

Post by LCNeil » Mon Apr 20, 2015 10:55 am

Hi Gary,

Although this is technically possible with Android, LiveCode does not yet support direct sending SMS messages from within an App. The following gives an example of how to do this in Java-

http://www.tutorialspoint.com/android/a ... ng_sms.htm

When widgets are available, you may be able to create this functionally in a widget/widget library.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

Gazzafish
Posts: 16
Joined: Tue Aug 12, 2014 4:16 am

Re: Automatic SMS sending.

Post by Gazzafish » Mon Apr 20, 2015 11:50 pm

Thanks Neil.

Just so i understand. In order to utilize this I would need to build my entire app in Java and not use Livecode at all until widgets are supported? Do we have an ETA on when this functionality might be incorporated? I really like using Livecode and hope I don't have to learn java as well. :D

Is there no way I can have my livecode app call the java portion?

Thanks in advance.

gary

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Automatic SMS sending.

Post by LCNeil » Tue Apr 21, 2015 2:24 pm

Hi Gary,

You would need to use a 3rd party SMS service or wait until widgets are available if you wish to have this functionality within a LiveCode built android app. If this is something you would like sooner rather than later, then it may be possible for a 3rd party to write an Android external to do the task.

One of the most well know externals creators for LC is Monte Goulding-

http://mergext.com/

You may wish to contact him if this is the route you would like to take.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

Gazzafish
Posts: 16
Joined: Tue Aug 12, 2014 4:16 am

Re: Automatic SMS sending.

Post by Gazzafish » Mon Jun 01, 2015 5:59 am

I see now that "Livecode 8" is available for beta use. Based on this, I assume I can now attempt to create w idget to send an automatic SMS. Any guidance to where I should start with this would be greatly appreciated?

Thanks.

Post Reply