startUpdatingLocation of LocationManager through silent push notification

后端 未结 4 998
南笙
南笙 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:23

    You cannot. It is explicitly not permitted to start location services while the application is in the background. The user has to be aware of the start with the app open.

    Imagine what subversive tracking would be available if you could send silent notifications to trigger a location update back to a server without the user knowing about it...

提交回复
热议问题