BookPlayer icon indicating copy to clipboard operation
BookPlayer copied to clipboard

Using sleep timer with siri

Open a-rock-lobster opened this issue 4 years ago • 5 comments

Hello,

I'm sorry to bring this issue up again but I couldn't garner a clear answer from the closed issues.

What is the status of using siri with the sleep timer function without having to unlock the device.

I can't figure out whether it isn't possible yet, or I'm doing something wrong.

Best wishes,

a-rock-lobster avatar Feb 09 '21 08:02 a-rock-lobster

Hi, same question and no answer here, is it possible with siri to start the sleep timer function without having to unlock the device ? Or is it possible to use Apple Watch to start a sleep timer ?

a13xde avatar Jun 25 '22 18:06 a13xde

The short answer is it's not possible with current implementation, I may get a bit technical now, there's a limitation for custom intents (which is what Siri uses under the hood), mainly that we don't get the same options as when running a subclassed system intent (like the play the last book, which can run without unlocking the app). This is from when I last looked into the issue and the problem was that the option handleInApp (from system intents) was not available for custom intents only continueInApp which triggered opening the app

In this year's WWDC with iOS 16, Apple introduced new 'App Intents' which basically reworks how Siri shortcuts are implemented. I haven't looked into the new APIs though, so I'm not sure if this barrier still exists.

More info from the community is welcome, as I may have missed something when looking into this

GianniCarlo avatar Jun 25 '22 18:06 GianniCarlo

Regarding Apple watch starting a timer, the current implementation of the watch app could be enhanced to send the message to the main app, and all the parsing logic is already there (see how widgets send this parameter when activated), so it should be pretty straightforward other than having the UI made on the watch app, and it would be a welcomed change

GianniCarlo avatar Jun 25 '22 18:06 GianniCarlo

Thank you for the detailed explanation ! I really hope iOS 16 gives us the possibility to do it also with Siri.

Until then, it would be very nice if the Sleep Timer feature could be integrated into the Apple Watch app. I think I'll better open a new issue for that ?

a13xde avatar Jun 25 '22 18:06 a13xde

no worries 😁, yeah I think it would be better to track that request in a separate issue 👍

GianniCarlo avatar Jun 25 '22 18:06 GianniCarlo