fluttercommunity / fluttercommunity/flutter_downloader
[Android] Unable to open/Install APK from notification
- Dominant language
- Kotlin
- Stars
- 940
- Forks
- 561
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
**Describe the bug**
I cannot open/install APK from notification after download completion, other formats are working but APK is not working.
I have checked integration multiple times and also added this permission in the manifest
```
```
In Addition, I am unable see to any errors or log in console. If there is any error, it should show at least an error
**To Reproduce**
Use this code for APK testing (Error)
```
await FlutterDownloader.enqueue(
url: "https://adara-vpn-apks.s3.us-east-2.amazonaws.com/156bb4ad-fa7a-4cfd-829a-7f238fa7a33b-V5GE6.apk",
headers: {},
savedDir: "/storage/emulated/0/Download",
saveInPublicStorage: true,
showNotification: true,
openFileFromNotification: true,
);
```
Use this code for image testing (working)
```
await FlutterDownloader.enqueue(
url: "https://img-cdn.pixlr.com/image-generator/history/65bb506dcb310754719cf81f/ede935de-1138-4f66-8ed7-44bd16efc709/medium.webp",
headers: {},
savedDir: "/storage/emulated/0/Download",
saveInPublicStorage: true,
showNotification: true,
openFileFromNotification: true,
);
```
Steps to reproduce the behavior:
1. Call this code on the button or anything
2. Wait for downloading
3. Click on the notification and check behavior
**Expected behavior**
After successful download install should open to install APK.
**Device information:**
I tested it on multiple real devices and emulators but the behavior is the same on all devices
- Device: Redmi 13
- OS: Android 14
- plugin version: ^1.11.8
**Additional context**
Your provided example is not working as well.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.