Android, Jetpack, Jetpack Datastore.
context.createDataStore(UserPreferencesSerializer) val newEmail = // Fetch or generate new email dataStore.updateData { currentPrefs -> currentPrefs.copy(email = newEmail) } return Result.success() } } // In your Activity or BroadcastReceiver val workManager = WorkManager.getInstance(this)