alarm
alarm copied to clipboard
Stop with alarm with WorkManager on iOS
Alarm plugin version 3.1.4
Describe the bug When the alarm starts on iOS, it cannot be stopped until the user powers off the phone or the alarm sound ends.
To Reproduce Steps to reproduce the behavior:
- Set an alarm using the alarm plugin.
- Wait for the alarm to start.
- Attempt to stop the alarm.
Expected behavior The user should be able to stop the alarm using the app or physical device buttons (e.g., volume button or flipping the phone).
Screenshots None
Device info iPhone XR, iOS 17.2
Additional context In the Android version, I solved this problem using WorkManager to create tasks that allow tracking the volume button and flipping the phone to stop the alarm with the same schedule time in the alarm package. This solution works in all cases (app terminated, in background, and in foreground). However, WorkManager is not functioning as expected on iOS. I need a solution that allows the client to stop the alarm, even if it requires a native implementation. Any help to achieve this task would be appreciated.