-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
feat(mobile): use shared native client #25942
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
base: main
Are you sure you want to change the base?
Conversation
fix android
platform-side headers update comment consistent platform check tweak websocket handling support streaming
ec63816 to
03afe8f
Compare
|
With the changes in this branch, I am able to log into the immich app and view my timeline, but foreground uploads do not work. I have not tested background uploads. Foreground uploads error out with the following: Message: From: Shortly after that, I see: Message: I can repro the error if I log out and log back in. I don't see anything interesting in my immich server logs. (I'm connected to a immich server over HTTPS with a certificate signed by my own self-hosted certificate authority, although I cannot imagine how that's relevant here). |
|
Hmm, it might not be setting headers correctly on Android. I think I only tested upload on iOS. |
Description
This PR moves API requests from a Dart client to a shared native client that is instantiated at startup. This change improves performance and (mostly) consolidates configuration to a single place. Among other things, this should also improve the mTLS experience. The main remaining exceptions to this are asset downloading and background uploads, which don't use the same session as they're handled in dependencies. This can be addressed separately from this PR.
How Has This Been Tested?
Tested login, browsing, asset upload and websocket events on both platforms.