-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Notification doesn't download file #442
Comments
SInce i can open the notification i create and opened the file i found out that the file is being saved under /data/user/0/com.android.providers.downloads/cache/downloadfile.bin . Is it possible to save it to the RNFetchBlob.dirs.DocumentDir instead and with the correct extension? that way notification can probably open the file |
@SergioReis97 , you can add See the wiki |
Using this still gives the same error when trying to open the file
|
I think you should also give a filename (also extension) to the path, not folder only 👍 |
Same result actually, it does download and goes to download app but always says "Can't open this file". Same when i click in downloadmanager notification and i can still open it using the custom notification even though it points to "/data/user/0/com.android.providers.downloads/cache/downloadfile.bin"
|
It looks similar to #391 |
Re-installing into 0.10.6 didn't work but I copied the changes you've did in and it does indeed solve. Thank you for this amazing project/help :) |
Great 👍 Nice to know you solve the problem. |
Tying to use the option addAndroidDownloads and create a notification but the notification never opens the file.
I can use
To open the downloaded file for android and it works accordingly, added it to the notification click (implemented by third party) and everything goes smoothly except that even disabling addAndroidDownloads notification it always stays there... and whenever clicked, it says "can't open file" in a toast and nothing happens.
Here's the complete function i'm currently using to download
Thanks in advance
The text was updated successfully, but these errors were encountered: