Skip to content

Platform Integration

Christian Beier edited this page Dec 20, 2025 · 2 revisions

Warning

This page is under review and may contain incorrect information.

Xolmis Mobile integrates with native platform features to enhance usability and performance.

Notifications

Uses flutter_local_notifications to schedule and display reminders.

Setup

  • Android: Configure AndroidManifest.xml with notification channels.
  • iOS: Request permissions via UNUserNotificationCenter.

Example

final details = NotificationDetails(
  android: AndroidNotificationDetails('channel_id', 'Reminders'),
);
await flutterLocalNotificationsPlugin.show(
  0,
  'Nest Check Reminder',
  'Don’t forget to check nest #001',
  details,
);

Geolocation

Uses geolocator to capture GPS coordinates for nests and observations.

Permissions

  • Android: ACCESS_FINE_LOCATION
  • iOS: Add NSLocationWhenInUseUsageDescription to Info.plist

Example

Position position = await Geolocator.getCurrentPosition();

File Access

Uses path_provider to store exports and logs in the app’s documents directory.

Permissions

Handled via permission_handler:

Permission.location.request();
Permission.storage.request();

Ensure runtime permissions are granted before accessing native features.

Clone this wiki locally