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/08/21 12:22:21 UTC

[GitHub] [cordova-android] breautek commented on issue #1053: android@9.0.0 and cordova cli 10.0.0 cdvfile://localhost net::ERR_UNKNOWN_URL_SCHEME

breautek commented on issue #1053:
URL: https://github.com/apache/cordova-android/issues/1053#issuecomment-678262454


   It looks like you took the full file path from another platform and saved it, then tried to use that file path on a different platform.
   
   File paths differ from by platform, so you should be saving the relative URL part, eg:
   
   ```
   localStorage.myImage = "cee8882b-650f-4107-88c3-5f84f90cbf36.jpg";
   
   ...
   
   let  myImage = localStorage.myImage;
   let filepath = cordova.files.dataDirectory + myImage;
   ```
   
   The above example hasn't been tested, but should give you the right idea. Let me know if this helps.


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