Support for setting iOSOptions in Secure Storage actions

Actions & Logic

I’m using secure storage in a FlutterFlow app, and encountering iOS-specific PlatformException in production from Sentry. Errors such as:

  • Code: -25308, Message: User interaction is not allowed

  • Code: -25291, Message: No keychain is available

These errors occur when the app tries to write to secure storage without appropriate keychain access levels set, which can happen after device restart or in background state, according to my research.

Currently, FlutterFlow does not expose an option to set iOSOptions when writing to secure storage, such as accessibility: IOSAccessibility.first_unlock, which could help prevent these errors.

Is there any plan to implement iOSOptions in flutter_secure_storage, or any other way to avoid these errors without writing a lot of custom code?

What have you tried so far?
  • Looked into Flutter’s flutter_secure_storage docs and verified that setting iOSOptions could resolve the issue.

  • Not possible to override setString() behavior in FlutterFlow directly.

  • No existing workaround unless using custom code.

Did you check FlutterFlow's Documentation for this topic?
Yes
3