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

半世苍凉 提交于 2021-01-29 15:09:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!