Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

598
Vistas
Apis are not working on old Android devices (Android 7 or less) in React Native using axios but working in new devices

I used 'axios' library to fetch the data. It is working perfect on new Android devices (Android 9 & 10) but on old devices (Android 7 or less) it always gives Network Error like this: [ Error: Network Error] it seems like the devices could not establish a connection with the https URL.

This question is duplicate of this link below I am also getting this error can anyone help out.

Fix APIs connection problem with old Android OS (Android 7 or less) in React Native using axios

const SERVER_URL = 'https://*****.com/****';

export const getCities = () => async dispatch => {
  let res = await axios.get(`${SERVER_URL}/GetCityList`);
  res = parser.parse(res.data).ArrayOfMCity.mCity;
  if (res && !res.length) {
    res = [res];
  }
  const dropdownCities = [];
  res.forEach(r => {
    dropdownCities.push({label: r.CityName, value: r.CityID});
  });
  dispatch({
    type: GET_CITY,
    payload: {
      cities: res ? res : [],
      dropdownCities,
    },
  });
};
enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Well I got the solution I have tried other api other than my api and it is working perfectly. So I found out that I am having a certificate issue in android old devices. The certificate is not working in old devices from version 7.1 and older.

Here is the link which says that many websites will stop working in older android devices from 1st September 2021

https://www.androidpolice.com/2020/11/07/many-websites-will-stop-working-on-older-android-versions-in-2021/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda