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 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 correct path.
   
   E.g. Various String Values:
   
   * The new scheme+hostname value, which the native side will need to map to 
the native file path.
   * The exact native file path.
   * A partial path that of either:
     * native file path
     * 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to