Android Question Send SMS from B4A code

Nishan15

New Member
I am looking for any working library for sending SMS directly from B4A code without user intervention .

By using "Intet" , it need user action to click "Send" Button in messaging app.

B4X:
     Dim In As Intent
    In.Initialize(In.ACTION_VIEW, "sms:" & number)
    In.PutExtra("sms_body", "this is the body")
    StartActivity(In)
 

JohnC

Expert
Licensed User
Longtime User
Basically, your app can not send an SMS without user intervention unless:

1) Your app is configured to be the "default" sms app for the device (which will disable the factory SMS app that came with the phone)
2) Or use a third party service like Twilio to send the SMS (but then it will NOT be from the devices phone number, it will be from the number reserved with the third-party service)
 
Upvote 0
Top