geofence

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Query location provider availability for geofencing use cases. Note: RequestGeofence requires a PendingIntent which cannot be fully serialized from a non-app context. This example demonstrates the prerequisite checks: listing providers and verifying GPS availability.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/geofence ./examples/geofence/
adb push build/geofence /data/local/tmp/ && adb shell /data/local/tmp/geofence

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL