@hettiger/capacitor-plugin-android-alarm-manager
Expose Android AlarmManager features to your Capacitor powered apps
Disclaimer
This plugin is built for a very specific use case.
The alarm Intent
probably does not make sense to you
and right now there's no way to customize it …
If you need more flexibility feel free to fork / send me a PR.
What about iOS / Web?
All methods either log or do nothing on iOS / Web, so it is safe to call them without having guards in place.
Install
npm install @hettiger/capacitor-plugin-android-alarm-manager
npx cap sync
API
setAlarmClock(...)
setAlarmClock(options: { triggerTime: string; }) => Promise<void>
Param | Type |
---|
options | { triggerTime: string; } |
cancel(...)
cancel(options: { triggerTime: string; }) => Promise<void>
Param | Type |
---|
options | { triggerTime: string; } |