ios - Access iPhone alarm from app? -
is there way access , update native alarm settings in iphone app? need have sliding alarm changes based on time of year , want use native iphone alarm that. possible in ios sdk, maybe asking user access alarm when app needs access camera or photos example?
unfortunately, believe there no public api accessing clock app , settings. think reason apple wants restrict clock's unique background behavior native app.
an alternative use uilocalnotifications set off alarm.
from apple docs,
local notifications ideally suited apps time-based behaviors, such calendar , to-do list apps. apps run in background limited period allowed ios might find local notifications useful.
Comments
Post a Comment