Hi,
I'm making an alarm clock app, in which ringing alarms can only be dismissed once the user walks 20 steps, using the Alarm Extension by Taifun.
The alarm works correctly and rings at the time the user enters, but even when they walk 20 steps the alarm continues to ring and doesn't stop. The option to press the "dismiss" button to dismiss the alarm is also there when it rings, which I do not want.
This is my code:
- What is the problem in my code and how do I make it so that the alarm will only be dismissed when the user walks 20 steps?
- How do I remove the "dismiss alarm" option that pops up when the alarm rings so that the only way to dismiss the alarm is by walking 20 steps?