Search code examples
iosswiftalarm

How to set Alarm in ios?


I want to set alarm like default CLOCK application. I tried with EKAlarm but it only works like Local Notification.

My target is too wake up a person if he sleeps. Can we achieve this in iOS?


Solution

  • You can't set alarm like default clock application. All you can do is use LocalNotification and add sound to it (30 seconds max). And sound won't play if the phone in silent mode.