Messaging with Desktop

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Messaging with Desktop

Post by trags3 » Fri May 19, 2023 5:43 pm

HI, Is it possible to message a Cell Phone with a LapTop?
Tom

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Messaging with Desktop

Post by richmond62 » Fri May 19, 2023 5:55 pm

And the connexion between your question and LiveCode is . . . ?

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: Messaging with Desktop

Post by trags3 » Fri May 19, 2023 6:27 pm

Using an App developed with LC on a Desktop Computer to text message a mobile phone.
Can that be done?
Tom

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9838
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Messaging with Desktop

Post by FourthWorld » Fri May 19, 2023 6:59 pm

Good news: most desktop ecosystems have examples of this, and generally rely on a few widely available components to enable the bridge between TCP and cell networks.

Bad news: Those who do this rely on only a few components to bridge TCP and cell networks, and any implementation is at the mercy of those APIs. And since each desktop platform relies on different components, any multiplatform implementation will need to support as many different interfaces as the target platforms.

A web search on "desktop SMS" yields good pointers. IIRC Apple has their own API they provide themselves. For Linux I was exploring this using the underlying package used by a Nextcloud app for that purpose. If Linux is of interest I can dig that up.

Some of this may be doable in LC Script, any lower level APIs should be doable with LC Builder.

My own interest in this was minor, easily set aside in favor of more pressing priorities. If you pursue this I'd be keen to hear what you find as you go.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

trags3
Posts: 418
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: Messaging with Desktop

Post by trags3 » Fri May 19, 2023 7:40 pm

Thank You Richard!
My need for this isn't pressing, I was just curious to see if it can be done!
For now I think I will set it aside, but will let you know if and when I pursue this in the future.
Thanks again,
Tom

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Messaging with Desktop

Post by ghettocottage » Sat May 20, 2023 5:00 pm

There are two routes I know of that you could go:

XMPP to SMS Bridge
##########################
There is a company that has an XMPP to SMS bridge for a very reasonable fee (a few dollars/month). They give you a phone number or you can import a number. I was able to import my old Google Voice number.

https://jmp.chat/ in conjunction with https://cheogram.com

I have been using them for the last year or so. I set up my own XMPP server using ejabberd on a cheap VPS (that also runs my email server).
However, you can use an existing XMPP server. They provide a couple you can choose from.

I am able to run an XMPP clients on my desktop, android phone and tablet connected to my XMPP account that is registered with JMP.chat

The result is that I am able to send/receive SMS and MMS messages across all devices. They all stay in sync so I can put my phone down and resume a conversation on my desktop.

The desktop client I use is Dino (linux)
The android client I use is Conversations

There are also console-based XMPP clients: https://profanity-im.github.io/
Or just plain command-line if you run your own server: https://askubuntu.com/questions/533527/ ... mmand-line

It works so well that I no longer use my phones number/plan for text messaging. I only use my JMP.chat device. If I were inspired I could certainly use Livecode to create a little XMPP client, but the clients available already work very well.

The one thing I might do is use Livecode to make a contact list app. The XMPP server uses a MySQL database to store conversations and contacts, so it would be fairly straight-forward to make a contact list app for adding/deleting contacts .


VOIP SMS
################

Many Voip companies offer SMS, but from my experience it is buggy. I use the company https://voip.ms for some phone stuff, but their SMS never works consistently (thus my use of JMP.chat)

One person created a voip.ms sms client, that is supposed to work ok:
https://github.com/michaelkourlas/voipms-sms-client

I have not explored it since JMP.chat works so well

stam
Posts: 2683
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Messaging with Desktop

Post by stam » Sat May 20, 2023 6:32 pm

If you mean sending SMS through a livecode app, there are many services that offer REST APIs for this.

Twilio is fairly well known and reliable but a more comprehensive list here: https://rapidapi.com/blog/sms-apis-send-texts/amp/

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”