-
Notifications
You must be signed in to change notification settings - Fork 498
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
Automatic Backups not working [FIXED - make app exempt from power management] #1076
Comments
Sane here. |
I have now found setting the app to Unrestricted seems to work without undesirable side effects. |
Any luck with this? I just opened the app and its status was "Inactive", last backup was 3 months ago. Starting manually worked fine. |
@Wibblyw does "unrestricted" mean in relation to power management, ie, suppressing background activity by the app to save power? Or "unrestricted" in some other way? |
Quick note: I recently used the Automate app to open SMS Backup + automatically in the background, it has been going strong for more than a month without any issues. |
Android introduced yet another new scheduling framework a few years ago; implementing it is still on the roadmap, and will likely resolve this and similar issues. In the meantime, anyone having trouble should use "Automate" or similar. |
Unrestricted is a power management setting I believe stops Android from restricting background power consumption by an app. I have not found this app consuming lots of battery as a result of using this setting - it seems well behaved, and fixes the issue for me. |
Same for me with Tasker |
Come to think of it, SMS Backup+ is on my list of power-management-exempt apps, and indeed it draws next to no power; for the time being we should probably just document this as a standard setup step. |
I have tried this on a Google pixel 6 pro (android 13) and it didn't help. Have set all correct permissions as well. |
Same here. |
If it works initially, try mucking around with do not disturb. I have found that some things will only work while do not disturb is on, and some while it is off (not related to sound, for example, can only use USB file transfer to PC when do not disturb is off, and android auto voice recognition goes haywire when it is off, so have to turn it on). If you try that, would be interesting if it is linked to their issues in that system. |
I added the app to dnd so that it could interrupt. Did a manual backup and toggled the 'old backup scheduler' off/on and it has been working now for a couple of hours. Not sure how many of those steps are necessary. I really didn't want to mess with it since it's working. |
This is not fixed on a Google pixel 6. I have tried all suggestions and it's still not working. Will this be looked at? |
Have you tried creating a task with Tasker or Automate? I personally use Automate, working flawlessly for a couple months now. |
I tried, could not work out how to set it up. If this is going to be the work around for now, can someone do a tutorial on how to set it up? |
I'll share the flow I have created for Automate and try to explain how to set it up properly. In my case the most difficult issue I had, even after having created a proper schedule, was failing to give proper permissions to the Automate app to run SMS Backup+ in the background on its own, without manual interaction. Note: before starting, make sure to forcibly close SMS Backup+ in case it's running in the background.
Here it gets trick for me to explain because depending on your version of Android and brand, it may differ from mine: In Automate's App info screen, where you have the permissions and notifications settings, you should have an option that is probably already enabled which is "Autostart" (enable if not). Next you either have "Other permissions" or "Additional permissions" on its own or inside "Permissions", go there. I have currently these enabled:
Once you have this down, go back to Automate, open the SMS Backup+ flow and edit it (using bottom-right pencil icon). The last action in the flow is a Delay of 30 minutes (as I uploaded it), to do some testing you should edit that and make it 1 minute instead, then back out of the editing process and press the START button. What should happen when you start this is that SMS Backup+ will briefly pop a black screen to the front and disappear to the background. If that didn't happen, something is off... but if it did then great, last part... To test if Automate is being able to run the app on it's own, go to SMS Backup+ App info (using app icon shortcut, for example) and force the SMS Backup+ app to stop. Within the next minute you should see the same behavior happen as when you started the flow manually: the app opens briefly a black screen and disappears. If that happened, then it's probably working fine, all that's left to do is test after a reboot and after sending an SMS or call to see if it syncs properly with Gmail. In the end, return to the Automate flow and edit the Delay action back to some timing that you're comfortable with, I personally use 30 minutes as interval. Note: As mentioned in other comments, it is also crucial that you create a battery optimization exception for both Automate and SMS Backup+, otherwise it might interfere with its operation. Not as straightforward as I'd like it to be, and probably there are some inconsistencies due to not having to do this part of the process in a while, but for the most part this should work. Let me know if it doesn't, I'll try to help. |
my backup worked flawless on a samsung galaxy s9 for years with IMAP signin. 2 weeks ago the auto backup stopped. I regenerated a new password and restarted phone which worked last time. This time NO. I see in the past everyone said to use edge but I dont have the option to authenticate that way. I checked sleeping apps and battery settings which seem all correct. What am I missing. Manual backups work tho |
@teezeuay By any chance did that coincide with upgrading Android on your device? |
NOPE 😂 LAST TIME THE AUTO BACKUP STOPPED I REGENERATED A GOOGLE PASSWORD AND RESTARED THE PHONE. WORKED AGAIN FOR 8 MONTHS. I TRIED THAT THIS TIME AND NOTHING
…On Wed, Feb 1, 2023 at 1:38 PM Martin Kealey ***@***.***> wrote:
@teezeuay <https://github.com/teezeuay> By any chance did that coincide
with upgrading Android on your device?
—
Reply to this email directly, view it on GitHub
<#1076 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5SBF3WYW45OJVTY7FSRFW3WVK3UPANCNFSM5RB4P4HA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello. |
Tried everything above but it's still not working on my Android 13 Galaxy Z Fold 3. |
Is there a way to initiate manual backup with Tasker? Or any other similar workarounds anybody can offer? |
Tried all listed solutions, none is able to trigger automatic backups. Manual backup is working fine. |
Finally got it working. Tasker has a task action under 3rd party category called SMS Backup+ which fires an intent to run backup. Set up some profiles to run that task after calls and texts and also on a time interval. Now backup emails appear almost instantly. No need to make tasks to open the app, which caused the app to constantly pop up in foreground, tried to workaround that with other automations to counteract that but it was just causing more issues. |
Hi - total Tasker noobie. Do you have specific details on the settings for this ? I see the 3rd Party category but not what variables to add to make this work, Same deal - SMS Backup+ works manually but not automatically anymore. I backup call logs, SMS and MMS. Thanks and appreciation in advance ! |
I think you first have to turn on "3rd party integration" in Auto backup settings in SMS Backup+, then in the Tasker when adding a task action you should see SMS Backup+ as an option under 3rd Party category, it has an If and a Label parameters but I didn't do anything with those and just used it as is by pressing the back arrow on the top left corner. |
Yeah, I already had that turned on. Ok, well, I've created an app profile with the SMS Backup+ selected as under 3rd Party category. I'll let you know how it goes ! |
What I have set up is probably overkill but I attached screenshots showing what my Tasker looks like: |
I've just simplified mine to this - I just want it to trigger and run every hour |
SMS Backup+ has been forked and updated to work on Android 13: Many thanks to henrichg. |
Sorry not.
|
Unfortunately, I'm having a similar problem with this fork. It doesn't
auto-trigger the backup. As soon as I open the app, it connects, searches
and backs up. All power management options are off and a manual backup
works fine. Any suggestions?
My phone is on MIUI 14.0.5.0 which I believe is an Android v12 port. Phone
is a Poco X3.
Thanks in advance.
…On Thu, 26 Oct 2023 at 22:23, Henrich Gron ***@***.***> wrote:
Sorry not.
1. It is not my application. I'm forked it only for fixing Android 13
support, for my user of PhoneProfilesPlus application.
2. Is not possible to add it to Google Play, because target SDK is 29
(Android 10) and Google allows (currently) applications with target 32
(Android 12).
—
Reply to this email directly, view it on GitHub
<#1076 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYOPLP35WH7XSLGRDCDEGZLYBJBZZAVCNFSM5RB4P4HKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYGA4TEMZXGIZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
By me, problem is with Android itself. Background applications are stopped at some time (for some manufacturers immediately). For "Auto backup settings"/"Old backup scheduler" is used AlarmManager and this is stopped by Android for background applications. For avoid stop of background apps, PPP uses foreground service. It is service which must have permanent notification and is set as STICKY. And PPP has it. Also another similar apps have it (Tasker, Macrodroid, Automate, ...). |
its still a great app. manual backup once a week is not that hard
…On Sat, Oct 28, 2023, 5:52 AM Henrich Gron ***@***.***> wrote:
By me, problem is with Android itself. Background applications are stopped
at some time (for some manufacturers immediately).
For "Auto backup settings"/"Old backup scheduler" is used AlarmManager and
this is stopped by Android for background applications.
Maybe is stopped also FirebaseJobDispatcher, which is used when "Old
backup scheduler" is disabled. I do not know, in PhoneProfilesPlus (PPP) it
is not used, is used WorkManager.
For avoid stop of background apps, PPP uses foreground service. It is
service which must have permanent notification and is set as STICKY. And
PPP has it. Also another similar apps have it (Tasker, Macrodroid,
Automate, ...).
—
Reply to this email directly, view it on GitHub
<#1076 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5SBF3TP47NXDPWS36ERTCDYBTPYPAVCNFSM5RB4P4HKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYGM3TONRZGMYA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
At the moment, the old backup scheduler is turned off. I'm going to turn it
on and see what happens. I'll report back when I get new messages.
Thanks for your reply.
…On Sat, 28 Oct 2023, 21:52 Henrich Gron, ***@***.***> wrote:
By me, problem is with Android itself. Background applications are stopped
at some time (for some manufacturers immediately).
For "Auto backup settings"/"Old backup scheduler" is used AlarmManager and
this is stopped by Android for background applications.
Maybe is stopped also FirebaseJobDispatcher, which is used when "Old
backup scheduler" is disabled. I do not know, in PhoneProfilesPlus (PPP) it
is not used, is used WorkManager.
For avoid stop of background apps, PPP uses foreground service. It is
service which must have permanent notification and is set as STICKY. And
PPP has it. Also another similar apps have it (Tasker, Macrodroid,
Automate, ...).
—
Reply to this email directly, view it on GitHub
<#1076 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYOPLP5QWTSP6GQYIBUHBVTYBTPYPAVCNFSM5RB4P4HKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYGM3TONRZGMYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Not that it helps others, but the Google Play Store version is working for
me on a stock Pixel 6 on Android 14. Maybe because I installed it 2 years
ago and not reinstalled since then?
…On Sat, 28 Oct 2023, 12:15 pm teezeuay, ***@***.***> wrote:
its still a great app. manual backup once a week is not that hard
On Sat, Oct 28, 2023, 5:52 AM Henrich Gron ***@***.***> wrote:
> By me, problem is with Android itself. Background applications are
stopped
> at some time (for some manufacturers immediately).
>
> For "Auto backup settings"/"Old backup scheduler" is used AlarmManager
and
> this is stopped by Android for background applications.
> Maybe is stopped also FirebaseJobDispatcher, which is used when "Old
> backup scheduler" is disabled. I do not know, in PhoneProfilesPlus (PPP)
it
> is not used, is used WorkManager.
>
> For avoid stop of background apps, PPP uses foreground service. It is
> service which must have permanent notification and is set as STICKY. And
> PPP has it. Also another similar apps have it (Tasker, Macrodroid,
> Automate, ...).
>
> —
> Reply to this email directly, view it on GitHub
> <
#1076 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/A5SBF3TP47NXDPWS36ERTCDYBTPYPAVCNFSM5RB4P4HKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYGM3TONRZGMYA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#1076 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ6YM7L7ZITHWXVKUT6FETYBTSONAVCNFSM5RB4P4HKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYGM3TQMJWGMYQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Regular schedule is working also in my S21. |
I did some testing on my S20+ (Android 13) with the regular schedule set to 30 minutes and incoming schedule set to 1 minute. According to my log entries:
Some other notes:
|
This seems to be working now with the Old Backup Scheduler turned on. Will continue to monitor but looks good ! |
Moved from a Poco X3 to a Poco X6 Pro and now I'm back to triggering this manually again. I have made it power management exempt but no deal |
And @coman49 , does your tasker task still work? I've tried both the integration and intent but smsbackup+ doesn't start backing up (I presume it would show in the log?). Edit: urgh and just like that it is working now. |
@sshaikh yep mine works almost perfect. Tasker triggers backup immediately upon receiving texts and calls, though it doesn't trigger on sending texts or calling, but I also have a timed profile that triggers backup every 2 minutes. And yes the Run Log should show all the tasks running and any errors. |
Just wanted to add another potential workaround here. I went into "Auto backup settings" and ticked the bottom box ("Old backup scheduler" / "Force use of old backup scheduler"). This seems to have fixed it for me - at least when I checked this morning, recent SMS messages were already synced to my IMAP folder. I'm just not sure why I didn't think to check this option earlier.. and I don't know if this actually has fixed it or if it was just a co-incidence... but hopefully things are now working again, for me at least - I'll update if this changes.. (Samsung Galaxy S23 Ultra / Android 14, latest updates) EDIT 1: I sent a SMS this morning and it didn't get automatically copied to my IMAP folder yet. So I'm not yet sure that this has made the difference I hoped... EDIT 2: I'm pleased to report that I haven't interacted with the SMS Backup Plus app on my phone for a few days now, and it is continuing to correctly back up SMS messages to my IMAP folder without me having interacted with it. So I'm treating this as working for the moment, which is great! The timing might not be 100% as I'd like yet (I have it set to back up messages within n minutes, and at least a few days ago it seemed to take a little longer than that when I looked) - but that's a minor point in my mind, and at least my messages are now being backed up to IMAP once more! |
Before you report your issue, please consider perusing the https://github.com/jberkel/sms-backup-plus#faq and searching the issues page to see if it has already been reported.
Expected behaviour
Automatic backup
Actual behaviour
Automatic backups are not triggered, manual backups working ok
Steps to reproduce the behaviour
Set up Automatic backups (on arrival and on regular schedule). This used to work, until I noticed a while back it had stopped.
Please specify the following:
12
Pixel 6
1.6.0-BETA2
Google Messages
The text was updated successfully, but these errors were encountered: