What is Geofencing? How Does it Work?

From sending a tailored promotion when a customer enters a retail store to powering order-ahead food delivery, geofencing plays a key role in making mobile apps contextually aware.