-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple message notifications by having the app background-launched by iOS every few minutes #3
Comments
im not sure that i am a big fan of this. i think the proper way should be by having the quassel-server send a notification via another service. i currently do this via qpush.me or similar. that's also suboptimal, but this sounds battery intense. :\ |
Note to self: AFAIK iOS launches every 15-20 minutes |
From https://quassel-irc.org/node/134
@justjanne Which API is that? Could I from that easily compute e.g. "number of buffers with hilight" + "number of buffers with unread private message" to set the iOS app icon badge number? |
The BufferSyncer now has two new maps, activity and highlightcount https://github.com/quassel/quassel/blob/master/src/common/buffersyncer.h Activity stores for each buffer the bitset of activities – so join|part|quit|topic|nickchange|privmsg|notice, etc. This allows you to figure out if you should show a buffer as green, blue, or nothing in the chat list. Blue: if the activity has either notice or privmsg flags set For green, you can either just see if activity is != 0, or you can do it more intelligently. For highlights, it’s even more interesting, as it just stores for each buffer the number of unread highlights. Then there’s the new backlog API: https://github.com/quassel/quassel/blob/master/src/common/backlogmanager.h#L40, where you can use requestBacklogFiltered to only request messages which have certain flags (e.g. highlight) set. That’s btw how we load notifications for Quasseldroid (pseudocode):
|
This will be in next version :) |
I see the Pushover iOS app has integrations for a number of services already, including ZNC Push bouncer. Maybe we could get one there for Quassel? |
...so that we don't need a push infrastructure
The text was updated successfully, but these errors were encountered: