1

I am creating a static library in which I need to implement Geofencing. I have successfully implemented this but the problem is that I want to make region monitoring when the app is suspended/ terminated. My Source Code can be seen here. someone suggest me to achieve this goal using significant-change location service and UIApplicationLaunchOptionsLocationKey but I am unable to do it. Can anybody help me to do it please suggest me any sample code to do it.

Thank you !!

Community
  • 1
  • 1
Mohammad Ashraf Ali
  • 417
  • 1
  • 8
  • 22

2 Answers2

1

Check the Apple Documentation that states,

The region monitoring service delivers events normally while an app is running in the foreground or background. (You can use this service for both geographic and beacon regions.) For a terminated iOS app, this service relaunches the app to deliver events. Use of this service requires “Always” authorization from the user.

You can refer Raywenderlich's great tutorial to know that how to implement it properly.

Ketan Parmar
  • 27,092
  • 9
  • 50
  • 75
-1

Please refer below link for geofencing:- https://www.raywenderlich.com/95014/geofencing-ios-swift

user3279053
  • 187
  • 1
  • 10