Skip to content

WebView process is never unloaded while push service is running #6460

@HanabishiRecca

Description

@HanabishiRecca

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App version

6.202

Where did you get the app from?

Google Play

Android version

Android 12 / LineageOS 19.1

Device model

No response

Steps to reproduce

  1. Observe the push service is running after boot or whatever.
  2. Open the app, read some mail and close the app (swipe it out of tasks to be sure).
  3. Observe that extra WebView process keep running forever along with the service.

Expected behavior

WebView process should exit when the app is closed.

Actual behavior

Starting as usual the service is fine.

When I open the app and view some mail, WebView process is started. But it never unloads after the app was closed, just keeps hanging along with the push service and wasting memory no matter what. Also there is no dedicated exit button in the app to properly close it.


I found two ways to kill it without stopping the service:

Force stop WebView app from its info page.

Or kill the process using some process viewer (requires root).

Only after that we return back to expected state.


My thoughts: Android obviously treats WebView process as part of the service and never kills it. Foreground services have high priority and never being unloaded even under low memory conditions. There should be some way to avoid such behavior or at least make an "exit" button in the app, which properly shuts down all its processes, but keeps the push service running.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething is causing incorrect behavior or errors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions