O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with geofencing

Geofencing is the concept of being notified when a user enters or exits a specific region. This region can be, for example, a shopping mall to remind the user to buy some stuff or to perform any specific action. Many apps can be built on the concept of geofencing to remind or notify users when they enter or exit specific regions. In the following demo, we will build a sample screen that allows the user to register a new geofencing to the map. The user will be able to select a location on the map, a diameter of the region, when to be notified (upon entry or upon exit), and some notes to be displayed on the notification that will be fired when the user passes this region.

How to do it...

To add geofencing, perform the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required