<div dir="ltr">Sounds ideal.  Atm its working ok with just clicking a notification, but this sounds like a good future rework.<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 1 Mar 2018 at 00:59 Chris Adams <<a href="mailto:chris.adams@jolla.com">chris.adams@jolla.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi,<br>
<br>
It's not in devel yet, and the API will likely change a bit between now and when we consider it stable/supported API, but see
<a href="https://github.com/sailfishos/sailfish-secrets/pull/22" target="_blank">
https://github.com/sailfishos/sailfish-secrets/pull/22</a> for WIP generic interaction request, mediated by the system.  The primary use-case is passphrase input, but the intention is to allow different input types (e.g. confirmation vs PIN vs passphrase vs
 ...) eventually.<br>
<br>
Best regards,<br>
Chris.<br>
<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr" id="m_-3884763804502094712divRpF980180"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Devel [<a href="mailto:devel-bounces@lists.sailfishos.org" target="_blank">devel-bounces@lists.sailfishos.org</a>] on behalf of Adam Pigg [<a href="mailto:adam@piggz.co.uk" target="_blank">adam@piggz.co.uk</a>]<br>
<b>Sent:</b> Friday, February 23, 2018 8:15 PM<br>
<b>To:</b> Sailfish OS Developers<br>
<b>Subject:</b> [SailfishDevel] Prompt from daemon<br>
</font><br>
</div></div></div></div><div><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div style="font-family:Times New Roman;color:#000000;font-size:16px">
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi<br>
<br>
</div>
Im looking for options to get a yes/no prompt from a daemon process, something like the BT pair popup ideally.<br>
<br>
</div>
So far, the only option i can think of is to use nemo notifications.  After much trying, I finally managed to get a preview popup, and guess I should be able to change that to a timeout popup.  The only problem is that there can only be a single reply, so i'll
 have to have a click as a yes, and otherwise assume no.  It would be good if lipstick could support the desktop notification standard more fully with additional replies, as this is hinted at in the example docs (2 reply actions) but with a note underneath
 that lipstick only supports the 'default' reply.<br>
<br>
</div>
Another way, which im not sure is possible is to somehow invoke the system BT popup, is that possible?<br>
<br>
</div>
Then, there is how calendar notifications work, they have swipe up/down, how are they invoked?<br>
<br>
</div>
Finally, I could have a helper app invoked by the popup, but I think i'd rather go with a timeout in that case.<br>
<br>
</div>
Any other options?<br>
<br>
</div>
Adam<br>
</div>
</div>
</div></div></div>

_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>