<div dir="ltr"><div><div><div><div>Hi<br><br></div>In case someone come here, searching for same issue:<br><br></div>Notification with blinking LED example....<br></div><br>using QML Bindings and example from doc, just exchange the category from 'x-nemo.example'  to '<a href="http://x-nemo.messaging.im">x-nemo.messaging.im</a>'<br><pre>Button {
    Notification {
        id: notification
        category: "<a href="http://x-nemo.messaging.im">x-nemo.messaging.im</a>"
        summary: "Notification summary"
        body: "Notification body"
        onClicked: console.log("Clicked")
    }
    text: "Application notification" + (notification.replacesId ? " ID:" + notification.replacesId : "")
    onClicked: notification.publish()
}</pre><br></div>Example, using golang:<br>func notifiyUser(title string, body string) error {<br>        conn, err := dbus.SessionBus()<br>        if err != nil {<br>                return err<br>        }<br><br>        var m map[string]dbus.Variant<br>        m = make(map[string]dbus.Variant)<br>        m["category"] = dbus.MakeVariant("<a href="http://x-nemo.messaging.im">x-nemo.messaging.im</a>")<br><br>        obj := conn.Object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")<br>        call := obj.Call("org.freedesktop.Notifications.Notify", 0, "", uint32(0),<br>                "", title, body, []string{},<br>                m,<br>                int32(0))<br>        if call.Err != nil {<br>                return err<br>        }<br>        return nil<br>}<br><br><div><br></div><div>Of course, in real app, one should use own category files as pointed out by Andrey.<br><br></div><div>Bye<br></div><div>Georg<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-31 20:28 GMT+02:00 Andrey Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div>no problems if you write own dbus wrapper for notification calls, it's very documented. same for profiled dbus for changing led colors.</div>
<div> </div>
<div>------ Исходное сообщение ------</div>
<div>От: "george b" <<a href="mailto:scooterschorschi@gmail.com" target="_blank">scooterschorschi@gmail.com</a>></div>
<div>Кому: "Sailfish OS Developers" <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>></div>
<div>Отправлено: 01.04.2016 0:27:06</div>
<div>Тема: Re: [SailfishDevel] LED Notification</div><div><div class="h5">
<div> </div>
<div>
<blockquote cite="http://CAL30P+b03qkmLUCK-eqR9meY7_GjOkE8dK-7V6v9+cuOkFAp9Q@mail.gmail.com" type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hello<br><br></div>Thanks for all the replays. <br></div>The textsecure backend is written in Go. It's possible to use the c++ library within go, but I think the more 'natural' way would be the d-bus communication. I will investigate more about the d-bus communication and have a look at other clients to see how I must implement this notification.<br><br></div>Bye<br></div>Georg<br></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-03-31 8:42 GMT+02:00 Кожевников Андрей Андреевич <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex">
<div text="#000000" bgcolor="#FFFFFF">For extra pro led configuration for notification events you can check this repo: <a href="https://github.com/CODeRUS/sailfish-led-config" target="_blank">https://github.com/CODeRUS/sailfish-led-config</a><br>using these configs you can change led color for your notifications in realtime<br><br>
<div>31.03.2016 01:08, george b пишет:<br></div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi<br><br></div>I am working on a port of the textsecure App from the Ubuntu Phone.<br></div>Basic Text messaging is working between my jolla and an android phones Signal App.<br><br></div>Now I want to implement notifications on new incoming messages. I can't figure out how to do this. I read something about the use of D-Bus for this. There is also a qml binding [1]. The example only leads to a simple text on the messages screen. No real Notification is triggered.<br><br></div>Can someone point me in the right direction on this issue?<br><br></div>Bye<br></div>Georg<br>
<div>
<div>
<div><br><br><br>[1] <a href="https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/qml-org-nemomobile-notifications-notification.html/" target="_blank">https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/qml-org-nemomobile-notifications-notification.html/</a><br></div></div></div></div><br>
<fieldset></fieldset> <br></div></div><pre>_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></pre></blockquote><br></div><br>_______________________________________________<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><br></blockquote></div><br></div></blockquote></div></div></div></div><br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>