setForeground

fun setForeground(foreground: Boolean)

Whether the app runs in the foreground. iOS kills a suspended app that keeps an account's lock, so in the background no account takes its lock unless holdSessionScope holds it: opens, logins and logouts wait for the foreground instead. In the foreground an account the background release paused opens again on first use. Starts true; an app that may launch in the background sets false before anything opens an account.