As the os provides only about 30 sec with
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?
Code Block func beginBackgroundTask(expirationHandler handler: (() -> Void)? = nil) -> UIBackgroundTaskIdentifier
after 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?