this post was submitted on 04 Sep 2024
5 points (85.7% liked)

Raccoon for Lemmy app

69 readers
2 users here now

This community is dedicated to the discussion about the Raccoon for Lemmy mobile app. Raccoon is an open source app powered by Kotlin Multiplatform (KMP) and Compose Multiplatform (CMP) which intends not only to provide a mobile client for Lemmy, but also to create a space where users' voice is listened to, and we grow together by exchanging opinions.

Main features:

Why was the project started?

We believe that Lemmy has a lot of potential and part of its success depends on users being able to enjoy the experience on robust and well-done clients. Moreover, encouraging discussion between people is important to develop a healthy and tolerant society where everyone's right and freedom are safeguarded. To know more, have a look at the Procyon Project's manifesto.

References

Quick links

founded 4 months ago
MODERATORS
 

Welcome to the second session! For the rest of my day, I’ll be looking for replies to this thread and will answer your questions. If something remains unanswered, replies can be posted even during the following days.

Just like the first time, there are no rules - “anything” is anything! Feel free to ask development questions, future plans, or things completely unrelated to Raccoon.

Most importantly, have fun!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 3 months ago (1 children)

Does Raccoon for Lemmy support notifications?

[–] akesi_seli 2 points 3 months ago* (last edited 3 months ago)

Normally, in commercial services, push notifications require support from the backend. The mechanism works approximately like this: the mobile app registers to a third-party provider such as Firebase Cloud Messaging (on Android) and APNS (on Apple Push Notification System) and obtains a device token, it then makes a network call to the server to communicate their device token (and the user ID this is associated to) and then the server dispatches notifications using the user ID to determine the events of interest and the device token to have it delivered via Firebase or APNS depending on the platform. Lemmy instances, unfortunately, don't do anything of that so client apps have to periodically poll for new events, which is terrible for both the battery and the network usage. Raccoon is no exception of this, if you look in the "Advanced Settings" screen under the "Experiments" section, there is an item named "Check for unread items in background". This is an attempt to use Android's WorkManager APIs to perform scheduled periodic operations such as checking for new mentions/replies/messages. Unfortunately, the scheduler does not seem so reliable so after some time the app is in the background the pending work can never get to be executed. It was an attempt and it should be refined.