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

Auto-sync every X amount of time #888

Open
Final-Phoenix opened this issue Feb 24, 2023 · 11 comments
Open

Auto-sync every X amount of time #888

Final-Phoenix opened this issue Feb 24, 2023 · 11 comments

Comments

@Final-Phoenix
Copy link

Is it possible to have an option to auto-sync the blockchain every x amount of time in the background?

For example, options to auto-sync every 3, 6, 12, or 24 hours, etc? Would be a nice feature.

@d4f5409d
Copy link

d4f5409d commented Apr 7, 2023

This is may not be possible, but what could be is we could send the user every week or month a notification to open their wallets to sync. This is what Nighthawk wallet is doing.

@Final-Phoenix
Copy link
Author

Apparently Cake Wallet recently figured out a way to make this work as they have this feature now. Peek at their code? 👀

@d4f5409d
Copy link

d4f5409d commented Aug 31, 2023

Apparently Cake Wallet recently figured out a way to make this work as they have this feature now. Peek at their code? 👀

First check what libraries and development environment Cake Wallet uses. They may have a possible solution but it isn't a guarantee we can have that solution, because of the differences.

@Final-Phoenix
Copy link
Author

I see. Just wanted to let you guys know it might be possible. Anyways, thanks for the reply appreciate it

@shortwavesurfer2009
Copy link

Apparently Cake Wallet recently figured out a way to make this work as they have this feature now. Peek at their code? 👀

This does not work well for those who manage their battery charge because it requires the phone be charging to operate. A notification seems the better way to go.

@Final-Phoenix
Copy link
Author

Final-Phoenix commented Dec 2, 2023

Every night you have to plug your phone into a charger anyway so I don't see why that really matters...
Could be made such that it only autosyncs when plugged into a charger (so it syncs once a day)

Would be a massive quality of life change imo.
User doesn't have to think about it and when they use it, especially those who don't use it too often, are quickly synced when they open Monerujo and ready to go (instead of being behind days, weeks, or even longer)
Sync times are one of the biggest complaints I come across for both new and old Monero users

Notifications are cool, but you can easily miss them or forget to do it even with them.

You could also have both options available in the settings (notifications and autosync) and just let the user decide what they want on or not.

@shortwavesurfer2009
Copy link

shortwavesurfer2009 commented Dec 2, 2023

Every night you have to plug your phone into a charger anyway so I don't see why that really matters... Could be made such that it only autosyncs when plugged into a charger (so it syncs once a day)

Would be a massive quality of life change imo. User doesn't have to think about it and when they use it, especially those who don't use it too often, are quickly synced when they open Monerujo and ready to go (instead of being behind days, weeks, or even longer) Sync times are one of the biggest complaints I come across for both new and old Monero users

Notifications are cool, but you can easily miss them or forget to do it even with them.

You could also have both options available in the settings (notifications and autosync) and just let the user decide what they want on or not.

My charging schedule is a little bit weird because my phone has an option to limit the charge total to 80% and then it automatically stops charging So my phone isn't actually plugged in during the night, but when it hits 30%, I plug it in, let it charge to 80% and then unplug it, no matter the time. Therefore if its required to be charging at say 1AM mine would almost never sync

@Final-Phoenix
Copy link
Author

What you said still doesn't make sense.

The idea is to auto-sync whenever the user decides to charge their phone. The time of day is irrelevant to that.
But another option to auto-sync based on the time of day set by the user would be great too. Many possibilities here.

That's also why I said it should be an option in the settings. So whoever doesn't like it for whatever reason can switch it off. Regardless, the point is to give users the option to auto-sync however that looks. Most users would love this feature.

@shortwavesurfer2009
Copy link

What you said still doesn't make sense.

The idea is to auto-sync whenever the user decides to charge their phone. The time of day is irrelevant to that. But another option to auto-sync based on the time of day set by the user would be great too. Many possibilities here.

That's also why I said it should be an option in the settings. So whoever doesn't like it for whatever reason can switch it off. Regardless, the point is to give users the option to auto-sync however that looks. Most users would love this feature.

I just know the way cake wallet does it for example does not ever work for me so i still have to manually catch up when the app opens

@anhdres
Copy link
Contributor

anhdres commented Dec 4, 2023

The challenge for background sync is that the wallet has to be unlocked (and therefore unsecured) for Monerujo to be able to scan the blockchain. We have an idea for this still to be implemented that may work. Stay tuned.

@anhdres
Copy link
Contributor

anhdres commented Feb 6, 2024

There's a kind of a hack to achieve this, if you open your wallet in street mode and then just leave Monerujo working in the background, it should both sync and keep your (at least older) transactions a secret. It's also secure in the sense that you need your password to send XMR out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants