Android widget: can only show local albums, not shared ones #7553

Closed
opened 2026-02-05 13:08:17 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @dsvf on GitHub (Oct 17, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

When creating a "Random Photo" android homescreen widget, I cannot select an album not created by me for display.

My concrete usecase: I have an album that I have shared with someone else ("Photos of the kids", with my parents). I can create a Random Photo widget on my phone, they cannot.

I'm not sure if this is a bug or a feature request, however I would think that this is part of the expected behavior of the Widget functionality, so I filed this as a bug report.

The OS that Immich Server is running on

Debian 12

Version of Immich Server

2.0.1

Version of Immich Mobile App

2.1.0

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Samsung Galaxy S23

Your docker-compose.yml content

default docker-compose

Your .env content

default .env

Reproduction steps

  1. Create an album and add pictures
  2. Create new "Random" widget on Android home screen
  3. Long-press and select Settings, album appears in album selection list
  4. Add other user to album
  5. Other user does not see shared album in "Random" widget album selection list.

Relevant log output


Additional information

No response

Originally created by @dsvf on GitHub (Oct 17, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug When creating a "Random Photo" android homescreen widget, I cannot select an album not created by me for display. My concrete usecase: I have an album that I have shared with someone else ("Photos of the kids", with my parents). I can create a Random Photo widget on my phone, they cannot. I'm not sure if this is a bug or a feature request, however I would think that this is part of the expected behavior of the Widget functionality, so I filed this as a bug report. ### The OS that Immich Server is running on Debian 12 ### Version of Immich Server 2.0.1 ### Version of Immich Mobile App 2.1.0 ### Platform with the issue - [ ] Server - [ ] Web - [x] Mobile ### Device make and model Samsung Galaxy S23 ### Your docker-compose.yml content ```YAML default docker-compose ``` ### Your .env content ```Shell default .env ``` ### Reproduction steps 1. Create an album and add pictures 2. Create new "Random" widget on Android home screen 3. Long-press and select Settings, album appears in album selection list 4. Add other user to album 5. Other user does not see shared album in "Random" widget album selection list. ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@dsvf commented on GitHub (Oct 18, 2025):

To add to this:

  • The widget gets the list of albums from the API in RandomConfigure.kt
  • The API returns only albums created by me, unless the API parameter "shared" is set to true: doc
  • However, in ImmichAPI.kt, this optional query parameter is not set.
  • I think the line (ImmichAPI.kt, Line 111) would have to be patched to val url = buildRequestURL("/albums", listOf(Pair("shared","true"))). Unfortunately, I don't have a complete dev environment for Immich setup so I can't test this.

Maybe this could be added?

@dsvf commented on GitHub (Oct 18, 2025): To add to this: - The widget gets the list of albums from the API [in RandomConfigure.kt](https://github.com/immich-app/immich/blob/24a67576303ce964c6a44ea4b09c709e632c727c/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/configure/RandomConfigure.kt#L89) - The API returns only albums created by me, unless the API parameter "shared" is set to true: [doc](https://api.immich.app/endpoints/albums/getAllAlbums) - However, in [ImmichAPI.kt](https://github.com/immich-app/immich/blob/24a67576303ce964c6a44ea4b09c709e632c727c/mobile/android/app/src/main/kotlin/app/alextran/immich/widget/ImmichAPI.kt#L111), this optional query parameter is not set. - I think the line (ImmichAPI.kt, Line 111) would have to be patched to `val url = buildRequestURL("/albums", listOf(Pair("shared","true")))`. Unfortunately, I don't have a complete dev environment for Immich setup so I can't test this. Maybe this could be added?
Author
Owner

@dsvf commented on GitHub (Oct 18, 2025):

Well, I setup a dev environment and the one-line fix at least made shared-with-me-but-not-owned albums appear in the Random widget setup dropdown list. If no one else picks this up in the meantime, I'll try and do a bit more testing and set up a PR.

@dsvf commented on GitHub (Oct 18, 2025): Well, I setup a dev environment and the one-line fix at least made shared-with-me-but-not-owned albums appear in the Random widget setup dropdown list. If no one else picks this up in the meantime, I'll try and do a bit more testing and set up a PR.
Author
Owner

@bo0tzz commented on GitHub (Oct 18, 2025):

Dupe of #20229. A PR would be welcome though!

@bo0tzz commented on GitHub (Oct 18, 2025): Dupe of #20229. A PR would be welcome though!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7553