It's late and I'm hoping I'm doing something really stupid. I'm trying to keep my watch app running without user interaction for a total of 45 minutes (this is a referee timer for a niche sport).
I'm trying to make use of WKExtendedRuntimeSession, after reading through the Apple documentation, and finding some samples online. It appeared people were finding this as simple as;
var session = WKExtendedRuntimeSession()
session.start() and session.invalidate()
I am testing from buttons for now, but I get nothing from session.start() at all. The button with session.invalidate() gives me an error in the console that there isn't a session running.
Where am I going wrong?
I'm trying to make use of WKExtendedRuntimeSession, after reading through the Apple documentation, and finding some samples online. It appeared people were finding this as simple as;
var session = WKExtendedRuntimeSession()
session.start() and session.invalidate()
I am testing from buttons for now, but I get nothing from session.start() at all. The button with session.invalidate() gives me an error in the console that there isn't a session running.
Where am I going wrong?