alarm_plus 0.1.3
alarm_plus: ^0.1.3 copied to clipboard
Cross-platform alarm plugin with reliability-first Android exact alarms and iOS notification-based best-effort alarms.
0.1.3 #
- Added Vibration and Volume customization:
- New
VibrationSettingsmodel with presets:strong,medium,light,heartbeat, and support for custom vibration patterns. - New
VolumeSettingsmodel with support for:- Direct volume level (0.0 to 1.0).
- Linear volume fading over a specific duration.
- Custom volume fade steps using
VolumeFadeStep. volumeEnforcedto prevent users from lowering volume during an alarm.
- Android: Implemented volume control, fading, and vibration using
MediaPlayerandVibrator. - iOS: Implemented volume control, fading, and vibration using
AVAudioPlayerandAudioServices.
- New
- Updated example app with UI controls for vibration and volume settings.
- Updated README with vibration and volume usage examples.
0.1.2 #
- refactoring the pubspec to properly bind the home page and issue tracker.
0.1.1 #
- Added URL-based image support for notifications:
AlarmNotificationSettings.largeIconUrlandbigPictureUrlfields- 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
- Updated README with URL usage examples and platform notes
0.1.0 #
- Introduced production-oriented
alarm_plusAPI:initializetriggerNow,schedule,cancel,stop,snooze,getAlldeleteevents,getLaunchAlarm,getPermissionStatus,requestPermissions
- Added flutter_local_notifications-style notification response callbacks:
- foreground callback via
onDidReceiveNotificationResponse - background callback isolate via
onDidReceiveBackgroundNotificationResponsewith@pragma('vm:entry-point')
- foreground callback via
- Added notification-response data model (
NotificationResponse,NotificationResponseType) and pending response delivery on app launch. - Added
AlarmModel,AlarmEvent, andAlarmPermissionStatusmodel 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:
UNUserNotificationCenterscheduling- stop/snooze notification actions
- persisted local alarm state + event emission
- Added example app covering schedule/trigger/snooze/stop/cancel/list/events/permissions.
- Added pub.dev-ready README with platform behavior and troubleshooting details.
