Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

628
Visualizações
Getting Location on ios using Expo React native

I am trying to get Location of users using [expo][1]

This works perfectly fine on andriod but on ios I keep getting this error almost everytime.

Unhandled promise rejection: Error: Cannot obtain current location: Error Domain=kCLErrorDomain Code=0 "(null)"

I have tried everything but I am currently so confused on how to solve this issue. I've been at it for 5 days now. I have check every questions on stack overflow and other websites relating to this but none fixes the error. This is tested on a real device not using simulator. Please do you have any idea why this is happening? This is the code that I use:

await Location.getCurrentPositionAsync({})

Their are no options set because the options practically don't work at all. [1]: https://docs.expo.dev/versions/v44.0.0/sdk/location/#locationgetcurrentpositionasyncoptions

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda