سؤال

The Google app now has a feature called Google now. When Google now is active the app keeps locating the user even if the app is removed from background. How it does that? That isn't something forbidden by Apple?

هل كانت مفيدة؟

المحلول

Both Monitor Shape-Based Region as well as Significant-Change Location Service continue to operate even when your app is not running.

It's only the Standard Location Services that require permission to run in the background.

نصائح أخرى

On iOS, you can not track someone's locations constantly while the app is in the background. However, you can create a geofence, which is like the functionality used in location-based reminders on the Reminders app. Try a geofencing tutorial for the code.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top