openFileFromNotification not working
See original GitHub issueWhen download is finished, the notification show a Complete status, when i click on it, it doesn’t open the file. Here’s my code:
app.dart
FlutterDownloader.enqueue(
url: url,
headers: {'Authorization': user.token},
fileName: fileName,
savedDir: localPath,
showNotification: true,
openFileFromNotification: true,
);
AndroidManifest.xml
<manifest>
<application>
....
....
<provider
android:name="vn.hunghd.flutterdownloader.DownloadedFileProvider"
android:authorities="${applicationId}.flutter_downloader.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
</application>
</manifest>
What can be the problem?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:6
Top Results From Across the Web
Open file from notification - android - Stack Overflow
Open file from notification ... My problem is that with any extension the message on the chooser is No app can perform this...
Read more >flutter_downloader | Flutter Package - Pub.dev
Powerful plugin making it easy to download files.
Read more >You cannot open a file by clicking Open on the Notification bar ...
You click Open on the Notification bar to open the file. In this scenario, you experience one of the following issues: The file...
Read more >Flutter_Downloader package implementation made easier.
So I was working on my project, and I came to a point where I wanted to add ... true,openFileFromNotification: false,);print(_taskid);});}.
Read more >[Solved]-Download file from url, save to phones storage-Flutter
It works for me, but I do not check it on big files. ... add these lines in the manifest file, otherwise it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re running into the same issue. The recommend solution doesn’t seem to work.
In Android 11 it doesn’t open, but in other versions it’s open the file from the notification