If you’re using the downloads_path_provider package and saving files to:

/storage/emulated/0/Download

…this is the correct path for both emulators and real Android devices. However, if files don’t appear in the Downloads folder on real devices, there are a few important things to understand and address.

Common Reasons & Solutions:

1. Missing Permissions (Android 10 and below)

You must request runtime permissions to write to external storage:

Add this to your AndroidManifest.xml:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

Request permission at runtime using permission_handler:

await Permission.storage.request();

2. Scoped Storage Restrictions (Android 11 and above)

From Android 11 (API level 30), apps cannot freely access /storage/emulated/0/Download unless using MediaStore APIs or asking for MANAGE_EXTERNAL_STORAGE (not recommended due to Play Store restrictions).

Instead, consider:

  • Using file_saver
  • Or saving files in app-specific directories accessible through getExternalStorageDirectory() from path_provider

3. File Not Indexing Immediately

Sometimes, saved files don’t show up in the Downloads app right away. You can manually trigger media scan:

import 'package:external_path/external_path.dart';
import 'package:media_scanner/media_scanner.dart';

await MediaScanner.loadMedia(path: filePath);

Final Recommendation:

  • For Android 10 and below: You can write directly to /Download after requesting storage permissions.
  • For Android 11 and above: Use safer alternatives like MediaStore APIs, or save files in scoped directories.
  • Always check file visibility using a file manager or media scanner.
  • This ensures cross-version compatibility and proper file visibility for your users.
Also Read

Also Read:

Flutter Theming

Need Help With Flutter Development?

Work with our skilled Flutter developers to accelerate your project and boost its performance.

Hire Flutter Developers

Support On Demand!

Related Q&A