Notices


Reply
Thread Tools
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#281
Originally Posted by ruff View Post
value("true").toInt() == 1
I was just a little bit sick in my mouth

Can you replicate that? Everyone seems to be getting a 0 there, including me, but stupidly I didn't notice before because I'd repaired my watch and so had a fresh file. I assumed that converting it directly to an int would return 0 for any string that wouldn't parse as an int, for the sake of the children. I've added a bit of a dirty hack to skip the parsing and return Enabled when the value is "true", but I'd remove it if I could.
 

The Following User Says Thank You to abranson For This Useful Post:
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#282
Originally Posted by abranson View Post
I assumed that converting it directly to an int would return 0 for any string that wouldn't parse as an int, for the sake of the children.
Now that I think of it - it seems to me it was a result of partial code migration. I.e. since I've not changed the type in all places yet to int - metatype was set to bool, and boolean conversion resulted to true=>1. While doing end-to-end test I spotted that one call was still using bool - I was unable to change value to always-enabled from gui ( or rather i was able but returned update signal carried 1 instead of 2 even though 2 was set). so when I fixed that to int my config was already saved as integers with true replaced by 1 and subsequent cleanup didn't affect that.
 

The Following 2 Users Say Thank You to ruff For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#283
Ok, I'll leave that in then. It won't do any hard. The icon thing is bugging me so I'm trying to store the notif icons as they come in. Just putting off solving the phone call end segfault...
 

The Following User Says Thank You to abranson For This Useful Post:
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#284
It seems there's no way to disable an "ongoing" Android system notification? Like, when the Play store is updating apps, it puts up a notification saying "Updating gmail" or whatever, and if I close that on the Pebble it re-opens in ten seconds or so.This effectively makes the rest of the Pebble useless until apps are done updating.
 
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#285
Originally Posted by taixzo View Post
It seems there's no way to disable an "ongoing" Android system notification? Like, when the Play store is updating apps, it puts up a notification saying "Updating gmail" or whatever, and if I close that on the Pebble it re-opens in ten seconds or so.This effectively makes the rest of the Pebble useless until apps are done updating.
This has been a problem since Pebbled, what do the official apps do in these situations?
 
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,420 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#286
Is there a way to receive notifications after getting the first one?
Because it stops receiving notifications after the first one, untill I open the app (Skype for example)
I wish there was an option to receive all messages without this limitation


Edit: The problem is: It shows the messages on the notifications of the phone, but not as a NEW notification. It replaces the old one, which is probably the problem why Rockpool does not detect it
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.

Last edited by HtheB; 2016-04-14 at 13:20.
 

The Following 2 Users Say Thank You to HtheB For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#287
I'm rejigging the notification part a lot right now to support replacesId, and I don't think we're doing anything if the notification already exists so it doesn't get sent. I'd wondered when that would be the case, but you've just told me. Skype messages?

Last edited by abranson; 2016-04-14 at 14:56.
 

The Following 3 Users Say Thank You to abranson For This Useful Post:
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#288
While you're at it - can you also extend struct which is sent for notification filters to the client as well as the string used for id? The way it works now is a bit cumbersome - normalized name to be presented as a source_id (which it isn't actually) and then this stupid attempt to guess who the hell was that in the client.
I.e. I have now almost all filters set to some localized string (eg. Nachrichten) so if i switch locale all my filters become obsolete. Also the icon for the mail notification is now assigned if id contains @ - which would not be true for let say jabber.
While original messages contain proper info we need:
Code:
method call sender=:1.35 -> dest=org.freedesktop.Notifications serial=2004 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "xy@zz.ie"
   uint32 0
   string "image://theme/icon-m-service-generic-email"
   string "Project Turris"
   string "Password reset on omnia.turris.cz"
   array [
      string "default"
      string ""
      string "app"
      string ""
   ]
   array [
      dict entry(
         string "x-nemo-remote-action-default"
         variant             string "com.jolla.email.ui /com/jolla/email/ui com.jolla.email.ui openMessage AAAAAgAAAAi6"
...
 

The Following User Says Thank You to ruff For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#289
Did you pull my latest master? I'm already storing the icon from the notification. Source id from x-nemo-owner would make more sense though. I'll have a look at storing that alongside a separate friendly/locale specific name.
 

The Following User Says Thank You to abranson For This Useful Post:
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#290
Not yet, still enchanting websockets to cast them to devconnection. let me rebase...
 
Reply

Tags
pebble, smartwatch


 
Forum Jump


All times are GMT. The time now is 16:49.