diff --git a/lib/utils/database/flutter_famedly_sdk_hive_database.dart b/lib/utils/database/flutter_famedly_sdk_hive_database.dart index 7d921eb5..be397cb9 100644 --- a/lib/utils/database/flutter_famedly_sdk_hive_database.dart +++ b/lib/utils/database/flutter_famedly_sdk_hive_database.dart @@ -34,6 +34,9 @@ class FlutterFamedlySdkHiveDatabase extends FamedlySdkHiveDatabase { } HiveCipher hiverCipher; try { + // Workaround for secure storage is calling Platform.operatingSystem on web + if (kIsWeb) throw MissingPluginException(); + final secureStorage = const FlutterSecureStorage(); final containsEncryptionKey = await secureStorage.containsKey(key: _hiveCipherStorageKey);