I'm making an android app and I want to activate an alarm every 10 minutes.
The problem is that the alarm is activated only one time.
Here is the code who launch the BroadcastReceiver :
public void CallAlarmReceiver(bool isRepeating, bool destroy)
{
Intent i = new Intent(this, typeof(AlarmReceiver));
i.SetAction("android.intent.action.NOTIFY");
PendingIntent pi = PendingIntent.GetBroadcast(this, 0, i, PendingIntentFlags.UpdateCurrent);
AlarmManager alarmManager = this.GetSystemService(Context.AlarmService) as AlarmManager;
AlarmManagerCompat.SetExactAndAllowWhileIdle(alarmManager, (int)AlarmType.RtcWakeup, (long)(Calendar.GetInstance(Android.Icu.Util.TimeZone.Default).TimeInMillis + TimeSpan.FromSeconds(10).TotalMilliseconds), pi);
}