eduvpn / apple

app for iOS and macOS
Other
58 stars 18 forks source link

Improve session expiry notifications #451

Closed roop closed 2 years ago

roop commented 2 years ago

This PR does the following:

  1. Show notification when session has expired
  2. If the app is in the foreground when (a) session is about to expire in 30 mins, or (b) session expires, or (c) when device wakes up and (a) or (b) is true, we show an alert instead of a notification
  3. Since (2) above can result in multiple alerts, we keep track of whether a previous session-expiry-related alert is being shown or not. We show an alert only if another is not already being shown undismissed.

Fixes #442 and #445.