Aman Verma
Aman Verma

Reputation: 3325

is there a way that I can clear the broadcast of SMS_SENT or SMS_DELIVERED so that other apps won't get it?

I am looking for a potential hack in my application where I am unable to get the onReceive() or SMS_SENT or SMS_DELIVERED in devices like Oppo, Vivo, Mi.

A message is sent from my device and I register a receiver to listen for the status of the message, sent and delivered, after that, I will do some networking calls.

Currently, my app is unable to get the onReceive(). Why? Because I add value to an Array every time my onReceive() gets called and send to the server. I am getting an Empty Array for devices like Oppo, Vivo, Mi.

How can I track this this or at least reproduce it?

Is there an app or any setting that could delete or cancel the broadcast and prevent reaching my phone?

Upvotes: -1

Views: 63

Answers (1)

rohan ghosh
rohan ghosh

Reputation: 177

Can you confirm, so it is not calling onReceive or the Intent data parameter is returning null of the onReceive method? Can you try the following?

Send SMS until it is successful

Upvotes: 0

Related Questions