As the os provides only about 30 sec with func beginBackgroundTask(expirationHandler handler: (() - Void)? = nil) - UIBackgroundTaskIdentifierafter which the app is suspended.
Is there a way to run the timer in background for 3 minutes to logout from the server session? or is there any other possible approach to get an event after 3 minutes to perform logout while the app is in background?