I’m making an Android App using Capacitor/android from a Web Angular App, the Web-App is working fine but when I’m running the App in Android it’s giving the below Error
[ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -202
File: https://localhost/vendor.js - Line 263078 - Msg: gmsServices_Authentication: login() http reply error: status: 0; statusText: Unknown Error
[ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -202
I have added the following code to my AndroidManifect.xml file too –
android:usesCleartextTraffic="true"
The above code is returning me a warning that Attribute
usesCleartextTrafficis only used in API level 23 and higher (current min is 22)
What can I do to solve this?
Darshika Siemens is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.