You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue, but please update your code for using direct SMS transmission (without popup or additional view).
It is more user friendly without additional popup for pre-edit the sms content.
Why user must see the edit page, if the app already prepared the content for the sms?
await sendSMS(...) should send SMS directly without delay or sms popup edit page.
In Android you can do:
// SmsManager is android.telephony
String destinationAddress = "35235235;235423523";
String msg = "Text to send bla bla bla";
PendingIntent sentIntent = PendingIntent.getBroadcast(this, 0, new Intent("SMS_SENT_ACTION"), 0);
SmsManager mSmsManager = SmsManager.getDefault();
String numbers[] = destinationAddress.split(";");
This is not an issue, but please update your code for using direct SMS transmission (without popup or additional view).
It is more user friendly without additional popup for pre-edit the sms content.
Why user must see the edit page, if the app already prepared the content for the sms?
await sendSMS(...) should send SMS directly without delay or sms popup edit page.
In Android you can do:
// SmsManager is android.telephony
String destinationAddress = "35235235;235423523";
String msg = "Text to send bla bla bla";
PendingIntent sentIntent = PendingIntent.getBroadcast(this, 0, new Intent("SMS_SENT_ACTION"), 0);
SmsManager mSmsManager = SmsManager.getDefault();
String numbers[] = destinationAddress.split(";");
for(String num : numbers) {
Logger.d(this, "msg.length() : " + msg.getBytes().length);
if(msg.getBytes().length > 80) {
ArrayList partMessage = mSmsManager.divideMessage(msg);
mSmsManager.sendMultipartTextMessage(num, null, partMessage, null, null);
}else {
mSmsManager.sendTextMessage(num, null, msg, sentIntent, null);
}
}
Thank you in advance.
The text was updated successfully, but these errors were encountered: