-
-
Notifications
You must be signed in to change notification settings - Fork 54
Description
We are using flutter_dotenv to set compile-time variables in a production app. This has been stable for about three years. However, on certain iPadOS devices, the following runtime exception occurs in a release build, despite the affected variable being required during app startup:
Assertion failed: "AAD_SCOPE variable not found. A non-null fallback is required for missing entries"
{"assembly":"flutter_dotenv","method":"DotEnv.get","level":0,"line":54,"fileName":"package:flutter_dotenv/src/dotenv.dart 54"}
This error occurs unexpectedly mid-execution, even though the variable was already used successfully during app initialization, suggesting that the environment variable may have been "lost" or become unavailable later.
Affected Devices:
- iPad Pro 13-Inch (M4) Version 18.6.2 (Build 22G100)
- iPad Pro 13-Inch (M4) Version 18.5 (Build 22F76)
- iPad Pro 13-Inch (M4) Version 18.6.2 (Build 22G100)
- iPadOS Unknown device Version 18.7 (Build 22H20)
Plenty other devices run the same build-artifact without a problem.
Versions
- Dart SDK: 3.8.1
- Flutter: 3.32.7 (recently upgraded from 3.29.3)
- flutter_dotenv: ^6.0.0
If you need any other information, please let me know.