Skip to content

Threads getting killed on back-button press #44

Open
@jorgempy

Description

@jorgempy

Hi, Im using this thread lib on the react facebook example app.
When I press the back button from the main screen of my app the app goes to background (terminates kind-of). Thats the default behavior as far as i know.

The problem is, when this happens, the onHostDestroy method gets called. So the threads are terminated.
When I re-enter the app, nothing gets created, as the app is in a intermediate state, so the threads arent re-created. Instead a onHostResume gets called.

For now i have fixed this by changing the onHostDestroy method just to call onHostPause. But i dont know if this is a good long term solution.

Oneplus 6 Android 8.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions