startUpdatingLocation of LocationManager through silent push notification

后端 未结 4 1038
南笙
南笙 2021-02-04 22:39

I am creating app that needs to wake up in background at particular time .

I have tried :

  1. UILocalNotification : But i Don\'t want to use UILoca

4条回答
  •  耶瑟儿~
    2021-02-04 23:32

    What you can do, in background, is receive significantLocation events and boundary events. I can imagine leveraging that capability to keep a recent locations log of sorts. When your remote notification is received, respond by sending last known location. With a bit of experimentation I am sure you could refine this to be reasonably accurate with little impact on the battery.

提交回复
热议问题