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 2021/09/06 12:25:38 UTC

[GitHub] [cordova-android] erisu edited a comment on issue #1316: Failed to load assets image with Version > 10

erisu edited a comment on issue #1316:
URL: https://github.com/apache/cordova-android/issues/1316#issuecomment-913608241


   Sorry, I was mistaken about where the error was. I thought it was from the WebView side but, I see it was the native side of the plugin.
   
   It will need to be the path that @breautek suggested.
   
   > file:///android_assets/imgs/map/mapPinGreen/mapPinGreen.png
   
   But, this path will not work for iOS.
   
   Try his other suggestion, to confirm that it will work:  `AndroidInsecureFileModeEnabled`
   
   Maybe the correct end-goal solution would involve a change/feature request to the plugin developers. Since you are passing the path to the plugin, and the plugin is trying to fetch the file with native code, maybe the plugin should accept various string values and determine the path it needs.
   * The new scheme+hostname value, which the native side will need to map to the native file path.
   * A native file path.
   * A partial path that could be either native file path or scheme+hostname
   
   Maybe, there could be something implemented on our platform's code to help translate the file paths to native paths, etc, but then it would include app developers updating the app code and wrap file paths. For some reason, I would feel that this isn't the best solution compared with the plugin change.
   
   @breautek any thoughts?


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