rolinger opened a new issue, #646:
URL: https://github.com/apache/cordova-plugin-file/issues/646

   
   On app startup, I am using the following code to check if an app directory 
exists and if not create it.  It has worked fine forever - but on one users 
device I suddenly got the above error three times, once per each time the user 
started the app (within minutes of each other).  This user is on Android 12, 
and has had my app on his device for about 3 months and had started it 17 times 
previously without the error, then on starts 18, 19 and 20 suddenly started 
generating this error:
   
   `Uncaught typeError: Wrong type for parameter "uri" of 
resolveLocalFileSystemURI`
   
   ```
   if (ionic.Platform.isAndroid()) {
         window.resolveLocalFileSystemURL(cordova.file.externalDataDirectory, 
function (directoryEntry) {
           directoryEntry.getDirectory("downloads", { create: true, exclusive: 
false}, 
             function(success) {
               errMgmt("ctrl/init",1004.5,"Android 'downloads' folder created") 
;   
             },
             function(err) {
               errMgmt("ctrl/init",1004.6,"Android 'downloads' folder failed 
"+err) ;   
             }
           ) ;
         }) ;
       }
   ```
   
   The user did not remove and reinstall the app at any point.  Its from the 
original install several months ago, so what could cause this error to suddenly 
kick in?


-- 
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: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to