After migrating to the UISceneDelegate for ios using the official guide https://docs.flutter.dev/release/breaking-changes/uiscenedelegate the document is not opening. I tried the same Dart code but before migration - everything OK.
In Fluttre I open the doc in this way
try {
final extension = path.extension(file.path);
if (context.mounted) {
await OpenFile.open(file.path, type: extension, isIOSAppOpen: true);
}
} catch (e) {
if (context.mounted) {
context.showErrorToast(message: e.toString());
}
}
No errors in console. The future for the await OpenFile.open(file.path, type: extension, isIOSAppOpen: true); never completes