feat: iOS intents to integrate Immich into Apple Shortcuts and Siri
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
Does android have an equivalent to this that we could also add?
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.
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
Would it also be possible to integrate Immich into Bixby Routines?
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.
I think I see some general refactoring of the backup system - that might be better as a separate PR for ease of review.
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.
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.