SMS Broadcastreceiver not called when GO SMS Pro installed

后端 未结 2 832
遥遥无期
遥遥无期 2020-12-17 21:09

I have implemented an SMS receiver which intercepts incoming SMS messages without any issues. However, when I install GO SMS Pro and set \"Disable other message notificatio

2条回答
  •  既然无缘
    2020-12-17 21:53

    go sms pro has set these lines in it's manifest for SmsReceiver:

    
            
                
                
            
            
                
                
            
            
                
                
            
            
                
            
        
    

    all these intent-filters make its priority higher than your receiver even if your reciever has the priority set to 2147483647. you can see the list of all receivers of all apps by:

    List receivers = getPackageManager().queryBroadcastReceivers(new Intent("android.provider.Telephony.SMS_RECEIVED"), 0);
    

    the first receiver in the list, receives the sms before than others

提交回复
热议问题