You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/07/18 23:20:56 UTC

[GitHub] [cordova-android] FranGhe commented on issue #1458: Android 10 - How can I assign the root path?

FranGhe commented on issue #1458:
URL: https://github.com/apache/cordova-android/issues/1458#issuecomment-1188428312

   Thanks so much Norman... I have submit my App on PlayStore and at the moment it's approved... using AndroidInsecureFileModeEnabled as true.
   
   I have to do it quickly (beforeGoogle  conditions change) because I didn't want to lose months of work... but I want to be ready for next time and I want to use the WebViewAssetLoader strategy... so:
   ```
   <preference name="scheme" value="https" />
   <preference name="hostname" value="localhost" /> 
   <preference name="AndroidInsecureFileModeEnabled" value="false" />
   ```
   
   and the solution to assign an image 
   `img/image1.jpg`
   is very easy to fix...
   
   But at this point I have anoter problem... in many part of my project I use window.resolveLocalFileSystemURL to find  folders and files... like this example:
   
   var urlDateFiles=cordova.file.applicationDirectory+'www/img/icons";
    window.resolveLocalFileSystemURL(
        urlDateFiles, 
        function(fileEntry) {
            ...
        }, 
       function (error){ 
           ...
       }
   );
   
   In this case if I set the urlDateFiles as "img/icons" the functions goes to error... if I use cordova.file.applicationDirectory+'www/img/icons" that work fine... 
   
   Do you have a suggestion about it? Is it better to mantain this solution or do you have to suggest me another one?
   
   


-- 
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-unsubscribe@cordova.apache.org

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


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