Secured Localhost HTTPS

Hi Team,

We are trying to install our Andriod app (Ionic app) into a secured Clover Payment device and it is giving below error when try to install.

"This application is attempting to load the following URL: Http://localhost. For Security reasons, non-HTTPS URLS are not allowed. "

Is it possible to run our webview in HTTPS?

Thanks in advance.

I know this post is very old, but since I stumbled on this searching a fix for this same problem, I left here the solution:

Just add this line in the main section of your config.xml file (for Cordova):

<preference name="Scheme" value="https" />