Skip to content

Conversation

@JobiJoba
Copy link
Contributor

@JobiJoba JobiJoba commented Jun 4, 2025

Description

-- Issue 1
When the app is closed and we want to share a picture to immich (via share intent) the app open, it shows the share intent but then navigate directly to the timeline.

This is not happening when the app is already open.

Issue were because in the Splashscreen logic code we were navigating always to the Timelime; I've added a check to not push the timeline route if we are on the share intent.

There is a kind of new logic here, now, when we go back from a share intent it will always go to the timeline as before if the app was open, it would go back which could have been on a picture for example

-- Issue 2
When we upload a file via the share intent, minimize the app and upload another file, the upload button was disabled

The issue was caused because the share intent window is not rebuilt, I've added a lifecycle check to reset the upload button state on resume.

Fixes #18771

How Has This Been Tested?

  • Close the app

  • Share a picture to Immich

  • Page should be present; and can upload

  • On back, it should go to timeline

  • Close the app

  • Share a picture to immich

  • Upload and minimize the app

  • Select an new picture to upload

  • Upload button is blue (in a uploading state possible)

  • Click and the picture should be uploaded

Screenshots (if appropriate)

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

- Added a check in the SplashScreenPage to ensure that the route is only replaced when it's not a share intent
- Added lifecycle event to reset the isUpload.value when minimize the app
Copy link
Member

@alextran1502 alextran1502 left a comment

Choose a reason for hiding this comment

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

Thanks for tracking this down!

@JobiJoba
Copy link
Contributor Author

JobiJoba commented Jun 4, 2025

haha I had to uninstall and reinstall the app wayyy too find this :)

Copy link
Collaborator

@YarosMallorca YarosMallorca left a comment

Choose a reason for hiding this comment

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

Nice catch!! Thanks for fixing this, I was trying to track this down for a month now!

@alextran1502 alextran1502 merged commit 1fb8861 into immich-app:main Jun 4, 2025
45 of 46 checks passed
@oboeglen
Copy link

oboeglen commented Jun 7, 2025

Hi, the fix will be available with next version of immich server ? Maybe 1.134.1 ?

savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
…eset upload button when minimize app (immich-app#18914)

fix(mobile): prevent upload intent replacement in splash screen

- Added a check in the SplashScreenPage to ensure that the route is only replaced when it's not a share intent
- Added lifecycle event to reset the isUpload.value when minimize the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImmichApp Android can not upload files from another app by share option

4 participants