Closed turkeyphant closed 3 years ago
I have the same issue. It will manually backup, and says it's scheduled for the next increment, but never fires.
Android 9 Pixel 3 1.5.11 Stock Android Messenger
I've been having the same problem since the beginning of 2019 with the backup schedule not initiating but manual working just fine. I've checked all settings for both the app and phone, tried different schedules, and made sure everything is up to date. Android 7.0 Note5 1.5.11 Stock messenger
I have the same problem. Galaxy S7. Stock Android 8.0 SMS backup is in the Doze "do not optimize"app exception list. And also in the Samsung "don't put to sleep" list. But still only manual backups work.
also affected: Google Pixel with Lineage 16 (Android 9), SMS Backup+ from fdroid Version 1.5.11 what is working: start manual backup what is not working: automatic Backup (but selected) what is greyed out: "Connect" (Verbinden in German) can not be selected probably a duplicate: #957
To confirm whether this is power-related, does your phone have the option to "never sleep while charging"? If so, turn that on, leave it on the charger, send it a message from another phone, and then let us know whether any automatic backup occurs.
Obviously that's not a permanent solution, but it helps by ruling out possible causes.
i only found "do not put display to sleep while charging", which was off, and i will switch it on for a test run. Also i put sms backup in the list of "non optimized" battery applications. i will write tommorrow if anything of these two settings changed something
thanks, I await your findings.
I don't have that option. Just checked the app and it hadn't updated since October 2019. Running manually worked fine.
none of the settings did make sms backup execute the backup. i pushed the manual backup button right now, and (as expected) it backed up my calls and sms from last day.
It's worth noting that the majority of scheduling failures are related to power management.
It would help diagnostic efforts if everyone could check whether or not bypassing power management fixes each problem. The easiest way to do that it to enable "keep screen on when charging" and put the phone on charge; then send a test message, and wait.
Just tried that and no dice. MightyText started syncing immediately though.
@turkeyphant, @wuxxin thanks for doing that.
I should have said sooner, the next thing is to enable and upload the debug log, so we can see whether SMS Backup+
is waking up but failing to sync, or not waking up.
If you are still having this problem (that is, manual backup works, but automatic backups do not) please:
My suspicion is that on some phones, apps can be woken up but WiFi and/or mobile data might still be in "low power" mode and therefore not immediately unavailable, and that "try again in 5 seconds" might resolve the problem.
Another possibility is that the phone's security system doesn't want to let any background apps initiate direct TCP connections (instead of known APIs) "because malware blah blah", but isn't telling anyone.
It would also be really helpful if you have access to intercept WiFi data (tcpdump on your router?) and can check whether there's an outgoing TCP SYN to port 143 or 993 and a return SYN/ACK, at the time when the log indicates that it wakes up and attempts (but fails) to initiate an IMAP connection.
Also very useful would be if use your own IMAP server and can compare logs from both ends.
Thanks everyone for the feedback.
Using the new Oreo JobScheduler API is on the roadmap.
I'm marking this as a duplicate of #758 just so we can track one issue and keep all the feedback in one place.
Expected behaviour
Automatic backup to work according to regular schedule and post-receipt schedule settings.
Actual behaviour
Only manual backups work.
Steps to reproduce the behaviour
Set automatic backup to every 30 mins and receipt backup to 1 min after receiving a new SMS.
Receive an SMS/wait 1 hour.
No backup since last manual backup.
Last time it attempted an automatic backup was in August and then even after 34 SMS and 48 calls were logged, it did not do another automatic backup and I had to trigger it manually.
Please specify the following: