I`m using a javascript package that needs HTTPS to comunicate with the server and there’s no way to use HTTP with this package. so my questions are. ¿is it posible to use HTTPS on Android/IOs apps? and ¿How can I change my oringin from http://localhost to https://localhost on Android and IOs?

Interaction with “the server” is usually done with HttpClient, where you are completely in control of URL construction (and yes, HTTPS works just fine).

Additionally, Ionic apps use HTTP internally to fetch their code and assets, but in that case the “server” is really a part of the app itself, on device, so that shouldn’t be a concern.