habitica-ios
habitica-ios copied to clipboard
Connect to self-hosted backend?
I am planning on running a self-hosted version of Habitica api/frontend for personal use. It seems like, the mobile applications do not provide an option by default to connect to a different endpoint.
It would be helpful to some if you'd have an option to provide your own API address to the mobile app, with the default being the publicly hosted Habitica.
Currently itβs possible to configure a custom server url through the apps config files and compiling it again. Adding something in the UI to do this would be an interesting feature, but not something I would have the time to implement anytime soon, so Iβll tag this as help wanted.
Cool! glad to hear it is easily configurable.
I'm not much into IOS dev, would it be possible to install a modified binary on a device? I recall that some years ago this was quite an annoyance due to app signing restrictions.
If we do this, I would like it to be a hidden feature that isn't visible to the average user since it is a very small use case. It could be through a button that only appears after switching on a 'developer mode' in app settings, or only appears when shaking your phone on the login screen or tapping a certain thing like the melior logo 5 times.
Then we would post documentation on how to do this on the habitica wiki, or provide explanation through email if someone were to reach out.
I'm interested in such a configuration possibility, to!
Is this being worked on? Currently the reason holding me back from using Habitica is the lack of self hosting.
@phillipthelen @saraolson What is the likelihood of getting this merged in if I were to work on a PR for it? It might take me a while as I'm not a Swift developer, but I'm sure I can figure it out eventually. I like the idea of making it a hidden feature - like only showing the text field for a custom server URL if the logo is tapped 5 times. As @szethh said, the lack of ability to set a customer server URL is a major blocker. I'm running it on Kubernetes myself, so I feel the pain!
I am sure I could implement this in a short amount of time. ππ½
That would be amazing @EricMiddelhove!! When do you think you'll have time to work on it?
Depends, i'll probably get this done until the end of the week. (17th July)
That would be awesome @EricMiddelhove! If you need me to do any testing, please let me know.
I was really busy with work this week, therefore wasn't able to implement it yet and probably wont until next weekend. I will do it then.
Sadly work does not give me the time to implement this, therefore I need to give this free ... :/
just another voice in favor of helping test this if ever implemented. kthx.
How could we compile this and load it into our iPhone? I can see the instruction to change debug.xcconfig, but am lost as to how to compile and load into my iPhone
I got as far as building using my own free developer apple ID, but the build fails indicating there is a missing Secrets.swift file, it looks like something is suppose to use the swiftgen.yml file to output it but its missing. I also renamed secrets.yml.example to secrets.yml but no luck
+1 here, I'd rather not re-sign the application on my phone and don't want to pay apple's ridiculous subscription. Would love the functionality if anyone is able to dedicate some time to it :)
Hello, a new intrested user here. How is tge progress on selfhosting solution? Thanks
@EricMiddelhove do you have time to implement this now?
Or is habitica just against this idea in general?
Have not looked at this for a while now. I see what I can do :)
Good Christmas gift :))
Thank you :)), I figured I'd ask since it was a year since the last rely from a contributor I appreciate the help.
Okay so just FYI to all of you patiently waiting π I have managed to find / implement the functionality to theoretically connect to a self hosted Backend. However I am not 100% sure on how the UI for this feature should be. Any Ideas / guidance?
Okay so just FYI to all of you patiently waiting π I have managed to find / implement the functionality to theoretically connect to a self hosted Backend. However I am not 100% sure on how the UI for this feature should be. Any Ideas / guidance?
tailscale, jellyfin, immich all have locations to add a self-hosted url for example
That were also ideas I had. However I ask myself where would fit such an option best in Habitica.
If I had to put it somewhere I'd put it in settings, or if a logout is necessary since settings is only available once logged in, but how does the app know to log into the selfhosted server in the first place?
in that case, maybe under menu on the main page before you select login/logout that says:
logging in on: with options listed: habitica.com | self-hosted -> prompts user to input server URL
like bitwarden does it
my 2c
Any updates on when this will be available?