How to track user location in background?

前端 未结 8 956
梦如初夏
梦如初夏 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:19

    You need to add in your "Info.plist" file the key UIBackgroundModes (array) with the value "location" (app registers for location updates). You can check all background modes here.

提交回复
热议问题