How to track user location in background?

前端 未结 8 955
梦如初夏
梦如初夏 2020-12-12 23:27

I\'m looking for an open source app or library to track user location in the background. Now I\'m trying to do it with CLLocation and background tasks, but accu

8条回答
  •  青春惊慌失措
    2020-12-13 00:21

    Disclaimer: I work for Cintric

    We also wanted to be able to accurately track a users location in background (even after the app had been killed). We spent a long time solving the problem, especially focusing on battery drain.

    We posted a great blog post on how we solved it. And also are providing a drag and drop SDK solution. It's not open source but you can integrate it for free:

    You can download the .framework file, drag it into your project and initialize with one line of code: [CintricFind initWithApiKey:@"YOUR_API_KEY_HERE" andSecret:@"YOUR_SECRET_HERE"];

    You can get an API key for free. There are docs explaining everything here.

提交回复
热议问题