What I’m trying to do:
I would like to have the option to prevent session expiries by “locking the session” until the person logs in without things in the background (like a heartbeat function or timers making calls to the server to check statuses) being paused. The idea being that the app keeps updating things in the background but the user can’t do anything while the app is “locked”.
When they enter their password, the app unlocks.
I am trying to find a solution that doesn’t involve me adding a popover element to each form that gets shown in an alert. I am also trying to avoid having to reset the session manually.
What I’ve tried and what’s not working:
I have tried using an alert but that doesn’t work if another alert is already open.
Popovers also wont work from the main form since the alert waits until the alert is closed before running any code.
Notifications won’t block the popover from showing but also won’t show while an alert is there.
I have also thought about trying to check whether an alert is currently open but I am not sure about how to approach this.
Any ideas?