Android Question sending text messages using messaging apps

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
hi

i have an app that send text messages from the user to his clients (not span - it send reports and reports links)
it is critical to send using the user's phone not any kind of bot or service

i currently manage to send using whatsapp & whatsapp for business (the user enters his client's phone and the app opens loaded with the message and needs to press send and then back to return to my app

i also send sms pretty much in the same way

with telegram i didn't find a way to enter the receiver's phone so the user has to locate the client and send

my questions:

  1. is there a way to directly send without opening whatsapp/sms and press send?
  2. is there a way that my app will automatically return without the user press back?
  3. is there a way to send using telegram as i do whatsapp - no need to search the receiver in telegram?
  4. is there a way to send using signal?
what i want to have is the user enters his client's phone, the text message is preloaded, choose the app he wants to send with and press send - that will be the optimum

a basic sample will be highly appreciated

thanks
 

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Thanks

I tried the code under "this" is 1
Didn't ask permisdion
The app crashed

You said no need for permission in 2
A bit confusing...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
 
Upvote 0

John Naylor

Active Member
Licensed User
Longtime User
on no permissions

PERMISSION_SEND_SMS

Here's the standard permissions code I use, you can add all that you need in rplist.AddAll

B4X:
    Dim rplist As List
    Dim rpPermission     As String
    rplist.Initialize
    rplist.AddAll(Array As String(rp.PERMISSION_SEND_SMS))
    Do While rplist.Size > 0
        rpPermission = rplist.Get(0)

        rp.CheckAndRequest(rpPermission)
        wait for B4XPage_PermissionResult(rpPermission As String, Result As Boolean)
                   
        If  Result = True Then
            rplist.RemoveAt(0)
            Continue
        End If
                   
        If  Result = False Then
            ExitApplication
        End If
    Loop
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
where is the FULL ERROR LOG then?

Noone can help you without it
ok
got it to work - it was the permissions issue
wow that works perfectly without going through the sms app - perfect
thanks guys!

now i need to go on for whats up and telegram
any chance for signal?
 
Upvote 0

John Naylor

Active Member
Licensed User
Longtime User
As @DonManfred says - Better to split your question up into multiple threads. Sending SMS is a lot different to sending via Signal etc. Totally different approach needed.
 
Upvote 0
Top