flutter_downloader
flutter_downloader copied to clipboard
why i can't open the file from notifications
as the shown above... i do set true for the openFileFromNotification. but still i can't opened my file. please help me...
and how can i handle if my download was succesfull ?
regards
Same with me, I have put the file into external storage, but I can't open it either
i already known my own problem... the problem is the file was downloaded is failed to save/write into storage.. which is, i opened my file from spesific directory.
my solution is very ez,, you should be give a permission to write into storage
You need to include the
I can open file from notifications on API 28 but not API 30
You might add the storage permissions in manifest but your phone may either way say that this permission is denied. Make sure that your app REQUESTS user to grant permission to access storage.
I can open file from notifications on API 28 but not API 30
Try adding this line "android:requestLegacyExternalStorage="true"" to your Android.manifest file in the application tag <application android:label="login" android:icon="@mipmap/ic_launcher" android:requestLegacyExternalStorage="true">
Even I cannot open the file on clicking the notification, what to do ? I want to open my downloaded pdf document directly from notification
I am also having the same issue. Deos anyome have a solution
For Flutter_Downloader
If you are using API 29+(ANDROID 10 and Above) add the below code in AndriodManifest.xml
android:requestLegacyExternalStorage="true"
Like this
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
...........
<application
..............
<!-- Add This line -->
tools:replace="android:label"
android:requestLegacyExternalStorage="true"> <!-- Add This line if you are targeting android API 29+-->
<activity>
...............
</activity>
</application>
</manifest>
For Flutter_Downloader
If you are using API 29+(ANDROID 10 and Above) add the below code in AndriodManifest.xml
android:requestLegacyExternalStorage="true"
Like this
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> ........... <application .............. <!-- Add This line --> tools:replace="android:label" android:requestLegacyExternalStorage="true"> <!-- Add This line if you are targeting android API 29+--> <activity> ............... </activity> </application> </manifest>
this solved the problem! thanks!