We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9931f1e commit d7dd38fCopy full SHA for d7dd38f
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
@@ -160,7 +160,7 @@ public void run() {
160
if (options.addAndroidDownloads.getBoolean("useDownloadManager")) {
161
Uri uri = Uri.parse(url);
162
DownloadManager.Request req = new DownloadManager.Request(uri);
163
- if(options.addAndroidDownloads.getBoolean("notification")) {
+ if(options.addAndroidDownloads.hasKey("notification") && options.addAndroidDownloads.getBoolean("notification")) {
164
req.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
165
} else {
166
req.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
0 commit comments