On-device geofencing for Flutter and React Native. No tracking vendors, no external calls.
$ flutter pub add polyfenceDraw a zone, sync to a device, get events in real-time.
Define circles and polygons on the map editor or via API
SDKs download zone data automatically
Everything runs locally. No external calls
Real-time analytics on detection speed, battery, accuracy
Everything runs on-device. Zero external calls. Easy to explain and defend in privacy reviews.
Circles and polygons. No native API limits. Model complex geofences without server-side hacks.
Built for real apps: robust error handling, debug hooks, and clear lifecycle events.
Smart GPS profiles and proximity-based updates so you stay efficient without missing events.
Flutter, React Native, REST API, or CLI. Pick your integration.
# pubspec.yaml
dependencies:
polyfence: ^0.13.0
// main.dart
import 'package:polyfence/polyfence.dart';
await Polyfence.instance.initialize();
final zone = Zone.circle(
id: 'office',
name: 'London Office',
center: PolyfenceLocation(51.5074, -0.1278),
radius: 200,
);
await Polyfence.instance.addZone(zone);
await Polyfence.instance.startTracking();Fleet tracking, livestock monitoring, security perimeters, compliance zones, and more. See use cases →