geo_engine_sdk 1.1.11 copy "geo_engine_sdk: ^1.1.11" to clipboard
geo_engine_sdk: ^1.1.11 copied to clipboard

SDK oficial para Geo-Engine. Rastreo de ubicación y gestión de geocercas.

🛡️ Geo-Engine Flutter SDK #

pub package Build Status License

Read this in Spanish: README.es.md

Secure, Offline-First, and Battery-Efficient location tracking for mission-critical Flutter apps.

Geo-Engine is not just a location tracker; it is a telemetry assurance layer. It guarantees that the coordinates you receive come from a real physical device, rejecting Mock Locations, Emulators, and Bot Farms using cryptographic evidence.

Designed for Logistics, Fintech, and Workforce Management.


🔥 Why Geo-Engine? #

Feature Description
🛡️ Anti-Spoofing Native integration with Google Play Integrity (Android) and Apple DeviceCheck (iOS) to verify device authenticity.
✈️ Offline-First Military-grade resilience. Data is persisted locally (Hive) when offline and auto-synced when the network returns.
🔋 Battery Smart Uses intelligent batching to minimize radio wake-ups, saving up to 40% battery compared to raw streaming.
🚀 Drop-in Ready Get enterprise-grade tracking with just 5 lines of code.

🚀 Installation #

Add the official package from pub.dev:

flutter pub add geo_engine_sdk


⚡ Quick Start #

1️⃣ Initialization #

Initialize the storage engine in your main() function.

import 'package:geo_engine_sdk/geo_engine_sdk.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  
  // 🚀 Initialize the offline-first engine
  await GeoEngine.initialize();

  runApp(const MyApp());
}

2️⃣ Configuration (With Security) #

To enable the Anti-Fraud shield, provide your Google Cloud Project Number.

final geo = GeoEngine(
  apiKey: 'sk_live_...',
  // 🛡️ SECURITY ENABLED:
  // This enables Play Integrity (Android) & DeviceCheck (iOS)
  androidCloudProjectNumber: '1234567890', 
  debug: true, 
);

🔒 Security Configuration (Anti-Fraud) #

To enable the Device Integrity Shield (which blocks emulators, rooted devices, and GPS spoofing), you must configure the androidCloudProjectNumber.

Which Project Number should I use? #

It depends on your backend:

Scenario Project Number to Use
A. Using Geo Engine Cloud (SaaS) Use our official ID: 939798381003
B. Self-Hosted Backend Use your own Google Cloud Project Number.

Implementation #

Pass the number in the constructor. This tells Google to encrypt the integrity token specifically for the backend verifyier.

final geo = GeoEngine(
  apiKey: "YOUR_API_KEY",
  
  // 🛡️ SECURITY CONFIGURATION
  // This enables Play Integrity (Android) & DeviceCheck (iOS)
  // ---------------------------------------------------------
  // Option A: Using Geo Engine official Cloud
  androidCloudProjectNumber: "939798381003", 
  
  // Option B: Self-Hosted (Use your own Project ID)
  // androidCloudProjectNumber: "YOUR_OWN_PROJECT_NUMBER",
);

### 3️⃣ Send Verified Location

The SDK handles connectivity, buffering, and security headers automatically.

```dart
await geo.sendLocation(
  deviceId: 'driver-042',
  latitude: 19.4326,
  longitude: -99.1332,
);

// ✅ Result:
// - If Online: Sent immediately with Integrity Token.
// - If Offline: Encrypted & saved to disk. Auto-flushed later.


🛡️ How the Security Works #

When you send a location, Geo-Engine does more than just forward coordinates:

  1. Challenge: It contacts the device's secure hardware enclave (TEE).
  2. Attest: It requests a cryptographic proof that the device is genuine, unmodified, and not an emulator.
  3. Verify: This token is attached to the payload. Your backend (or Geo-Engine Cloud) verifies it directly with Apple/Google servers.

Outcome: You stop paying for fake trips and spoofed attendance.


🔧 Geofence Management #

Create dynamic monitoring zones programmatically:

final zone = await geo.createGeofence(
  name: "Central Warehouse",
  webhookUrl: "[https://api.logistics.com/webhooks/entry](https://api.logistics.com/webhooks/entry)",
  coordinates: [
    [19.4, -99.1],
    [19.5, -99.1],
    [19.5, -99.2], 
  ]
);


🛣 Roadmap & Support #

  • ✅ Offline Store & Forward
  • v1.0: Battery Optimization (Batching)
  • v1.1: Native Device Integrity (Anti-Fraud)
  • ❌ v1.2: Motion Activity Detection (Still/Walking/Driving)

Need help integration? Open an issue or contact the maintainers.


📄 License #

MIT License © Geo-Engine

0
likes
0
points
680
downloads

Publisher

unverified uploader

Weekly Downloads

SDK oficial para Geo-Engine. Rastreo de ubicación y gestión de geocercas.

Homepage

License

unknown (license)

Dependencies

app_device_integrity, connectivity_plus, flutter, hive, hive_flutter, http, package_info_plus, path_provider

More

Packages that depend on geo_engine_sdk

Packages that implement geo_engine_sdk