heartbeat_sdk 1.0.0 copy "heartbeat_sdk: ^1.0.0" to clipboard
heartbeat_sdk: ^1.0.0 copied to clipboard

A standalone smartwatch SDK for managing activity sessions and transmitting real-time availability signals (Heartbeats) to the cloud. Designed for life-safety monitoring on Wear OS and watchOS.

HeartbeatSDK #

Standalone smartwatch monitoring infrastructure for life-safety applications.

HeartbeatSDK is a software infrastructure designed for smartwatches that operates independently — no paired smartphone required. It manages activity sessions, transmits real-time availability signals (Heartbeats) to the cloud, and powers a monitoring portal for operators and lifeguards.


SDK Public API #

import 'package:heartbeat_sdk/heartbeat_sdk.dart';

// Initialize the SDK
final sdk = HeartbeatSDK();
await sdk.configure(serverUrl: 'https://heartbeat-api.onrender.com', deviceId: 'watch_001');

// Open a session
await sdk.openSession(
  userId: 'user_42',
  userAge: 25,
  activityType: 'swimming',
);

// Start heartbeat transmission (every 10 seconds)
sdk.start(interval: Duration(seconds: 10));

// Close session when done
await sdk.closeSession();

Key Features #

  • Session Management — Open/close activity sessions with user validation (18+)
  • Autonomous Heartbeat Transmission — Background timer sends availability signals
  • Offline-First — Local caching when disconnected, auto-sync on reconnect
  • Crash Analytics — Captures errors before shutdown, transmits on next boot
  • Haptic Control — Disables vibration during sessions to prevent distractions

Use Cases #

  • 🏊 Marine Rescue — Monitoring swimmers and surfers (SaveMe)
  • 👴 Elderly Care — Continuous monitoring for distress detection
  • 🏔️ Extreme Sports — Tracking lone workers and athletes
0
likes
140
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A standalone smartwatch SDK for managing activity sessions and transmitting real-time availability signals (Heartbeats) to the cloud. Designed for life-safety monitoring on Wear OS and watchOS.

Homepage

License

MIT (license)

Dependencies

battery_plus, connectivity_plus, flutter, geolocator, http, shared_preferences, uuid, vibration

More

Packages that depend on heartbeat_sdk