diff --git a/src/MauiSettings/MauiSettingsGeneric.cs b/src/MauiSettings/MauiSettingsGeneric.cs index 9d41341..99e0867 100644 --- a/src/MauiSettings/MauiSettingsGeneric.cs +++ b/src/MauiSettings/MauiSettingsGeneric.cs @@ -532,10 +532,12 @@ List settingBaseAttributes switch (target) { case MauiSettingsTarget.ICloud: - throw new NotSupportedException("SecureStorage is not available for iCloud sync!"); + if (throwOnError) throw new NotSupportedException("SecureStorage is not available for iCloud sync!"); + else break; case MauiSettingsTarget.Local: default: - throw new NotSupportedException("SecureStorage is only available in the Async methods!"); + if (throwOnError) throw new NotSupportedException("SecureStorage is only available in the Async methods!"); + else break; } #else