Mail app doesn't work after end of flight mode
- /e/ version: 0.13-2020121490323 on Android 10
- Device model(s): FP3
Summary
The Mail app doesn't work correctly after the end of flight mode.
The problem
I have the habit to switch on flight mode over night. When I switch flight mode off in the morning the mail app should automatically request the configured mail servers, receive what's new and start the push mechanism. But currently it does nothing. I can pull the servers manually and then also the push mechanism works again. But when I forget this I do not receive anything for the whole day, the mail app behaves then like a zombie.
I can reproduce this every day with my three different IMAP servers as follows:
- Just switch on flight mode and wait at least for one push interval (note: the real interval is server defined, it's not the one configured in the mail account of the mail app, this may be much shorter, if you don't know your server wait an hour). This wait is needed to stop the push mechanism on the IMAP server, the server must truely forget the device.
- After this waiting send the IMAP server a message from another device.
- Then switch off flight mode.
- Send the IMAP server another message from another device.
Nothing has been received on the device until now, the mail app sleeps.
- Use the mail app to request the mails manually now - and you get them all.
- After you woke up the mail app by this request you can send more messages to the IMAP server - the mail app receives them by the ordinary push mechanism, it works again.
OK, what I didn't check is polling. I don't use cyclic polling of my mail servers. My polling interval stands on "Never".
What is the current behavior?
I told exactly what the current behavior under "The problem" above.
What is the expected correct behavior?
As I said above, when I stop the flight mode the mail app should
- automatically connect to the IMAP servers,
- receive what's new (also what's deleted) and
- start the push mechanism so that it works reliable.
This all must happen without the user is involved. The user expects that receiving mails just works again after flight mode has ended.
Technical informations
Relevant logs (adb logcat
)
Relevant screenshots
Solutions
Workaround
The user can manually pull mails from the IMAP servers. After the user did this once all is fine.
Possible fixes
It can't be too complicated to do an automatic request when a network connection (mobile, wifi) get's active.