Background user location when app is terminated/suspended

后端 未结 6 2124
感情败类
感情败类 2020-12-08 20:14

I\'ve been trying to figure out how to get the user\'s location when the app is terminated like how the app Moves does it. The only way I know of doing so is with Significan

6条回答
  •  攒了一身酷
    2020-12-08 20:23

    From the docs

    Tracking the User’s Location

    There are several ways to track the user’s location in the background, most of which do not actually require your app to run continuously in the background:

    The significant-change location service (Recommended)
    
    Foreground-only location services
    
    Background location services
    

    Background Execution

    And for the details - Getting the User’s Location

提交回复
热议问题