Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Encotric
Copy link

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 #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

@bo0tzz
Copy link
Member

bo0tzz commented Sep 25, 2024

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

@Encotric
Copy link
Author

Encotric commented Sep 25, 2024

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.

@Meliox
Copy link
Contributor

Meliox commented Sep 25, 2024

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

@sannidhyaroy
Copy link

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

@bo0tzz
Copy link
Member

bo0tzz commented Sep 26, 2024

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.

… to use URLSessionTasks on iOS for background sync
@bo0tzz
Copy link
Member

bo0tzz commented Oct 6, 2024

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

@Encotric
Copy link
Author

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.

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.

4 participants