Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop with alarm with WorkManager on iOS #219

Open
muhammedelsepa3y opened this issue Jul 1, 2024 · 3 comments
Open

Stop with alarm with WorkManager on iOS #219

muhammedelsepa3y opened this issue Jul 1, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request iOS For iOS only

Comments

@muhammedelsepa3y
Copy link

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 muhammedelsepa3y added the bug Something isn't working label Jul 1, 2024
@gdelataillade gdelataillade changed the title I can't stop the alarm!!!! Stop with alarm with WorkManager on iOS Jul 1, 2024
@gdelataillade gdelataillade added enhancement New feature or request iOS For iOS only and removed bug Something isn't working labels Jul 1, 2024
@gdelataillade
Copy link
Owner

Hi @muhammedelsepa3y

When iOS app is terminated the alarm won't ring. Only the notification will show.

@muhammedelsepa3y
Copy link
Author

Hi @muhammedelsepa3y

When iOS app is terminated the alarm won't ring. Only the notification will show.

Ok thanks, and what about foreground and background states

@gdelataillade
Copy link
Owner

Ok thanks, and what about foreground and background states

I don't know about foreground and background states, I'll have to do some research but to be honest it's not the priority at the moment. I'm working alone on the plugin and it's a lot of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request iOS For iOS only
Projects
None yet
Development

No branches or pull requests

2 participants