xamarin form App refresh on background or minimized

1.2k views Asked by At

I need to refresh the application when push notification came at background. without opening push notification UI is not affecting .

Have anyone know how to update the application when its minimized where new update came. I have read Background fetch with perform fetch in xamarin forms but didn't get sufficient info anyone help please... Thanks.

1

There are 1 answers

2
Pavan V Parekh On

UI actions must be performed on UI thread. If you want to make change on ui in background then you need to do it in MainThread like below:

Device.BeginInvokeOnMainThread (() => {
  labelNotificationCount.Text = "1";
});

For more information, click here