We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

How to check notifications via command line ?

asked 2015-01-24 19:49:11 +0300

Schturman gravatar image

updated 2015-12-23 02:40:20 +0300

piero gravatar image

Hi

  1. Can someone explain me how I can check if notification from specific app exist on the lockscreen/event screen at this moment ?

  2. What the command for overriding specific notification ? Or I need first delete current notification and send another one ?

  3. Can I somehow lock notification on the lockscreen/event screen until specific condition ?

Thanks

P.S. #3 I thin I know how to lock it by "userRemovable=false" in the conf file.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
3

answered 2015-01-26 11:50:34 +0300

VDVsx gravatar image

updated 2015-01-26 11:51:03 +0300

Code handling that is here: https://github.com/nemomobile/nemo-qml-plugin-notifications

From command line you can use 'notificationtool' (pkcon install lipstick-qt5-tools), for some of these, for the rest only if you code small app.

edit flag offensive delete publish link more

Comments

cool! btw: how can I find out what is available via pkcon?

lakutalo ( 2015-01-26 12:02:16 +0300 )edit

pkcon search name SOMEKEYWORD

VDVsx ( 2015-01-26 12:43:01 +0300 )edit

Cool, thanks! But I still don't understand how to use it. Can you write examples please ? For example when I try to see my notification from specific app, I tried this:

notificationtool --category=x-nemo.batterynotifer

but it always show me --help :(

Some examples, please... (how to see exist notifications, update, remove etc..) Sorry, I'm not programmer :)

Schturman ( 2015-01-26 14:33:06 +0300 )edit

That tool is only for add/remove/update operations for the rest you would need to code a application, out of curiosity what are you trying to do ?

VDVsx ( 2015-01-26 14:49:22 +0300 )edit

Ahhh... I understand... I was thinking that I can see what/which (what app) notification at this moment exist on my lock/event screen. And for example if my app need to send another one, by this tool I can remove previous notification of specific app and send new one instead send and see a few same notifications. Example of my battery notification app, When battery go to 15% it send notification and show me percentage, and it continue send notification until I will plug my phone to charger. Instead seeing 10-15 the same notifications with diff percentage, I want remove or update existed one.

Schturman ( 2015-01-26 15:48:34 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2015-01-24 19:49:11 +0300

Seen: 1,057 times

Last updated: Jan 26 '15