refresh the token

This commit is contained in:
Paul Schneider 2026-11-04 09:11:21 +00:00
commit 256fd5738c
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
15 changed files with 458 additions and 10 deletions

View file

@ -71,11 +71,13 @@ public class MainActivity : AvaloniaMainActivity
{
base.OnResume();
IsForeground = true;
PostIt.Services.Platform.IsApplicationActive = true;
}
protected override void OnPause()
{
IsForeground = false;
PostIt.Services.Platform.IsApplicationActive = false;
base.OnPause();
}
@ -85,6 +87,7 @@ public class MainActivity : AvaloniaMainActivity
{
Current = null;
IsForeground = false;
PostIt.Services.Platform.IsApplicationActive = false;
PostIt.Android.Services.NotificationPermission.OnActivityDestroyed();
}
base.OnDestroy();