问题
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 onRecieve(). 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.
Please help me track down this one or at least reproduce it.
is there an app or any setting that could delete or cancel the broadcast and prevent reaching my phone?
回答1:
can you confirm, so it is not calling onRecive or the Intent data parameter is returning null of the onReceive method? Can you try this once?
Send SMS until it is successful
来源:https://stackoverflow.com/questions/65705690/is-there-a-way-that-i-can-clear-the-broadcast-of-sms-sent-or-sms-delivered-so-th