当接收到阻止的SMS时广播接收器未触发

问题描述 投票:0回答:1

我创建了一个SMS广播接收器。当我接收到正常的SMS接收器正在触发时,但是当我接收到被阻止的SMS时却未触发(我阻止了一个电话号码,从阻止的电话号码中收到了一些消息)

  <receiver
        android:name=".Receiver.MySMSBroadCastReceiver"
        android:enabled="true">
        <intent-filter android:priority="999">
            <action 
        android:name="android.provider.Telephony.SMS_RECEIVED" />
        </intent-filter>
  </receiver>

我希望接收者需要被触发,但不能被触发

android sms broadcast receiver blocked
1个回答
0
投票
If the number is in block list the android system will not generate the broadcast for Telephony.SMS_RECEIVED to receive.
© www.soinside.com 2019 - 2024. All rights reserved.