Use cordova-plugin-advanced-http

Hi,
I have successfully implemented certificate pinning with the help of this plugin.
Kindly help me regarding error coming most of the time i login. Login is inconsistent. Sometimes able to login but many times giving below errors
1)There was an error with the request: java.net.ConnectException: Failed to connect to “url”
2)The request is timeout

Kindly help me i am stuck in this and project cannot be successfull if this login inconsistency persist.

Does anyone face such issues. What can be the cause of this issue? Kindly enlighten in this subject.

To fix the issue of timeout i tried below IONIC forums links but not succeeded.