-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After reopen application, getting null values in IOS. But working in Android. #752
Comments
class SecureStorage { static final SecureStorage _instance = SecureStorage._internal(); factory SecureStorage() { SecureStorage._internal() { // Read value // Read value // Read all values // Write value // Delete value // Delete value |
I am updated secure storage v9.0.0 to v9.2.2, then again same issue: PlatformException(Unexpected security result code, Code: -25300, Message: The specified item could not be found in the keychain., -25300, null)-- Please any one have solution for this. |
Every time i am calling the Login API for token update, and deleting all Secure Stotage data, then again saving fresh data in secure storage. So when ever reopen the application in IOS app, |
Same here, is there a size limit? my code: class LocalStorageServiceSecureImpl {
late final FlutterSecureStorage _storage;
LocalStorageServiceSecureImpl() {
_storage = FlutterSecureStorage(
iOptions: _getIOSOptions,
aOptions: _getAndroidOptions,
);
}
AndroidOptions get _getAndroidOptions =>
const AndroidOptions(encryptedSharedPreferences: true);
IOSOptions get _getIOSOptions => const IOSOptions(
accessibility: KeychainAccessibility.first_unlock,
synchronizable: true,
);
Future<void> saveData(String key, String data) async {
await _storage.write(
key: key,
value: data,
iOptions: _getIOSOptions,
aOptions: _getAndroidOptions,
);
}
Future<String?> loadData(String key) async {
return await _storage.read(
key: key,
iOptions: _getIOSOptions,
aOptions: _getAndroidOptions,
);
}
} |
It is a flutter_secure_storage library issue, Just replace with flutter_keychain library.
https://pub.dev/packages/flutter_keychain
Its similar functionality. I am using it. Its working as expected.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: kkh975 ***@***.***>
Sent: Tuesday, July 23, 2024 7:12:00 PM
To: mogol/flutter_secure_storage ***@***.***>
Cc: Suresh Kumar Vanga ***@***.***>; Author ***@***.***>
Subject: Re: [mogol/flutter_secure_storage] After reopen application, getting null values in IOS. But working in Android. (Issue #752)
Same here, is there a size limit?
—
Reply to this email directly, view it on GitHub<#752 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BJUWT6722XXJ2GUFTD6DCT3ZNZMSRAVCNFSM6AAAAABKVJ57JCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBVGI4TGNBWGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I have the same problem. |
We have this issue along with the BadPaddingException: #541 I feel we need to personally remove the Flutter Secure Storage. It's causing weird issues. Might look into |
value is always null |
As of now I don't have any issue while using flutter_keychain.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: R Dewan ***@***.***>
Sent: Thursday, July 25, 2024 7:18:17 PM
To: mogol/flutter_secure_storage ***@***.***>
Cc: Suresh Kumar Vanga ***@***.***>; Mention ***@***.***>
Subject: Re: [mogol/flutter_secure_storage] After reopen application, getting null values in IOS. But working in Android. (Issue #752)
value is always null
—
Reply to this email directly, view it on GitHub<#752 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BJUWT62IMCK6HLDHZZOLOCDZOD62DAVCNFSM6AAAAABKVJ57JCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJQGM3DSMJUGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Look like it only support string as a value. I tries to store a int and got error but after storing as string its working |
Hi,
I am using flutter_secure_storage: 9.0.0 version in flutter application. But when ever i closed the app and reopen again ,
After splash screen i am getting data null in IOS, but in Android works fine.
How to fix this issue, please any one help me on this.
The text was updated successfully, but these errors were encountered: