Page 1 of 1
Android with Web access?
Posted: Sun Feb 09, 2025 2:58 pm
by jolimaison
Hi, I have read in the other thread that a sync between two users is kind of complicated.
Would it be possible to have the web API enabled for the Android App?
My use case is the my wife and me can modify the database and it might be that we are doing it at the same time.
Or is there any way to use it with 2 users on android. A web UI is not available, right?
Regards,
Daniel
Re: Android with Web access?
Posted: Sun Feb 09, 2025 8:48 pm
by jolimaison
I installed the web API and the Windows app.
Now, I understand what the web API is for.
This is not really working for us, unfortunately.
The Android App is really cool and it would be nice, if I could install a web-api which acts as a master. I think for the start it would be also ok to have lock/unlock button.
I need to lock the database when I want to add a new transaction an unlock after finishing. So, only one person can edit at the same time.
At the moment we use a Google sheet and you see when someone is editing. That's good enough.
Another idea: use the web API to request the lock and on unlock sync the database to web API. The other client could sync than from the web API. Could be also possible with current sync mechanism. Perhaps something like request lock for 2 mins. And with sync it's unlocked again.
Not sure, if this makes sense. Perhaps I will check the code and prepare a PR. Or any other idea how to solve that?
Re: Android with Web access?
Posted: Sun Feb 09, 2025 9:47 pm
by wolfsolver
There is a web server usable for input data from anywhere. Data is than grab from desktop version
https://github.com/moneymanagerex/web-money-manager-ex
Re: Android with Web access?
Posted: Sun Feb 09, 2025 10:19 pm
by jolimaison
Yes, but then we have no overview in the app and I need to start the PC.
I want a full sync (short delay for sync is ok) solution between 2 apps. I'm pretty sure it's not that complicated to implement that as the sync is already there.
Re: Android with Web access?
Posted: Sun Feb 09, 2025 11:57 pm
by guangong
hi
@jolimaison,
A sync solution exists between the app instances (with a short delay). also, you can refer to
viewtopic.php?t=9079 to see its arch today. would be great if you could contribute.
btw, what is 'overview in the app' in your mind
Re: Android with Web access?
Posted: Mon Feb 10, 2025 5:47 am
by guangong
in terms of `doing it at the same time`, it would be possible after SUID with some development work, e.g. manual/auto data importer/merger.
Re: Android with Web access?
Posted: Mon Feb 10, 2025 6:28 am
by jolimaison
With overview I mean just the current state with all data available in the app. @guanlisheng
In the web API you just have the delta.
And yes, we can sync with two apps, but in my use case I don't know when my wife syncs her data. Then I would sync at the same time and it might happen that we overwrite the others data.
I will check the other thread and try to find a non-invasive way for distributed access.
Re: Android with Web access?
Posted: Mon Feb 10, 2025 7:09 am
by jolimaison
@guanlisheng
Is SUID planned? Or already implemented?
Merging would be the cleanest solution.
I will start working on that than. It's testable and modular.
Most important are the transactions at the beginning.
Re: Android with Web access?
Posted: Mon Feb 10, 2025 9:27 am
by guangong
SUID is already implemented and merging is still TBD
- Android v1071 or newer, it was paused for a while and the next new release will re-enable it
Re: Android with Web access?
Posted: Mon Feb 10, 2025 9:41 am
by jolimaison
Ok, I will send you a PM to clarify how I will implement it.