Overview

A Location Trigger Notification is a local notification that fires when the user enters or exits a specific geographic region.

It uses UNLocationNotificationTrigger from the UserNotifications framework together with CoreLocation to monitor geographic boundaries (geofencing).

This type of notification is commonly used for:

Example use case:

User enters a grocery store → Notification appears saying "Don't forget to buy milk."


Notification Flow

Location-based notifications follow the same scheduling pipeline, but the trigger is tied to geographic events instead of time.

Notification Content
        +
Location Region (Geofence)
        ↓
Location Trigger
        ↓
Notification Request
        ↓
UNUserNotificationCenter
        ↓
Notification delivered

When the device enters or exits the monitored region, iOS automatically delivers the notification.


Key APIs

UNUserNotificationCenter

The system object responsible for managing notifications.

Responsibilities include: