Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
¿Qué pasa con mi código? Mi aplicación React Native se bloquea al llamar a Firestore sin ningún registro

Aquí está mi implementación, estoy almacenando la baseURL en mi base de datos de Firestore. Solía iniciar sesión de forma anónima para obtener la URL. Pero al llamar a Firestore, mi aplicación falla sin ningún error, advertencia, etc.

 import {create} from 'apisauce'; import auth from '@react-native-firebase/auth'; import firestore, {firebase} from '@react-native-firebase/firestore'; const apiClient = create({ method: 'POST', }); apiClient.addAsyncRequestTransform(async request => { await auth() .signInAnonymously() .then(() => { console.log('success'); }) .catch(error => { console.log(error); }); const url = await firestore() .collection('service_url') .doc('service_url') .get() .then(document => console.log(document.data)) .catch(error => console.log(error)); console.log(url); request.baseURL = url; auth().signOut(); }); export default apiClient;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El problema que enfrenté fue el okHTTP. No funcionaba con Android API 30. Entonces, después de tantas soluciones, agregué la dependencia okhttp a mi proyecto. Eso resolvió mi error.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!