Masuk Helal Anik
Masuk Helal Anik

Reputation: 2283

Fetch request with https url is not working for Android<5.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.

Upvotes: 0

Views: 1236

Answers (1)

Malik Hezret
Malik Hezret

Reputation: 249

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

Upvotes: 1

Related Questions