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

[Android] Unable to open/Install APK from notification #973

Open
mohsinnaqvi606 opened this issue Sep 9, 2024 · 2 comments
Open

[Android] Unable to open/Install APK from notification #973

mohsinnaqvi606 opened this issue Sep 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mohsinnaqvi606
Copy link

mohsinnaqvi606 commented Sep 9, 2024

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

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission
        android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
        tools:ignore="ScopedStorage" />

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.

@mohsinnaqvi606 mohsinnaqvi606 added the bug Something isn't working label Sep 9, 2024
@mohsinnaqvi606 mohsinnaqvi606 changed the title Unable to open/Install APK from notification [Android] Unable to open/Install APK from notification Sep 9, 2024
@mohsinnaqvi606
Copy link
Author

mohsinnaqvi606 commented Sep 26, 2024

@bartekpacia Any update on this?

I am facing this issue on Android 10 and 10+. Android 9 is working as expected.

@bartekpacia
Copy link
Collaborator

I don't actively maintain this repository. If there was any update, it would've been posted here.

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

No branches or pull requests

2 participants