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 2020/06/12 07:41:13 UTC

[GitHub] [cordova-plugin-file] Lindsay-Needs-Sleep commented on pull request #358: fix(ios) issue #349 - navigate to cdvfile with wkwebview

Lindsay-Needs-Sleep commented on pull request #358:
URL: https://github.com/apache/cordova-plugin-file/pull/358#issuecomment-643123584


   @tomaz-dugii 
   Gee, it's been a long time since I have worked with this stuff, but let me see....
   
   **Just to be clear, these changes are only relevant if you are trying to NAVIGATE to a `cdvfile://` url from an `https://` page**
   
   If you are trying to display an image with a `cdvfile://` url on an `https://` page this may also help (but it's been long and I can't remember for sure).
   
   (If your situation is one of the above cases, I **might** be able to help.)
   ---
   
   If you are just having trouble figuring out what the correct url is for file you should look here:
   https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#file-system-layouts
   
   For your image in the documents folder, it should be something like:
   `cordova.file.documentsDirectory + '/image.png';`
   
   (personally, I just use the cordova.file.dataDirectory if you don't need to share image.png with the users)
   
   Otherwise I would recommend reading through the quirks section:
   https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#ios-quirks
   
   
   
   


----------------------------------------------------------------
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.

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