-
Notifications
You must be signed in to change notification settings - Fork 3
[WIP] Pebble integration #45
base: develop
Are you sure you want to change the base?
Conversation
Seems like Is there something universally unique returned by iRail that we could use? |
I'm going to put the tracking of connections in C++ code, if that's okay for you. Given that that would require shared resource ownership between the |
In a later stage, we need to store multiple references to shared `Connection`s.
34f5088
to
9046e69
Compare
I have a working prototype, see demo video! The strange empty toaster-notification is still there, but I guess I can disable that by disabling berail notifications in rockpool. Still to do:
|
Really nice work @rubdos ! Love it! Sure, modify whatever you need, I know the C++ code isn't great, but I'm not a C++ expert either :) I really love the demo! The |
Hmm, that transient hint should make rockpool ignore the notification. might be good to check the rockpoold log in /tmp/ to see what's going on. Sounds like you've been having fun though! |
It's what I do now; I added a SHA3 of some
Hmm, so I somehow have to connect the replacement of the Connection list with the ConnectionTracker. Shouldn't be difficult.
Ah, there is the log. I was always starting |
I just had some more fun, and here's the (I think) relevant part of the log: https://pastebin.com/V1LnPBwe |
Explanation:
QSharedPointer
because of the shared ownership (ConnectionListModel and ConnectionTracker share the data).Fixed issues:
ConnectionTracker
keeps track of "followed connections", for notification systems (such as Pebble, or real SailfishOS notifications).Testing environment:
I have two working Pebble watches to test since date of posting. Seems like the Toaster I generate also generates a notification on the watch; maybe @abranson might take a look at how a toaster à la here generates an (in my opinion) unneeded notification.