alarm icon indicating copy to clipboard operation
alarm copied to clipboard

Stop with alarm with WorkManager on iOS

Open muhammedelsepa3y opened this issue 7 months ago • 3 comments

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:

  1. Set an alarm using the alarm plugin.
  2. Wait for the alarm to start.
  3. 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.

muhammedelsepa3y avatar Jul 01 '24 14:07 muhammedelsepa3y