Skip to content
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

iOS not running onFileLoading function #577

Closed
bkoznov opened this issue Jan 7, 2021 · 7 comments
Closed

iOS not running onFileLoading function #577

bkoznov opened this issue Jan 7, 2021 · 7 comments
Labels
bug Something isn't working iOS Issue applies to iOS platform

Comments

@bkoznov
Copy link

bkoznov commented Jan 7, 2021

On the latest iOS on iPhone XS, the onFileLoading function is not being executed. On the Android side, it is.

No filter, I have toyed with a couple of different settings but am currently with:

FilePickerResult result = await FilePicker.platform.pickFiles(
        onFileLoading: (FilePickerStatus progress) {
         
          print('progress 3' + progress.toString());
          return progress;
        },
          withData: false,
          allowMultiple: false,
          allowCompression: false,
          type: FileType.video
)

Error Log
There is no error log. When picking a file on Android, it prints 'progress 3,' with the correct picked status, while on iOS it doesn't (it prints nothing).
progress 3FilePickerStatus.picking
progress 3FilePickerStatus.done

Flutter Version details
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
• Flutter version 1.22.5 at /Users/briankozik/flutter
• Framework revision 7891006299 (4 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/briankozik/Library/Android/sdk
• Platform android-30, build-tools 29.0.3
• ANDROID_HOME = /Users/briankozik/Users/briankozik/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2

[✓] Connected device (3 available)
• Pixel XL (mobile) • HT71R0200010 • android-arm64 •
Android 10 (API 29)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 •
Android 10 (API 29) (emulator)
• Brian’s iPhone (mobile) • 00008020-000E1D063691002E • ios •
iOS 14.0.1

Additional context
I saw an old issue #279 that looked to be where the fix was put in. I'm not sure if it's a regression from working on iOS in the past or if I am doing something wrong.

Thanks!

@bkoznov bkoznov added the new issue An issue that hasn't yet been seen from the maintainer label Jan 7, 2021
@miguelpruivo
Copy link
Owner

Hi @bkoznov, is this still an issue? Does that happen only with iOS 14?

@bkoznov
Copy link
Author

bkoznov commented Jan 18, 2021

Yes, it is still an issue. I unfortunately don't have access to an older device at the moment to see if it also affects 13.

@hoangdat
Copy link

I have the same issue with both 2.0.11 and 2.1.5

@abhuzz
Copy link

abhuzz commented Jan 27, 2021

I got this related error while picking a video file from the iOS device gallery :

flutter: [MethodChannelFilePicker] Platform exception: PlatformException(file_picker_error, Temporary file could not be created, null, null)

Screenshot 2021-01-27 at 3 10 57 PM

@miguelpruivo miguelpruivo added bug Something isn't working iOS Issue applies to iOS platform and removed new issue An issue that hasn't yet been seen from the maintainer labels Jan 31, 2021
@miguelpruivo
Copy link
Owner

Fixed with 2.1.6. 🎉

Thank you for reporting.

@neelansh-creatorstack
Copy link

Same thing happening again.

@miguelpruivo
Copy link
Owner

Hum, there was no change regarding this @neelansh-creatorstack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS Issue applies to iOS platform
Projects
None yet
Development

No branches or pull requests

5 participants