capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

feat: Alarm plugin

Open Ratatinator97 opened this issue 6 months ago • 1 comments

Name

Alarm

Platform(s)

  • [x] Android
  • [x] iOS
  • [ ] Web

Description

Be able to manage Android or iOS alarms from the Capacitor application.

Features:

  • Schedule an alarm (custom sound, custom datetime, rrule, label, vibrate)
  • Cancel an alarm
  • Check scheduled alarms

On Android, we can use the Alarm Manager API.

On iOS, it's more complex because there is no such API. We have to play a background sound (such as Spotify or others) when the alarm is triggered.

There is a Flutter package for that: https://github.com/gdelataillade/alarm

Image

Additional context

Thanks for your awesome plugins !

Before submitting

  • [x] I have read and followed the plugin request guidelines.
  • [x] I have attached links to possibly related issues and discussions.

Ratatinator97 avatar Jun 05 '25 15:06 Ratatinator97

Hey, for those interested in the plugin, I have adapted the Flutter code to match Capacitor requirements. The repository is public: https://github.com/Pictalk-speech-made-easy/alarm-plugin.git It's still not hosted in NPM as I hope Capawesome can integrate it to their plugin list.

Ratatinator97 avatar Jun 14 '25 15:06 Ratatinator97