iOS Clock access - with objcutil
This is not important, but wondered if anyone has been able to access the iOS clock app API with objc Magic. I would love to be able to start the timer from a script. I use it all the time. I know I could use the notifications module for a simlar effect. But I really like the timer app. I never miss it. I only use it when I can not miss something. But I use 4 or 5 times a day. I really hate the tumbler interface for picking dates and times on iOS. I feel it's so flawed, just trying to be pretty. But klunky. Ok, it works. But I don't like it 😱😱
lukaskollmer last edited by
I don't think this is possible. To my knowledge, there is no API for accessing system alarms or timers.
@lukaskollmer , ok thanks. Was worth asking.
ccc last edited by ccc
These try to open the Clock app but then fail. :-(
This one might help: http://stackoverflow.com/questions/6696346/iphone-uilocalnotification-as-alarm
omz last edited by
Unfortunately, the built-in Clock app has some "privileges" that aren't available to third-party apps (which typically use local notifications for alarms). For example, the Clock app can override the mute switch, show a countdown timer on the lock screen, an icon in the status bar, etc. I'm pretty sure that it's not possible to set alarms in the Clock app programmatically in any way.
@omz , @ccc. Thanks guys. As I say was not important. But I use clocks a lot. I have about 6 Alarms every day. And they are very important to my routine. As I am sure you are aware , this is not like a calander alert. The apps in ios clock are great for daily routine things.
Eg. One of my alarms is to order food from FoodPanda. A big food delivery service in Asia. If I order then I set a timer for 5 mins. It takes that long to see if you order has been accepted or not. If it's accepted then I set another alarm for 40 mins. Is normally a max 60 min delivery time.
If some say they will buy me a drink next time, for fun I start the stopwatch. I tell them I do it. Just for fun. The stopwatch work faithfully over days 😱
Also with a lot of friends around the world, convenient to use the world clock also.
But hopefully one day apple will provide access the API without exposing other parts of the API that are not considered safe. I suspect iOS clock code is old but very stable code. I am sure to just change one byte in that class/app would give a lot of apple programmers some sleepless nights
"Foodpanda' app. Actually it's a very well written app. German company.
Well, I am getting food soon 😱
Phuket2 last edited by Phuket2
Sad night, Prince died
Lost my appetite
cvp last edited by
Surprise, the Launcher app is able to start the clock native app in today widget...
cvp last edited by cvp
I've defined an app clock-alarm:// in Launcher and I can start the native clock in alarm mode, but only from the today widget.
But if I try a script with webbrowser.open or
app = UIApplication.sharedApplication()
That doesn't function...
@cvp , thanks for replying. I also had a wick go with launcher. Also no luck. It's ok. Not a big deal. Just a nice to have 🙄😬