|
@@ -161,7 +161,11 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
|
161
|
161
|
if (options.addAndroidDownloads.getBoolean("useDownloadManager")) {
|
162
|
162
|
Uri uri = Uri.parse(url);
|
163
|
163
|
DownloadManager.Request req = new DownloadManager.Request(uri);
|
164
|
|
- req.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
|
|
164
|
+ if(options.addAndroidDownloads.getBoolean("notification")) {
|
|
165
|
+ req.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
|
|
166
|
+ } else {
|
|
167
|
+ req.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
|
|
168
|
+ }
|
165
|
169
|
if(options.addAndroidDownloads.hasKey("title")) {
|
166
|
170
|
req.setTitle(options.addAndroidDownloads.getString("title"));
|
167
|
171
|
}
|