Redirect to 3CX app to send an sms with pre defined number

Status
Not open for further replies.

ItsApp2you

New User
Joined
Nov 17, 2021
Messages
8
Reaction score
0
We are working on an Android application, In that we did code for redirect to call a number using the 3cx app
That works perfect for us. & place number in 3cx Phone dial screen like you can see below, so user can call on placed number if he needed.
You can see the code we are using below too

We want to do the same with SMS sending to a number we define in our app
But we didn't find any reference intent code for sms
Is there a solution for that ?
We do not need to deal with the text to be sent only to open the send sms screen with the right number as receiver

Thanks

Call works well and open screen like this:

image (6).png

The code we are using for the call :
PackageManager manager = getPackageManager();
try
{
boolean isAppInstalled = uf.appInstalledOrNot(mContext,"com.tcx.sipphone14");
if(isAppInstalled)
{
// what number here we passed in sip, it'll redirect & place as mobile number in 3cx dial screen
Uri phoneCall = Uri.parse("sip:"+str_customer_phon);
Intent caller = new Intent(Intent.ACTION_SENDTO, phoneCall);
startActivity(caller);
}
else
{
mContext.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.tcx.sipphone14")));
}
}
 
Hi @ItsApp2you, thank you for the feedback.
Unfortunately intent code for SMS is not available.
 
Can you offer any solution that will allow to open the 3cx app on the sms messaging screen with a specific number?

Or is there an API we can use so we will do the message typing in our app but then send it using 3cx number by sending it to the API?
 
Hi!

Currently there is no API (Server-side or Client-side) that will allow you to do this.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Forum statistics

Threads
112,065
Messages
590,584
Members
165,019
Latest member
rsaldin@advancedbrainspin