how to connect api rest from android 9 without https protocol

37 views
Skip to first unread message

MobilitySol Uruguay

unread,
Jul 30, 2020, 4:23:41 PM7/30/20
to CodenameOne Discussions
i need to connect with api rest by https protocol, but in the Android 9, i cant because this exception "Handshake failed".
Can you help me?
We have a VPN Connection...
How can I force to use http protocol in api level 28 or high instead https?
Regards


Shai Almog

unread,
Jul 30, 2020, 10:53:09 PM7/30/20
to CodenameOne Discussions

MobilitySol Uruguay

unread,
Aug 5, 2020, 3:50:44 PM8/5/20
to CodenameOne Discussions
Hi, this solution not work.

https://stackoverflow.com/questions/57121953/usescleartexttraffic-not-permitted/57130188

Is possibile when i do a request to server, use the CA of server?

Regards

Shai Almog

unread,
Aug 5, 2020, 10:00:54 PM8/5/20
to CodenameOne Discussions
Hi,
not at the moment.
Notice this won't work for invalid certificate. Just for "http" URLs. What isn't working for you?
Did you add these hints with the same case? Did they make it into the settings file?
Reply all
Reply to author
Forward
0 new messages