immich icon indicating copy to clipboard operation
immich copied to clipboard

feat: iOS intents to integrate Immich into Apple Shortcuts and Siri

Open Encotric opened this issue 1 year ago • 7 comments

Description

This PR introduces iOS app intents to provide a trigger for background synchronization via the Shortcuts app or Siri. This feature was already requested in https://github.com/immich-app/immich/discussions/11297

Currently, it's still in active development and does not work. The shortcut is already registered but needs further debugging.

How Has This Been Tested?

Coming soon.

Checklist:

  • [ ] I have performed a self-review of my own code
  • [ ] I have made corresponding changes to the documentation if applicable

Encotric avatar Sep 24 '24 20:09 Encotric

Does android have an equivalent to this that we could also add?

bo0tzz avatar Sep 25 '24 10:09 bo0tzz

Does android have an equivalent to this that we could also add?

Unfortunately, I don’t know a native solution. The only thing I know that could work similar would be an integration for e.g. IFTTT. Maybe we could integrate something like that.

Encotric avatar Sep 25 '24 19:09 Encotric

The most native is probably App Actions built-in intents https://codelabs.developers.google.com/codelabs/appactions#0 in combination with Google Home Routines and Assistent

Non native is Tasker https://tasker.joaoapps.com/pluginslibrary.html

Meliox avatar Sep 25 '24 20:09 Meliox

Would it also be possible to integrate Immich into Bixby Routines?

sannidhyaroy avatar Sep 26 '24 06:09 sannidhyaroy

I'd expect that those app actions/intents can be called by Tasker as well (and maybe by Bixby?) so that seems like the way to go.

bo0tzz avatar Sep 26 '24 10:09 bo0tzz

I think I see some general refactoring of the backup system - that might be better as a separate PR for ease of review.

bo0tzz avatar Oct 06 '24 10:10 bo0tzz

I think I see some general refactoring of the backup system - that might be better as a separate PR for ease of review.

Sorry for the late response. Yeah, in the beginning, I just tried to figure out why the iOS shortcut wasn't doing anything (and thought it could be because of the synchronous execution). But that escalated quickly when I tried implementing iOS-specific URLSessionTasks for asynchronous uploads in the background. I am currently pretty limited in time but will do some more debugging and eventually revert or split off the backup refactoring.

Encotric avatar Oct 12 '24 12:10 Encotric

We're going to close this due to inactivity, if you come back to this and can make the suggested changes, please feel free to open a new PR, or request for this one to be re-opened.

zackpollard avatar Mar 03 '25 14:03 zackpollard