Implementing Geofencing

Geofencing refers to constructing a virtual perimeter (fence) around a geographic region. Software in many different types of devices perform geofencing in order to alert someone when the device enters or leaves a perimeter. Such alerts can be used to prevent theft, protect children, notify a spouse when you leave work, tempt you with a discount for a nearby store, produce location-based reminders (“The next time I’m at my brother’s house, remind me to get my skis that he borrowed.”), and so on.

A constantly-running app could manually perform geofencing with the location APIs already discussed, but Windows includes system support for this. Windows not only manages geofences on behalf of all apps (which is more efficient), ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.