-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
PUSH Stop working after closing app, but restart if clicking on "Tap to learn more" on bell notification #8751
Comments
What exactly do you mean by "Close App"? It sounds like you're killing the app and it is immediately restarted by the system because it had an active foreground service. If that's the case, please don't kill the app. Just move it to the background. With the push service active the app should be counted as being in the foreground. However, if that's not working properly and the app is denied network access in the background, it would explain the behavior you're seeing. If background data is disabled for the app, try enabling it (in Android's "App info" screen for the app). If none of the above helps, please enable debug logging in settings. Then perform all steps to reproduce the issue. Then export the log and attach it here. |
Don't do that. It will kill the app which will terminate all connections to the mail server(s). Android then restarts the app because of the push service. But all connections will have to be re-established. This is most likely not the cause of your problem. But it might be a contributing factor. At the very least it's an unnecessary drain on your battery. |
I attach k9 debug log up to closing the app and adb logcat relative to com.fsck.k9 (grep -i com.fsck.k9). |
The logs seem to be missing the relevant protocol communication data. Please use the export using the app method to save the debug log. |
I have followed the instructions on the wiki Learn how to report it and used export log inside k9 mail app |
Hm. If you didn't manually remove entire lines of the log after the export, there's something wrong with your app installation. Please uninstall the app and reinstall. |
I do not have flagged "log sensitive data", but apart replacing my account and server with XXXXX and YYYYYY i do not have removed anything.
Apart that i need to click on notification every time i close (swipe app) k9 mail to re-enable push, application works without any problem, so reinstalling it do not seems a probable solution... |
The file is missing log messages of the communication with the IMAP server. This is not a user-configurable setting. If debug logging is enabled, that information is always included. This suggests the app code is corrupted. And if this corruption impacts logging, why not also push? But even if the corruption doesn't impact push, a working log system is required to diagnose the push problem. You can of course choose to not reinstall the app. But then we've reached the end of this investigation and you're on your own with this problem. |
Reinstalled App, enabled debug even enabled "log sensitive data", completely stopped app from "App info page", relaunched it but the log output is always the same! |
Found out that to show verbose log i need to do: |
Interesting. I've never heard of the default on a device not include all log messages from an app. Have you used
The one without the SQLite tag is probably enough. |
No i never changed it, i have this cell from 1 month..
k9mail-logs-01.txt I have launched k9, enabled debug, closed k9, reopened (waiting for sync) and exported debug, please tell me if need to make other actions, thanks. |
It looks like the log buffer is too small to hold all relevant information. The log only contains information about the time when you reopened the app to export the log. By that time push had already recovered and from the log it looks like it was working fine. Can you connect the phone to the PC and record a log using |
It's not so easy, directly using adb the log (with verbosity increased) is quite big and confusing.
i attach the log
|
You've left out the important part between killing the app and opening a screen of the app. That "closing" the app will kill the process and stop push is not in question or a problem. That opening an app screen, e.g. "push info" will restart push and things continue to work is not in question or a problem. The problem is that shortly after killing the app the OS restarts the push service as expected, but the app won't actually connect to the mail server to listen for new messages. That is what (should) happen after killing the app and before manually opening a screen of the app. We need logs of that time period. |
Checklist
App
K-9 Mail
App version
8.2
Where did you get the app from?
F-Droid
Android version
14
Device model
Jelly Max
Steps to reproduce
Expected behavior
If there is notification service active and bell notification icon i expect that push notification should work.
Actual behavior
Seems that when application is closed, imap idle connection is closed too, then bell notification reappear but push notification do not work anymore until i click on "tap to learn more".
Logs
It's a strange behavior, consider that the push service is always running i can see from Android "Developer Option/Running service" that it's never stopped, it's even listed in "Active Apps" warning with running time equals to boot time (i attach a screen).
I own the mail server that i use for imap push, so i have looked at the mail logs; when application is stopped IMAP idle connection is closed.
Then even if bell icon reappear in notification status bar, connection is not re-established until i click on "Tap to learn more".
As soon as i click on "Tap to learn more" imap connection is established and if there are pending emails i am immediately notified.
The text was updated successfully, but these errors were encountered: