Skip to content

Releases: pratikPSB/alarm_plus

v0.1.3

Choose a tag to compare

@pratikPSB pratikPSB released this 20 May 14:39
d2d62d7
  • Added Vibration and Volume customization:
    • New VibrationSettings model with presets: strong, medium, light, heartbeat, and support for custom vibration patterns.
    • New VolumeSettings model with support for:
      • Direct volume level (0.0 to 1.0).
      • Linear volume fading over a specific duration.
      • Custom volume fade steps using VolumeFadeStep.
      • volumeEnforced to prevent users from lowering volume during an alarm.
    • Android: Implemented volume control, fading, and vibration using MediaPlayer and Vibrator.
    • iOS: Implemented volume control, fading, and vibration using AVAudioPlayer and AudioServices.
  • Updated example app with UI controls for vibration and volume settings.
  • Updated README with vibration and volume usage examples.

v0.1.2

Choose a tag to compare

@pratikPSB pratikPSB released this 19 May 17:20
c7d2300

What's Changed

  • Update topics in pubspec.yaml for consistency and formatting by @pratikPSB in #3
  • Update the pubspec and change log by @pratikPSB in #4

Full Changelog: 0.1.1...0.1.2

v0.1.1

Choose a tag to compare

@pratikPSB pratikPSB released this 19 May 14:06
  • Introduced production-oriented alarm_plus API:

    • initialize
    • triggerNow, schedule, cancel, stop, snooze, getAll
    • delete
    • events, getLaunchAlarm, getPermissionStatus, requestPermissions
  • Added flutter_local_notifications-style notification response callbacks:

    • foreground callback via onDidReceiveNotificationResponse
    • background callback isolate via
      onDidReceiveBackgroundNotificationResponse with @pragma('vm:entry-point')
  • Added notification-response data model (NotificationResponse,
    NotificationResponseType) and pending response delivery on app launch.

  • Added AlarmModel, AlarmEvent, and AlarmPermissionStatus model layer.

  • Implemented Android reliability path:

    • AlarmManager.setExactAndAllowWhileIdle
    • trigger receiver + action receiver + boot receiver
    • foreground ringing service with wake lock + looping audio
    • full-screen notification intent path
    • Room persistence and reboot/package/time-change rescheduling
  • Implemented iOS best-effort notification path:

    • UNUserNotificationCenter scheduling
    • stop/snooze notification actions
    • persisted local alarm state + event emission
  • Added example app covering schedule/trigger/snooze/stop/cancel/list/events/permissions.

  • Added URL-based image support for notifications:

    • AlarmNotificationSettings.largeIconUrl and bigPictureUrl fields
    • Android: Coil library for efficient image loading from URLs
    • iOS: Synchronous download and caching for notification attachments
    • Fallback to asset-based images if URL loading fails
  • Updated example app with "Schedule with URL" button demonstrating URL images