dec commented on issue #511:
URL: 
https://github.com/apache/cordova-plugin-file/issues/511#issuecomment-1025661949


   Hello to all,
   
   Well... here are more information about this issue, that may help to 
someone. I have some good news... first of all, establish one thing: my 
"DownloadFile" function is trying to download to 
"cordova.file.externalRootDirectory + 'Download'". I mention this because I am 
not trying nor test to download directly to the root folder, but to the 
"Download" subfolder.
   
   Well. Saying that... what I can discover is that in a "release APK" that I 
prepare of the app the "DownloadFile" function is working as expected in 
Android 11 + API 30! So apparently the problem exists in the "debug APK" and 
not in the "release APK". I need to try this, because, certainly the published 
app (Android 11 + API 30) works, and, of course, the published app is a release 
and not a debug version.
   
   So this is what I can say... apparently my "DownloadFile" function works as 
expected if I try it in a "release APK" and don't work as expected if I try it 
in a "debug APK". On the other hand, I also want to say that I am not trying 
with the "MANAGE_EXTERNAL_STORAGE" permission.
   
   So to place here a conclusion, at least from my side, the download of a file 
in the "cordova.file.externalRootDirectory + 'Download'" folder, works as 
expected talking about a "release APK". I did not try to download the file in 
the root directory, but, this is not needed to me, since I always download 
inside the "Download" folder.
   
   Maybe this can help to someone who are experiment this kind of issue: try 
your app after make a "release APK", in other words, don't try your app in a 
"debug APK", because apparently in this last case the problem occur.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to