Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to schedule a local notification or set an Alarm in Xamarin Android?

$
0
0

I tried setting NotificationCompat.Builder.SetWhen() to schedule a local notification. But that didn't work. The notifications was delivered immediately. It seems SetWhen() is used to set the timestamp of the notification but not to schedule its delivery time.

Then I was reading about AlarmManager and Handler. But I was not able to get to how to use either of them. From the description it appears Handler is more apt for my requirement. How to use it? Is there any sample to use either AlarmManager or the Handler API?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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