Welcome to our Microsoft Q&A platform!
Please register your SMSReceiver with
explicit broadcast like following code, I test it my pixel, it worked.
public class MainActivity : AppCompatActivity
protected override void OnCreate(Bundle savedInstanceState)
// Set our view from the "main" layout resource
sMSReceiver= new SMSReceiver();
var intentFilter = new IntentFilter("android.provider.Telephony.SMS_RECEIVED");
intentFilter.Priority = 999;
protected override void OnDestroy()
And please add and grand the runtime permission.
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.BROADCAST_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
And please let your application running in the foreground is better, if you make your application in the background, if you do not use foreground service, your application will be killed.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our [documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.
One of the devices is a pixel with vanilla Android yes.