Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 79144

Service doesn't get triggered after phone restart

$
0
0

I want to intercept when a sms has been received using:

[BroadcastReceiver(Enabled = true, Label = "SMS Receiver")]
    [Android.App.IntentFilter(new[] { "android.provider.Telephony.SMS_RECEIVED" })] 
    public class SmsReceiver:BroadcastReceiver
    {
        public override void OnReceive(Context context, Intent intent)
        {
              ...
        }   
    }

Everything works fine; except that if the phone is restarted it never gets triggered.

Any thoughts?


Viewing all articles
Browse latest Browse all 79144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>