eduvpn / apple

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

Change when the "Renew Session" button is shown #460

Closed roop closed 2 years ago

roop commented 2 years ago

The APIv3 now explicitly states when the renew button should be shown:

In order to help the user avoiding unexpected VPN connection drops, the client implements:

  1. A countdown timer that shows how long the VPN session will still be valid for;
  2. A "Renew" button that allows the user to "refresh" the VPN session at a convenient time;
  3. An OS notification that informs the user when the expiry is imminent, or has already occurred.
What Visible
Countdown Timer Always
"Renew" Button On the last day*
OS Notification One hour before ${SESSION_EXPIRES_AT} AND on ${SESSION_EXPIRES_AT}

With "On the last day" we mean that each of the following holds:

  1. At least 30 minutes have passed since the session start;
  2. The session expiry will occur today, i.e. within 24 hours;
  3. If the total session duration is less than 24 hours, at least 75% of the total session duration MUST have passed.