If background applications can't launch automatically how does Cardcase launch on a location change?

前端 未结 2 925
北海茫月
北海茫月 2021-01-01 07:17

The Cardcase application lets you know if you approach a shop which you have a previous relationship with (if you\'ve set up a tab for payments there etc.).

If backg

2条回答
  •  情歌与酒
    2021-01-01 07:47

    This works for geo-fencing apps (apps that use startMonitoringForRegion).

    My guess is that when you install apps using this class, the responsible iOS framework automatically registers an launchd script for the app background service startup inside iOS.

    Of course this is all done automatically as you don't have fine control on iOS launch services unless you're jailbroken.

    You can use the startMonitoringForRegion on your app, jailbreak your device and check on launchd to check how this works under the hood.

提交回复
热议问题