SMS receive with no notification

后端 未结 6 2054
旧时难觅i
旧时难觅i 2020-12-06 11:50

I want to receive a sms in my app, but I don\'t want my Android to show a notification about that event. Algorithm:

  1. Receive sms (it\'s ok)

  2. I

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 12:24

    not sure if i know exactly what you are trying to do but from what i understand you just want to know how to not send a notification?

    why cant you just do:

    If(instance 2){
    //do your processing
    }else{
    //send notification
    }
    

    if you mean you want to block the OS from broadcasting it then you might be out of luck because i dont believe you can do that

提交回复
热议问题