Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a new alarm in Apple's Clock App from another application

Tags:

ios

alarm

clock

I have searched for references to this and have found a few teasers, but nothing comprehensive.

I'm looking for a way to set up (and, perhaps delete, although not absolutely necessary) a new alarm in the actual IOS Alarm Clock application from a new (self-created) app.

Basically, the app I'm creating would programmatically add a new alarm (setting the time, and including choosing a ring tone) to the Clock app, which would then simply behave as it normally does -- making the built-in alarm clock ring when the time arrives.

Can anyone point specifically to the APIs that would help achieve this?

I did find reference to the CFPreferences APIs, and these seemed to imply being able to set Preferences for other apps. This sounds close, but clearly I'd need some more information, specifically:

1) The bundle / application ID for the Clock application 2) The format and specifics for adding (or removing) a new alarm using that preference setting

Does anyone have any wisdom to offer?

Many thanks, Scott Hurd

like image 414
Scott Hurd Avatar asked Dec 03 '12 03:12

Scott Hurd


1 Answers

This behavior is not possible, sorry. You may set alarms with custom tones through your application and handle them through your application, these are called local notifications but it would not be possible to add an alarm to the ios alarm clock.

like image 112
Kris Gellci Avatar answered Oct 23 '22 20:10

Kris Gellci