spike_flutter_sdk 4.3.84 copy "spike_flutter_sdk: ^4.3.84" to clipboard
spike_flutter_sdk: ^4.3.84 copied to clipboard

Spike Health data reader for Android and iOS platforms.

Spike SDK #

The Spike SDK is a cross-platform library built on top of Apple HealthKit (iOS) and Android Health Connect (Android). It streamlines the extraction, standardization, and transmission of health data, enabling seamless integration with the SpikeAPI.

Key Features #

  • Health Data Extraction
    Effortlessly access health and fitness data from Apple HealthKit and Android Health Connect.

  • Standardized Data Delivery
    Collected data is automatically formatted and sent to the SpikeAPI in a consistent, standardized structure.

  • Background Data Sync
    Supports background data delivery on both iOS and Android platforms, ensuring data synchronization with minimal user interaction.

  • Third-Party Provider Integration
    Enables direct data collection from external providers such as Garmin, Whoop, and others, directly through the SDK.

  • Samsung Health Data Integration
    Access health data from Samsung Health on Android devices with comprehensive permission management.

Platform Support #

  • iOS: Apple HealthKit
  • Android: Android Health Connect, Samsung Health Data
  • Third-Party: Garmin, Whoop, and other supported providers

Samsung Health Data Integration #

The SDK now supports Samsung Health Data integration on Android devices. This allows you to access health data from Samsung Health with the same ease as Health Connect.

Use Cases #

Spike SDK is ideal for developers building health and wellness apps that require:

  • Unified access to health data across platforms
  • Reliable background data synchronization
  • Easy integration with wearable device data
  • Standardized data pipelines for backend processing
  • Samsung Health data access on Android devices

Logging #

The SDK provides comprehensive logging capabilities to help with debugging and monitoring. To enable logging, call SpikeSDKV3.setLogCallback() with your own callback function before creating any connections:

import 'package:spike_flutter_sdk/spike_flutter_sdk.dart';

void main() async {
  // Set up logging callback to print all logs to Flutter console
  await SpikeSDKV3.setLogCallback(
    callback: (level, message) {
      print("SpikeSDKV3: ${level.toJson()} - $message");
    },
  );
  
  runApp(const MyApp());
}

This allows you to handle SDK logs however you prefer - print them to console, send them to a logging service, or process them in any other way. The callback receives the log level as a LogLevel enum (verbose, debug, warning, error) and the message.

Learn More #

To get started or explore the API in detail, visit the official documentation.

6
likes
110
points
1.2k
downloads

Publisher

verified publisherspikeapi.com

Weekly Downloads

Spike Health data reader for Android and iOS platforms.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, get_it, shared_preferences, update

More

Packages that depend on spike_flutter_sdk

Packages that implement spike_flutter_sdk