No Sync over 4G; OK over WiFi

36 views
Skip to first unread message

Rover1

unread,
May 23, 2019, 8:55:06 AM5/23/19
to K-9 Mail
I am not getting e-mails automatically when I'm not connected to WiFi.

My settings haven't changed and and don't know what else to check.

I am using Android Pie on a Samsung S9, running K-9 v5.600 26000, last updated 5/14/1.

Is there a new setting/setting change I should be aware of?

Thanks.

Greg Troxel

unread,
May 23, 2019, 9:24:08 AM5/23/19
to Rover1, K-9 Mail
Try the manual sync button and see if that works.

You say "settings haven't changed", but you didn't say if this used to
work, and if you have had any operating system changes since then, what
your settings are, and what the OS settings for background sync and the
app are.

Android, and the android-based systems shipped by vendors, tend to have
controls per-app about background sync and use of background cellular
data.

Rover1

unread,
May 23, 2019, 3:36:10 PM5/23/19
to K-9 Mail
Greg,

Thanks for your reply.

 

Sorry I didn't give complete information.

 

I've been using K-9 Mail for about a year since I got my Samsung S9.

 

It has worked well.  I'd never noticed a lapse in receiving mail when away from WiFi.  I started noticing this phenomenon last week.  Searched the settings to try and resolve it myself, but did not find the answer.

 

I can sync manually when not on WiFi.  Android Pie didn't originally come on the phone, but was updated several months ago.  It didn't affect K-9 Mail though.

 

I'm not sure what you referred to when you wrote "... what your settings are, and what the OS settings for background sync and the app are."

Here are some: Global Settings/Network/Background sync- "When 'Auto-sync' is checked.  "Auto sync personal data" in Android Settings is On.

 

In the app, Account Settings/Fetching mail/ Sync messages from - anytime (no limit); Fetch messages up to 32Kb; Folder poll frequency - Every 15 minutes; Poll Folders - Only 1st Class folders; Push folders - All. 

 

I could list them all, but I'm not sure what you are looking for.

 

If I could get K-9 back to working all the time, it would relieve some frustration.

 

Thanks for any help you provide.

 

Ed

Gunter Königsmann

unread,
May 23, 2019, 3:43:33 PM5/23/19
to k-9-...@googlegroups.com
Wouldn't be the first time that the mobile network provider is at fault => can you manually sync in K9 by scrolling down? If not I guess it is the mobile network, somehow.

--
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/k-9-mail/b29f04a2-c580-41d3-9a2e-a78797403bb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rover1

unread,
May 23, 2019, 6:01:01 PM5/23/19
to K-9 Mail
Gunter,

Thank you for your suggestion.

Yes, I am able to sync manually.  When I am connected to a WiFi network, incoming mail is automatic.  When I am only connected to 4G, sync is disabled according to the message, but I am able to sync manually anyway.

Ed
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-...@googlegroups.com.

Greg Troxel

unread,
May 23, 2019, 8:14:19 PM5/23/19
to Rover1, K-9 Mail
Rover1 <edel...@gmail.com> writes:

> I can sync manually when not on WiFi. Android Pie didn't originally come
> on the phone, but was updated several months ago. It didn't affect K-9
> Mail though.
>
> I'm not sure what you referred to when you wrote "... what your settings
> are, and what the OS settings for background sync and the app are."
>
> Here are some: Global Settings/Network/Background sync- "When 'Auto-sync'
> is checked. "Auto sync personal data" in Android Settings is On.
>
> In the app, Account Settings/Fetching mail/ Sync messages from - anytime
> (no limit); Fetch messages up to 32Kb; Folder poll frequency - Every 15
> minutes; Poll Folders - Only 1st Class folders; Push folders - All.
>
> I could list them all, but I'm not sure what you are looking for.

Did you have any kind of OS update around the time of problems?


The settings I mean are in the settings/applications. For each app,
there are controls over what it's allowed to do. This is different in
every flavor of android -- my example will be for LineageOS, which is
very close to AOSP. I am unfamiliar with Samsung's variant.

On the home screen with K-9, long press, and see the popup with edit,
widgets, and app info. Select app info. (Really, you can get there
from settings.)

On that screen, tap "Data Usage". Look at Foreground and Background.
If Background is 0, that's a huge clue. Then, look at wifi, cellular
and background. All should be on. Then "unrestricted data usage" is
probably off.

But seeing unrestricted, one wonders if your phone is in restricted mode
because of high usage, and what the warning and limit amounts are in
cellular settings. Look in Settings, Network, Data Usage and see if
Data Saver is on. Also look at data used, warning and max.

Are any other apps not doing background sync when you expect them to?
Are any successfully doing background sync?

You might try seeking help from Samsung or a forum about your particular
phone.

Another thing to do is set up adb (via the android development
environment) and look at the logs. I am 99% sure that k-9 would log why
it is not syncing, and in this case I'd say 90% it's because the OS has
denied background mobile data.




(Implicit in this message is the notion that it is highly unlikely you
are dealing with a k-9 bug, but more likely an interaction of
complicated, perhaps nonstandard, android settings theoretically
intended to help you, against a backdrop of typical apps that are really
malware, acting in their author's interest and against yours. K-9 is
not such an app; it behaves well in my experience!)

Rover1

unread,
May 24, 2019, 10:01:29 AM5/24/19
to K-9 Mail
Greg,

Thanks for your instructions.

