Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jmattheis
Copy link
Member

When the refresh button is clicked in the navigation drawer, then startPushService is executed which registers the handler. The WebSocketService itself is reused, thus isn't created again or destroyed. From my tests the callback isn't registered twice after the refresh. Thus, I'd expect the unregister isn't needed at all because android somehow does this automagically.

Fixes #311

When the refresh button is clicked in the navigation drawer, then
startPushService is executed which registers the handler. The
WebSocketService itself is reused, thus isn't created again or
destroyed. From my tests the callback isn't registered twice after the
refresh. Thus, I'd expect the unregister isn't needed at all because
android somehow does this automagically.
@jmattheis jmattheis merged commit d3d28be into master Oct 8, 2023
@jmattheis jmattheis deleted the crash branch October 8, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Crash on WebSocketService#onDestroy

2 participants