//public override StartCommandResult OnStartCommand(Android.Content.Intent intent, StartCommandFlags flags, int startId) //{ // return StartCommandResult.NotSticky; //} private async void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { if (DateTime.Now.Second == 0) { viewModel = App.referenceViewModel; await viewModel.FetchMedicineList(); await viewModel.UpdateLiveMedicineList(); Log.Debug(TAG, "Updated MedicineList"); if (App.isFocusToApp == false) { viewModel.NotifyAction(); } } }