Re: [SailfishDevel] Transient notification categories

2016-01-12 Thread Andrew Branson

Hello,

Yes I did, but that's more geared towards an application that publishes its own notifications, 
rather than eavesdropping on them like pebbled is. I found the most relevant info in QtCreator 
help under Lipstick>Related Pages>Notifications, which said "If a notification is 
intended to have no presence in the events view, it should set the 'transient' hint to true. 
This will cause it to be closed immediately after it has been displayed to the user.".

Thanks,

Andrew


On 12/01/2016 12:26 pm, Alexander Ladygin wrote:

Hei Andrew,

did you check 
https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/ ?

On Mon, Jan 11, 2016 at 11:09 PM, Andrew Branson mailto:andrew.bran...@cern.ch>> wrote:

Hi,

I'm trying to improve the filtering of notifications in the pebble daemon 
for Sailfish, and I stumbled upon the category property 'transient' in the 
QtCreator docs which it said indicated that a notification would only be 
flashed at the top of the screen and not left in the Events view. I thought 
that would be a good indicator of whether the notification should be forwarded 
to the watch, so I did that, but after that no messaging notifications were 
coming through at  all. I checked the category files, and all of the messaging 
preview categories have the transient property set, even though they are 
persistent on the Events view. Can anyone tell me what's going on here? How 
does the system decide which notifications end up on the events view?

Is there additional documentation about the notification system anywhere 
that I don't know about? Someone mentioned that a new notification model in 
SF2.0 would let us sidestep the '2 new messages' notification and get the real 
preview text, so I'd like to find out about that too.


Thanks very much,

Andrew
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org 





___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Transient notification categories

2016-01-12 Thread Alexander Ladygin
Hei Andrew,

did you check
https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/ ?

On Mon, Jan 11, 2016 at 11:09 PM, Andrew Branson 
wrote:

> Hi,
>
> I'm trying to improve the filtering of notifications in the pebble daemon
> for Sailfish, and I stumbled upon the category property 'transient' in the
> QtCreator docs which it said indicated that a notification would only be
> flashed at the top of the screen and not left in the Events view. I thought
> that would be a good indicator of whether the notification should be
> forwarded to the watch, so I did that, but after that no messaging
> notifications were coming through at  all. I checked the category files,
> and all of the messaging preview categories have the transient property
> set, even though they are persistent on the Events view. Can anyone tell me
> what's going on here? How does the system decide which notifications end up
> on the events view?
>
> Is there additional documentation about the notification system anywhere
> that I don't know about? Someone mentioned that a new notification model in
> SF2.0 would let us sidestep the '2 new messages' notification and get the
> real preview text, so I'd like to find out about that too.
>
>
> Thanks very much,
>
> Andrew
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org