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

403
Views
Rechazo de promesa no manejado: Error: una de las claves `NSLocation*UsageDescription` debe estar presente en Info.plist para poder usar la geolocalización

Estoy tratando de agregar un seguimiento de ubicación en segundo plano a mi aplicación React-Native/Expo (SDK de flujo de trabajo administrado 42), pero sigo recibiendo un error que me dice que necesito agregar un elemento específico a mi Info.plist.

A continuación se muestra mi código sobre cómo solicito permisos en la aplicación, así como mi Info.plist

//Código en mi JS solicitando permisos en segundo plano

 useEffect(()=> { let isActive = true; const requestBackgroundPermissions = async () =>{ const {status} = await Location.requestBackgroundPermissionsAsync() if(status === 'granted'){ await Location.startLocationUpdateAsync(LOCATION_TASK_NAME, { accuracy: Location.Accuracy.Balanced, }); } } async function getBackgroundLocationAsync() { let { status } = await Location.requestBackgroundPermissionsAsync() if(status !=='granted'){ setErrorMsg('Permission to access background location was denied') return; } let backgroundLocation = await Location.getBackgroundPositionAsync({}); setBackgroundLocation(backgroundLocation); } getBackgroundLocationAsync() return() =>{ isActive=false } }, [], )

//Administrador de tareas, no sé si estoy haciendo bien esta parte

 TaskManager.defineTask(LOCATION_TASK_NAME,({data,error})=>{ if(error){ return; } if(data){ const{locations} = data } })

// Lista de información

 "ios": { "supportsTablet": true, "infoPlist":{ "NSLocationAlwaysAndWhenInUseUsageDescription":"Allows App to use location services in the foreground and background.", "NSFaceIDUsageDescription":"Allows App to use Face ID for a simpler sign in.", "UIBackgroundModes":[ "location", "fetch" ], } },

//Permisos de Android

 "android": { "adaptiveIcon": { "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#FFFFFF" }, "permissions":[ "ACCESS_COARSE_LOCATION", "ACCESS_BACKGROUND_LOCATION", "ACCESS_FINE_LOCATION", ], },
about 4 years ago · Juan Pablo Isaza
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!