The last OS update I had was March 1, and the issue started more recently than that.

... On that screen, tap "Data Usage".  Look at Foreground and Background.

If Background is 0, that's a huge clue.  Then, look at wifi, cellular
and background.  All should be on.   Then "unrestricted data usage" is
probably off. 

My screen options are slightly different.  I have:
Total data - 0.01 GB
Foreground is 0.01. 
Background is 0.00 GB
Allow background data usage is on. 
Allow while Data saver on is off.

... But seeing unrestricted, one wonders if your phone is in restricted mode

because of high usage, and what the warning and limit amounts are in
cellular settings.  Look in Settings, Network, Data Usage and see if
Data Saver is on.  Also look at data used, warning and max. 

My phone doesn't snow an unrestricted/restricted mode, or any warnings.  I have:
Data saver is on. 
Mobile date is on.
Since this billing cycle started, 7 days, mobile data usage has been 0.37 GB
Wi-Fi data usage has been 8.19 GB. 
There are no warnings.

... Are any other apps not doing background sync when you expect them to? 

Not that I'm aware of.

... Are any successfully doing background sync? 

The other two e-mail apps are working fine.

The only conflict I saw was that the Data Saver is ON, while the setting 'Allow while Data Saver is on' is OFF.  While this could be the root of the issue, other than setting Data Saver to ON last year I have not made any changes to that setting in K-9.

Does any of the above make sense?

Thanks, again.
Ed

Greg Troxel

unread,
May 24, 2019, 12:11:59 PM5/24/19
to Rover1, K-9 Mail
Rover1 <edel...@gmail.com> writes:

> Allow while Data saver on is off.
>
> The other two e-mail apps are working fine.

And do they allow background while data saver is on?

> The only conflict I saw was that the Data Saver is ON, while the setting
> 'Allow while Data Saver is on' is OFF. While this could be the root of the
> issue, other than setting Data Saver to ON last year I have not made any
> changes to that setting in K-9.

If you turn data saver on, then that is a request to deny background
cell data to any app that doesn't have the data saver override. So it's
correct that k-9 doesn't background sync in that case (not that it's
k-9's option).

Gunter Königsmann

unread,
May 24, 2019, 12:45:12 PM5/24/19
to k-9-...@googlegroups.com
On my phone (Moto G5) somewhere different deep down in the applications list in the settings menu you can choose if you want to optimise apps for power or similar. K9 seems to work for me with all possibilities here. But perhaps Samsung hides other stuff in that place.

--
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/k-9-mail/smutvdjx25x.fsf%40linuxpal.mit.edu.

Rover1

unread,
May 24, 2019, 5:37:43 PM5/24/19
to K-9 Mail
On both the other apps, just as for K-9, this function is OFF.  The others work no matter what network is primary.

Rover1

unread,
May 24, 2019, 5:39:52 PM5/24/19
to K-9 Mail
Gunter,

I checked, and all three are not optimixed for power.

Thanks for the suggestion, though.

On Friday, May 24, 2019 at 12:45:12 PM UTC-4, Gunter Königsmann wrote:
On my phone (Moto G5) somewhere different deep down in the applications list in the settings menu you can choose if you want to optimise apps for power or similar. K9 seems to work for me with all possibilities here. But perhaps Samsung hides other stuff in that place.

Greg Troxel <g...@lexort.com> schrieb am Fr., 24. Mai 2019, 18:12:
Rover1 <edel...@gmail.com> writes:

> Allow while Data saver on is off.
>
> The other two e-mail apps are working fine.

And do they allow background while data saver is on?

> The only conflict I saw was that the Data Saver is ON, while the setting
> 'Allow while Data Saver is on' is OFF.  While this could be the root of the
> issue, other than setting Data Saver to ON last year I have not made any
> changes to that setting in K-9.

If you turn data saver on, then that is a request to deny background
cell data to any app that doesn't have the data saver override.  So it's
correct that k-9 doesn't background sync in that case (not that it's
k-9's option).

--
You received this message because you are subscribed to the Google Groups "K-9 Mail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to k-9-...@googlegroups.com.

Michael Shohoney

unread,
May 24, 2019, 6:06:13 PM5/24/19
to Rover1, K-9 Mail
You're talking about the Android battery optimizations settings at the OS level? If not, that may be where your issue is. K9 has to be not optimized in those settings.

--
Sent from my mobile device. Please excuse my brevity.

To unsubscribe from this group and stop receiving emails from it, send an email to k-9-mail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/k-9-mail/ddc1e7dd-3b61-4276-a416-ec7fe1076e30%40googlegroups.com.

Greg Troxel

unread,
May 24, 2019, 9:04:03 PM5/24/19
to Rover1, K-9 Mail
Rover1 <edel...@gmail.com> writes:

> On both the other apps, just as for K-9, this function is OFF. The others
> work no matter what network is primary.

That is a bug then. If data saver is on, and an app is not marked for
using background data when data saver is on, it should not.

Seriously: if you want apps to use data in the background, you need to
either
turn data saver off
enable that app to use data when data saver is on

Refusing to do either is just tilting at windmills.

Rover1

unread,
May 24, 2019, 10:11:59 PM5/24/19
to K-9 Mail
OK Greg and Mathguy,

I re-verified that K-9 is not optimized for battery protection, and enabled the 'Use while data saver is on' switch.

I'll monitor it tomorrow.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages