0

In my project fetch request with https is not working for Android<5.0. I know it's for ssl certificate issue. But I don't know how to add or solve that problem. So far I tried many things by googling the problem.

Any help or suggestion will be appreciated. Thanks.

1 Answer 1

1

There is no solid solution to this issue. I had the same issue and I have tried it and it still doesn't work in old samsung devices. The android devices which are equal and below 5.0 use TLS 1.1 or 1.0. The new standard TLS is 1.2. Even tho TLS 1.2 exists in Android devices below 5.0 they are not enabled by default. So you have to enable it manually by changing socket so when your app loads it should enable TLS 1.2 in old devices. The certificate of Android<5.0 devices has been issued before TLS 1.2 introduced. Below are useful links so good luck with trying it.

Android 4.1 to 4.4 KitKat - Enable TLS 1.2 for API

https://github.com/facebook/react-native/issues/7192

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.