Accessing an iPhone from an app?

Is there a way to access and update the iPhone's own alarm settings from my app? I need to have a sliding alarm that changes with the seasons, and I want to use my own iPhone alarm to do this. Is it possible in the iOS SDK, perhaps asking the user to access an alarm, for example when your app needs access to a camera or photos, for example?

+3


source to share


1 answer


Unfortunately, I believe there is no open API for accessing the Clock app and settings. I think the reason is because Apple wants to restrict Clock's unique background behavior to its native app.

An alternative would be to use it UILocalNotifications

to trigger an alarm.



From Apple Docs ,

Local notifications are ideal for time-sensitive applications like calendar and to-do list. Apps that run in the background for a limited period allowed by iOS can also be useful notifications.

+1


source







All Articles