A geofence is a perimeter boundary created around the location of a smartphone or other device, based on GPS or RFID signals. Geofencing has mainly been used to allow advertisers to send targeted messages to users who enter their area.