You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Tick event trigger continuously on Android #10257
I have set the Display alert in the tick event and set the time interval as one minute. When I run the application the tick is triggered continuously which means after one minute it should trigger one Time, but it is triggered two times. Every minute the tick event trigger count increased. Working fine on other platforms.
Steps to Reproduce
Run the sample
wait 10 sec the display alert will pop up
And wait another one minute now tick event trigger two times
private void OnReminderTimerTick(object sender, EventArgs e)
{
DisplayAlert("Reminder Tick event Triggered", "Yes", "ok");
//// set Time interval
this.reminderTimer.Interval = new TimeSpan(0,1,0);
//StartReminderTimer();
}
You don't need to call StartReminderTimer() here; the timer has IsRepeating set to true by default. Leaving that out may work around the bug until we can get a fix in place.
Activity
PureWeen commentedon Sep 22, 2022
@mattleibow FYI ^
homeyf commentedon Jul 10, 2023
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 2.0. Can repro on Android platform with sample project.

https://github.com/MuniappanSubramanian/Samples/tree/main/Tick
hartez commentedon Jul 10, 2023
You don't need to call
StartReminderTimer()here; the timer hasIsRepeatingset totrueby default. Leaving that out may work around the bug until we can get a fix in place.Prevent Android timer from adding multiple callbacks;
Prevent Android timer from adding multiple callbacks;
Prevent Android timer from adding multiple callbacks;
Prevent Android timer from adding multiple callbacks;
Prevent Android timer from adding multiple callbacks; (#16078)
[net8.0] Update dependencies from xamarin/xamarin-macios (#16749)