Background user location when app is terminated/suspended

后端 未结 6 2143
感情败类
感情败类 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:32

    From my current experience, you have 3 options to make this work. The first one is to have a silent notification which requires an effort done by the backend. The silent notification is some sort of a push notification but it notifies your app without an alert. The second solution is background fetches. Background fetches don't require a backend solution but sadly you can't control the intervals needed to instantiate it. The third one is having a scheduled local notifications with no messages.

提交回复
热议问题