Skip to content

feat: add notification for sync and download, closes #328#396

Open
Heropowwa wants to merge 4 commits into
masterfrom
feat/ProgressNotification
Open

feat: add notification for sync and download, closes #328#396
Heropowwa wants to merge 4 commits into
masterfrom
feat/ProgressNotification

Conversation

@Heropowwa

@Heropowwa Heropowwa commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Added notification with progress when syncing the library, or downloading it.

closes #328.

@Heropowwa Heropowwa marked this pull request as draft June 10, 2026 08:51
@Heropowwa Heropowwa marked this pull request as ready for review June 20, 2026 22:28

workers.joinAll()
_isDownloadingLibrary.value = false
delay(2000)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what’s this delay for

}

progressCallback(1.0f, Res.string.info_syncing_finished)
delay(2000)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

import platform.UserNotifications.UNAuthorizationOptionAlert
import platform.UserNotifications.UNAuthorizationOptionSound

actual class NotificationManager {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not implement this on ios at all, notifications are more obtrusive on ios and you’re not really meant to use them for like download progress or anything

Also ios can’t even do downloads or networking while your app is in the background (though this has finally changed somewhat in ios 26 but it still sucks)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just ditch ios support at this point 👉👈...

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_LOCAL_NETWORK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can somehow send download notifications without permission because i’ve seen apps do that, not sure if you did that here im too lazy to look, but I would definitely prefer that

For example, chrome or discord can download a file in the background, with progress being shown in a silent notification, and it will notify when its finished (or at least thats how it works for me on grapheneos, idk how it behaves on other roms)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried not putting it and putting it and don't asking for permission but it doesn't work, idk honestly


launch {
notificationManager.showProgressNotification(
id = NotificationIds.SYNC_LIBRARY,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t really see a use case for sync notifications honestly, the sync should just be a process that silently happens in the background, not something that the user needs to know about

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment sync in background doesn't work i think, but if we implement that you can do the initial sync that for some people takes time in background

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Indicate song/album download progress in notification centre

2 participants