silkimen / cordova-plugin-advanced-http

Cordova / Phonegap plugin for communicating with HTTP servers. Allows for SSL pinning!
MIT License
391 stars 313 forks source link

support public asset path name instead of www for capacitor engine #491

Closed RonnieRen closed 11 months ago

RonnieRen commented 1 year ago

if building an ionic 6 app(angular) with capacitor instead of cordova, the www folder name is changed to public, so we have to update the folder name of how to get the certificates.

silkimen commented 1 year ago

Hi @RonnieRen, thank you for your PR! Is there a possibility to check whether we are running on capacitor and only in this case use the public folder instead of www?

RonnieRen commented 1 year ago

@silkimen update the code to use different asset dir based on different bridge platform (capacitor vs cordova)