Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Add feature click download manager #644

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ public void onReceive(Context context, Intent intent) {
}

}
}else if (DownloadManager.ACTION_NOTIFICATION_CLICKED.equals(action)) {
Context appCtx = RNFetchBlob.RCTContext.getApplicationContext();
Intent dm = new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS);
dm.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
appCtx.startActivity(dm);
}
}

Expand Down