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

142
Views
How do I make my Expo EAS app only track a user's background location in certain screens?

I have a RN/EAS app that tracks a user's background location. I only want their background location to be logged in certain screens, but whenever I have the app engaged in any screen, I get the blue, background location tracking notice.

I have my task manager existing in the App.js folder, but I am unsure how I may properly configure it to only run in certain screens. Below is my TaskManager code:

const LOCATION_TASK_NAME = 'background-location-task'

TaskManager.defineTask('firstTask', ({data, error}) => {
   if(error){
      alert('Something went wrong with background locations')
   }

  if(data){
    alert('Something went right with background locations')
    const{locations} = data
    console.log(locations, 'locations')
  }

  })
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!