initializePersistenceServices function

Future<void> initializePersistenceServices()

Initializes persistence-related services

Implementation

Future<void> initializePersistenceServices() async {
  // Initialize shared preferences
  prefs = await SharedPreferences.getInstance();

  // Set up background location capabilities based on platform
  if (Platform.isAndroid) {
    // Android-specific background location setup
    await Geolocator.requestPermission();
    // Request background location permissions if needed
  } else if (Platform.isIOS) {
    // iOS-specific background location setup
    await Geolocator.requestPermission();
    // Configure always/when-in-use permissions
  }
}