fluttercommunity / fluttercommunity/flutter_downloader

Setting showNotification to false doesn't work. Still shows notification. [Android]

Open
#901 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

Setting `showNotification` to `false` doesn't work. The notification still shows.

```
await FlutterDownloader.enqueue(
url: fileUrl,
headers: {},
savedDir: path,
saveInPublicStorage: true,
fileName: '$id.pdf',
showNotification: false,
openFileFromNotification: false,
)
```

**Expected behavior**

The notification should not show.

**Screenshots**

![FlutterDownloader_showNotification-Bug](https://github.com/fluttercommunity/flutter_downloader/assets/127763/c383d337-4ebb-4965-ac1c-35c9ecd28d0a)

flutter_downloader 1.11.3

```
[✓] Flutter (Channel stable, 3.13.4, on macOS 13.4.1 22F82 darwin-arm64, locale en-ID)
• Flutter version 3.13.4 on channel stable at /Users/upbanx/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 367f9ea16b (4 weeks ago), 2023-09-12 23:27:53 -0500
• Engine revision 9064459a8b
• Dart version 3.1.2
• DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/upbanx/Library/Android/sdk
• Platform android-34, build-tools 33.0.0
• ANDROID_HOME = /Users/upbanx/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.83.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.74.0

[✓] Connected device (3 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 13 (API 33) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F82 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.149

[✓] Network resources
• All expected network resources are available.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.