1

I am able to get the send / receive SMS status when sent from my android application. For send using the below code,

SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null, msg, sentIntent, deliveredIntent);

Where , sentIntent and deliveredIntent are Pending intents

I can get the SMS sent/delivery report successfully (When send from my application).

But, When I send SMS by using default Message application, the BroadcastReceiver not get called.

I have added the below filter for my BroadcastReceiver class

 <receiver android:name=".SMSBReceiver">
    <intent-filter android:priority="1000" >
        <action android:name="android.provider.Telephony.SMS_RECEIVED" />
        <action android:name="android.provider.Telephony.SEND_SMS" />
 </receiver>
Vineesh TP
  • 7,755
  • 12
  • 66
  • 130

1 Answers1

0

You can't get sent status from your app, if the sms is sent from Default SMS app. Because the receiver in delivery PendingIntent will not be the one you added, instead it's of Default SMS app.

zq w
  • 26
  • 2