Skip to content

Route Firebase Notification to sms app interval #19

Answered by ibnux
cilinjohnrey asked this question in Q&A
Discussion options

You must be logged in to vote

The function to send SMS are in this area

if (simNumber > 0) {
SmsManager smsManager = SmsManager.getDefault();
ArrayList<String> messageList = smsManager.divideMessage(message);
boolean sukses = true;
if (messageList.size() > 1) {
sukses = SimUtil.sendMultipartTextSMS(this, simNumber - 1, to, null, messageList);
} else {
sukses = SimUtil.sendSMS(this, simNumber - 1, to, null, message, 0);
}
} else {
Fungsi.sendSMS(to, message, this);
}

that go to SimUtil if multiple SIMCARD

https://github.com/ibnux/Android…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ibnux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants