Skip to content
Back to blog

How Geofencing Works for Wallet Passes: CoreLocation, iBeacons, and Lockscreen Rules

Deep technical breakdown of how iOS and Android monitor geographic coordinates at the kernel level to surface wallet passes with zero battery drain.

Passinstance Team
Passinstance Team

Wallet pass platform team

2026-08-162 min read
Cover image for How Geofencing Works for Wallet Passes: CoreLocation, iBeacons, and Lockscreen Rules

Location-based marketing in native mobile applications has historically suffered from severe adoption hurdles: apps continuously query the device GPS in background threads, which drains battery life, triggers OS permission warnings, and causes over 82% of consumers to disable location access or uninstall the app entirely.

Mobile wallet passes in Apple Wallet and Google Wallet utilize an entirely different paradigm: Operating System Kernel Geofencing.

Instead of a third-party app running continuously in the background, the smartphone operating system itself manages low-power boundary detection using cellular towers and Wi-Fi beacons. When a customer walks within a defined radius of your storefront, the pass surfaces automatically on their lockscreen with zero battery penalty and total privacy.


1. Hardware Geofence Monitoring Architecture

text passinstance
┌────────────────────────────────────────────────────────────────────────┐
│                   OS KERNEL GEOFENCING ARCHITECTURE                    │
├────────────────────────────────────────────────────────────────────────┤
│                                                                        │
│  [Cellular Tower ID & Known Wi-Fi SSIDs]                               │
│       │                                                                │
│       ▼                                                                │
│  OS Low-Power Location Daemon (CoreLocation / Google Play Services)    │
│       │                                                                │
│       ├─► Distance > 500m: GPS chip remains COMPLETELY POWERED OFF.    │
│       ├─► Distance < 150m: Boundary crossed -> Pass awakened.          │
│       ▼                                                                │
│  [Native Lockscreen Notification Layer]                                │
│  "Passinstance Rewards: Your 20% voucher is ready at this branch"      │
│       │                                                                │
│       ▼                                                                │
│  [1-Tap Swipe / Double-Click]                                          │
│  Pass opens with high-contrast 2D barcode ready for checkout scan      │
│                                                                        │
└────────────────────────────────────────────────────────────────────────┘
  1. •Passive Ambient Monitoring: The mobile OS tracks coarse location through ambient cellular tower transitions and Wi-Fi access point identifiers without powering on the high-drain GPS receiver.
  2. •Boundary Crossing Evaluation: When the user enters the circular perimeter (typically 100m to 250m) defined in the pass template, the OS evaluates the pass relevance rules.
  3. •Lockscreen Display: The OS surfaces a native, high-visibility notification banner displaying the store-specific relevant message.
  4. •Instant 1-Tap Access: Swiping or tapping the notification opens the digital pass directly, rendering the barcode with maximum display brightness.

2. Technical Invariants: Apple Wallet vs. Google Wallet

  • Apple Wallet (.pkpass): Stores up to 10 distinct physical locations in the locations array. Supports high-precision indoor iBeacons (UUID, Major, Minor).
  • Google Wallet (Pay API): Manages coordinates within the Pass Class or Pass Object, triggering notification tray alerts when within defined radii.
  • Zero Battery Consumption: Neither platform activates continuous background GPS polling, preserving device battery life.

Related in this topic

Loyalty, stamp cards, notifications, and offers

Open topic hub

Ready to launch your wallet pass program?

Create your account, design your pass template, and test real passes directly in Apple Wallet and Google Wallet.